English

Compute-Optimal LLMs Provably Generalize Better With Scale

Machine Learning 2025-04-22 v1 Artificial Intelligence

Abstract

Why do larger language models generalize better? To investigate this question, we develop generalization bounds on the pretraining objective of large language models (LLMs) in the compute-optimal regime, as described by the Chinchilla scaling laws. We introduce a novel, fully empirical Freedman-type martingale concentration inequality that tightens existing bounds by accounting for the variance of the loss function. This generalization bound can be decomposed into three interpretable components: the number of parameters per token, the loss variance, and the quantization error at a fixed bitrate. As compute-optimal language models are scaled up, the number of parameters per data point remains constant; however, both the loss variance and the quantization error decrease, implying that larger models should have smaller generalization gaps. We examine why larger models tend to be more quantizable from an information theoretic perspective, showing that the rate at which they can integrate new information grows more slowly than their capacity on the compute-optimal frontier. From these findings we produce a scaling law for the generalization gap, with bounds that become predictably stronger with scale.

Keywords

Cite

@article{arxiv.2504.15208,
  title  = {Compute-Optimal LLMs Provably Generalize Better With Scale},
  author = {Marc Finzi and Sanyam Kapoor and Diego Granziol and Anming Gu and Christopher De Sa and J. Zico Kolter and Andrew Gordon Wilson},
  journal= {arXiv preprint arXiv:2504.15208},
  year   = {2025}
}

Comments

ICLR 2025

R2 v1 2026-06-28T23:05:58.973Z