Finite-sum Composition Optimization via Variance Reduced Gradient Descent

Xiangru Lian, Mengdi Wang, Ji LiuAISTATS 2017

Introduction

Standard stochastic optimization typically focuses on minimizing a single expectation, $\min_x \mathbb{E}[F_i(x)]$. However, many contemporary machine learning problems—including policy evaluation in reinforcement learning and mean-variance optimization in finance—involve compositional objectives of the form $\min_x F(\mathbb{E}[G_j(x)])$.

These "nested" problems are inherently difficult because standard stochastic gradient estimates are biased. Sampling a mini-batch to estimate the inner function $G$ and substituting it into the gradient of the outer function $F$ results in a gradient estimate that does not point in the descent direction on average. Previous state-of-the-art algorithms, such as SCGD, accepted this bias, resulting in slow, sublinear convergence rates. This paper introduces the first algorithms for finite-sum composition optimization that achieve linear convergence.

Proposed Algorithms: Compositional SVRG

The authors propose two algorithms that adapt the Stochastic Variance Reduced Gradient (SVRG) framework to the compositional setting:

  1. Compositional SVRG-1: This algorithm periodically takes a "snapshot" of the full gradient and the inner function value at a reference point $\tilde{x}$. During inner iterations, it uses a mini-batch to estimate changes in $G(x)$ relative to the snapshot, reducing variance and allowing for larger step sizes.
  2. Compositional SVRG-2: This version adds an extra layer of tracking by storing and updating an estimate of the Jacobian of the inner function $G$. This provides a more accurate local linear approximation.

While both algorithms remain biased, the authors prove that variance reduction is powerful enough to maintain a linear convergence rate (exponential error decrease) under proper parameter tuning.

Theoretical Insights

The most significant contribution is breaking the sublinear barrier. By using SVRG to anchor estimates to a full-batch snapshot, the bias is effectively controlled.

  • SVRG-1 achieves a query complexity of $O((m + n + \kappa^4) \log(1/\epsilon))$.
  • SVRG-2 improves this to $O((m + n + \kappa^3) \log(1/\epsilon))$, where $\kappa$ is the condition number. This means SVRG-2 is significantly more efficient for "stiff" or ill-conditioned problems where $\kappa$ is large.

Experimental Evaluation

The algorithms were evaluated using a Mean-Variance Portfolio Optimization task on synthetic datasets ($n=5000$ samples, $N=300$ assets). The experiments specifically varied the condition number ($\kappa_{cov}$) of the covariance matrix to test robustness.

Convergence of Compositional SVRG algorithms across different condition numbers.

As shown in the figures, the SVRG-based algorithms exhibit a straight downward line on a log-scale, confirming linear convergence. In empirical tests, they reached an objective error of $10^{-8}$ in the same number of oracle calls that standard Compositional SGD required to reach only $10^{-2}$. Furthermore, they outperformed full Gradient Descent by leveraging stochastic information to accelerate progress in early optimization stages.

Conclusion and Future Work

While these algorithms provide a major leap in efficiency, some limitations remain. The current proofs require the objective function to be strongly convex, which may not hold for non-convex deep learning problems. Additionally, SVRG-2's Jacobian tracking introduces memory overhead for high-dimensional inner functions. Future research may focus on reducing the $\kappa$ dependency further to match the $O(n + \kappa)$ standard of non-compositional SVRG.

Summary updated

BibTeX
@inproceedings{lian2017finite,
  author = {Xiangru Lian and Mengdi Wang and Ji Liu},
  title = {{Finite-sum Composition Optimization via Variance Reduced Gradient Descent}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
}
Figure