Abstract
To address the issue of interpretability in multilayer perceptrons (MLPs), Kolmogorov-Arnold Networks (KANs) were introduced in 2024. However, optimizing KAN structures is labor-intensive, typically requiring manual intervention and parameter tuning. This paper proposes GA-KAN, a genetic algorithm-based approach that automates the optimization of KANs, requiring no human intervention in the design process. To the best of our knowledge, this is the first time that evolutionary computation is explored to optimize KANs automatically. Furthermore, inspired by the use of sparse connectivity in MLPs in effectively reducing the number of parameters, GA-KAN further explores sparse connectivity to tackle the challenge of extensive parameter spaces in KANs. GA-KAN is validated on two toy datasets, achieving optimal results without the manual tuning required by the original KAN. Additionally, GA-KAN demonstrates superior performance across five classification datasets, outperforming traditional methods on all datasets and providing interpretable symbolic formulae for the Wine and Iris datasets, thereby enhancing model transparency. Furthermore, GA-KAN significantly reduces the number of parameters over the standard KAN across all the five datasets. The core contributions of GA-KAN include automated optimization, a new encoding strategy, and a new decoding process, which together improve the accuracy and interpretability, and reduce the number of parameters.
Introduction
Kolmogorov-Arnold Networks (KANs) have recently emerged as a compelling alternative to traditional Multilayer Perceptrons (MLPs). By placing learnable activation functions on edges rather than nodes, KANs offer superior interpretability and mathematical representational power. However, the practical application of KANs is hindered by the complexity of their architectural design. Researchers often must manually prune networks or heuristically determine layer depth and grid resolution to achieve optimal performance. GA-KAN addresses this "usability gap" by automating the search for optimal KAN architectures through evolutionary computation.
Methodology
GA-KAN treats neural architecture search as an evolutionary optimization problem. The framework consists of three primary components: a novel encoding strategy, a dynamic decoding process, and an evolutionary loop.
Encoding and Architecture
The entire network structure is mapped into a binary vector, or "chromosome." This encoding includes neuron connectivity (determining which edges are active), the number of layers (depth), and the grid value, which controls the resolution of the spline-based activation functions.
Dynamic Depth and the Degradation Mechanism
A key innovation in GA-KAN is the ability to dynamically adjust network depth during evolution. The authors introduced a "degradation mechanism" using zero masks. If the genetic algorithm determines that a layer has no active connections, that layer is effectively bypassed or removed during the decoding phase. This allows the model to explore both shallow and deep architectures simultaneously, converging on the simplest structure that satisfies the task requirements.
Fitness Evaluation and Evolution
Candidate networks are evaluated based on their validation loss after a short training burst (typically 20 steps) using the LBFGS optimizer. The population then undergoes standard genetic operations—selection, crossover, and mutation—to produce subsequent generations of increasingly efficient and accurate networks.
Experimental Results
GA-KAN was evaluated on two mathematical toy datasets ($f(x,y) = e^{\sin(\pi x)+y^2}$ and $f(x,y) = xy$) and five UCI classification benchmarks (Iris, Wine, Rice, WDBC, and Raisin).
- Accuracy: GA-KAN achieved 100% accuracy on the Iris, Wine, and WDBC datasets, surpassing traditional MLPs and manually tuned KANs.
- Sparsity and Efficiency: The framework significantly reduced parameter counts. For instance, on the Iris dataset, GA-KAN utilized only 156 parameters, a fraction of the 882 to 1,360 parameters required by standard KAN configurations.
- Interpretability: Beyond numerical performance, GA-KAN successfully extracted symbolic mathematical relationships from the data, providing human-readable formulas that explain the model's decision-making process.
Conclusion
GA-KAN represents a significant advancement in making Kolmogorov-Arnold Networks practical for automated machine learning. By eliminating manual tuning and introducing sparse connectivity, the framework produces models that are not only more accurate but also more interpretable and computationally efficient. Future work will focus on scaling this evolutionary approach to higher-dimensional datasets and optimizing the training speed of the underlying KAN architecture.
Summary updated