Abstract
It is well known that neural networks with many more parameters than training examples do not overfit. Implicit regularization phenomena, which are still not well understood, occur during optimization and 'good' networks are favored. Thus the number of parameters is not an adequate measure of complexity if we do not consider all possible networks but only the 'good' ones. To better understand which networks are favored during optimization, we study the geometry of the output set as parameters vary. When the inputs are fixed, we prove that the dimension of this set changes and that the local dimension, called batch functional dimension, is almost surely determined by the activation patterns in the hidden layers. We prove that the batch functional dimension is invariant to the symmetries of the network parameterization: neuron permutations and positive rescalings. Empirically, we establish that the batch functional dimension decreases during optimization. As a consequence, optimization leads to parameters with low batch functional dimensions. We call this phenomenon geometry-induced implicit regularization. The batch functional dimension depends on both the network parameters and inputs. To understand the impact of the inputs, we study, for fixed parameters, the largest attainable batch functional dimension when the inputs vary. We prove that this quantity, called computable full functional dimension, is also invariant to the symmetries of the network's parameterization, and is determined by the achievable activation patterns. We also provide a sampling theorem, showing a fast convergence of the estimation of the computable full functional dimension for a random input of increasing size. Empirically we find that the computable full functional dimension remains close to the number of parameters, which is related to the notion of local identifiability. This differs from the observed values for the batch functional dimension computed on training inputs and test inputs. The latter are influenced by geometry-induced implicit regularization.
Introduction
One of the central mysteries in deep learning is why massive neural networks, often possessing far more parameters than training points ($W \gg n$), do not simply memorize data and fail on unseen examples. Classical statistical learning theory, such as VC dimension, suggests that these models should overfit. However, in practice, they generalize remarkably well. This discrepancy is attributed to "implicit regularization"—the idea that the optimization process (such as SGD) inherently favors "simpler" solutions.
Existing measures of simplicity, like Hessian-based flatness or norm-based bounds, often lack invariance to the natural symmetries of neural networks, such as the positive rescaling of weights. This research introduces a more robust, geometrically grounded measure of complexity: the local dimension.
The Local Dimension Framework
The authors define the local dimension (or batch functional dimension) as the rank of the network's prediction differential. Specifically, if $f_\theta(X)$ represents the network's output on a sample $X$ with parameters $ heta$, the local dimension is the rank of the Jacobian matrix $Df_\theta(X)$.
Key theoretical contributions include:
- Space Partitioning: The parameter space can be partitioned into regions where the local dimension remains constant.
- Symmetry Invariance: The local dimension is invariant under positive rescalings and neuron permutations—the fundamental symmetries of ReLU networks.
- Analytical Bounds: For shallow networks, the local dimension is directly related to the number of unique activation patterns perceived by the training data.
Geometric Regularization and the $\ell_1$ Analogy
A core insight of the paper is the comparison between the geometry of neural networks and the polytope structure of $\ell_1$ regularization (LASSO). In LASSO, the geometry of the $\ell_1$ ball pushes solutions toward low-dimensional "facets," resulting in sparsity. Similarly, the geometry of the ReLU mapping pushes networks toward low-dimensional facets in the prediction space.
This geometry-induced regularization manifests as "neuron alignment." When neurons align and share activation patterns, the network becomes simpler and more regularized. This framework also explains "saddle-to-saddle" dynamics: training plateaus represent the optimizer moving along a region of constant local dimension, while sudden drops in loss occur when the optimizer hits a boundary and "unlocks" a higher local dimension.
Empirical Results
The paper validates these theories using synthetic 1D data and the MNIST dataset. Key findings include:
- Dimension Decay: On MNIST, the local dimension consistently decreases during training, even after training error reaches zero. This suggests the network continues to simplify itself geometrically throughout the optimization process.
- Generalization Transfer: The low local dimension observed on training data is mirrored on test data, indicating that geometric regularity is a key driver of generalization.
- Complexity vs. Loss: In shallow networks, there is a clear correlation where networks fitting the data more accurately tend to have higher local dimensions, yet geometry-induced regularization keeps this dimension significantly below the theoretical maximum.
Conclusion and Future Work
While this research establishes a strong link between geometry and regularization, several challenges remain. A formal mathematical proof directly connecting local dimension to specific generalization error bounds is still required. Additionally, calculating the rank of large Jacobian matrices is computationally intensive, necessitating more efficient estimation methods for massive models. Finally, extending this framework from ReLU MLPs to more complex architectures like CNNs or Transformers is a primary goal for future study.
Summary updated