Automatic Grid Updates for Kolmogorov-Arnold Networks using Layer Histograms
Jamison Moody, James Usevitch
TL;DR
The paper addresses the need for automatic domain-grid updates in Kolmogorov-Arnold Networks (KANs) and the challenge of reliable OOD detection. It introduces AdaptKAN, which augments KANs with exponential-moving-average histograms to auto-stretch or shrink the B-spline activation domain based on data distributions, and adds a post-hoc OOD scoring mechanism using layer histograms. The method eliminates manual timing for grid adaptation, refits weights after domain changes, and provides a memory-efficient, architecture-agnostic OOD detector. Across tasks including learning symbolic equations (Feynman dataset), image feature classification, and learning a control Lyapunov function, AdaptKAN matches or exceeds prior KAN and MLP performance while improving robustness to outliers and data poisoning.
Abstract
Kolmogorov-Arnold Networks (KANs) are a class of neural networks that have received increased attention in recent literature. In contrast to MLPs, KANs leverage parameterized, trainable activation functions and offer several benefits including improved interpretability and higher accuracy on learning symbolic equations. However, the original KAN architecture requires adjustments to the domain discretization of the network (called the "domain grid") during training, creating extra overhead for the user in the training process. Typical KAN layers are not designed with the ability to autonomously update their domains in a data-driven manner informed by the changing output ranges of previous layers. As an added benefit, this histogram algorithm may also be applied towards detecting out-of-distribution (OOD) inputs in a variety of settings. We demonstrate that AdaptKAN exceeds or matches the performance of prior KAN architectures and MLPs on four different tasks: learning scientific equations from the Feynman dataset, image classification from frozen features, learning a control Lyapunov function, and detecting OOD inputs on the OpenOOD v1.5 benchmark.
