This paper addresses a critical bottleneck in making Kolmogorov-Arnold Networks (KANs) truly useful for scientific discovery: the fragile process of turning learned numeric functions into human-readable symbolic formulas.
TL;DR
The authors propose "in-context" symbolic regression for KANs, which selects symbolic operators based on their impact on the entire network's performance rather than fitting them to individual edges in isolation. This approach significantly improves the robustness of formula recovery, achieving up to a 99.8% reduction in median error across standard scientific benchmarks.
What Problem Does This Paper Address?
Kolmogorov-Arnold Networks (KANs) are a promising alternative to standard Multi-Layer Perceptrons (MLPs) because they place learnable functions on the "edges" (connections) between nodes. In theory, this makes them highly interpretable: you can replace these learned curves with symbolic operators (like $sin(x)$ or $x^2$) to extract a closed-form equation.
However, the standard method for this—AutoSym—is "local." it looks at each edge's learned curve in isolation and tries to find the best-fitting symbol. This is problematic for two reasons:
- Instability: Fitting a symbol to a local curve is a non-convex problem. Small changes in the initial random seed or the number of neurons can lead to completely different "best" symbols.
- Error Propagation: A symbol might look like a good fit for one specific edge, but when combined with the rest of the network, it might cause a massive error downstream. AutoSym has no way of knowing how local choices interact globally.
Methods
The authors introduce two "in-context" methods that evaluate symbolic candidates based on the end-to-end loss of the full network:
- Greedy In-Context Symbolic Regression (GSR): This is a post-hoc procedure. After training a numeric KAN, the algorithm ranks edges by importance. For the most important edge, it tries every operator in its library, performs a brief "fine-tuning" of the whole network, and commits to the operator that results in the lowest global loss. It repeats this greedily for all edges.
- Gated Matching Pursuit (GMP): This is an "amortized" approach that integrates selection into the training process. Each edge is replaced with a "gated operator layer"—a differentiable mixture of all operators in the library. During training, the network learns "gate weights" to favor operators that minimize global loss. Over time, these gates are pruned and discretized to leave a single symbol per edge.
Datasets
The researchers evaluated their methods using the SRBench Feynman benchmark, specifically the "with-units" suite. This dataset consists of physical laws (e.g., Boltzmann’s law, kinetic energy) where the ground-truth symbolic formula is known. They focused on 10 specific target equations to perform intensive robustness sweeps.
Key Insights and Ideas
- Global vs. Local Evaluation: The "aha moment" is that a symbolic operator doesn't need to be a perfect fit for a local spline to be the "correct" choice for the global formula. By allowing the rest of the network to "adapt" to a symbolic choice through fine-tuning, the recovery process becomes much more stable.
- Robustness as a First-Class Metric: Instead of just looking at accuracy, the authors used One-Factor-At-A-Time (OFAT) sweeps. They varied the network width, regularization strength, and random seeds to see if the model would still recover the same formula. They found that standard KANs are highly sensitive, while in-context methods are remarkably consistent.
- The "Variance Compression" Trick: To make the gated (GMP) training stable, the authors applied a scaled
asinhtransform to operator outputs. This prevents "heavy-tailed" operators (like $exp(x)$) from blowing up the gradients and dominating the gate selection process early on.
Key Results
- Massive Error Reduction: On the Feynman I.12.1 dataset, the in-context method (FastKAN+GSR) reduced the median test Mean Squared Error (MSE) from 9.49 to 0.0212—a 99.8% improvement over the AutoSym baseline.
- Superior Consistency: In sensitivity plots (violin plots of error across different hyper-parameters), the in-context methods produced much tighter distributions. This means a researcher is far more likely to get the "right" answer regardless of how they tune their initial neural network.
- GSR vs. GMP: GSR (the greedy post-hoc method) was generally the most accurate and robust, but it is computationally expensive. GMP is faster but can occasionally fail if the pruning schedule removes a "correct" operator before the gates have stabilized.
Limitations and Future Work
- Computational Cost: GSR requires many fine-tuning loops (proportional to the number of edges times the library size), which may not scale well to very deep or wide networks.
- GMP Schedule Sensitivity: The gated approach is sensitive to the "prune-and-refit" cadence. If you prune too early, you might lose the ground-truth operator; if you prune too late, the gates might never converge.
- Library Constraints: Like all symbolic regression, the model is limited by its predefined library of 25 operators. It cannot "invent" new functional forms.
- Future Directions: The authors suggest exploring tighter relaxations for operator selection (like $L_0$ gates) and testing on real-world, noisy scientific data where the ground truth isn't known.
Summary updated