LegendreKAN
A Kolmogorov-Arnold network that uses Legendre polynomials in place of splines, set up as an MNIST classifier.
55 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
- 254.2K
- Operations
- 55
- Framework
- PyTorch
- Recurrent
- No
- Source
- GitHub: 1ssb/torchkan
- License
- MIT
- 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
- m17909
- Graph hash
- 657ada8d157dc0c65cd5bca66b1bff44bc995b393e93ec37384bb4a5613c40a4
- Skeleton hash
- 2700b2a7a24fe3b186d33fed913179423ea75789bdb07ae7be5a78ae665079b4
- Architecture hash
- 2cd50ac79de205ffd43dcb9f051dcf924b7ec707df4f33532f015d6054b3ccb9
- Diagram SHA-256
- 81e085c2329abb3a8af2dce415f319358670f1c4dfc1134b0a555244503f357b
- 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
KAL-Net, the Kolmogorov Arnold Legendre Network, is a Kolmogorov–Arnold network (KAN) variant that uses Legendre polynomials where the original uses splines. It comes from TorchKAN, an independent PyTorch implementation of KANs that also covers a Chebyshev variant and a convolutional one.
The network uses Legendre polynomials up to a set order on its normalized inputs. The activation function is SiLU (Sigmoid Linear Unit). Layer normalization is applied to each layer's output. The polynomial computations are cached with functools.lru_cache so the forward pass does not repeat them.
The README's argument against splines is that they often require manual knot placement and struggle with dimensionality, where Legendre polynomials offer a more systematic approach. Its author is cautious about the wider claims for KANs, writing that the extent of interpretability, scalability, quantizability or efficiency they offer remains unclear. The repository reports that KAL_Net reaches about 97.8% accuracy on MNIST.
Key idea. KAL-Net builds a Kolmogorov–Arnold network from Legendre polynomials up to a set order instead of splines, with the polynomial computations cached during the forward pass.
- LegendreKAN
- KAL-Net
- KAL_Net
- Kolmogorov Arnold Legendre Network
- Legendre polynomial KAN
- TorchKAN
- Kolmogorov-Arnold network
- MNIST classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.