Abstract
In this paper we consider the question of whether it is possible to apply a gradient averaging strategy to improve on the sublinear convergence rates without any increase in storage. Our analysis reveals that a positive answer requires an appropriate averaging strategy and iterations that satisfy the variance dominant condition. As an interesting fact, we show that if the iterative variance we defined is always dominant even a little bit in the stochastic gradient iterations, the proposed gradient averaging strategy can increase the convergence rate $\mathcal{O}(1/k)$ to $\mathcal{O}(1/k^2)$ in probability for the strongly convex objectives with Lipschitz gradients. This conclusion suggests how we should control the stochastic gradient iterations to improve the rate of convergence.
Introduction
Stochastic Gradient (SG) methods are the workhorses of modern machine learning and optimization. However, they face a theoretical speed limit: for strongly convex functions with Lipschitz gradients, standard SG methods typically converge at a sublinear rate of $O(1/k)$. While advanced techniques like SVRG or SAGA achieve faster convergence, they require significant additional storage to track previous gradients. This paper explores whether it is possible to break the $O(1/k)$ barrier using only a gradient averaging strategy, thereby maintaining the minimal memory footprint of standard SGD.
Methodology: Weighted Gradient Averaging
The authors propose an Accelerated Stochastic Gradient Method that replaces the standard stochastic gradient with a weighted average of all past gradients, $m_k$:
$$m_k = -\frac{1}{\sum_{i=1}^k i^p} \sum_{j=1}^k j^p g(x_j, \xi_j)$$
Where $p > 0$ is a weighting parameter. Crucially, this update can be computed recursively, ensuring that the algorithm's storage requirements do not increase with the number of iterations.
As illustrated in the figure above, the parameter $p$ determines how the algorithm "remembers" past information. By choosing a higher $p$ (the authors recommend $p=20$), the algorithm places significantly more weight on recent gradients. This allows the method to "forget" stale information from early iterations while still benefiting from the variance reduction inherent in averaging.
Theoretical Framework: The Variance Dominant Condition
The primary theoretical contribution of this work is the introduction of the Variance Dominant Condition. The authors argue that if the "iterative variance" (the noise in the change between steps) is slightly larger than the squared expectation of that change, the weighted averaging strategy can effectively cancel out noise.
While simple gradient averaging (such as in dual averaging) reduces variance, it often fails to control the expectation growth enough to improve the convergence rate. The proposed weighted approach coordinates the relationship between the mean and variance of iteration increments, providing the necessary control to reach $O(1/k^2)$.
Key Results
The theoretical analysis yields two major breakthroughs:
- Standard Rate Maintenance: Under typical optimization assumptions, the method maintains the baseline $O(1/k)$ convergence rate.
- Acceleration to $O(1/k^2)$: Under the "Variance Dominant" condition, the convergence rate improves to $O(1/k^2)$ in probability.
Practical guidance from the analysis suggests that $p$ should be relatively large (e.g., $p=20$) to focus on approximately the most recent 20% of historical gradients, balancing variance reduction with the need to stay current with the local geometry of the objective function.
Discussion and Limitations
As a purely theoretical work, this paper provides a rigorous foundation for accelerated stochastic methods but leaves several avenues for future research:
- Condition Verification: The $O(1/k^2)$ result relies on the "Variance Dominant" condition, which may be difficult to verify or enforce in complex, real-world deep learning tasks.
- Probabilistic Convergence: The faster rate is proven "in probability" rather than "in expectation." While mathematically sound, practitioners often seek guarantees on average-case behavior.
- Empirical Validation: Future work should focus on testing this $p=20$ weighting strategy on standard benchmarks (like MNIST or CIFAR) to determine if the theoretical speedup translates to faster "wall-clock" training times in practice.
Summary updated