In large-scale machine learning, data is often so abundant that making multiple passes through the full training set is computationally prohibitive. This paper introduces DYNASAGA, an optimization algorithm that dynamically increases the training sample size during the learning process. By starting with a small subset of data and growing it as the model improves, the authors show that you can reach statistical accuracy in just two passes over the data ($2n$ iterations)—significantly faster than the standard $n \log n$ steps required by fixed-sample methods.
The Computational vs. Statistical Trade-off
Standard optimization algorithms like Stochastic Gradient Descent (SGD) or variance-reduced methods (like SAGA) usually treat the training set as a fixed block. However, reaching high numerical precision on a fixed sample is often a waste of time if that precision is much smaller than the "statistical noise" inherent in the sample size.
The authors ask a fundamental question: Why use the whole dataset from the start? If we can't trust the model's accuracy early on anyway, why not save computation by training on a smaller subset and growing it as the model becomes more refined?
The core idea is to match the optimization error to the statistical error. There is no point in optimizing a model to $10^{-10}$ precision on 100 samples if the statistical uncertainty of those 100 samples is only $10^{-2}$.
The DYNASAGA Method
The authors build their approach on SAGA, a popular variance-reduced gradient method known for its linear convergence rates. Their novel contribution is DYNASAGA (Dynamic SAGA), which incorporates a dynamic sample size schedule.
Instead of performing $T$ iterations on $n$ samples, the algorithm starts with a small subset (roughly the size of the problem's condition number, $\kappa$). From there, they propose a LINEAR strategy: every two iterations, the algorithm adds one new data point to its active training set.
To justify this, the authors prove a "switching cost" theorem. It quantifies the error introduced when you move from a model optimized on $m$ samples to a larger set of $n$ samples. They use this to create an upper-bound recurrence that guides the optimal growth of the sample size. Furthermore, DYNASAGA possesses an "anytime" property: it doesn't need to know the total number of iterations or the final dataset size in advance. It simply grows the sample as it goes.
Key Insights and Results
- The $2n$ Magic Number: The most striking theoretical result is that while standard SAGA requires $O(n \log n)$ iterations to reach the statistical precision of the full dataset, DYNASAGA reaches it in $O(n)$—specifically, about two passes ($2n$ iterations).
- Small Samples Converge Faster: Variance-reduced methods like SAGA have a convergence rate that depends on the sample size $n$. On a small sample, the "progress per update" is much higher. DYNASAGA exploits this "fast lane" early in training.
- Empirical Efficiency: The researchers evaluated DYNASAGA on synthetic and real-world benchmarks (including LIBSVM datasets like RCV1, A9A, and COVTYPE). On the massive SUSY dataset (5 million samples), DYNASAGA reached a lower expected risk (better generalization) in a single pass than standard SAGA, SVRG, or tuned SGD.
Limitations and Future Work
While highly effective, DYNASAGA's theoretical proofs rely on the objective function being strongly convex and having Lipschitz continuous gradients. While standard for this class of proof, these assumptions don't hold for non-convex problems like Deep Learning (though the authors hypothesize the "start small" approach could still be beneficial). Additionally, the method assumes data is drawn independently and identically distributed (i.i.d.); if the data has temporal dependencies or is ordered non-randomly, the underlying "switching cost" logic might break down.
Summary updated