NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-Level Composite Stochastic Optimization via Nested Variance Reduction

Junyu Zhang, Lin Xiao · DOI

Abstract

We consider multi-level composite optimization problems where each mapping in the composition is the expectation over a family of random smooth mappings or the sum of some finite number of smooth mappings. We present a normalized proximal approximate gradient (NPAG) method where the approximate gradients are obtained via nested stochastic variance reduction. In order to find an approximate stationary point where the expected norm of its gradient mapping is less than $\epsilon$, the total sample complexity of our method is $O(\epsilon^{-3})$ in the expectation case, and $O(N+\sqrt{N}\epsilon^{-2})$ in the finite-sum case where $N$ is the total number of functions across all composition levels. In addition, the dependence of our total sample complexity on the number of composition levels is polynomial, rather than exponential as in previous work.

Introduction

Many modern challenges in machine learning and operations research—ranging from reinforcement learning (policy evaluation) to risk-averse optimization—rely on objective functions that are structured as "functions of functions." These are known as multi-level composite optimization problems, represented as $f_m(f_{m-1}(\dots f_1(x) \dots))$.

While stochastic gradient descent (SGD) is the workhorse of single-level optimization, multi-level problems introduce two significant hurdles. First, the bias problem: an unbiased estimate of an inner function does not yield an unbiased estimate of the total gradient due to the non-linear chain rule. Second, the exponential curse: previous algorithms often saw their sample complexity grow exponentially ($2^m$) with the number of composition levels $m$, making deep compositions computationally prohibitive. This paper introduces the Nested-SPIDER algorithm to overcome these barriers, achieving polynomial scaling and state-of-the-art complexity rates.

The Proposed Method: NPAG and Nested-SPIDER

The authors propose a two-pronged approach to stabilize and accelerate multi-level optimization: the Normalized Proximal Approximate Gradient (NPAG) method and the Nested-SPIDER gradient estimator.

Normalized Proximal Approximate Gradient (NPAG)

Standard gradient methods can become unstable when gradient estimates are noisy or when the composition structure causes gradients to explode. NPAG addresses this by "normalizing" the update step. This normalization provides robustness against the biased nature of composite stochastic gradients and simplifies the convergence analysis. Furthermore, the "proximal" component allows the method to handle non-smooth constraints or regularizers (such as $L_1$ penalties) effectively.

Nested-SPIDER Estimator

The core innovation lies in the gradient estimation. Nested-SPIDER extends the Stochastic Path-Integrated Differential EstimatoR (SPIDER) technique to the multi-level setting. It maintains and updates estimators for both function values and Jacobians (derivatives) at every level of the composition.

Key features include:

  • Recursive Variance Reduction: Instead of recalculating gradients from scratch at each step, the algorithm updates estimates based on the difference between the current and previous iterations.
  • Balanced Sampling: By carefully managing the "refresh rate" (large batches) and the "update rate" (small batches), the method keeps the mean square error of the gradient estimate low without excessive computation.

Theoretical Contributions

The primary theoretical breakthrough of this work is the reduction of sample complexity from exponential to polynomial dependence on the number of levels $m$. Specifically, the dependence is improved to $O(m^4)$.

In terms of $\epsilon$-stationarity (finding a point where the gradient mapping norm is less than $\epsilon$):

  • Expectation Case: The method achieves a sample complexity of $O(\epsilon^{-3})$, matching the best-known rates for single-level stochastic non-convex optimization.
  • Finite-Sum Case: For a total of $N$ functions, the complexity is $O(N + \sqrt{N}\epsilon^{-2})$.

These rates are achieved under a "Uniform Lipschitz" condition, assuming that functions and their derivatives are boundedly smooth across all random realizations.

Empirical Performance

The authors validated their approach through two primary experimental setups:

  1. Sparse Binary Classification (1-level): Using the MNIST and rcv1.binary datasets, the authors demonstrated that NPAG/SPIDER is competitive with state-of-the-art single-level methods like ProxSARAH.
  2. Sparse Portfolio Selection (2-level): Using financial data from the Keneth R. French Data Library (Industrial-38 and Industrial-49), the authors tested a two-level composition involving the minimization of a combination of expected return and variance.

In the portfolio experiments, Nested-SPIDER converged significantly faster and more reliably than existing methods such as CIVR or C-SAGA. Notably, Nested-SPIDER remained stable under large step sizes where other methods frequently diverged.

Conclusion and Future Work

By combining nested variance reduction with normalized gradients, this research provides a computationally feasible path for solving deep composite optimization problems. The transition from exponential to polynomial complexity ($O(m^4)$) marks a significant milestone in the field.

However, some challenges remain. The current theoretical rates rely on the Uniform Lipschitz assumption, which may not hold in all deep learning contexts (e.g., with unbounded weights). Additionally, the method requires tuning several hyperparameters, such as epoch lengths and batch sizes for each level. Future research may explore more adaptive step-size rules, such as those in "SpiderBoost," to further enhance the practical utility of the multi-level framework.

Summary updated

BibTeX
@article{zhang2021multi,
  author = {Junyu Zhang and Lin Xiao},
  title = {{Multi-Level Composite Stochastic Optimization via Nested Variance Reduction}},
  journal = {SIAM J. Optim},
  year = {2021},
  doi = {10.1137/19m1285457},
}
Figure