Paper commentary
KAN: Kolmogorov-Arnold Networks
Kolmogorov-Arnold Networks put learnable spline functions on edges
- Problem MLPs use fixed activations on nodes and linear weight matrices, which makes them hard to interpret. Small MLPs also need many parameters to match accuracy on scientific fitting tasks.
- Method KAN replaces every linear weight with a learnable spline function on an edge. Nodes only sum their incoming signals, so a small KAN can start coarse and refine its grid.
- Results Much smaller KANs reach comparable or better accuracy than larger MLPs on data fitting and PDE solving. KANs also show faster neural scaling laws than MLPs.
Why look beyond fixed node activations
MLPs are the default choice for approximating nonlinear functions, and their expressive power rests on the universal approximation theorem. Their costs are concrete: in transformers, the MLP blocks take up nearly all non-embedding parameters, and they are harder to read than attention layers unless extra analysis tools are applied. The authors therefore ask whether MLPs are the best nonlinear regressors that can be built, and they look for an alternative grounded in the Kolmogorov-Arnold representation theorem.
The original theorem gives a two-layer form with an inner width of 2n+1, and its univariate functions can be non-smooth, which made it look impractical for learning. The authors counter that the original form need not be kept: the network can be widened and deepened, and real scientific functions are often smooth with sparse compositional structure, which makes smooth representations plausible.
How a KAN layer replaces the MLP layer
An MLP layer applies a linear map followed by fixed nonlinearities on nodes. A KAN instead attaches a learnable univariate function to every edge, and each such function is parametrized as a spline. Because no linear weight matrices remain, nodes only add their incoming signals without a nonlinearity. The authors note that a spline per edge looks expensive, but KANs usually need much smaller computation graphs than MLPs.
A network shape is written as an integer array, and the activation on the edge from node i in layer l to node j in layer l+1 is written as ϕ_{l,j,i}. The value at each node of the next layer is the sum of the post-activations arriving from the previous layer, as the following relation gives. \[ x_{l+1,j} = \sum_{i=1}^{n_l} \phi_{l,j,i}(x_{l,i}), \quad j = 1, \cdots, n_{l+1} \] A KAN layer is therefore a matrix of 1D functions, and making the network deeper means stacking such layers, since the two-layer Kolmogorov-Arnold representation is a composition of two KAN layers.
Each 1D function is a linear combination of local B-spline basis functions with learnable coefficients, so a coefficient changes the function only near its support. The number of coefficients per edge is set by the grid, which is the link between the architecture and the grid extension step described next.
Refining the spline grid without retraining
A spline with a fine grid can approximate a target arbitrarily well, and KANs inherit this, while MLPs have no matching notion of finer resolution. Grid extension fits the coefficients of a finer B-spline to the existing coarse spline by least squares, with the squared difference taken over a sampling distribution of inputs. Every spline in the network is extended independently, so a KAN can start with few parameters and gain resolution without retraining a larger model from scratch.
The toy function is f(x, y) = exp(sin(πx) + y²), fitted by a [2, 5, 1] KAN with 1000 training samples. The grid starts at 3 points and rises to 1000 points, increasing every 200 LBFGS steps, and each refinement lowers the training loss faster than the previous setting, except at the finest grid. The test loss first falls and then rises, which the authors read as a bias-variance trade-off around an interpolation threshold.
The total parameter count of the [2, 5, 1] KAN is 15G, where G is the number of grid intervals, so the estimated threshold is G = 1000/15 ≈ 67. The observed optimum lies near G ∼ 50, which the authors treat as rough agreement with that estimate. A [2, 1, 1] KAN can represent this function exactly and reaches lower test losses than the [2, 5, 1] KAN, with the threshold shifted to a larger grid size because it has fewer parameters.
Sparsifying, pruning and symbolifying a KAN
Sparsification borrows the L1 idea from MLPs, but a KAN has no linear weights, so the L1 norm is defined on each activation as its average magnitude over the N_p inputs. \[ |\phi|_1 \equiv \frac{1}{N_p}\sum_{s=1}^{N_p} |\phi(x^{(s)})| \] The L1 norm of a layer sums these values over all its activations, and an entropy term over the same quantities is added because L1 alone was found insufficient.
The total objective adds the prediction loss to a weighted sum of the layer L1 and entropy terms, with λ controlling the overall strength, and the relative weights µ1 and µ2 set to 1 by default.
Symbolification sets an activation to a chosen symbolic form after fitting affine parameters (a, b, c, d) so that y ≈ c f(ax + b) + d, using samples of the pre- and post-activations. In the toy case, a [2, 5, 1] KAN is sparsified, its four idle hidden neurons are pruned to a [2, 1, 1] KAN, and the remaining activations are set to sin, x² and exp.
Training the leftover affine parameters until the loss reaches machine precision yields the symbolic expression, which the authors obtain with Sympy. The authors contrast this with symbolic regression, which they describe as brittle and hard to debug, since it returns only success or failure without interpretable intermediate results.
Accuracy and scaling on the Poisson equation
The test problem is a Poisson equation on Ω = [-1, 1]^2 with zero Dirichlet boundary data, and its true solution is sin(πx) sin(πy²). The solver is a physics-informed neural network, whose loss combines a mean squared interior residual and a boundary term weighted by α.
Errors are measured in the L2 norm and in the energy (H1) norm. The authors note that the ground truth is itself a symbolic formula, which may favour KANs, and that KANs and MLPs appear suited to different classes of PDE solutions.
Across the scaling plots, KANs converge faster, reach lower losses and have steeper scaling laws than MLPs. The authors also report that their KAN implementation is typically about 10 times slower than MLPs to train.
Avoiding forgetting through local spline updates
Catastrophic forgetting means that a network trained on a second task loses its performance on the first, which is a serious problem for current neural networks. The authors link the problem to locality: MLPs use global activations, so a local change can propagate to distant regions and overwrite stored information.
The toy problem is a 1D regression with five Gaussian peaks, and data around each peak is presented in turn to a KAN and to an MLP. A KAN only remodels the region where data is present in the current phase and leaves earlier regions unchanged. An MLP remodels the whole region after each new phase, which produces the forgetting shown in the bottom row.
The authors describe these results as preliminary on an extremely simple example, and it is unclear whether the locality argument extends to high-dimensional problems, where locality is hard to define.
Recovering known relations from data
Four model families are compared on the Feynman datasets: human-constructed KANs written from the symbolic formula, KANs without pruning, pruned KANs, and MLPs with width 5 and activations chosen among Tanh, ReLU and SiLU. Each KAN starts at G = 3, is trained with LBFGS, and is evaluated over 3 random seeds per hyperparameter combination, with the best model per dataset reported.
MLPs and KANs behave comparably on average on these datasets. The authors suspect the Feynman datasets are too simple for KANs to improve further, since their variable dependence is usually smooth or monotonic. Auto-discovered KAN shapes are usually smaller than the human-constructed ones, and the authors visualize 54 pruned KANs.
For the relativistic velocity composition f(u, v) = (u+v)/(1+uv), a human construction needs about five layers, while the auto-discovered KANs are only two layers deep. The authors explain this with rapidities: with a = arctanh u and b = arctanh v, the composition equals tanh(a + b), which a two-layer KAN can realize.
Mobility edges in quasiperiodic models
In Anderson localization, a mobility edge separates extended states from localized ones, and the study uses numerical data from quasiperiodic tight-binding models to extract it. The localization measure is the fractal dimension D_k = -log(IPR_k)/log(N), where values of 0 and 1 indicate localized and extended states.
For the generalized Aubry-André model, the mobility edge has the closed form αE = 2(t − λ), and the training data are sampled over ϕ, α and λ with t = 1. A [4, 2, 1, 1] KAN with a sigmoid output reaches 98.7% accuracy before symbolic snapping, and 98.9% after the activations are restricted to linear or quadratic forms. The network ignores ϕ entirely, which matches the closed form, and the resulting symbolic formula reaches 99.0% accuracy, against 99.2% for the theoretical expression.
The authors use a hypothetical user to show that a human can impose assumptions, such as linear activations for the mobility edge variable, and then let the KAN test them.
Limitations
The main practical constraint is training speed: KANs are usually about 10 times slower than MLPs at the same parameter count. The authors say they did not try hard to optimize KAN efficiency, and they treat slow training as an engineering problem rather than a fundamental limitation.
The mathematical understanding of KANs remains limited, since the classical representation covers only the shape [n, 2n+1, 1], which is a restricted subclass of KANs. Whether a generalized Kolmogorov-Arnold theorem can characterize deeper representations is left open.
The experiments are on small-scale tasks, including toy functions, one PDE, a continual learning toy and the Feynman datasets, and the authors have not established their performance on language modeling. Which of the two changes, activations on edges or learnable activations, explains the advantage is still open, and the preliminary study in the appendix does not settle it.
Paper info
- Authors
- Ziming Liu, Yixuan Wang, Sachin Vaidya, Fabian Ruehle, James Halverson, Marin Soljačić, Thomas Y. Hou, Max Tegmark
- Venue
- arXiv · Preprint
- First published
- 2024-4-30
- Added
- 2026-11-12
- Updated
- 2025-2-9
- Version
- v5
- arXiv
- 2404.19756
- Category
- cs.LG · cond-mat.dis-nn · cs.AI · stat.ML
- Original paper terms
- CC BY 4.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ziming Liu, Yixuan Wang, Sachin Vaidya, Fabian Ruehle, James Halverson, Marin Soljačić, Thomas Y. Hou, Max Tegmark (2024). KAN: Kolmogorov-Arnold Networks. arXiv:2404.19756v5. https://arxiv.org/abs/2404.19756v5
BibTeX
@misc{liu2024kolmogorov,
title = {{KAN: Kolmogorov-Arnold Networks}},
author = {Ziming Liu and Yixuan Wang and Sachin Vaidya and Fabian Ruehle and James Halverson and Marin Soljačić and Thomas Y. Hou and Max Tegmark},
year = {2024},
eprint = {2404.19756},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2404.19756v5}
}