TL;DR
This paper reveals that standard training practices like mini-batch Stochastic Gradient Descent (SGD) with weight decay implicitly encourage neural networks to learn low-rank weight matrices. This phenomenon is surprisingly robust, occurring across various architectures and data types, and is driven by the optimization process itself rather than specific data properties. While this low-rank bias doesn't seem crucial for generalization, it offers a new perspective on why deep networks can be compressed.
What Problem Does This Paper Address?
Deep neural networks, especially overparameterized ones, have a tendency to become "compressible." This means their learned weights can often be approximated by lower-rank matrices, or that a significant portion of the weights can be pruned or distilled without much loss in performance. While this has been observed empirically, the underlying theoretical reasons for this phenomenon have been unclear, often relying on strong assumptions about the data, network architecture, or optimization process. This paper aims to provide a more general theoretical and empirical understanding of why neural networks trained with common methods like SGD and weight decay exhibit this low-rank bias, and how hyperparameters influence it.
Methods
The authors combine theoretical analysis with empirical validation.
- Theoretical Framework: They analyze the training dynamics of mini-batch SGD with weight decay. By recursively unrolling the optimization steps, they show that past updates are "forgotten" exponentially fast. This "forgetting mechanism" leads to a convergence towards weight matrices that can be approximated by a mixture of recent training updates, inherently limiting their rank. They derive a bound on the rank of the weight matrices, showing it's influenced by the learning rate, weight decay, and batch size.
- Empirical Validation: They conduct extensive experiments using ResNet-18, VGG-16, and ViT architectures on datasets like CIFAR-10. They systematically vary hyperparameters (batch size, learning rate, weight decay) to observe their effect on the average rank of weight matrices across network layers. They also analyze the singular values of weight matrices to understand the distribution of their "rankness."
Datasets
- CIFAR-10: Used extensively for training and evaluating ResNet-18, VGG-16, and MLP models.
- MNIST: Used for evaluating ResNet-18.
- Fashion MNIST: Used for evaluating ResNet-18.
- SVHN: Used for evaluating ResNet-18.
Key Insights and Ideas
- SGD + Weight Decay = Rank Minimization: The core finding is that the combination of mini-batch SGD and weight decay inherently biases the training process towards learning low-rank weight matrices. This isn't an accident; it's a consequence of the optimization dynamics.
- "Forgetting Mechanism": The theoretical analysis reveals that the optimization process effectively "forgets" older updates, leading to a concentration of learned weights that can be represented by a combination of recent updates, thus limiting the effective rank.
- Hyperparameter Influence: The low-rank bias is not static. It becomes more pronounced with:
- Smaller batch sizes
- Higher learning rates
- Stronger weight decay
- Weight Decay is Crucial: The paper emphasizes that weight decay is essential for this low-rank bias to manifest significantly. Without it, the effect of other hyperparameters on rank is minimal.
- Architecture and Data Agnostic: A key strength of their analysis is that it doesn't rely on assumptions about data separability, dimensionality, or specific network architectures. This suggests the low-rank bias is a general property of this training setup.
- Marginal Impact on Generalization: While the low-rank bias is evident, its direct contribution to generalization performance appears to be marginal, though it correlates with slight improvements.
Key Results
- Theoretical Bound: The paper provides a theoretical upper bound on the rank of learned weight matrices, showing it decreases with increasing weight decay and learning rate, and decreasing batch size.
- Empirical Confirmation: Figures throughout the paper (e.g., Figs. 1-13) demonstrate that as batch size decreases, learning rate increases, or weight decay increases, the average rank of weight matrices across network layers consistently decreases.
- Weight Decay Necessity: Figure 3 specifically shows that when weight decay ($\lambda$) is zero, the batch size has a negligible effect on the average rank, highlighting its critical role.
- Cross-Architecture and Dataset Consistency: Experiments with various architectures (MLP, ResNet, VGG, ViT) and datasets (CIFAR-10, MNIST, Fashion MNIST, SVHN) confirm the consistent influence of hyperparameters on rank.
Limitations and Future Work
- Bound Looseness: The authors acknowledge that their theoretical rank bound is generally loose but argue it's non-trivial and provides qualitative insights.
- Generalization Connection: While they observed a correlation between lower rank and better test performance, the paper suggests further investigation is needed to fully understand this relationship.
- Other Optimizers/Factors: The current analysis focuses on SGD with weight decay. Future work could explore the impact of other optimizers (e.g., Adam), momentum, or different regularization techniques on the rank of learned matrices.
- Emergent Phenomena: The authors propose exploring whether this framework can shed light on other phenomena like emergent sparsity, Neural Collapse, or Grokking.
- Algorithmic Inspiration: The findings could potentially inspire new methods for compressing neural networks.
Summary updated