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

The Role of Neural Network Activation Functions

Rahul Parhi, Robert D. Nowak · DOI

Abstract

While neural networks are known to be universal approximators, the specific functional form they adopt when trained on finite data has long been a subject of empirical observation rather than theoretical certainty. This work bridges that gap by demonstrating that training a single-hidden layer neural network is mathematically equivalent to solving an infinite-dimensional variational problem. We show that activation functions like ReLU act as Green’s functions for specific differential operators, and that standard regularization techniques like weight decay are necessary to ensure the network converges to an optimal spline interpolant.

Introduction

The "Universal Approximation Theorem" guarantees that neural networks can represent a vast class of functions. However, it offers no guidance on which specific function a network will select from the infinite set of possible interpolants for a given dataset. This selection process is typically governed by architectural choices and regularization strategies. This paper provides a theoretical framework using L-spline theory to explain how activation functions and regularizers dictate the "functional form" of the learned model, transforming neural network training from a "black box" optimization into a principled variational problem.

Theoretical Framework: Neural Networks as Variational Splines

The authors employ L-spline theory to describe neural networks as solutions to differential equations. The core of their approach involves several key technical components:

  1. Activation Functions as Green’s Functions: An activation function (e.g., ReLU) is treated as a fundamental solution to a specific linear differential operator. For instance, ReLU is the Green’s function for the second-order derivative operator ($D^2$).
  2. Variational Mapping: The finite-dimensional optimization of network weights is mapped into an infinite-dimensional optimization over a Banach space of functions.
  3. Adaptive Knot Placement: Unlike traditional splines that use fixed "translates," neural networks utilize both "translates and dilates" (shifting and scaling). The input weights allow the network to adaptively choose "knot" locations, providing greater flexibility than standard spline methods.
  4. Matched Regularization: The paper proves that specific regularizers, such as the path-norm or weight decay, are "matched" to specific activation functions. This matching ensures the network learns a function that minimizes a specific derivative's total variation.

Key Insights

  • ReLU and Second-Order Integration: A regularized ReLU network is essentially a "linear spline" where the network automatically determines the optimal locations for the "corners" (knots).
  • Necessity of Skip Connections: The mathematical requirement for a "generalized bias" term to make the optimization well-posed corresponds directly to the skip connections used in architectures like ResNets. For ReLU, this term is a linear function ($ux + s$).
  • Power Activation Functions: The framework suggests that "admissible" activation functions must take the form of power functions (e.g., $x^k$), providing a theoretical basis for the success of ReLU and its variants over sigmoidal functions.

Empirical Validation and Results

The authors validated their theorems using synthetic univariate datasets, comparing the functions learned by regularized neural networks against standard spline benchmarks.

Comparison of standard splines and neural network interpolants with and without regularization. Regularized networks (b, e) perfectly match the optimal spline solutions (a, d), while unregularized networks (c, f) produce sub-optimal, "bumpy" interpolants.

As shown in the figure above, a regularized ReLU network (b) produces a function with a second-order total variation of 22.3, identical to a standard linear spline (a). Similarly, a regularized cubic-truncated power network (e) matches the cubic spline (d) with a value of 5.8. Without regularization (c, f), the networks produce "bumpy" functions with significantly higher total variation (25.7 and 10.0, respectively), demonstrating that regularization is the mechanism that forces the network toward the simplest interpolant.

Conclusion and Future Work

This work provides a rigorous foundation for understanding the inductive biases of neural networks. However, it is currently limited to univariate, single-hidden layer architectures. Extending this variational understanding to deep, multi-layer networks and high-dimensional data remains a significant challenge. Future research will need to address how these elegant spline connections scale to the complex functional spaces inhabited by modern deep learning models.

Summary updated

BibTeX
@article{parhi2020role,
  author = {Rahul Parhi and Robert D. Nowak},
  title = {{The Role of Neural Network Activation Functions}},
  journal = {IEEE Signal Processing Letters},
  year = {2020},
  doi = {10.1109/lsp.2020.3027517},
}
Figure