Stochastic Optimization with Arbitrary Recurrent Data Sampling

William Powell, Hanbaek Lyu

Executive Summary

This paper demonstrates that for a specific class of algorithms called Regularized MISO (RMISO), the traditional requirements of independent or "well-mixed" data are unnecessary to achieve optimal convergence rates. As long as a sampling process is recurrent—meaning it eventually visits every data point with some regularity—RMISO can achieve the gold-standard $O(n^{-1/2})$ convergence rate for non-convex optimization. This finding is particularly valuable for challenging decentralized or imbalanced data settings where standard sampling assumptions fail.

The Challenge of Non-I.I.D. Data

Most stochastic optimization algorithms, such as Stochastic Gradient Descent (SGD), are analyzed under the assumption that data points are sampled independently and identically distributed (i.i.d.). In practical, modern applications, this is often impossible.

Consider a decentralized network where data is stored across different computers (nodes). A "walker" moving through the network to collect data is limited by the network's physical or logical topology, creating dependent, "Markovian" data. Existing theory for non-i.i.d. sampling usually requires the sampling process to have "exponential mixing" (forgetting its starting point quickly) or specific reshuffling properties.

The "Lonely Graph" topology featuring a highly connected cluster and one isolated node.

If a network has a bottleneck or a very isolated node—such as the "Lonely Graph" topology shown above—standard theories predict painfully slow convergence. The authors address a fundamental question: Is there a class of algorithms where simple recurrence is enough to guarantee optimal performance?

Methods: Regularized MISO

The authors focus their attention on Minimization by Incremental Surrogate Optimization (MISO). Unlike SGD, which takes a step based on a single gradient, MISO maintains a "surrogate" function for every data point. At each step, it updates one surrogate to be "tight" at the current parameter estimate and then minimizes the average of all surrogates. Because MISO keeps a surrogate for every data point, it essentially maintains a "memory" of the entire dataset.

To handle the bias introduced by dependent sampling, the paper introduces Regularized MISO (RMISO), which adds a stability term to the optimization step. They propose two main variants:

  1. Proximal Regularization: Adds a penalty based on the distance from the previous iterate. This can be "Constant" or "Dynamic" (adapting to how long it has been since a specific data point was last seen).
  2. Diminishing Radius: Constrains the next iterate to stay within a small, shrinking "trust region" around the current iterate.

These regularizations provide enough "iterate stability" to cancel out the noise or bias generated by arbitrary sampling patterns, ensuring the algorithm doesn't over-react to a long string of similar samples before it reaches a different part of the data.

Theoretical Breakthroughs: Target Time vs. Hitting Time

The most significant theoretical insight of the paper is that for RMISO, you do not need independence or fast mixing. If the sampler visits every point "infinitely often" with a bounded expected return time, the algorithm converges.

Comparison of optimization algorithms showing RMISO's dependence on target time ($t_\odot$) rather than hitting time ($t_{hit}$) or mixing time.

Standard Markov chain analysis often depends on hitting time (the worst-case time to reach the hardest-to-find node). This paper shows RMISO's convergence depends instead on target time (the average time to reach a node). In a graph with one isolated node, the hitting time is massive, but the target time remains small. RMISO exploits this mathematical reality, making it significantly faster than competitors in bottlenecked networks while maintaining an optimal $O(\epsilon^{-2})$ iteration complexity (equivalent to an $O(n^{-1/2})$ rate).

Experimental Validation

The researchers evaluated their algorithms on two classic tasks to test these theoretical claims:

  • Distributed Non-negative Matrix Factorization (NMF) on MNIST: They simulated a cycle graph where each node only held images of a specific digit, creating a highly heterogeneous sampling environment.
  • Logistic Regression on a9a: Tested on the "Lonely Graph" topology to see how algorithms handle extreme bottlenecks.

In the "Lonely Graph" experiment, RMISO significantly outperformed state-of-the-art methods like MCSAG (Markov Chain Stochastic Averaged Gradient). While MCSAG's performance tanked as the "lonely" node became harder to reach, RMISO remained stable. Furthermore, RMISO produced much smoother trajectories in reconstruction error and test loss compared to AdaGrad or SGD, which suffered from unstable spikes due to data heterogeneity.

Limitations and Future Work

While theoretically and empirically strong, RMISO comes with trade-offs:

  • Memory Overhead: MISO requires storing a surrogate (or its parameters/gradients) for every data point or batch. For massive datasets, this $O(|V|)$ memory requirement is a significant burden compared to the $O(1)$ memory of standard SGD.
  • Projection Costs: The "Diminishing Radius" version requires a projection onto a trust region at every step. This can be computationally expensive for complex constraint sets.
  • Hyperparameter Tuning: Performance depends heavily on the regularization parameter $\rho$. Finding the optimal $\rho$ for a specific sampling speed remains a practical challenge.

Future work may focus on applying this "recurrence-only" analysis to other variance-reduced methods or exploring techniques to reduce the memory footprint of the surrogates.

Summary updated

BibTeX
@inproceedings{powell2024stochastic,
  author = {William Powell and Hanbaek Lyu},
  title = {{Stochastic Optimization with Arbitrary Recurrent Data Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=JYcbgiSh0L},
}
Figure