How Far Can Quadratics Take Us? Lessons for LLM Pretraining

Sham Kakade

International Conference on Machine Learning 2026 · Invited Talk

Overview

Foundation model pretraining remains an exceptionally resource-intensive endeavor, consuming massive amounts of compute, financial capital, and wall-clock time. As base models dictate downstream task performance, the field relies heavily on retraining models from scratch as new data arrives rather than depending solely on brittle continual learning strategies. This talk, delivered by Sham Kakade at ICML, explores whether simple optimization principles derived from a basic quadratic model can yield deep, actionable insights for large language model (LLM) training dynamics.

Watch on SlidesLive

Visual summary for How Far Can Quadratics Take Us? Lessons for LLM Pretraining by Sham Kakade
Visual summary for How Far Can Quadratics Take Us? Lessons for LLM Pretraining by Sham Kakade

Key moments

  1. 0:00 Introduction to foundation model training and core questions
  2. 2:00 Using a simple quadratic model for exact analysis
  3. 10:00 Anytime learning challenges and tail averaging solutions
  4. 22:00 Critical batch size scaling with tokens and model size
  5. 40:00 Momentum effects on compute efficiency and serial runtime
  6. 44:00 Testing momentum theory with synthetic and neural network experiments
  7. 46:00 Taking Taylor's theorem seriously in large neural networks
  8. 48:00 Eigen spectrum analysis and final takeaways

How Far Can Quadratics Take Us? Lessons for LLM Pretraining

Speakers: Sham Kakade

Conference: ICML

YouTube: https://slideslive.com/39078647

Overview

Foundation model pretraining remains an exceptionally resource-intensive endeavor, consuming massive amounts of compute, financial capital, and wall-clock time. As base models dictate downstream task performance, the field relies heavily on retraining models from scratch as new data arrives rather than depending solely on brittle continual learning strategies. This talk, delivered by Sham Kakade at ICML, explores whether simple optimization principles derived from a basic quadratic model can yield deep, actionable insights for large language model (LLM) training dynamics.

Rather than constructing overly complicated models that fail to match empirical realities, Kakade and his collaborators push hard on a foundational toy model: online linear regression analyzed through the lens of exact dynamics. By tracking both the mean parameter vector and the full covariance matrix over time, this framework generates surprisingly sharp forecasts for complex non-convex neural network training. These theoretical predictions are then tested against real-world training runs on models up to 150M parameters, addressing core systems and algorithmic questions including anytime learning, critical batch size scaling, momentum behavior, and the surprising validity of Taylor's theorem.

The findings demonstrate that simple mathematical systems—when analyzed rigorously—can accurately forecast empirical scaling laws, batch ramp efficiency, and optimization tradeoffs. By disentangling tokens from model size and properly pairing hyperparameters, researchers and infrastructure teams can exploit these insights to significantly reduce serial runtime without sacrificing compute efficiency.

Background

▶ Watch: Introduction to foundation model training and core questions (0:00)

In the machine learning and systems community, the standard approach to understanding training dynamics often relies on either loose upper bounds or purely empirical heuristics. While upper bounds provide theoretical safety, they are frequently too loose to guide practical hyperparameter tuning for billion-parameter transformers. Conversely, pure empiricism requires prohibitively expensive sweeps on clusters equipped with hundreds of GPUs or TPUs.

This work sits at the intersection of optimization theory and large-scale systems engineering, seeking to bridge the gap between convex theory and non-convex practice. Prior work has established that smooth loss functions are locally quadratic, meaning optimization algorithms like Stochastic Gradient Descent (SGD) and Adam solve a series of locally quadratic problems. However, traditional analyses often fail to capture the complex interplay between multiplicative noise, parameter covariance, and learning rate schedules. By returning to first principles and examining a globally quadratic model—specifically online linear regression driven by Gaussian inputs—the speakers investigate whether the structural properties of these simple systems can accurately predict the behavior of deep neural networks.

Key Findings

▶ Watch: Anytime learning challenges and tail averaging solutions (10:00)

The investigation yields several headline discoveries regarding foundation model pretraining, demonstrating that theoretical forecasts from quadratic systems map cleanly onto empirical deep learning:

  • Anytime Learning is Achievable via Tail Averaging: Without specific intervention, intermediate checkpoints in transformer pretraining yield poor loss values because standard cosine decay schedules are anchored to a predetermined end time. Implementing a constant learning rate or a $1/\sqrt{T}$ schedule combined with Exponential Moving Average (EMA) tail averaging allows a single training run to match the optimal performance envelope across a 30x range of stopping times.
  • Critical Batch Size Scales with Tokens, Not Model Size: When disentangling token budget from parameter count, the critical batch size exhibits a strong dependence on the total number of training tokens $N$, but a remarkably weak dependence on model dimension $D$.
  • 35% Wall-Clock Speedup via Batch Ramping: For models optimized with Adam, replacing standard learning rate decay with a synchronized batch-ramping strategy (the seesaw algorithm, scaling learning rates by $1/\sqrt{2}$ while doubling the batch size) matches the training dynamics of cosine decay while finishing runs 35% faster in serial runtime.
  • Momentum Shifts Serial Runtime Without Improving Compute Efficiency: Applying the heavy ball algorithm or Nesterov's acceleration does not reduce total floating-point operations (FLOPs) relative to standard SGD at any batch size. Instead, momentum extends the linear scaling window, allowing practitioners to increase the critical batch size and improve wall-clock runtime without incurring a compute penalty.
  • Taylor's Theorem Holds Broadly in Deep Networks: By constructing globally convex quadratic and prox-linear models around intermediate checkpoints of a 150M parameter neural network, the resulting loss curves track the non-convex training process remarkably well for roughly 10% of the total training run.

