KAN 2.0
MultKAN, a Kolmogorov-Arnold Network with added multiplication nodes, from the KAN 2.0 paper.
Physics and weather · 584 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
- Task
- Physics and weather
- Parameters
- 476
- Operations
- 584
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2024, arXiv preprint
- Authors
- Ziming Liu, Pingchuan Ma, Yixuan Wang and others
- Source
- GitHub: KindXiaoming/pykan
- 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
- m17641
- Graph hash
- 47f0a0fc2d90ccc3a4b72e847349c4ce5252d44deaece1a7ea7582af14b10d34
- Skeleton hash
- 456a7034d9df94d9beec8f8584840f860e644ad0e2ec553ae04a24a51f60c8e0
- Architecture hash
- a9b7ad4210425f43d2fe22a12d8dd4f30a8e08f2c8924dc1f3a3f3e684881174
- Diagram SHA-256
- 83d9b73fc3c70ac8304dfaa00d9132f065537e65e653b19f340e2b95580006b8
- 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
KAN 2.0 builds on Kolmogorov-Arnold Networks (KANs), which place learnable activation functions on edges where multi-layer perceptrons have fixed activation functions on nodes. The paper's aim is to make KANs easy to use for curiosity-driven science. It works in both directions, building scientific knowledge into KANs and extracting scientific insights from them.
The model introduced is MultKAN, the original KAN augmented with multiplication nodes. In a KAN, addition is the only true multivariate operation, so multiplication has to be expressed as additions combined with univariate functions. In a MultKAN, some nodes are copied from the previous layer's outputs as before, while multiplication nodes multiply several of those outputs together. The multiplication layers add no trainable parameters. Trained on f(x, y) = xy, the paper's KAN learns an algorithm that needs two addition nodes, while the MultKAN needs only one multiplication node.
Alongside MultKAN, the pykan package gains kanpiler, a compiler that turns symbolic formulas into KANs, and a converter from KANs to tree graphs. With these tools the paper demonstrates the discovery of physical laws, including conserved quantities, Lagrangians, symmetries and constitutive laws. The paper notes that although its title says KAN 2.0, the release version of pykan is 0.2.x.
Key idea. The paper augments the original KAN with multiplication nodes, a model called MultKAN, and adds pykan tools for building scientific knowledge into KANs and extracting it from them.
- KAN 2.0
- MultKAN
- Kolmogorov-Arnold Networks
- pykan
- multiplication nodes
- symbolic regression
- AI for science
- kanpiler
- interpretable neural network
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liu2024kan20kolmogorovarnoldnetworks,
title={KAN 2.0: Kolmogorov-Arnold Networks Meet Science},
author={Ziming Liu and Pingchuan Ma and Yixuan Wang and Wojciech Matusik and Max Tegmark},
year={2024},
eprint={2408.10205},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2408.10205},
}