Introduction
In modern deep learning, stochastic gradient descent (SGD) is frequently augmented with adaptive regularization methods such as Adam or AdaGrad. These optimizers adapt learning rates for each parameter independently using diagonal preconditioners. While computationally efficient, this approach ignores the complex correlations between parameters. Standard diagonal optimizers often struggle in loss landscapes characterized by highly anisotropic curvature, where parameter interactions are significant.
The primary barrier to full-matrix adaptivity is computational cost. Computing and inverting the full $d \times d$ covariance matrix of gradients requires $O(d^3)$ operations, which is infeasible for models with millions of parameters ($d$). This paper introduces GGT, an algorithm that makes full-matrix adaptive regularization practical for deep neural networks by exploiting the low-rank structure of gradient history.
The GGT Algorithm: Efficient Full-Matrix Regularization
GGT approximates full-matrix AdaGrad while maintaining efficiency on modern hardware. It relies on two key components:
- Sliding Window Gradient History: Instead of accumulating all past gradients, GGT maintains a window of the $r$ most recent gradients (typically $r \approx 200$). This "forgetting" mechanism is not just a memory-saving heuristic; it is essential for navigating non-convex landscapes where curvature changes over time.
- Low-Rank Matrix Identity: Although the $d \times d$ gradient covariance matrix $GG^\top$ is massive, its rank is at most $r$. GGT utilizes a mathematical identity to compute the inverse square root of this matrix by performing a Singular Value Decomposition (SVD) on a much smaller $r \times r$ matrix, $G^\top G$.
This reduction brings the per-iteration overhead down to $O(dr^2 + r^3)$, enabling the use of highly optimized GPU matrix-vector operations. In practice, GGT introduces only a 1.3x to 2x slowdown compared to standard SGD.
Theoretical Insights and the "Forgetting" Principle
The authors provide a novel theoretical proof for the convergence of adaptive regularization to first-order critical points in stochastic non-convex settings. A key insight from synthetic experiments is that windowing is mathematically necessary. In landscapes with changing curvature, stale gradient information can derail optimization. By tracking the eigenvalues of the gradient matrix, the authors also observed that RNN gradients are initially extremely skewed (condition numbers $\sim 10^6$), explaining why full-matrix methods provide such a significant boost for these architectures.
Empirical Evaluation
GGT was evaluated across various tasks, including image classification (CIFAR-10) and language modeling (Penn Treebank).
Dominance in Recurrent Neural Networks
The most striking results were observed in RNNs. On the Penn Treebank (PTB) LSTM task, GGT achieved a validation perplexity of 2.42, substantially outperforming Adam (2.51), AdaGrad (2.65), and SGD (2.76). Remarkably, GGT converged faster in total wall-clock time, even when accounting for its higher per-iteration computational cost.
Performance in Convolutional Neural Networks
In CNN experiments on CIFAR-10, GGT consistently achieved lower training loss than Adam and SGD. While SGD maintained a marginal edge in final test accuracy for highly tuned ResNets, GGT proved more robust in "hostile" landscapes. For instance, on a VGG19 model without batch normalization, diagonal adaptive methods failed to generalize, whereas GGT remained competitive with SGD.
Conclusion
GGT demonstrates that full-matrix adaptive regularization is not only possible but highly effective for deep learning, particularly for ill-conditioned problems like RNN training. While a small generalization gap remains in some vision tasks, the robustness and convergence speed of GGT suggest that full-matrix preconditioning is a powerful tool for optimizing complex neural architectures.
Summary updated