Technical Deep Dive

▶ Watch: Momentum effects on compute efficiency and serial runtime (40:00)

The theoretical engine of this work is the exact analysis of online linear regression with squared loss. At every time step $t$, the system observes a sample $x_t \sim \mathcal{N}(0, H)$ and a target $y_t = w_*^\top x_t + \text{noise}$. The excess risk is measured under the $H$-norm as the expected squared difference between the current parameter estimate $w_t$ and the optimal parameter $w_*$.

The online SGD update rule generates an error recursion governed by both additive and multiplicative noise:

$$w_{t+1} - w_* = (I - \eta x_t x_t^\top)(w_t - w_* ) + \eta x_t \text{noise}_t$$

While the mean dynamics mirror standard gradient descent via the contraction matrix $I - \eta H$, tracking the full $D \times D$ covariance matrix $\Sigma_t = \mathbb{E}[(w_t - w_*)(w_t - w_* )^\top]$ requires capturing the fourth-moment tensor of the input distribution. Under Gaussian assumptions, Isserlis' theorem (or Wick's theorem) resolves this fourth-moment term into an effective noise structure containing an irreducible noise floor ($\eta^2 \sigma^2 H$) and a self-generated noise component that decays as the excess risk approaches zero.

To evaluate large-scale spectral properties, the authors employ Lanczos quadrature, a numerical linear algebra technique capable of computing the full eigen spectrum of 150M parameter weight matrices. This reveals a distinct two-regime power law in the Hessian and Gauss-Newton spectra, separated roughly at the vocabulary dimension, providing quantitative insight into how different network layers capture variance during training.

Experimental Setup & Results

▶ Watch: Testing momentum theory with synthetic and neural network experiments (44:00)

The empirical validation was conducted on models ranging up to 150 million parameters, utilizing computational infrastructure at the Kempner Institute. Hyperparameter sweeps were executed to identify optimal batch sizes and learning rates across varying token budgets.

  • Anytime Learning Validation: Evaluated on a 150M parameter model across a 30x range of Chinchilla-scaling horizons. The EMA tail-averaging window scaled dynamically to roughly 5% of the total tokens seen, hugging the optimal cosine envelope without retraining.
  • Batch Size Scaling Sweeps: By independently varying token count $N$ and model dimension $D$, empirical sweeps confirmed that the critical batch size grows significantly with longer token schedules but remains largely invariant to parameter scaling when token budgets are held constant.
  • Seesaw Algorithm Performance: Implementing the Adam batch ramp rule ($1/\sqrt{2}$ learning rate scaling paired with batch doubling) achieved an identical validation loss curve to standard cosine schedules while reducing serial training steps by 35%.
  • Momentum Verification: Synthetic and neural network experiments confirmed that momentum algorithms track base SGD in compute efficiency (total FLOPs to target loss) while successfully widening the parallelization window.

Practical Implications

▶ Watch: Eigen spectrum analysis and final takeaways (48:00)

For infrastructure teams, model builders, and MLOps engineers, these findings offer direct guidelines for large-scale cluster utilization and training pipeline design:

  • Abandon Fixed-Horizon Commitments: Training runs no longer need to strictly lock in a final token horizon. By incorporating tail averaging into the training loop, practitioners can safely evaluate intermediate checkpoints and continue training when unexpected data becomes available.
  • Optimize Batch Scaling for Tokens, Not Parameters: When scaling up compute clusters, cluster operators should scale batch sizes in response to extended token schedules rather than simply inflating batch sizes because a model has more parameters.
  • Leverage Batch Ramping with Adam: Rather than passively decaying learning rates to zero, practitioners using Adam can accelerate wall-clock completion times by 35% through structured batch-ramping regimes.
  • Tune Momentum Concurrently with Batch Size: Tuning momentum at a fixed batch size yields little benefit. Momentum must be paired with batch size scaling to exploit the expansion of the linear scaling regime.

Key Takeaways

  • Quadratic models provide sharp forecasts: Simple online linear regression models accurately predict non-convex transformer dynamics, avoiding the trap of overly loose upper bounds.
  • Anytime training is feasible: Constant or $1/\sqrt{T}$ learning rates paired with tail averaging allow a single model run to match optimal performance across diverse time horizons.
  • Batch size scaling favors tokens: Critical batch sizes scale strongly with token count but show weak dependence on model dimension.
  • Wall-clock acceleration is accessible: Adam-based batch ramping (the seesaw algorithm) delivers a 35% reduction in serial runtime with zero compute penalty.
  • Momentum extends parallelization: Heavy ball and Nesterov momentum do not reduce total FLOPs, but they widen the critical batch size window to speed up wall-clock time.
  • Taylor's theorem governs training: Globally linear and quadratic approximations track non-convex neural network training for substantial portions of the pretraining lifecycle.

About the Speaker(s)

Authors: Sham Kakade.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026