MatrixKAN
A Kolmogorov-Arnold Network that evaluates its B-spline activation functions with matrix operations.
420 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 510
- Operations
- 420
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025
- Cited by
- 13 (as of 18 November 2026)
- Authors
- Cale Coffman, Lizhong Chen
- License
- CC-BY-NC-SA-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18351
- Graph hash
- 4e5f65ac6e0684fe52178ee8088a10307c0eebd1e3168bfe5b145f01e6ffc4ae
- Skeleton hash
- a42f8b341b64741e148a39d2f9ce8bd33282ec18d661b0719e94c644a1dbc2b5
- Architecture hash
- de6d2a0e9524f0103a83b96b9fcf5c930e41374e1a029eb4378060e997860ac2
- Diagram SHA-256
- ced3a957feb7859dbee2da06f176000ae58d9c1d77442c5cadb0a6d784ea8dde
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MatrixKAN is a Kolmogorov-Arnold Network (KAN) that computes its B-spline activation functions with matrix operations in place of recursion. A KAN is fully connected like an MLP, but where an MLP uses fixed activation functions on its nodes, a KAN uses learnable activation functions on its edges, and each edge carries a parameterized B-spline.
The usual way to evaluate a B-spline is the Cox-De Boor recursion algorithm, which needs sequential recursive calls whose number grows linearly with the degree of the B-spline. MatrixKAN decomposes those calculations into matrix operations, with all recursive operations represented by a single matrix that is precalculated at model initialization for B-splines of a given degree. Every later B-spline calculation is then a matrix multiplication, which can be parallelized.
MatrixKAN is a modified version of pykan and works with most existing KAN features. The authors trained and evaluated it on the Feynman physics equations modeled by KAN, and the paper reports that its effective computation time is independent of B-spline degree, with speedups of up to approximately 40x.
Key idea. MatrixKAN replaces the recursive Cox-De Boor evaluation of B-splines in a KAN with matrix operations built on a basis matrix precalculated at model initialization.
- matrixkan
- kolmogorov-arnold network
- parallelized kan
- b-spline
- cox-de boor recursion
- learnable activation functions
- pykan
- high-degree b-splines
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{coffman2025matrixkanparallelizedkolmogorovarnoldnetwork,
title={MatrixKAN: Parallelized Kolmogorov-Arnold Network},
author={Cale Coffman and Lizhong Chen},
year={2025},
eprint={2502.07176},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2502.07176},
}