Incremental Gradient Descent with Small Epoch Counts is Surprisingly Slow on Ill-Conditioned Problems

Yujun Kim, Jaeyoung Cha, Chulhee Yun

Abstract

In modern machine learning, particularly in the training of Large Language Models (LLMs), optimization often occurs in the "small epoch regime," where the number of passes over the dataset ($K$) is significantly smaller than the problem's condition number ($\kappa$). While recent theory suggests that permutation-based Stochastic Gradient Descent (SGD) methods like Random Reshuffling (RR) converge faster than standard with-replacement SGD, these results typically assume a large number of epochs. This paper investigates the convergence properties of Incremental Gradient Descent (IGD)—the deterministic variant of permutation-based SGD—under these early-training conditions. We prove that for ill-conditioned problems, IGD is surprisingly slow, sometimes exhibiting an exponential slowdown compared to standard SGD. However, we also establish that an optimal permutation exists which can outperform standard SGD, indicating that the bottleneck is the specific data ordering rather than the permutation-based framework itself.

Introduction

A fundamental tenet of practical optimization is that shuffling data is superior to random sampling with replacement. Theoretical advancements have largely confirmed this, showing that Random Reshuffling (RR) achieves faster convergence rates than standard SGD in the "large epoch regime" ($K \gtrsim \kappa$). However, the reality of modern deep learning involves highly ill-conditioned landscapes where $K$ is small. This creates a theoretical gap: does the superiority of shuffling hold when we only perform a few passes over the data?

This study addresses this gap by analyzing Incremental Gradient Descent (IGD), where data is processed in a fixed, deterministic order every epoch. By focusing on the "small epoch regime," the authors reveal that the very mechanisms that allow for long-term acceleration can hinder performance during the initial stages of training.

Theoretical Framework and Methodology

The authors employ rigorous mathematical analysis to establish lower bounds for IGD performance. To capture the complexity of ill-conditioned problems, they utilize a Dimension-Aggregating approach. This involves constructing adversarial objective functions that combine different geometric properties across multiple dimensions, ensuring that any chosen constant step size will encounter a performance bottleneck in at least one regime (small, moderate, or large step sizes).

Key to their analysis is the distinction between two regimes:

  1. Small Epoch Regime ($K \lesssim \kappa$): Where the number of passes is insufficient to average out the errors inherent in a fixed data order.
  2. Large Epoch Regime ($K \gtrsim \kappa$): Where the benefits of shuffling and the "averaging effect" eventually lead to superior convergence.

To explore the theoretical limits of permutation-based methods, the authors also implement a Herding Algorithm ("Herding at Optimum"). This technique is used to prove the existence of specific data sequences that could, in theory, achieve optimal convergence even in the early stages of training.

The "Slowdown" Phenomenon

The research identifies several critical factors that contribute to the sluggishness of IGD in the small epoch regime:

1. The Step-Size Conflict

In early training, a large step size is typically required to traverse the loss landscape toward the optimum. However, in IGD, large step sizes cause the "cumulative error"—the drift that occurs as the algorithm processes a fixed sequence of data points—to explode within a single epoch. This creates a fundamental tension: the algorithm cannot use a step size large enough to be fast without becoming unstable due to the fixed ordering of data.

2. The Nonconvexity Penalty

A striking finding is the impact of partial nonconvexity. The authors demonstrate that if even a subset of the component functions is nonconvex—even if the aggregate objective remains strongly convex—IGD’s performance can degrade exponentially relative to the ratio of $\kappa/K$. This suggests that the local geometry of individual data points plays a much larger role in IGD's success than previously understood.

3. Lower Bounds for Strongly Convex Problems

For strongly convex problems with identical Hessians, the authors prove an optimality gap of $\Omega(G^2 / \mu K)$. This rate is a factor of $n$ (the number of data points) slower than standard with-replacement SGD, mathematically formalizing the "slowdown" observed in practice.

Empirical Validation

While primarily a theoretical contribution, the paper validates these findings through experiments on synthetic and real-world datasets:

  • Synthetic Benchmarks: 1D to 4D functions designed to match the theoretical lower-bound constructions confirmed the predicted convergence bottlenecks.
  • MNIST and CIFAR-10: Using binary classification tasks, the authors compared IGD against Random Reshuffling and standard SGD. In both cases, IGD exhibited a significant initial lag in both training loss reduction and test accuracy, confirming that the theoretical slowdown is a tangible phenomenon in practical settings.

Conclusion and Future Directions

The study concludes that while permutation-based methods are powerful, their simplest form (IGD) is ill-suited for the high-stakes, low-epoch environment of modern large-scale training. The most promising insight, however, is the proof that a "perfect" permutation exists. Although this optimal order currently requires knowledge of the global optimum (making it impractical for direct use), its existence suggests that new algorithms could be developed to approximate this order on the fly.

Future research should focus on:

  1. Refining Random Reshuffling Theory: Determining if the stochastic nature of RR allows it to avoid the worst-case traps of IGD in the small epoch regime.
  2. Adaptive Ordering: Developing practical heuristics to find "good" permutations that break the $\Omega(G^2 / \mu K)$ barrier without requiring prior knowledge of the optimum.

Summary updated

BibTeX
@inproceedings{kim2025incremental,
  author = {Yujun Kim and Jaeyoung Cha and Chulhee Yun},
  title = {{Incremental Gradient Descent with Small Epoch Counts is Surprisingly Slow on Ill-Conditioned Problems}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=LiXD7mpjU0},
}
Figure