Double Adaptive Stochastic Gradient Optimization.

Kin Gutierrez, Jin Li, Cristian Challu, Artur DubrawskiarXiv 2018

TL;DR

The paper introduces DASGrad (Double Adaptive Stochastic Gradient), a novel optimization framework that combines two powerful ideas: adaptive moment methods (like Adam/AMSGrad) and adaptive importance sampling. By simultaneously adapting the learning rate for each parameter and the sampling probability for each data point, DASGrad achieves faster convergence and better generalization, particularly in complex models with high-variance gradients.

What Problem Does This Paper Address?

Stochastic Gradient Descent (SGD) is the workhorse of deep learning, but it has two major inefficiencies:

  1. Geometry Blindness: Standard SGD treats all parameter dimensions the same, which is inefficient when gradients are sparse or noisy. "Adaptive moment" methods like Adam and AMSGrad solved this by adjusting learning rates based on the geometry of the loss surface.
  2. Uniform Sampling: Standard SGD samples training data uniformly. However, not all data points are equally informative at every stage of training. "Adaptive probability" methods (importance sampling) try to sample "harder" or more informative examples more frequently to reduce variance.

Until now, these two strategies were largely studied in isolation. The authors address the gap by asking: Can we combine adaptive moments and adaptive probabilities into a single, theoretically grounded framework that works for both convex and non-convex deep learning problems?

Methods

The authors propose DASGrad, which builds upon the AMSGrad framework but replaces uniform sampling with an adaptive strategy.

  • Double Adaptation:
    • Adaptation 1 (Moments): Like AMSGrad, it maintains moving averages of gradients ($m_t$) and squared gradients ($v_t$) to scale the step size for each parameter.
  • Adaptation 2 (Probabilities): It dynamically updates the probability of selecting a specific training instance. The "optimal" probability is shown to be proportional to the scaled gradient norm: $p_{i_t} \propto ||\hat{V}_{i_t}^{-1/4} m_{i_t}||_2$.
  • Efficient Implementation: To make this practical for large datasets, the authors use a segment tree data structure. This allows for $O(\log n)$ sampling and $O(n \log n)$ updates. To further reduce overhead, they update the sampling probabilities every $J$ iterations rather than every single step.
  • Theoretical Foundation: The paper provides a rigorous convergence analysis in a stochastic convex optimization setting, proving that DASGrad offers tighter regret bounds than standard adaptive methods.

Datasets

The authors evaluated DASGrad against Adam and AMSGrad using three distinct benchmarks:

  1. MNIST: 60,000 handwritten digit images. Used for a convex logistic regression task (non-sparse features).
  2. IMDB: 25,000 movie reviews. Used for a logistic regression task with sparse features.
  3. CIFAR-10: 60,000 color images in 10 classes. Used for a non-convex task training a Convolutional Neural Network (CNN) architecture called "small-CIFARNET."
  4. Unbalanced MNIST: A modified version of MNIST where 90% of certain digits were removed to test the algorithm's ability to handle domain shift and multitask learning.

Key Insights and Ideas

  • Synergy of Adaptations: The core "aha moment" is that adaptive moments and adaptive probabilities are complementary. Moments handle the where (which direction in parameter space), while probabilities handle the what (which data points to look at).
  • Variance as a Catalyst: The benefits of DASGrad are not constant; they scale with the variance of the gradients. In simpler problems where gradients are uniform, the gains are modest. In complex, high-dimensional, or sparse problems (like the IMDB dataset), DASGrad provides a much more significant speedup.
  • Generalization through Weighting: By adjusting importance weights, DASGrad can be naturally extended to multitask learning and distribution matching. This allows the model to train on one data distribution but optimize for performance on a different "test" distribution (addressing sample selection bias).

Key Results

  • Consistent Superiority: DASGrad outperformed both Adam and AMSGrad across all experiments in terms of training loss and accuracy.
  • Complexity Gains: The performance gap was most pronounced on the IMDB dataset and the CIFAR-10 CNN, supporting the theory that double adaptation is most useful for complex, non-convex models.
  • Robustness to Domain Shift: In the unbalanced MNIST experiment, DASGrad (with proper importance weighting) showed superior generalization properties compared to uniform sampling methods when facing a domain shift.
  • Theoretical Proof: The authors successfully derived an expected regret bound for DASGrad that explicitly shows an improvement term based on the variance of the gradients, providing a mathematical guarantee for the empirical gains.

Limitations and Future Work

  • Computational Cost: Even with segment trees, calculating and updating probabilities for every data point in a massive dataset (e.g., ImageNet) is computationally expensive. The authors acknowledge that the burden of updating probabilities might sometimes counteract the convergence benefits.
  • Approximation Dependency: The practical implementation relies on periodic updates ($J$ iterations) and gradient approximations. The sensitivity of the algorithm to the choice of $J$ is a potential area for further study.
  • Scalability: The authors suggest that future work should focus on parallelizing the calculation of gradients across the dataset to make the adaptive probability updates more efficient for "Big Data" scenarios.

Summary updated

BibTeX
@misc{gutierrez2018double,
  author = {Kin Gutierrez and Jin Li and Cristian Challu and Artur Dubrawski},
  title = {{Double Adaptive Stochastic Gradient Optimization.}},
  year = {2018},
  eprint = {1811.02525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.02525},
}
Figure