On the Complexity of Minimizing Convex Finite Sums Without Using the Indices of the Individual Functions

Yossi Arjevani, Amit Daniely, Stefanie Jegelka, Hongzhou LinarXiv 2020

Introduction

In modern machine learning, the optimization of a "finite sum" of functions is a foundational task. The objective is typically to minimize $F(w) = \frac{1}{n} \sum_{i=1}^n f_i(w)$, where each $f_i$ represents the loss associated with a single data point. To solve this efficiently, state-of-the-art randomized incremental methods such as SVRG, SAG, and SAGA have been developed. These methods achieve "variance reduction," allowing for exponential convergence rates (linear convergence) that are significantly faster than standard Stochastic Gradient Descent (SGD).

However, these incremental methods rely on a specific assumption: the algorithm must have access to an incremental oracle. This means that when the algorithm samples a data point, it knows exactly which index $i \in \{1, \dots, n\}$ it is processing. This knowledge allows the algorithm to maintain a memory of past gradients or reference points for each specific function. In many practical scenarios—such as privacy-preserving computations, certain data augmentation pipelines, or distributed systems where data is anonymized—this index information is unavailable. In these cases, we only have access to a stochastic oracle, which provides a gradient $\nabla f_i(w)$ for a random $i$ without revealing the identity of $i$.

This paper investigates a fundamental theoretical question: Is it possible to achieve the fast convergence rates of variance-reduced methods using only a stochastic oracle, without knowing the indices of the individual functions?

The Challenge of Index-Blind Optimization

Standard stochastic methods that do not use indices, like SGD, typically suffer from a slow, polynomial convergence rate ($O(1/k)$ or $O(1/\sqrt{k})$). The lack of index information prevents the use of standard variance reduction techniques because the algorithm cannot "match" a new gradient observation with a previously stored one to cancel out noise.

Previous research established that for stochastic global oracles, there is a lower bound of $\Omega(n^2)$ iterations to obtain $O(1/n^2)$-optimal solutions. The authors of this work first prove a lower bound showing that any naive approach—such as using a simple empirical average of stochastic gradients—cannot achieve exponential convergence. Specifically, they show that such methods require at least $\Omega(1/\epsilon)$ queries to reach an $\epsilon$-optimal solution, confirming that standard SGD-like approaches are fundamentally limited in the index-free setting.

The Quantized Gradient Estimator

The core contribution of this work is the realization that finite sums possess a "finite noise" structure that can be exploited. Because the stochastic oracle samples uniformly from a fixed set of exactly $n$ functions, the true probability of encountering any specific gradient is always a discrete multiple of $1/n$.

To exploit this, the authors introduce a Quantized Estimator. Instead of simply averaging a batch of stochastic gradients, the algorithm samples a sufficiently large batch and then "rounds" the empirical frequencies of the observed gradients to the nearest multiple of $1/n$. This quantization step acts as a perfect noise filter. If the batch size is large enough, the rounding process can reconstruct the exact full gradient with high probability, effectively eliminating the sampling variance that plagues standard SGD.

Q-SVRG and Accelerated Complexity

By integrating this quantized estimator into the SVRG framework, the authors propose Q-SVRG (Quantized SVRG). To further optimize the performance, they apply the Catalyst acceleration framework. This wrapper improves the algorithm's dependence on the condition number ($L/\mu$) and extends the method's applicability from $\mu$-strongly convex functions to general $L$-smooth convex functions.

Complexity Bounds

The resulting complexity bounds for the proposed method are:

  • Strongly Convex ($\mu > 0$): $\tilde{O}((n^2 + n\sqrt{L/\mu}) \log(1/\epsilon))$
  • Smooth Convex ($\mu = 0$): $O(n\sqrt{L/\epsilon})$

These results demonstrate that exponential convergence is indeed possible without indices. While the $n^2$ term makes this more expensive than standard incremental methods (which typically scale linearly with $n$), the authors show that this $O(n^2)$ term is theoretically tight, matching the $\Omega(n^2)$ lower bound for stochastic global oracles.

Discussion and Limitations

While this work bridges the gap between stochastic and incremental optimization, it highlights several theoretical and practical constraints:

  1. Simultaneous Queries: The Q-SVRG algorithm requires the ability to perform at least two simultaneous queries to the oracle (a batch size $B \ge 2$) to compute the variance-reduction update. Whether similar results can be achieved in a strict $B=1$ setting remains an open question.
  2. The $\sqrt{n}$ Gap: There remains a discrepancy between the first-order terms of index-free and index-aware methods. Incremental methods achieve $\sqrt{nL/\mu}$, whereas the index-free Q-SVRG achieves $n\sqrt{L/\mu}$. Closing this $\sqrt{n}$ gap is a subject for future research.
  3. Practicality: Due to the $n^2$ complexity, this method is currently of greater theoretical significance than practical utility for very large datasets. It serves as a proof of concept that the discrete structure of finite sums allows for perfect noise recovery, even when individual data identities are hidden.

Summary updated

BibTeX
@misc{arjevani2020complexity,
  author = {Yossi Arjevani and Amit Daniely and Stefanie Jegelka and Hongzhou Lin},
  title = {{On the Complexity of Minimizing Convex Finite Sums Without Using the Indices of the Individual Functions}},
  year = {2020},
  eprint = {2002.03273},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03273},
}
Figure