Repetita Iuvant: Data Repetition Allows SGD to Learn High-Dimensional Multi-Index Functions

Luca Arnaboldi, Yatin Dandi, Florent Krzakala, Luca Pesce, Ludovic Stephan

TL;DR

Theoretical work on neural network dynamics has long suggested that single-pass Stochastic Gradient Descent (SGD) struggles to learn high-dimensional multi-index targets, requiring a sample complexity that scales exponentially with the target’s "Information Exponent" ($O(d^{\ell-1})$). This paper shows that taking just two gradient steps on each data sample—a mechanic inherent to popular optimizers like Extragradient, Lookahead, and Sharpness-Aware Minimization (SAM)—shatters this limitation. Reusing data allows two-layer networks to learn almost all polynomial target directions in just $O(d)$ or $O(d \log^2 d)$ samples from a completely cold start.

What Problem Does This Paper Address?

A major puzzle in deep learning theory is understanding how neural networks isolate low-dimensional, informative features hidden inside high-dimensional, noisy data $z \in \mathbb{R}^d$ (multi-index models: $y = h^*(W^* z)$ where $W^*$ has rank $k \ll d$).

Recent consensus established that idealized "one-pass" SGD (streaming fresh i.i.d. data points one by one) is constrained by Correlation Statistical Query (CSQ) lower bounds. In this regime, learning time is dictated by the Information Exponent $\ell$—the index of the first non-zero Hermite polynomial coefficient of the target. For functions with $\ell > 2$, one-pass SGD requires $O(d^{\ell-1})$ samples.

However, practical machine learning never uses pure one-pass SGD without data repetition: models run over multiple epochs, datasets contain repeated or similar examples, and common optimizers compute multiple gradient evaluations per batch. The authors ask: Does reusing data break this computational curse for multi-index functions?

Methods

The authors analyze a two-layer neural network $f(z; W, a) = \frac{1}{p}\sum_{j=1}^p a_j \sigma(\langle z, w_j \rangle)$ trained on synthetic Gaussian data $z \sim \mathcal{N}(0, I_d)$, keeping the second layer fixed and training the first layer weights $W$.

To mathematically isolate the effect of data repetition, they examine Algorithm 1, an optimizer that evaluates each mini-batch twice:

  1. Lookahead / Perturbation Step: Computes an intermediate weight update using step size $\rho$: $$\tilde{w}_{t,j} = w_{t,j} - \rho \nabla_{w} \mathcal{L}(f(z; w_t, a_0), y)$$
  2. Agglomeration Step: Evaluates a second gradient on the same sample $z$ at the perturbed weights $\tilde{w}_{t,j}$, updating $w_{t+1}$ with step size $\gamma$.

This formulation captures algorithms like Extragradient ($\rho > 0$) and Sharpness-Aware Minimization (SAM, $\rho < 0$). To analyze high-dimensional convergence, they track the low-dimensional projection (overlap) $m_t = \langle w_t, w^* \rangle$ using high-dimensional limit theorems and Hermite expansions.

Datasets

The paper exclusively utilizes synthetic benchmark tasks standard in high-dimensional statistical physics and ML theory:

  • Inputs: Standard multivariate Gaussian vectors $z \sim \mathcal{N}(0, I_d)$ across dimensions $d \in \{1024, 2048, 4096, 8192\}$.
  • Target Link Functions ($h^*$):
  • Single-index: $\text{ReLU}(x)$, Hermite polynomials $\text{He}_2(x)$, $\text{He}_3(x)$, $\text{He}_4(x)$.
  • Multi-index: $x_1 + x_1 x_2$, $x_1 x_2$, $x_1 + \text{He}_3(x_2)$, $x_1 x_2 x_3$, $\text{sign}(x_1 x_2)$, and parity-style functions like $\text{sign}(x_1 x_2 x_3)$.
  • Staircase combinations: $\text{He}_2(x_1) + \text{sign}(x_1 x_2 x_3)$ and $\text{He}_4(x_1) + 5\,\text{sign}(x_1 x_2 x_3)$.

