Abstract
This study investigates how the choice of activation function influences the storage capacity of two-layer treelike neural networks. Using the statistical mechanics of disordered systems, specifically the Gardner volume approach and replica symmetry breaking, the authors demonstrate that "smooth" activation functions (e.g., ReLU, erf) lead to a finite maximum capacity in the infinite-width limit, whereas "sharp" functions (e.g., sign) allow for unbounded capacity growth. The results provide a theoretical foundation for understanding the expressive power of various activation functions in both artificial and biological neural systems.
Introduction
In deep learning, the selection of activation functions like ReLU, tanh, or Swish is frequently guided by empirical performance rather than a rigorous theoretical understanding of their impact on a network's expressive power. One fundamental metric for this power is storage capacity: the maximum number of random data points a network can correctly classify per learnable weight. While capacity has been calculated for specific cases like the sign or ReLU functions, a unified theory across different activation functions was previously missing. This paper addresses this gap by analyzing the Treelike Committee Machine (TCM), an architecture where inputs are divided into disjoint groups, each feeding into a single hidden unit. This model serves as a tractable proxy for both artificial networks and the branched dendritic structures of biological neurons.
Methods and Architecture
The authors utilize the statistical mechanics of disordered systems, specifically the Gardner volume approach. This method treats network weights as a physical system and calculates the volume of weight space satisfying classification constraints for a given dataset.
Key technical components include:
- The Replica Trick: Used to average over the "quenched disorder" of random input patterns.
- Replica Symmetry (RS) and 1-Step Replica Symmetry Breaking (1-RSB): Mathematical assumptions about the weight space structure. 1-RSB is crucial for nonlinear networks where the energy landscape becomes non-convex.
- Fourier-Hermite Series: Activation functions are decomposed into Hermite polynomials to relate capacity to the function's derivatives and square-integrability (Sobolev class $H^1(\gamma)$).
The study employs synthetic random datasets consisting of i.i.d. random input vectors $x \in \{-1, 1\}^N$ and random target labels $y \in \{-1, 1\}$. Numerical validation was performed using the batch-LAL algorithm for sign activations and Adam optimization on a hinge loss for smooth activations.
Key Results
The most significant finding is the link between mathematical smoothness and computational limits. If an activation function is "smooth" (weakly differentiable and square-integrable), the storage capacity remains finite even as the network becomes infinitely wide. Conversely, "sharp" functions like the sign function allow capacity to diverge as $\sqrt{\log K}$, where $K$ is the number of hidden units.
Specific capacity values ($\alpha_c$) in the infinite-width limit ($K \to \infty$) include:
- Linear: $\alpha_c = 2$ (recovering the classic perceptron result).
- ReLU: $\alpha_c \approx 2.66$ (1-RSB).
- Error Function (erf): $\alpha_c \approx 2.38$ (1-RSB).
- Quadratic ($x^2$): $\alpha_c \approx 3.37$ (1-RSB).
Numerical experiments confirmed that empirical capacity never exceeded these theoretical 1-RSB bounds, validating the necessity of the 1-RSB ansatz for nonlinear functions.
Discussion and Biological Implications
The findings suggest a "Dendritic Spike" hypothesis: biological neurons may utilize sharp nonlinearities in their dendrites to achieve significantly higher storage capacities than would be possible with purely smooth computations. However, the study also notes that while nonlinearity increases zero-margin capacity, it can decrease capacity when a safety margin is required, potentially making classification less robust to noise.
Future work remains to extend these results from treelike to fully connected architectures, where hidden units share inputs, and to investigate how activation functions interact with the inherent structure of real-world data. Additionally, the gap between the existence of solutions (capacity) and the algorithmic findability (learnability) of those solutions remains an open frontier.
Summary updated