A Defense of the Quadratic Model

· Source: stat.ML updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Mathematics & Computational Sciences · Depth: Expert, extended

Summary

The quadratic model, a simplified optimization theory model, demonstrates surprising predictive power in Large Language Model (LLM) pretraining. Researchers stress-tested this model using a 150M parameter transformer trained on 3B FineWeb tokens. They found that Taylor expanding the model and loss function at intermediate checkpoints accurately predicts optimization dynamics for windows up to 10% of total training. Analysis of these local quadratic problems revealed structured Hessian spectra, with a head dominated by the 8192-token vocabulary unembedding layer and a universal power-law tail unaffected by batch size or Adam preconditioner. Furthermore, LLM optimization typically occurs at a stochastic edge of stability for small batch sizes and a deterministic edge for large batch sizes.

Key takeaway

For AI Scientists and Machine Learning Engineers optimizing LLM pretraining, understanding the local quadratic model's predictive power is crucial. You should consider using local Taylor expansions to analyze short-term training dynamics and diagnose stability issues. This approach allows for more principled adjustments to learning rates and batch sizes, especially when operating near the observed stochastic or deterministic edges of stability, potentially improving training efficiency and convergence.

Key insights

The quadratic model accurately predicts LLM optimization dynamics locally, offering a tractable proxy for pretraining analysis.

Principles

Method

Taylor expand the LLM and loss function at training checkpoints, then run preconditioned SGD on the resulting quadratic objective to predict dynamics and analyze stability.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by stat.ML updates on arXiv.org.