NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Equidistribution-based training of Free Knot Splines and ReLU Neural Networks

Simone Appella, Simon R. Arridge, Chris J. Budd, Teo Deveney, Lisa Maria KreusserarXiv 2024 · DOI

Introduction

Shallow Rectified Linear Unit (ReLU) neural networks are theoretically powerful universal approximators, mathematically equivalent to free knot splines. However, in practice, training these networks to their theoretical accuracy limits is notoriously difficult. Standard optimization techniques like Adam or SGD often result in slow convergence, sub-optimal local minima, or "jittery" function approximations. This paper investigates the root causes of these training failures and proposes a novel two-stage method leveraging the "equidistribution principle" and preconditioning to achieve "gold standard" approximation accuracy.

The Challenge: Ill-Conditioning and Non-Convexity

The authors identify two primary obstacles in training ReLU networks for 1D function approximation:

  1. Non-convexity of the Loss Surface: The optimization landscape for knot (breakpoint) locations is highly non-convex. This leads to "knot crossing," where internal parameters move past each other or exit the domain entirely, stalling the learning process.
  2. Severe Ill-Conditioning: A critical insight of this work is the formal proof that the condition number of the training equations for ReLU networks scales at $O(N^4)$, where $N$ is the number of neurons (knots). In contrast, an equivalent spline representation remains stable at $O(1)$. This $O(N^4)$ scaling makes the optimization problem increasingly "stiff" and unstable as the network width grows.

Methods: Bridging Deep Learning and Spline Theory

To overcome these issues, the researchers treat the ReLU network as a Free Knot Spline (FKS) and introduce a two-level training procedure:

  • Equidistribution-Based Loss: Borrowing from adaptive mesh generation in numerical analysis, the authors introduce an "equidistribution principle." This encourages the network to place its breakpoints in regions of high function curvature, where they are most needed.
  • Two-Level Training Strategy:
    • Level 1 (Knot Optimization): The optimal locations for the knots are determined using a combined loss function that incorporates the equidistribution term. This ensures smooth and monotonic knot movement toward optimal positions.
  • Level 2 (Weight Optimization): Once the knots are fixed, the weights are solved.
  • Preconditioning: To resolve the $O(N^4)$ ill-conditioning, the authors apply a linear transformation that reparameterizes the ReLU network into an FKS basis during the weight-optimization phase. This preconditioning transforms a stiff optimization problem into a well-posed, rapidly converging one.

Key Results

The proposed method demonstrates significant improvements in both accuracy and training efficiency.

Training loss comparison for the tanh target function, showing the rapid convergence of the FKS method compared to standard ReLU training.

As shown in the figure above, for a challenging target function like a steep $\tanh$ step, the FKS-based approach converges to a loss of $10^{-8}$ in a fraction of the iterations required for standard ReLU training, which plateaus around $10^{-4}$.

Convergence rates of squared $L^2$ error versus the number of knots for various training schemes.

In terms of approximation accuracy, the method achieves a convergence rate of $O(1/N^4)$. For functions with steep gradients, the error reached as low as $10^{-10}$ with only 64 knots. Standard ReLU training remained several orders of magnitude less accurate across all tested knot counts. The method proved robust across various target functions, including those with singularities (e.g., $x^{2/3}$) and high-frequency oscillations.

Conclusion

By identifying the fundamental ill-conditioning in ReLU parameterization and applying classical spline-based preconditioning and equidistribution techniques, the authors have unlocked the theoretical potential of shallow neural networks. While currently focused on univariate problems, this work provides a roadmap for improving the training of deeper architectures and higher-dimensional models, such as Physics-Informed Neural Networks (PINNs). Future work will explore extending these self-adaptive strategies to more complex, multi-dimensional domains.

Summary updated

BibTeX
@misc{appella2024equidistribution,
  author = {Simone Appella and Simon R. Arridge and Chris J. Budd and Teo Deveney and Lisa Maria Kreusser},
  title = {{Equidistribution-based training of Free Knot Splines and ReLU Neural Networks}},
  year = {2024},
  eprint = {2407.02153},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.02153},
}
Figure