Efficient Smooth Non-Convex Stochastic Compositional Optimization via Stochastic Recursive Gradient Descent

Huizhuo Yuan, Xiangru Lian, Chris Junchi Li, Ji Liu, Wenqing HuNeurIPS 2019

Introduction

Stochastic compositional optimization is a critical framework for many modern machine learning tasks, yet it remains notoriously challenging to solve efficiently. The paper introduces SARAH-Compositional, a novel algorithm designed to tackle stochastic compositional optimization problems—specifically minimizing $f(g(x))$—in smooth, non-convex settings. By leveraging stochastic recursive gradient descent, the authors achieve state-of-the-art theoretical complexity bounds, significantly outperforming previous methods in both theory and practice.

The Challenge of Compositional Optimization

Standard stochastic optimization typically deals with minimizing a simple expectation: $\min \mathbb{E}[f(x)]$. However, many advanced machine learning problems involve compositional structures, where the objective is a function of an expectation: $\min f(\mathbb{E}[g(x)])$.

This nested structure frequently appears in:

  • Reinforcement Learning: Minimizing Bellman errors.
  • Risk Management: Mean-variance optimization, where the goal is to maximize returns while minimizing the variance (which is itself a function of the mean).
  • Deep Learning: Multi-stage stochastic programming and specific neural network architectures.

The core difficulty lies in the chain rule. The gradient of $f(g(x))$ involves the term $\nabla g(x) \cdot \nabla f(g(x))$. Because $g(x)$ is nested inside another function, obtaining an unbiased estimate of the gradient is difficult without drawing a massive number of samples for the inner function $g$ at every single step. Previous algorithms, such as Stochastic Compositional Gradient Descent (SCGD), suffered from high variance or prohibitively slow convergence rates (with complexities as high as $\mathcal{O}(\varepsilon^{-8})$).

Methodology: SARAH-Compositional

To overcome these bottlenecks, the authors propose SARAH-Compositional, which integrates the SARAH (Stochastic Recursive Gradient Descent) and SPIDER variance reduction techniques into the compositional framework.

Key Innovations

  1. Triple Recursive Estimation: Unlike standard variance reduction methods that only track the gradient, SARAH-Compositional uses recursive updates to track three distinct quantities simultaneously: the inner function value $g(x)$, the Jacobian $\partial g(x)$, and the gradient of the composition $\nabla f(g(x))$.
  2. Snapshot Mechanism: The algorithm periodically computes a "full" gradient (or utilizes a very large batch) to reset the estimation error. In the intermediate steps, it employs a recursive formula: $v_t = v_{t-1} + \nabla \phi(x_t) - \nabla \phi(x_{t-1})$. This ensures that the variance of the estimator remains tightly controlled as the algorithm progresses.
  3. Step-size Control: The authors provide specific step-size rules that allow the algorithm to remain stable and converge reliably, even within a non-convex loss landscape.

Theoretical Insights

The paper establishes the sharpest known Incremental First-order Oracle (IFO) complexity upper bounds for non-convex stochastic compositional optimization:

  • Finite-Sum Problems: The complexity is improved from the previous best of $\mathcal{O}((n+m)^{2/3}\varepsilon^{-2})$ to $\mathcal{O}((n+m)^{1/2}\varepsilon^{-2})$. This "square root" dependence on the number of samples is a hallmark of optimal variance-reduced methods.
  • Online (Streaming) Setting: The algorithm achieves a complexity of $\mathcal{O}(\varepsilon^{-3})$, representing a significant leap from the $\mathcal{O}(\varepsilon^{-3.6})$ or $\mathcal{O}(\varepsilon^{-4.5})$ bounds seen in prior literature.

Empirical Evaluation and Results

The algorithm was rigorously evaluated on the Risk-Adverse Portfolio Management problem. The authors utilized six different "25-portfolio" datasets from the Kenneth French Data Library. Each dataset contains returns for $N=25$ assets over $T=7240$ time steps, with the objective of maximizing expected return while minimizing portfolio variance.

Performance of SARAH-Compositional across six regional portfolio datasets

In numerical experiments, SARAH-Compositional converged significantly faster than rival algorithms like SCGD, ASC-PG, and VRSC-PG. The "Objective Value Gap" (the distance from the optimal value) dropped much more steeply per gradient calculation compared to baseline methods. This steep descent proves that the algorithm is not just theoretically sound, but highly efficient in practical applications.

Limitations and Future Directions

While SARAH-Compositional represents a major step forward, the authors note a few limitations and areas for future research:

  • Smoothness Assumption: The current theoretical analysis assumes that both the inner and outer functions are smooth (i.e., they have Lipschitz continuous gradients). Many real-world problems involve non-smooth components, such as $L_1$ regularization or ReLU activations.
  • Lower Bounds: Although the authors achieve the best-known upper bounds, proving a formal lower bound for this specific class of compositional problems remains an open theoretical challenge.
  • Multi-level Compositions: This work focuses on two-level nesting ($f \circ g$). Extending this recursive variance reduction framework to deep hierarchies ($f_1 \circ f_2 \circ \dots \circ f_k$) is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{yuan2019efficient,
  author = {Huizhuo Yuan and Xiangru Lian and Chris Junchi Li and Ji Liu and Wenqing Hu},
  title = {{Efficient Smooth Non-Convex Stochastic Compositional Optimization via Stochastic Recursive Gradient Descent}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=S3G1ZW55_MJ},
}
Figure