A Hybrid Stochastic Optimization Framework for Stochastic Composite Nonconvex Optimization

Quoc Tran-Dinh, Nhan H. Pham, Dzung T. Phan, Lam M. Nguyen · DOI

Abstract

We introduce a new approach to develop stochastic optimization algorithms for a class of stochastic composite and possibly nonconvex optimization problems. The main idea is to combine two stochastic estimators to create a new hybrid one. We first introduce our hybrid estimator and then investigate its fundamental properties to form a foundational theory for algorithmic development. Next, we apply our theory to develop several variants of stochastic gradient methods to solve both expectation and finite-sum composite optimization problems. Our first algorithm can be viewed as a variant of proximal stochastic gradient methods with a single-loop, but can achieve $\mathcal{O}(\sigma^3\varepsilon^{-1} + \sigma\varepsilon^{-3})$-oracle complexity bound, matching the best-known ones from state-of-the-art double-loop algorithms in the literature, where $\sigma > 0$ is the variance and $\varepsilon$ is a desired accuracy. Then, we consider two different variants of our method: adaptive step-size and restarting schemes that have similar theoretical guarantees as in our first algorithm. We also study two mini-batch variants of the proposed methods. In all cases, we achieve the best-known complexity bounds under standard assumptions. We test our methods on several numerical examples with real datasets and compare them with state-of-the-arts. Our numerical experiments show that the new methods are comparable and, in many cases, outperform their competitors.

Introduction

In modern machine learning, we often solve "composite" problems: minimizing a smooth loss function (like a neural network's error) plus a regularizer (like $L_1$ to encourage sparsity). These problems are frequently nonconvex and stochastic, meaning we only see noisy "snapshots" of the data at any given time.

The optimization community has traditionally been split into two camps. Stochastic Gradient Descent (SGD) is simple and easy to implement in a single loop, but slow to converge because the variance in the gradient estimates persists. Conversely, Variance-Reduced Methods (like SVRG or SARAH) are very fast but usually require a "double-loop" structure, necessitating periodic full gradient computations that are difficult to tune and implement. This paper bridges that gap by introducing a framework that achieves high-speed performance while maintaining a simple, single-loop structure.

The Hybrid Stochastic Estimator

The core innovation is the Hybrid Stochastic Estimator. Instead of picking one way to estimate the gradient, the authors use a convex combination of two parts:

  • The Biased Part (SARAH-like): This part tracks the change in gradients between steps, effectively reducing noise but potentially introducing bias over time.
  • The Unbiased Part (SGD-like): This part uses a fresh, independent sample to keep the overall estimate "honest" and prevent bias from accumulating.

By blending these, the authors created ProxHSGD (Proximal Hybrid Stochastic Gradient Descent). Unlike previous state-of-the-art methods like SPIDER or ProxSARAH, ProxHSGD does not require an outer loop to reset the gradient; it updates its hybrid estimate at every step.

Theoretical Guarantees

The framework matches the best-known complexity bounds in the literature. Specifically, it achieves an $\varepsilon$-stationary point with an oracle complexity of $\mathcal{O}(\sigma^3\varepsilon^{-1} + \sigma\varepsilon^{-3})$ for expectation problems and $\mathcal{O}(n + \varepsilon^{-3})$ for finite-sum problems.

Comparison of oracle complexities for various stochastic optimization algorithms.

As shown in the table above, the proposed method ("This paper") is the only one to achieve these optimal complexity bounds while maintaining a "Single" loop type for composite problems. This is a significant theoretical milestone, proving that the complex double-loop structure is not necessary to reach the theoretical speed limit of nonconvex optimization.

Numerical Experiments

The researchers evaluated their framework across a wide variety of real-world datasets from the LIBSVM library and deep learning benchmarks, including w8a, rcv1.binary, real-sim, and large-scale sets like url_combined and epsilon.

Key experimental findings include:

  • Non-negative PCA: ProxHSGD significantly outperformed standard SGD variants, converging to lower loss values in fewer passes over the data.
  • Neural Network Training: On the MNIST dataset, the hybrid methods reached higher test accuracy and lower training loss faster than competitive methods like ProxSVRG and ProxSpiderBoost.
  • Robustness: The "Restarting" variant (ProxHSGD-RS) proved particularly effective, often outperforming even the most tuned versions of existing state-of-the-art algorithms.

Conclusion and Future Work

This hybrid approach offers a memory-efficient alternative to SAGA-type algorithms, as it only requires storing a few vectors rather than a gradient for every data point. While the theoretical proofs rely on standard smoothness assumptions, the practical performance suggests broad applicability. Future work may extend this hybrid idea to second-order methods, utilizing Hessian information to navigate complex saddle points in the optimization landscape even more effectively.

Summary updated

BibTeX
@article{trandinh2022hybrid,
  author = {Quoc Tran-Dinh and Nhan H. Pham and Dzung T. Phan and Lam M. Nguyen},
  title = {{A Hybrid Stochastic Optimization Framework for Stochastic Composite Nonconvex Optimization}},
  journal = {Math. Program},
  year = {2022},
  doi = {10.1007/s10107-020-01583-1},
}
Figure