Local Smoothness in Variance Reduced Optimization

Daniel Vainsencher, Han Liu, Tong ZhangNeurIPS 2015

TL;DR

Standard stochastic optimization algorithms like SVRG and SDCA are limited by "global" smoothness assumptions that treat every data point as equally difficult throughout the entire training process. This paper introduces new sampling strategies that exploit local smoothness—the fact that many loss functions become much flatter or simpler near the optimum—to achieve significant speedups, often reaching high precision with far fewer passes over the data.

What Problem Does This Paper Address?

In machine learning, we often minimize a "finite sum" of loss functions (one per data point). To do this efficiently, we use stochastic algorithms that pick one sample at a time. The speed of these algorithms is usually dictated by the Lipschitz constant ($L$), a measure of how "wiggly" or steep the functions are.

Smoothed hinge loss showing flat regions where the second derivative is zero.

The problem? Current theory uses a global $L$. It assumes the function is just as difficult to navigate at the start of training as it is near the finish line. However, for many popular models (like Support Vector Machines or Logistic Regression), the loss functions become very smooth or even completely flat in certain regions.

The authors observe that in standard training, a huge amount of time is wasted recalculating gradients for samples that have already "settled down." They point to a "white space" phenomenon: in later stages of training, the vast majority of samples contribute zero updates, yet the algorithm keeps checking them anyway.

Methods

The authors propose four main algorithmic variants designed to "sense" local smoothness and adjust their sampling effort accordingly:

  1. Local SVRG (Algorithm 1): This version of Stochastic Variance Reduced Gradient (SVRG) uses a "certification" step. It calculates a radius around the current solution where it knows the optimum must lie. It then uses local Lipschitz constants (which are smaller than global ones) to take larger steps and sample more efficiently.
  2. Empirical Affinity SVRG (Algorithm 4): A more aggressive heuristic that tracks which losses are "active." If a loss hasn't changed much recently, the algorithm assumes it's in a locally flat region and samples it less frequently.
  3. Affine-SDCA (Algorithm 2): For Stochastic Dual Coordinate Ascent (SDCA), the authors identify "locally affine" losses—points where the gradient is constant. Once a point is certified to be in this flat zone, the algorithm can effectively "freeze" its contribution and stop sampling it entirely.
  4. Empirical $\Delta$ SDCA (Algorithm 3): This variant samples points based on the magnitude of their recent updates. If a point's dual variable ($\alpha_i$) is changing rapidly, it gets more attention; if it’s stagnant, the algorithm moves on.

Datasets

The researchers evaluated their methods on several standard classification benchmarks:

  • MNIST (0/1): Handwritten digit recognition (binary subset).
  • Mushroom: Biological classification.
  • w8a: Web document classification.
  • Dorothea: Drug discovery dataset (noted for being high-dimensional and sparse).
  • ijcnn1: A standard benchmark from a satellite image processing competition.

Key Insights and Ideas

  • The "Aha!" Moment: The researchers realized that "ill-conditioned" problems (where $L/\mu$ is very large) are often only ill-conditioned globally. Once the optimizer gets close to the solution, the local landscape is much friendlier, allowing for much faster convergence than global theory predicts.
  • Certification is Key: You can't just guess that a function is smooth. The paper provides a mathematical framework to "certify" that the current iterate is within a specific ball where local smoothness bounds are guaranteed to hold.
  • Wasted Effort: For a smooth SVM on MNIST, the authors found that for 95% of the losses, the algorithm captured all relevant information after just 3 visits. Standard algorithms, however, would continue to visit those 95% of samples thousands of times.

Key Results

The proposed algorithms consistently outperformed standard "uniform sampling" versions of SVRG and SDCA.

Convergence of SVRG and SDCA variants on the MNIST dataset, demonstrating massive speedups for local and empirical sampling methods.
  • Speedups: On "hard" (ill-conditioned) datasets like w8a and ijcnn1, the local smoothness variants reached high-precision solutions (duality gaps of $10^{-10}$ or lower) significantly faster—sometimes requiring 10x fewer passes over the data.
  • Stability: While the "Empirical" (heuristic) versions don't have the same rigorous proofs as the "Certified" versions, they performed even better in practice, suggesting that the "active set" of difficult samples shrinks rapidly during training.
  • Theoretical Contribution: This is the first paper to provide convergence bounds that explicitly quantify the advantage gained from local smoothness.

Limitations and Future Work

  • Parameter Sensitivity: The "Certified" versions of the algorithms require knowledge of the strong convexity parameter ($\mu$). In practice, $\mu$ is often set very small, which can make the "certified radius" too large to be useful in the early stages of training.
  • Computational Overhead: Calculating local Lipschitz constants or certifying radii adds some computational cost per "epoch," though the authors argue this is offset by the reduction in total iterations.
  • Non-Smooth Losses: While the paper touches on SVMs (which are non-smooth), the core theory is most robust for "smooth approximations." Extending this to purely non-smooth functions remains a challenge.
  • Heuristic vs. Theory: There is still a gap between the "Empirical" algorithms (which work best) and the "Certified" algorithms (which have the best proofs). Closing this gap is a clear path for future research.

Summary updated

BibTeX
@inproceedings{vainsencher2015local,
  author = {Daniel Vainsencher and Han Liu and Tong Zhang},
  title = {{Local Smoothness in Variance Reduced Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
}
Figure