Abstract
Randomized Shallow Networks (RSNs), where the first layer is randomly initialized and frozen while only the output layer is trained, demonstrate surprising generalization capabilities. This paper provides a mathematical characterization of the functions learned by such networks in multi-dimensional spaces. We demonstrate that training a wide, randomized ReLU network is equivalent to solving a specific type of smooth regression known as an Infinite Generalized Additive Model (IGAM). By bridging the gap between parameter space and function space, we show that both explicit weight decay and the implicit bias of gradient descent lead to the same functional form: a sophisticated spline-like interpolation across infinitely many directions.
Introduction
In contemporary machine learning, the success of neural networks is often attributed to their ability to find smooth, well-behaved solutions even in overparameterized regimes. Randomized Shallow Networks (RSNs)—also referred to as Random Feature Models or Extreme Learning Machines—offer a unique lens through which to study this phenomenon. In these models, the first layer's weights are sampled from a distribution and held constant, reducing the training process to a linear regression problem in the final layer. Despite this simplicity, RSNs exhibit robust generalization.
Building on previous work that established a connection between 1D RSNs and univariate splines, this research addresses the multi-dimensional (Multi-D) case. The central challenge lies in characterizing the "macroscopic" behavior of the network in the infinite-width limit, particularly when the input space is complex and the loss functions are non-convex.
The Infinite Generalized Additive Model (IGAM)
To characterize the functions learned by RSNs, the authors introduce the Infinite Generalized Additive Model (IGAM). In a standard Generalized Additive Model (GAM), a function is represented as a sum of smooth univariate functions of each input coordinate. The IGAM extends this concept by summing smooth functions along every possible direction in the input space.
Mathematically, this framework utilizes Sobolev norms to measure function smoothness and derivatives. The authors prove that as the number of hidden neurons ($n$) approaches infinity, an $\ell_2$-regularized RSN converges to the IGAM solution. This suggests that the high-dimensional randomness of the first layer does not result in a "jagged" function; instead, it averages out to create a highly regularized macroscopic structure.
Bridging Parameter and Function Spaces
The core of the paper's theoretical contribution lies in two primary theorems that link the weights updated during training (parameter space) to the resulting shape of the learned function (function space).
Theorem 4.9: The IGAM Identity
Theorem 4.9 provides the exact mathematical identity showing that a wide RSN subject to weight decay is equivalent to an IGAM. This identity confirms that the choice of ReLU activations, combined with $\ell_2$-regularization on the output weights, implicitly imposes a specific smoothness constraint on the learned function across all directions.
Theorem 4.13: Implicit vs. Explicit Regularization
One of the most significant findings is the equivalence between explicit and implicit regularization. Theorem 4.13 establishes that for squared loss, the solution reached by gradient flow (starting from small weights and training over time $T$) is equivalent to the solution found via explicit $\ell_2$-regularization, where the regularization strength $\lambda$ is inversely proportional to the training time ($1/T$). This explains why simple gradient descent, even without explicit weight decay, naturally produces smooth functions.
Empirical Illustration and the "Cone" Effect
While primarily theoretical, the paper validates its findings using synthetic 2D data. By sampling 64 noisy data points from a quadratic function $f(x) = \|x\|_2^2$ and training an RSN with 4,096 hidden nodes, the authors observed several key behaviors:
- Local Approximation: Near the training data, the network accurately approximates the target function.
- Global Structure: Far from the training data, the learned function naturally adopts a "cone-like" shape. This is a direct consequence of the ReLU activation and the IGAM's regularization of the second derivative.
- Loss Generality: The proofs are shown to hold across various loss functions, including non-convex functions used in classification, such as cross-entropy.
Discussion and Future Work
The characterization of RSNs as IGAMs provides a powerful tool for understanding the prior beliefs we implicitly encode when choosing specific neural architectures. However, several avenues for future research remain:
- Architectural Depth: Current results are limited to single-hidden-layer networks. Deep networks likely involve multi-layered interactions that require more complex functional characterizations.
- Trained First Layers: The current theory relies on a frozen first layer. If the first layer were allowed to adapt to the data, the "directions" of the additive model would likely become data-dependent, potentially leading to even more efficient regularization.
In conclusion, this work demystifies the "secret sauce" of randomized networks by showing that their success is not accidental but the result of a rigorous mathematical convergence to smooth, directionally-averaged models.
Summary updated