Abstract
One of the distinguishing characteristics of modern deep learning systems is that they typically employ neural network architectures that utilize enormous numbers of parameters, often in the millions and sometimes even in the billions. While this paradigm has inspired significant research on the properties of large networks, relatively little work has been devoted to the fact that these networks are often used to model large complex datasets, which may themselves contain millions or even billions of constraints. In this work, we focus on this high-dimensional regime in which both the dataset size and the number of features tend to infinity. We analyze the performance of random feature regression with features $F=f(WX+B)$ for a random weight matrix $W$ and random bias vector $B$, obtaining exact formulae for the asymptotic training and test errors for data generated by a linear teacher model. The role of the bias can be understood as parameterizing a distribution over activation functions, and our analysis directly generalizes to such distributions, even those not expressible with a traditional additive bias. Intriguingly, we find that a mixture of nonlinearities can improve both the training and test errors over the best single nonlinearity, suggesting that mixtures of nonlinearities might be useful for approximate kernel methods or neural network architecture design.
Introduction
In modern deep learning, the standard practice is to select a single activation function, such as ReLU or GeLU, and apply it uniformly across a layer. While empirically successful, the theoretical justification for specific nonlinearities—particularly in the high-dimensional regime where the number of parameters and data points are of comparable magnitude—remains incomplete. This paper addresses this gap by examining the role of the bias term and the potential advantages of using a distribution, or "mixture," of different activation functions.
Methodology: Random Matrix Theory and Linearization
To derive exact performance metrics, we utilize Random Matrix Theory (RMT) and the resolvent method. A central challenge in analyzing the feature matrix $F = f(WX+B)$ is its inherent nonlinearity. We resolve this by introducing a "linearization trick," creating a Gaussian surrogate matrix $F^{lin}$ that preserves the spectral properties of the original nonlinear matrix. By applying Stieltjes transforms, we derive self-consistent equations (SCE) that predict the eigenvalue distribution (spectral density) of these large matrices, allowing for the calculation of training and test errors without the need for exhaustive simulation.
The Mixture Advantage: Bias as a Distribution
A key conceptual shift in this work is viewing the random additive bias $B$ as a parameter that defines a distribution over activation functions. For example, a ReLU function combined with random biases effectively creates a diverse ensemble of neurons with varying activation thresholds.
Our findings indicate that a mixture of nonlinearities—such as a Bernoulli mixture of linear and purely nonlinear components—can outperform any single nonlinearity. This diversity acts as a form of implicit regularization, enabling the model to adapt to the signal-to-noise ratio of the data more effectively than a fixed function, even one with optimized ridge regularization.
Empirical Validation and Key Results
The theoretical predictions are validated through extensive simulations. The exact asymptotic formulae provided in the paper show a remarkable alignment with empirical data across various settings.
As illustrated in the spectral density plots, the theoretical curves (SCE/prediction) and empirical results are virtually indistinguishable. This accuracy holds not only for synthetic Gaussian data but also for complex real-world datasets like MNIST and CIFAR-10. Furthermore, in a "linear teacher" scenario, a mixture of nonlinearities achieved a test error of approximately 0.783, significantly lower than the ~0.945 achieved by the best single nonlinearity.
Discussion and Limitations
While these results provide a rigorous mathematical framework for architecture design, several limitations remain. The analysis is currently restricted to random feature models where only the final layer is trained, and it assumes a linear teacher model for generalization results. Additionally, while the paper proves the superiority of mixtures, it does not yet offer a definitive recipe for the optimal "cocktail" for a given dataset. Future work will explore extending these RMT tools to fully trained deep networks and developing automated methods for activation function design.
Summary updated