SGD in Multiclass Logistic Regression: Sequential Learning and Scaling Laws

Konstantinos Christopher Tsiolis, Denny Wu, Christos Thrampoulidis, Murat A ErdogduNeurIPS 2026

TL;DR

Why do large language models exhibit such eerily predictable, smooth power-law drops in test loss as you throw more compute at them? By analyzing multiclass logistic regression with power-law class frequencies, the authors prove that smooth scaling laws emerge naturally from gradient descent learning individual classes sequentially, from most frequent to rarest. Better yet, they bridge a massive gap in machine learning theory—extending exact compute-optimal scaling laws from simple linear regression to cross-entropy classification.

What Problem Does This Paper Address?

Empirical scaling laws—like the famous Chinchilla rules for balancing model size and training tokens—are the compass guiding modern LLM pretraining. Theorists want to understand why these laws happen from first principles, so they build simplified mathematical sandboxes.

Until now, almost all of these theoretical sandboxes studied linear regression using squared error loss. That creates an awkward mismatch with reality: modern language models aren't doing regression. They are doing next-token prediction—a massive multiclass classification problem trained with cross-entropy loss, over a vast vocabulary where word frequencies follow a heavy-tailed Zipfian (power-law) distribution (think of how often "the" appears compared to "platypus"). This paper asks: can we build a tractable mathematical model of multiclass classification that actually mirrors these core ingredients of LLM pretraining, and derive exact scaling laws from it?

Methods

The authors set up a clean, high-dimensional classification model: $K$-class logistic regression. Data points are drawn from $K$ mixture components with orthonormal class means (plus sub-Gaussian noise $\sigma$), and class labels follow a power-law frequency prior, $\pi_i \propto i^{-\alpha}$.

To analyze how this system learns, they proceed in three steps:

  1. Continuous-Time Dynamics: They first track population gradient flow (essentially gradient descent with an infinitesimally small step size and infinite data) by writing down ordinary differential equations (ODEs) for the alignment between model weights and class means. When noise is present, cross-class interactions make the math messy, which they tame using a perturbative Taylor expansion.
  2. PCA Capacity Bottleneck (Novel Twist): To study trade-offs between model size and training time, theorists usually shrink input dimensions using a random Gaussian projection ("sketching"). However, the authors point out that in classification with orthogonal means, random projections preserve distances (via the Johnson-Lindenstrauss lemma) and fail to limit model expressivity! Instead, they use Principal Component Analysis (PCA) to project inputs onto the top $m$ eigenvectors—effectively keeping the $m$ most frequent classes and collapsing the rare tail classes to zero.
  3. Online SGD: Finally, they translate their continuous gradient flow results into discrete, finite-sample online Stochastic Gradient Descent (one-pass training) using convexity, smoothness, and martingale concentration bounds.

Datasets

This is a purely theoretical work; no real-world datasets or empirical benchmarks are used. To verify their mathematical predictions visually, the authors numerically simulate their population ODEs using Synthetic Gaussian Mixture Models (setting $K = 2048$ classes, varying the power-law exponent $\alpha$ from $1.5$ to $4.0$, and testing noiseless $\sigma = 0$ vs. noisy $\sigma = 0.1, 0.16$ regimes).

Key Insights and Ideas

  • Global smoothness from sequential learning: Gradient descent learns classes one by one in strict order of frequency. Class $i$ is learned at time $t_i \asymp \frac{\log K}{\pi_i}$. Even though individual classes are snapped up at distinct times, aggregating thousands of these class-wise learning curves produces a globally smooth power-law decay in cross-entropy loss—with none of the jagged "staircase" drops seen in squared-loss additive models.
  • Three phases of learning: Without capacity bottlenecks, training naturally splits into three distinct eras: an initial plateau at $\log K$ before the most frequent class is learned; an intermediate power-law decay phase as classes are learned sequentially; and a late-stage $K/t$ convergence phase once all classes are separated.
