Compute-Optimal LLMs Provably Generalize Better with Scale

Marc Finzi, Sanyam Kapoor, Diego Granziol, Anming Gu, Christopher De Sa +2 more
2/12/2026

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{finzi2026computeoptimal,
  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. Kolter and Andrew Gordon Wilson},
  year   = {2026},
  eprint = {2504.15208},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2504.15208},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.15208.svg)](https://codeofpaper.com/paper/2504.15208)

Discussion