Anytime Online-to-Batch Conversions, Optimism, and Acceleration

Ashok CutkoskyarXiv 2019

TL;DR

This paper introduces a simple, black-box modification to online-to-batch conversions that ensures the individual iterates of an optimization algorithm converge to the optimum. By evaluating gradients at the running average of iterates rather than the iterates themselves, the author achieves "anytime" convergence and unlocks faster, adaptive rates for smooth and stochastic problems—including the optimal accelerated rate—without needing to know the problem's smoothness or noise levels in advance.

What Problem Does This Paper Address?

In stochastic convex optimization, we want to minimize a function $L(x)$ using only noisy gradients. A classic strategy is Online-to-Batch (O2B) conversion: you run an online learning algorithm for $T$ steps and then output the average of all the points it visited.

While theoretically sound, this has a major practical and "aesthetic" drawback: the individual points the algorithm visits (the iterates) don't necessarily get better over time. Only their average is guaranteed to be good. This lack of stability makes it hard to use "optimistic" techniques—which rely on the current gradient being similar to the previous one—because the iterates might be jumping all over the place.

The author tackles this gap: How can we make the actual points we visit converge to the optimum "anytime," and how can we leverage that stability to speed up training on smooth functions?

Methods

The core innovation is a "black-box" reduction called Anytime Online-to-Batch.

  1. The Swap: In standard O2B, the algorithm picks a point $w_t$, sees a gradient, and we average $w_t$ at the very end. In this paper’s version, the algorithm still maintains internal iterates $w_t$, but it actually plays (evaluates the gradient at) the weighted average $x_t$ of all previous $w_i$.
  2. Weighted Averages: The method uses weights $\alpha_t$. By choosing different weight schedules (like $\alpha_t = t$), the algorithm can automatically adapt to different types of loss functions (e.g., strongly convex vs. smooth).
  3. Optimism: The paper combines this anytime approach with "optimistic" online learning. Because $x_t$ (the average) changes slowly, the gradients at $x_t$ and $x_{t-1}$ are likely to be similar. Optimistic algorithms exploit this similarity to achieve faster convergence.
  4. Acceleration: The author provides a final reduction (Algorithm 4) that connects this anytime framework to the "linear coupling" view of Nesterov’s acceleration, resulting in a stochastic accelerated algorithm.

Datasets

Not discussed in the paper. This is a theoretical work focused on proving convergence rates and algorithmic reductions; it does not include empirical experiments on specific datasets.

Key Insights and Ideas

  • Stability is Key: The "aha moment" is realizing that by evaluating at the average $x_t$, you force the sequence of gradients to be stable. This stability is exactly what optimistic algorithms need to shine.
  • Black-Box Flexibility: The approach is a "reduction." You can take almost any existing online learning algorithm (like AdaGrad or Mirror Descent) and wrap it in this anytime conversion to inherit these new properties.
  • Automatic Adaptivity: One of the biggest headaches in optimization is tuning hyperparameters for smoothness ($L$) and noise ($\sigma$). The proposed algorithms hit optimal rates for both smooth and non-smooth cases without the user having to provide these values.
  • Bridging Frameworks: The paper shows a surprising connection between simple online-to-batch averaging and sophisticated "linear coupling" frameworks used for accelerated gradient descent.

Key Results

The paper proves several impressive convergence rates for the excess loss $E[L(x_T) - L(x^*)]$:

  • Smooth Losses + Optimism: Achieves a rate of $O(L/T^{3/2} + \sigma/\sqrt{T})$. This is faster than the standard $O(1/T)$ rate for smooth functions in stochastic settings.
  • Acceleration: Algorithm 4 achieves the near-optimal accelerated rate of $\tilde{O}(L/T^2 + \sigma/\sqrt{T})$.
  • Strongly Convex Losses: By picking weights $\alpha_t = t$, the algorithm removes the pesky logarithmic factors usually found in standard O2B conversions, achieving a clean $O(1/T)$ rate.
  • Universality: The accelerated algorithm remains robust; if the function turns out to be non-smooth, it still maintains the standard $O(1/\sqrt{T})$ convergence rate.

Limitations and Future Work

  • Unconstrained Domains: The most advanced result (Algorithm 4 for acceleration) currently requires the loss function to be defined over an entire Hilbert space (unconstrained) and assumes we know a bound $B$ on the distance to the optimal point. The author notes that lifting these restrictions is a "valuable future direction."
  • Computational Overhead: While the reduction is "black-box," maintaining weighted averages and running a base online learner adds a small amount of computational and memory overhead per step compared to simple SGD.
  • Simpler Optimism: The author suggests that recent developments in optimistic dynamics might allow for even simpler ways to reach the optimal accelerated rate than the one presented in Section 4.2.

Summary updated

BibTeX
@misc{cutkosky2019anytime,
  author = {Ashok Cutkosky},
  title = {{Anytime Online-to-Batch Conversions, Optimism, and Acceleration}},
  year = {2019},
  eprint = {1903.00974},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.00974},
}
Figure