Figure 2: Gradient flow trajectory and cross-entropy scaling law. We solve the population ODE (2.3) using Euler discretization with adaptive step size, where expectations are approximated using Monte Carlo samples. We set K = 2048 and vary the power-law exponent α. (a) σ = 0: The three-phase loss scaling matches the predictions of Proposition 2.3: after the initial plateau, the loss follows a power-law decay with α-dependent exponent, before entering the local convergence phase with 1/t rate. (b) σ > 0: The early-phase learning dynamics resemble the noiseless setting, but as t increases, convergence slows down and deviates from theoretical rates due to isotropic Gaussian noise.
  • Why random sketches fail in classification: Showing that Gaussian sketches don't create a true capacity bottleneck for separated classes is a great conceptual catch. Switching to a PCA projection cleanly splits the loss into an approximation error (from ignoring the $K - m$ rarest classes) and an optimization error (how well you've learned the top $m$ classes so far).

Key Results

  • Time Scaling Law: When class frequencies decay with exponent $\alpha > 1$, the intermediate phase cross-entropy risk decays with optimization time $t$ as $(\log K)^{2-1/\alpha} \cdot t^{-(1-1/\alpha)}$. In noisy settings ($\sigma > 0$), the dynamics track this exact curve up to a signal-to-noise time horizon of $T \asymp 1/\sigma$.
  • Capacity vs. Time Decomposition: Restricting model width to $m$ dimensions via PCA yields an explicit risk decomposition: $$\mathcal{R}_m(t) \asymp m^{-(\alpha-1)} \log K + (\log K)^{2-1/\alpha} t^{-(1-1/\alpha)}$$
Cross-entropy loss trajectories showing the time power-law and PCA width bottlenecks.
  • Compute-Optimal Scaling: Defining compute as $C \asymp mKt$ (since evaluating $K$ logits scales with width $m$ and classes $K$), optimizing the risk trade-off prescribes scaling model dimension as $m^* \asymp \left(\frac{C}{K \log K}\right)^{\frac{1}{\alpha+1}}$ and training steps/time as $t^* \asymp (\log K)^{\frac{1}{\alpha+1}} \left(\frac{C}{K}\right)^{\frac{\alpha}{\alpha+1}}$. This yields a compute-optimal loss scaling of $\mathcal{R}(C) \asymp (\log K)^{\frac{2\alpha}{\alpha+1}} (K/C)^{\frac{\alpha-1}{\alpha+1}}$.
  • Online SGD: Online SGD matches gradient flow trajectories at effective time $t_n = \eta n$ (learning rate $\times$ iterations), with smaller sketch dimensions $m$ permitting larger learning rates due to lower gradient variance.

Limitations and Future Work

  • Noise horizon: Because the noisy analysis relies on perturbative bounds, the theory only holds up to time $T \asymp 1/\sigma$. Exactly how the loss behaves—and where it flattens out—past this horizon remains an open theoretical question.
  • Simplified training setup: The SGD results assume fresh data at every step (one-pass online SGD) and vanilla gradient updates. Extending this framework to multi-epoch training (data reuse) and modern optimizers like Adam—which is known to behave very differently on heavy-tailed class distributions—are natural next steps.

Summary updated

Abstract

We study the training dynamics of multiclass logistic regression on high-dimensional mixture models with a large number of classes and establish precise scaling laws governing the cross-entropy risk under gradient-based optimization. We show that learning proceeds sequentially across classes, from most to least frequent. When the class priors follow a power law distribution, the risk dynamics decompose into three phases: an initial plateau until the first class is learned, a power-law decay regime during which sequential learning occurs, and a final convergence regime. We then analyze how model capacity interacts with optimization under a fixed compute budget. When the effective dimension is restricted via projection onto leading principal components, the risk decomposes into a capacity term (a power law in the retained dimension) and an optimization term (a power law in training time). Optimizing this tradeoff yields a compute-optimal scaling law for logistic regression, with explicit prescriptions for model size and training time as functions of compute. These results extend theoretical scaling laws from linear regression to multiclass classification, while connecting to empirical scaling laws observed in large-scale neural networks.
BibTeX
@inproceedings{tsiolis2026sgd,
  author = {Konstantinos Christopher Tsiolis and Denny Wu and Christos Thrampoulidis and Murat A Erdogdu},
  title = {{SGD in Multiclass Logistic Regression: Sequential Learning and Scaling Laws}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lF5Y8IbCiq},
}
Figure