TL;DR
This paper reveals that training deep neural networks with Stochastic Gradient Descent (SGD) and weight decay inherently biases the learning process towards minimizing the rank of weight matrices. This low-rank bias is surprisingly independent of data properties and is influenced by hyperparameters like batch size, learning rate, and weight decay, with implications for network compressibility and generalization.
What Problem Does This Paper Address?
Deep neural networks, despite their complexity, often exhibit surprising compressibility, with many weights being redundant. Previous research has observed that trained networks can be approximated by low-rank matrices, suggesting an underlying mechanism at play. However, a clear theoretical understanding of why this low-rank bias emerges, how it's influenced by common training practices like SGD and weight decay, and its relationship to generalization has been lacking. This paper aims to bridge this gap by providing a theoretical and empirical analysis of how SGD with weight decay implicitly promotes low-rank weight matrices in deep neural networks.
Methods
The authors employ a combination of theoretical analysis and empirical validation.
- Theoretical Analysis: They derive mathematical bounds on the rank of weight matrices during SGD training with weight decay. This analysis focuses on the "forgetting mechanism" of SGD, where older updates are gradually discarded, leading to a concentration of learned weights around recent updates. Crucially, their analysis does not rely on assumptions about data properties, convergence to a global optimum, or network architecture specifics (beyond being composed of differentiable layers).
- Empirical Validation: They conduct extensive experiments training various neural network architectures (MLP, ResNet, VGG, ViT) on datasets like CIFAR-10, MNIST, and SVHN. They systematically vary hyperparameters such as batch size, learning rate, and weight decay to observe their impact on the average rank of weight matrices across network layers. They also investigate the relationship between this low-rank bias and generalization performance.
Datasets
The paper uses the following datasets for training and evaluation:
- CIFAR-10
- MNIST
- Fashion MNIST
- SVHN
Key Insights and Ideas
- SGD + Weight Decay = Rank Minimization: The core finding is that the combination of mini-batch SGD and weight decay acts as an implicit regularizer, actively pushing weight matrices towards lower ranks. This is not an accidental byproduct but a direct consequence of the optimization dynamics.
- Hyperparameter Influence: The low-rank bias is not static; it's tunable. Smaller batch sizes, higher learning rates, and stronger weight decay all contribute to a more pronounced low-rank bias.
- Weight Decay is Essential: The paper demonstrates that weight decay is not just an optional add-on but a necessary component for this strong low-rank bias to emerge. Without it, the influence of batch size and learning rate on rank is minimal.
- Architecture and Data Agnostic: Remarkably, this low-rank bias appears to be largely independent of the specific network architecture (depth, width, presence of residual connections, etc.) and the geometric properties or dimensionality of the training data.
- Marginal Impact on Generalization: While the low-rank bias is a significant finding, its direct impact on generalization performance appears to be marginal, though it correlates with slight improvements.
Key Results
- Theoretical Bound: The authors provide a theoretical upper bound on the rank of learned weight matrices, showing it's related to hyperparameters and network dimensions.
- Empirical Trends: Figures across the paper consistently show that as batch size decreases, learning rate increases, or weight decay increases, the average rank of weight matrices across network layers decreases.
- Weight Decay Necessity: Experiments (e.g., Figure 3) clearly show that when weight decay ($\lambda$) is zero, the effect of other hyperparameters on rank is significantly diminished.
- Generalization Correlation: While not a primary driver, models with lower average rank (achieved through hyperparameter tuning) tended to show slightly better test performance in experiments.
Limitations and Future Work
- Rank Bound Looseness: The authors acknowledge that their theoretical rank bound is "generally loose" but argue it's non-trivial as it scales with hyperparameters and network dimensions.
- Future Directions: The paper suggests exploring how this framework can explain other phenomena like emergent sparsity, Neural Collapse, and Grokking. It also proposes investigating the role of momentum and developing new compression algorithms inspired by this inductive bias. Further research into the precise relationship between low-rank bias and generalization is also recommended.
Summary updated