Erratum: Hybrid Deterministic-Stochastic Methods for Data Fitting

Michael P. Friedlander, Mark Schmidt

Abstract

Large-scale data fitting problems present a fundamental trade-off between the rapid initial progress of stochastic methods and the high-precision convergence of deterministic methods. This paper introduces a hybrid optimization framework that bridges this gap by dynamically increasing the sample size during the optimization process. By controlling the gradient error through geometric batch growth, the proposed method achieves the steady, linear convergence rates characteristic of full-gradient methods while maintaining the computational efficiency of incremental approaches.

Introduction

In modern machine learning and data science, optimization often involves minimizing a loss function composed of a sum of individual measurements across massive datasets. Traditionally, practitioners choose between two extremes: deterministic (full-gradient) methods and stochastic (incremental) methods.

Deterministic methods calculate the gradient using the entire dataset. While they offer reliable, linear convergence near the solution, the per-iteration cost is prohibitive for large-scale problems. Conversely, stochastic methods like Stochastic Gradient Descent (SGD) use small, random subsets (batches) of data. These are computationally "cheap" and make significant progress early on, but the inherent sampling noise creates a "noise floor" that prevents exact convergence unless the step size is decayed—a process that significantly slows progress.

This research addresses the challenge of transitioning from the efficiency of stochastic methods to the precision of deterministic methods without sacrificing the strengths of either.

Methodology: Gradient Descent with Error

The authors frame the optimization problem as Gradient Descent with Error. In this framework, the sampled gradient is treated as the true gradient plus a residual error term ($e_k$).

Controlled Error Growth

The core theoretical contribution is the proof that if the norm of the error $e_k$ is controlled to decrease at a specific rate, the algorithm maintains strong linear convergence. To achieve this in practice, the authors use the sample size as a "control knob." By increasing the batch size $|B_k|$ geometrically—for example, by a factor of 1.1 each iteration—the gradient error is driven toward zero at the required rate to ensure convergence.

Sampling and Quasi-Newton Integration

A significant theoretical insight provided is that sampling without replacement (stochastic sampling) yields a strictly tighter error bound than deterministic sampling. This allows for smaller batch sizes to achieve the same level of precision.

Furthermore, the framework is not limited to basic gradient descent. The authors integrate the growing-batch strategy with a limited-memory quasi-Newton method (L-BFGS). This integration allows the algorithm to leverage second-order curvature information, further accelerating convergence compared to first-order methods.

Experimental Evaluation

The hybrid approach was tested across several diverse data-fitting tasks:

  • Binary Logistic Regression: Spam identification using the TREC 2005 dataset (~92k messages).
  • Multinomial Logistic Regression: Digit identification using the MNIST dataset (70k images).
  • Conditional Random Fields (CRF): Noun-phrase chunking (CoNLL-2000) and synthetic image denoising.
  • Non-linear Least Squares: A non-convex seismic inversion problem used to map underground geological structures.

Key Results and Insights

The experiments validated several critical aspects of the hybrid framework:

  1. Steady Convergence: Across all tasks, the hybrid method matched the rapid initial descent of stochastic methods. However, unlike pure stochastic methods which eventually plateau due to noise, the hybrid method continued to converge at a linear rate similar to deterministic methods.
  2. Efficiency in Data Passes: The hybrid method proved more efficient in terms of total "passes through the data." By using smaller batches early on and only increasing them as needed, it reached high-accuracy solutions in significantly fewer total data evaluations than full-gradient approaches.
  3. Robustness to Hyperparameters: Stochastic methods are often sensitive to the choice of step size ($\alpha$). By transitioning into a deterministic regime, the hybrid method allows for the use of standard line-search heuristics (like Armijo conditions), making it more robust and easier to tune for practitioners.
  4. Applicability to Non-Convex Problems: Despite the theoretical focus on strong convexity, the method outperformed deterministic approaches in the non-convex seismic inversion task, suggesting broad utility in complex engineering domains.

Discussion and Future Work

While the framework provides a rigorous basis for increasing batch sizes—a technique long used as a heuristic by practitioners—it does have limitations. The "strong" convergence theory requires knowledge of the Lipschitz constant ($L$) and the strong-convexity parameter ($\mu$), which are often unknown. In practice, the authors found success using a simple geometric growth heuristic: $|B_{k+1}| = 1.1 |B_k| + 1$.

Future research directions include applying similar error-control analysis to Nesterov’s accelerated gradient methods and proximal-gradient methods for non-differentiable problems. Additionally, the increasing batch size strategy holds significant promise for distributed systems, where larger batches can help amortize communication costs between nodes.

Conclusion

The hybrid deterministic-stochastic framework offers a mathematically grounded approach to large-scale optimization. By treating sample size as a dynamic parameter, it successfully combines the early-stage speed of stochastic methods with the late-stage precision of deterministic methods, providing a robust and efficient tool for modern data-fitting challenges.

Summary updated

BibTeX
@article{friedlander2013erratum,
  author = {Michael P. Friedlander and Mark Schmidt},
  title = {{Erratum: Hybrid Deterministic-Stochastic Methods for Data Fitting}},
  journal = {SIAM J. Sci. Comput.},
  year = {2013},
  doi = {10.1137/130908257},
}
Figure