SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.28288 · 2026

FI-KAN: Fractal Interpolation Kolmogorov-Arnold Networks

Gnankan Landry Regis N'guessan

arXiv · PDF

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2603.28288.json · badge: /api/ran/2603.28288.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ReFractals/fractal-interpolation-kan canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
count_params Ran
ran, honoured the contract we drafted
ReFractals/fractal-interpolation-kan/training.py
code served (permissive licence) · get_code("10e22f8ecce269a0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fractal_bases Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ReFractals/fractal-interpolation-kan/bases.py
code served (permissive licence) · get_code("21810a1e997dd4ad")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Parameters for fractal_bases function
batch_size = 2
in_features = 4
grid_size = 5
depth = 3

# x: (batch, in_features) - input values in grid_range
x = torch.rand(batch_size, in_features) * 2.0  # values in [0, 2)

# d: (in_features, grid_size) - contraction parameters with |d_j| < 1
d = torch.rand(in_features, grid_size) * 0.8  # values in [0, 0.8)

# grid_range: [a, b] - domain endpoints
grid_range = [0.0, 2.0]

ARGS = {
    "x": x,
    "d": d,
    "grid_size": grid_size,
    "depth": depth,
    "grid_range": grid_range,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 6) — shape (2, 4, 6) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fractal_dim_from_d Ran
ran; our contract draft was wrong, not the code
ReFractals/fractal-interpolation-kan/bases.py
code served (permissive licence) · get_code("ad3c43033e78ae1e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Construct arguments for fractal_dim_from_d
# The function expects:
# - d: a tensor of shape (..., N) containing contraction parameters
# - N: an integer representing the number of intervals (grid_size)

# Create a small tensor with shape (2, 3, 4) where the last dimension is N=4
d = torch.randn(2, 3, 4)

# Set N to match the last dimension of d
N = 4

ARGS = {
    "d": d,
    "N": N,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fractal_sawtooth Ran
ran; our contract draft was wrong, not the code
ReFractals/fractal-interpolation-kan/targets.py
code served (permissive licence) · get_code("c7fb5ba72050f0c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function takes x (a tensor) and depth (an int)
# x needs to support:
# - torch.zeros_like(x)
# - arithmetic operations (*, +)
# - .round() method
# - .abs() method

# Create a small tensor for x
x = torch.randn(2, 4)

ARGS = {
    'x': x,
    'depth': 12
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mlp_matching_params Ran
ran; our contract draft was wrong, not the code
ReFractals/fractal-interpolation-kan/baselines.py
code served (permissive licence) · get_code("78b8bd92da1d3969")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define ARGS dict with all parameters for mlp_matching_params
ARGS = {
    "target_params": 500,
    "layers_hidden": [4, 10],
    "activation": nn.SiLU,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_multiseed Ran
ran; our contract draft was wrong, not the code
ReFractals/fractal-interpolation-kan/training.py
code served (permissive licence) · get_code("f43f9d041c7d1875")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Define a minimal model class that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, x):
        return self.linear(x)
    
    def regularization_loss(self, reg_act=0.0, reg_ent=0.0, reg_frac=0.0):
        return torch.tensor(0.0)
    
    def fractal_dimensions(self):
        return [torch.tensor([1.0]), torch.tensor([1.1])]
    
    def fractal_energy_ratios(self):
        return [0.5, 0.6]

# Create tiny training and test data tensors
# xt: (2, 4) - 2 samples, 4 features
# yt: (2, 1) - 2 samples, 1 output
xt = torch.randn(2, 4, dtype=torch.float32)
yt = torch.randn(2, 1, dtype=torch.float32)

# xe: (2, 4) - 2 test samples, 4 features
# ye: (2, 1) - 2 test samples, 1 output
xe = torch.randn(2, 4, dtype=torch.float32)
ye = torch.randn(2, 1, dtype=torch.float32)

# Model factory function that returns a fresh model instance
def model_fn():
    return MinimalModel()

# Build ARGS dict for run_multiseed
ARGS = {
    'model_fn': model_fn,
    'xt': xt,
    'yt': yt,
    'xe': xe,
    'ye': ye,
    'seeds': [42, 123],
    'epochs': 2,
    'lr': 0.001,
    'reg_frac': 0.0,
    'model_type': 'kan',
    'batch_size': None,
    'reg_act': 0.0,
    'reg_ent': 0.0,
    'patience': 50,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
smooth_poly Ran
ran, honoured the contract we drafted
ReFractals/fractal-interpolation-kan/targets.py
code served (permissive licence) · get_code("6f02e1e6bc536e5c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function smooth_poly takes a single parameter x
# and performs polynomial operations on it (x^3 - 2x^2 + x - 0.5)
# x should be a tensor or array-like that supports arithmetic operations

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_model Ran
ran; our contract draft was wrong, not the code
ReFractals/fractal-interpolation-kan/training.py
code served (permissive licence) · get_code("8f78c3b8398bc3e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np

torch.manual_seed(0)

# Create a minimal KAN-like model that satisfies the function's usage
class MinimalKAN(nn.Module):
    def __init__(self, input_dim=4, output_dim=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)
    
    def regularization_loss(self, reg_act=0.0, reg_ent=0.0):
        return torch.tensor(0.0)

# Create a minimal FIKAN model with fractal-related methods
class MinimalFIKAN(nn.Module):
    def __init__(self, input_dim=4, output_dim=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)
    
    def regularization_loss(self, reg_act=0.0, reg_ent=0.0, reg_frac=0.0):
        return torch.tensor(0.0)
    
    def fractal_dimensions(self):
        return [torch.tensor([1.5, 1.2, 1.8])]
    
    def fractal_energy_ratios(self):
        return [0.5, 0.3, 0.2]

# Create a minimal MLP model
class MinimalMLP(nn.Module):
    def __init__(self, input_dim=4, output_dim=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Create small synthetic data tensors
xt = torch.randn(4, 4)  # 4 training samples, 4 input features
yt = torch.randn(4, 3)  # 4 samples, 3 outputs
xe = torch.randn(2, 4)  # 2 test samples, 4 input features
ye = torch.randn(2, 3)  # 2 samples, 3 outputs

# Construct the ARGS dictionary with all required parameters
ARGS = {
    'model': MinimalKAN(input_dim=4, output_dim=3),
    'xt': xt,
    'yt': yt,
    'xe': xe,
    'ye': ye,
    'epochs': 2,
    'lr': 0.001,
    'batch_size': 2,
    'reg_act': 0.0,
    'reg_ent': 0.0,
    'reg_frac': 0.0,
    'patience': 50,
    'model_type': 'kan'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
weierstrass Ran
ran; our contract draft was wrong, not the code
ReFractals/fractal-interpolation-kan/targets.py
code served (permissive licence) · get_code("0e936d6028e7454b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch

torch.manual_seed(0)

# The function takes a tensor x and optional parameters a, b, n_terms
# x should be a tensor that supports operations like torch.zeros_like, torch.cos
# a and b are scalars (float)
# n_terms is an integer

x = torch.randn(2, 4)  # Small tensor: batch size 2, dimension 4

ARGS = {
    "x": x,
    "a": 0.5,
    "b": 7.0,
    "n_terms": 30
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_fbm_data Not yet run
unverified (harvested, no recorded run)
ReFractals/fractal-interpolation-kan/benchmarks.py
code served (permissive licence) · get_code("ce05ca5c1b78313a")
How it ran

no invocation recorded.

generate_lshaped_fem_data Not yet run
unverified (harvested, no recorded run)
ReFractals/fractal-interpolation-kan/benchmarks.py
code served (permissive licence) · get_code("2b091a48640e5fe0")
How it ran

no invocation recorded.

generate_rough_diffusion_fem_data Not yet run
unverified (harvested, no recorded run)
ReFractals/fractal-interpolation-kan/benchmarks.py
code served (permissive licence) · get_code("d49f25f12c493a2a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
count_params 13 other papers
12 dated earlier, 1 later
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11168 (2018-11)
Deformable ConvNets v2: More Deformable, Better Results
1907.03950 (2019-07)
Learning by Abstraction: The Neural State Machine
and 10 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Kolmogorov-Arnold Networks (KAN) employ B-spline bases on a fixed grid, providing no intrinsic multiscale decomposition for non-smooth function approximation. We introduce Fractal Interpolation KAN (FI-KAN), which incorporates learnable fractal interpolation function (FIF) bases from iterated function system (IFS) theory into KAN. Two variants are presented: Pure FI-KAN (Barnsley, 1986) replaces B-splines entirely with FIF bases; Hybrid FI-KAN (Navascués, 2005) retains the B-spline path and adds a learnable fractal correction. The IFS contraction parameters give each edge a differentiable fractal dimension that adapts to target regularity during training. On a Hölder regularity benchmark (α ∈ [0.2, 2.0]), Hybrid FI-KAN outperforms KAN at every regularity level (1.3× to 33×). On fractal targets, FI-KAN achieves up to 6.3× MSE reduction over KAN, maintaining 4.7× advantage at 5 dB SNR. On non-smooth PDE solutions (scikit-fem), Hybrid FI-KAN achieves up to 79× improvement on rough-coefficient diffusion and 3.5× on L-shaped domain corner singularities. Pure FI-KAN's complementary behavior, dominating on rough targets while underperforming on smooth ones, provides controlled evidence that basis geometry must match target regularity. A fractal dimension regularizer provides interpretable complexity control whose learned values recover the true fractal dimension of each target. These results establish regularity-matched basis design as a principled strategy for neural function approximation.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2603.28288")
get_code_for_paper("2603.28288")
have("2603.28288")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2603.28288.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2603.28288.svg)](https://syntology.ai/paper/2603.28288)

Connect an agent — have() is free.