Introduction
Adaptive stochastic gradient methods, such as ADAGRAD, Adam, and RMSProp, are foundational to modern deep learning. They are "adaptive" because they tune the learning rate for each feature individually. However, standard implementations rely on a diagonal matrix approximation, which assumes every feature is independent.
In reality, features in neural networks—like pixels in an image patch or words in a sentence—are highly correlated. While a full-matrix version of ADAGRAD can capture these dependencies and theoretically lead to much faster convergence, it requires computing the inverse square root of a $p \times p$ matrix (where $p$ is the number of parameters). For modern networks with millions of parameters, this $O(p^3)$ complexity is computationally impossible.
This paper introduces ADA-LR and RADAGRAD, two optimization algorithms that bridge the gap between the computationally cheap but limited diagonal ADAGRAD and the powerful but prohibitively expensive full-matrix ADAGRAD. By using randomized dimensionality reduction, these methods capture feature correlations in high-dimensional data at a fraction of the usual cost.
The Core Methods
To achieve the benefits of the full-matrix approach without the cubic price tag, the authors propose two main algorithms based on Random Projections:
- ADA-LR (ADAGRAD Low-Rank): This method uses a Subsampled Randomized Fourier Transform (SRFT) to project gradients into a lower-dimensional space of size $\tau$. It approximates the inverse square root of the gradient covariance matrix using a randomized Singular Value Decomposition (SVD). This reduces the computational complexity from $O(p^3)$ to $O(\tau p^2)$.
- RADAGRAD: To make the algorithm truly scalable for deep learning, RADAGRAD avoids ever storing the full $p \times p$ matrix. It maintains a low-dimensional sketch of the gradients updated iteratively. By utilizing rank-1 QR updates, it brings the complexity down further to $O(\tau^2 p)$, which is linear with respect to the number of parameters.
Key Enhancements: * Corrected Update: Because random projections inherently discard some information, the authors introduce a correction term ensuring that gradient components orthogonal to the projected space aren't completely ignored. * Variance Reduction (RADA-VR): The authors integrate the Stochastic Variance Reduced Gradient (SVRG) technique to further stabilize and accelerate convergence.
Key Insights
- Exploiting Low Effective Rank: While deep learning data is high-dimensional, it often exhibits a "low effective rank," meaning the most critical information resides in a much smaller subspace. Random projections are perfectly suited to exploit this geometric property.
- Aggressive Learning Rates: Because RADAGRAD effectively captures feature correlations, it can safely utilize learning rates roughly an order of magnitude higher than diagonal ADAGRAD, allowing for more efficient optimization steps.
- Geometry Preservation: The use of SRFT allows for very fast computations ($O(p \log \tau)$) while preserving the geometry of the gradient space, ensuring the low-rank approximation remains highly accurate.
Experimental Results
The authors evaluated their methods across several standard benchmarks, including simulated data, image recognition (CNNs), and language modeling (RNNs).
- Faster Convergence on CNNs: On image recognition tasks (MNIST, CIFAR-10, and SVHN), RADAGRAD and its variance-reduced version (RADA-VR) consistently outperformed diagonal ADAGRAD and ADAGRAD+SVRG in terms of both training loss and test accuracy over the same number of iterations.
- LSTM Performance: On the Penn Treebank language modeling task using a strongly-typed Long Short-Term Memory (T-LSTM) network, RADAGRAD achieved a 2.7x reduction in training loss and a 2.8x reduction in test loss compared to standard ADAGRAD.
- Theoretical Robustness: The authors proved that ADA-LR achieves a regret bound close to full-matrix ADAGRAD, which can be exponentially better than the diagonal version when dealing with dense but correlated data.
Limitations and Future Directions
While the theoretical and per-iteration empirical results are strong, the authors note several practical limitations:
- Wall-clock Time vs. Iterations: Although RADAGRAD converges in fewer iterations, each iteration is currently 5-10x slower than diagonal ADAGRAD. This is primarily due to the lack of highly optimized GPU kernels for the specific SVD and QR routines required by the algorithm.
- Memory Overhead: While vastly superior to the full-matrix version, RADAGRAD still requires more memory than diagonal ADAGRAD to store its low-rank sketches.
- Integration with Exponential Forgetting: The authors observed that adding "exponential forgetting" (a staple in optimizers like RMSProp or Adam) degraded performance within their framework. How to best handle "past" information in low-rank spaces remains an open question.
A major next step for this line of research is developing custom, GPU-optimized implementations to translate these impressive "per-iteration" convergence gains into true "per-second" wall-clock speedups for large-scale production models.
Summary updated