No real-world datasets are evaluated.

Key Insights and Ideas

  • Non-linear signal injection from repeated points: In a single step, the gradient vector points along $z$ with magnitude proportional to the label $y$. When evaluating the same point twice, the new dot product $\langle \tilde{w}, z \rangle$ involves $\rho y \sigma'(\langle w, z \rangle) \|z\|^2$. Because $\|z\|^2 \approx d$, the $O(d^{-1})$ step size cancels the dimension factor, creating an internal term dependent non-linearly on $y$.
  • Escaping CSQ into general SQ: By applying arbitrary effective non-linear transformations to $y$, the dynamics are no longer constrained by the Information Exponent $\ell$ (CSQ bounds), but rather by the Generative Information Exponent $\ell^*_p$ (Statistical Query bounds).
  • Polynomials become trivially learnable: For any polynomial link function $h^*$, the generative exponent is at most 2 ($\ell^*_p = 1$ if $h^*$ has an odd component; $\ell^*_p = 2$ if even/symmetric). Thus, targets with arbitrarily high Hermite rank (like $\text{He}_3$ or $\text{He}_4$) no longer suffer from polynomial sample blowup.
  • SQ-Staircase Mechanism: While isolated sparse parities like $\text{sign}(x_1 x_2 x_3)$ remain intrinsically hard ($\ell^* = 3$), coupling them with an easier direction (e.g., $+ \text{He}_4(x_1)$) sets off a cascade: the network easily learns $w^*_1$ in $O(d \log d)$ steps, which then bootstraps recovery of $w^*_2$ and $w^*_3$.

Key Results

  • Polynomial Link Recovery: For any polynomial target $h^*$, Algorithm 1 achieves weak recovery in:
  • $O(d)$ samples if $h^*$ has an odd component ($\ell^*_p = 1$).
  • $O(d \log^2 d)$ samples if $h^*$ is purely even/symmetric ($\ell^*_p = 2$).
  • Outperforming Vanilla SGD: In experiments on single-index $\text{He}_3(x)$ ($\ell=3, \ell^*=1$), vanilla SGD requires $\Omega(d^2)$ samples, whereas Extragradient, SAM, and 2-step Lookahead learn the direction in $O(d)$ samples.
  • Large Minibatches: Extending to mini-batches of size $n_b = O(d)$, the required wall-clock iterations reduce to $O(1)$ steps for $\ell^*=1$ (e.g., $\text{He}_3$) and $O(\log d)$ steps for $\ell^*=2$ (e.g., $\text{He}_4$).
  • Zero Warm-Start Required: Prior polynomial-time algorithms relied on spectral pre-processing to provide a warm start. Algorithm 1 succeeds even from an adversarial "cold start" where initial weights are strictly orthogonal to the target subspace ($W_0 \perp W^*$).

Limitations and Future Work

  • Theoretical Simplifications: The formal proof assumes a spherical gradient update, a correlation loss ($\mathcal{L}(y, \hat{y}) = 1 - y\hat{y}$), and smooth, analytic activation functions (excluding ReLU). However, empirical experiments demonstrate that standard squared loss and unnormalized ReLU networks exhibit the same convergence behaviors.
  • Truly Hard Functions: Functions with no low-degree cross-talk (such as pure sparse parities $\text{sign}(x_1 \dots x_k)$) retain $\ell^* = k$ and remain intractable in $O(d \log d)$ time without external structural assistance.
  • Multiple Epoch Dynamics: While the authors mathematically evaluate adjacent 2-step gradient evaluations, extending the formal theory to standard multi-epoch SGD (where repetitions occur over full dataset loops rather than back-to-back iterations) remains an open challenge.

Summary updated

BibTeX
@inproceedings{arnaboldi2024repetita,
  author = {Luca Arnaboldi and Yatin Dandi and Florent Krzakala and Luca Pesce and Ludovic Stephan},
  title = {{Repetita Iuvant: Data Repetition Allows SGD to Learn High-Dimensional Multi-Index Functions}},
  booktitle = {HiLD @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=DVmxh2kuqc},
}
Figure