In the classical theory of Stochastic Convex Optimization (SCO), there is a widely held belief that convexity is a "get out of jail free" card for high-dimensional learning. We are taught that if a problem is convex and Lipschitz, we can solve it with a number of samples that depends only on the desired accuracy $\epsilon$, completely independent of the number of dimensions $d$.
This intuition largely comes from the success of Stochastic Gradient Descent (SGD). However, recent research has revealed a startling reality: this dimension-independence is a property of the algorithm, not the problem. When we shift from SGD to the most standard learning principle—Empirical Risk Minimization (ERM)—the dimension "strikes back," demanding significantly more data to achieve the same results.
The Gap Between SGD and ERM
In SCO, our goal is to minimize a population risk $F(w) = \mathbb{E}_{z \sim \mathcal{D}}[f(w, z)]$. Since we don't know the distribution $\mathcal{D}$, we instead minimize the Empirical Risk: $$\hat{F}(w) = \frac{1}{n} \sum_{i=1}^n f(w, z_i)$$ An Empirical Risk Minimizer (ERM) is any vector that minimizes this training average.
For years, a mystery persisted. SGD is known to converge with $O(1/\epsilon^2)$ samples, regardless of $d$. Yet, as Vitaly Feldman demonstrated in Generalization of ERM in Stochastic Convex Optimization: The Dimension Strikes Back, ERM is not so lucky. Feldman proved that there exist convex, Lipschitz problems where any ERM requires a sample size that scales linearly with the dimension $d$ to achieve constant error.
This reveals a fundamental rift: just because a problem is convex doesn't mean "minimizing the training error" is an optimal strategy.
Quantifying the Dimensionality
If ERM is sensitive to dimension, exactly how much data does it need? This question was recently settled by Roi Livni, Amir Yehudayoff, and Daniel Carmon in The Sample Complexity Of ERMs In Stochastic Convex Optimization.
They established a tight upper bound for the sample complexity of any ERM: $$\tilde{O}\left(\frac{d}{\epsilon} + \frac{1}{\epsilon^2}\right)$$ This result is significant because it matches known lower bounds, providing a complete picture of ERM's efficiency. It confirms that while ERM eventually converges, it is strictly worse than SGD in high-dimensional settings. The $d/\epsilon$ term is the "price" of using a generic minimizer rather than a stable, iterative algorithm like SGD.
Why Does ERM Overfit?
The intuition behind this failure lies in stability. SGD is inherently stable; because it only looks at one sample at a time and takes small steps, a single outlier in the training set cannot pull the solution too far away.
ERM, however, is an "all-at-once" optimizer. In high dimensions, there are many directions in which the empirical average $\hat{F}$ might fluctuate slightly below the true population risk $F$. An ERM will find these "lucky" fluctuations and settle into them. Even though the function is convex, the optimizer can still "memorize" noise by picking a point that happens to perform exceptionally well on the specific $n$ samples provided, but poorly on the overall distribution.
Does Gradient Descent Save Us?
One might hope that Gradient Descent (GD)—the batch version of SGD—would inherit the dimension-independence of its stochastic cousin. After all, GD is the workhorse of modern machine learning.
However, Matan Schliserman, Uri Sherman, and Tomer Koren showed in The Dimension Strikes Back with Gradients that GD also suffers from the curse of dimensionality. They proved that for non-smooth convex functions, GD requires at least $\sqrt{d}$ samples to generalize.
Furthering this, Roi Livni in The Sample Complexity of Gradient Descent in Stochastic Convex Optimization showed that the generalization error of full-batch GD can scale linearly with $d/n$. This suggests that GD behaves more like a generic ERM than like SGD. Without the explicit noise injection of stochastic sampling, batch gradient methods lack the inherent stability required to ignore high-dimensional noise.
Summary of Complexity
The research across these papers clarifies a hierarchy of algorithmic efficiency in convex optimization:
- SGD: $O(1/\epsilon^2)$ samples (Dimension-independent).
- GD: Requires $O(\sqrt{d})$ to $O(d)$ samples (Dimension-dependent).
- ERM: $\tilde{O}(d/\epsilon + 1/\epsilon^2)$ samples (Dimension-dependent).
The takeaway is clear: in high-dimensional spaces, the choice of optimization algorithm is a choice of regularization. Simply being "convex" is not enough to guarantee that an optimizer will find a solution that generalizes; the path the optimizer takes matters just as much as the landscape it traverses.