Abstract
Kolmogorov Arnold Networks (KANs) are neural architectures inspired by the Kolmogorov Arnold representation theorem that leverage B Spline parameterizations for flexible, locally adaptive function approximation. Although KANs can capture complex nonlinearities beyond those modeled by standard MultiLayer Perceptrons (MLPs), they frequently exhibit miscalibrated confidence estimates manifesting as overconfidence in dense data regions and underconfidence in sparse areas. In this work, we systematically examine the impact of four critical hyperparameters including Layer Width, Grid Order, Shortcut Function, and Grid Range on the calibration of KANs. Furthermore, we introduce a novel TemperatureScaled Loss (TSL) that integrates a temperature parameter directly into the training objective, dynamically adjusting the predictive distribution during learning. Both theoretical analysis and extensive empirical evaluations on standard benchmarks demonstrate that TSL significantly reduces calibration errors, thereby improving the reliability of probabilistic predictions. Overall, our study provides actionable insights into the design of spline based neural networks and establishes TSL as a robust loss solution for enhancing calibration.
The Calibration Challenge in KANs
In deep learning, calibration refers to the alignment between a model’s predicted probability and its actual accuracy. Ideally, if a model predicts an outcome with 80% confidence, it should be correct 80% of the time. While Kolmogorov-Arnold Networks (KANs) offer a flexible alternative to traditional Multi-Layer Perceptrons (MLPs) by replacing fixed activation functions with learnable B-splines, they are prone to significant miscalibration.
Research indicates that KANs suffer from "grid bias," becoming overconfident in regions with dense data and underconfident in sparse regions. As shown in the comparison of logit distributions, KANs often produce a much wider spread of logits compared to MLPs, leading to a significantly higher Expected Calibration Error (ECE).
Methodology: Temperature-Scaled Loss (TSL)
Standard calibration techniques, such as post-hoc Temperature Scaling, are typically applied after training and require a separate validation dataset. This paper introduces Temperature-Scaled Loss (TSL), which integrates calibration directly into the training process.
Instead of treating the temperature parameter ($\tau$) as a static post-hoc constant, TSL treats it as a learnable variable optimized via backpropagation alongside the network's weights. By dividing the model's logits by this learnable $ au$ before computing the loss (such as Cross-Entropy or Brier Score), the model updates its weights to improve accuracy while simultaneously adjusting $ au$ to minimize calibration error. This "co-adaptation" allows the model to flatten its predictive distribution if it becomes overconfident during the learning phase.
Impact of Spline Order on Reliability
A key theoretical insight of this work is the relationship between spline order and calibration. The authors demonstrate that higher spline orders increase the variance of output logits, which directly exacerbates calibration errors. Empirical testing on the MNIST dataset confirms this trend, showing that as the B-Spline order increases, the ECE generally rises, making the model less reliable.
Key Results and Empirical Performance
The study evaluated TSL across diverse benchmarks, including MNIST, CIFAR-10, and various tabular datasets. The results demonstrate massive ECE reductions without sacrificing accuracy. For instance, on the EMNIST-Balanced dataset, TSL reduced the ECE of a Dual Focal Loss model from 0.1942 down to 0.0145—a 92.5% improvement.
While MLPs currently maintain a slight edge in raw accuracy on certain benchmarks, TSL bridges the reliability gap for KANs. By making KANs "calibration-aware" from the ground up, TSL establishes them as a viable and trustworthy choice for safety-critical and risk-sensitive applications.
Summary updated