Abstract
In stochastic optimization, the conventional wisdom for Stochastic Gradient Descent (SGD) is that "more data is always better," favoring fresh samples to minimize estimation error. This paper challenges this paradigm for variance-reduced methods such as SDCA, SAG, and SVRG. We demonstrate that in time-constrained environments, "recycling" a smaller subset of data can produce superior models faster than using fresh samples for every iteration. By analyzing the trade-off between estimation and optimization errors, we identify optimal "recycling rates" that outperform standard single-pass strategies.
Introduction
When training machine learning models with essentially infinite data but a finite time budget, a critical question arises: how should iterations be allocated? For standard SGD, the answer is to use a fresh, independent sample for every iteration. Reusing samples was historically avoided as it introduces dependencies that slow the reduction of estimation error—the gap between the training set and the true population.
However, variance-reduced algorithms have convergence rates that depend explicitly on the training set size ($m$). This creates a fundamental tension: a larger dataset reduces estimation error but slows down the optimization process for a fixed number of iterations ($T$). We investigate whether a "sweet spot" exists where using less data results in a better model within the same time limit.
Theoretical Framework
We decompose the total generalization error into two components:
- Estimation Error: How well the training set represents the population.
- Optimization Error: How close the current model is to the training set's optimum.
By varying the parameter $c = m/T$ (the ratio of samples to iterations), we can visualize the behavior of these error components.
As illustrated above, while SGD's error decreases monotonically with $c$, variance-reduced methods like SDCA exhibit a U-shaped generalization error curve, indicating that recycling a subset of data ($c < 1$) is often optimal.
Key Insights
- The Recycling Advantage: Variance-reduced methods converge faster on smaller datasets. It is often more beneficial to perform multiple passes over a subset than a single pass over the entire dataset.
- The "Integer Epoch" Trap: In SDCA using random permutations, performance often worsens toward the end of an epoch. This suggests that running for exactly $k$ epochs is frequently suboptimal; stopping slightly after the start of a new epoch can yield better results.
- Algorithm-Specific Sweet Spots: The optimal recycling strategy varies by algorithm. For SVRG, the best results often occur at $m \approx T/2$. For SDCA, the optimal $c$ is often just below 1, leveraging the rapid progress made at the beginning of a fresh pass.
Empirical Results
The study evaluated these methods on five standard binary classification benchmarks, including the covtype dataset. The results consistently showed that recycling provides significant speedups.
On covtype, using only ~12.5% of the available data ($c=0.125$) while maintaining the same iteration count resulted in lower test error than using 100% fresh data. This benefit was most pronounced in lower-dimensional datasets.
Conclusion and Future Work
Recycling data is a highly effective strategy for variance-reduced stochastic optimization, offering a clear departure from the "fresh sample" rule of SGD. While this work provides strong empirical evidence, several open questions remain. The exact relationship between a dataset's dimensionality and its optimal recycling rate requires further rigorous study. Additionally, the theoretical cause of the periodic error spikes in permutation-based SDCA remains an intriguing challenge for future research.
Summary updated