Non-Vacuous Generalization Bounds for Large Language Models

Sanae Lotfi, Marc Finzi, Yilun Kuang, Tim G. J. Rudner, Micah Goldblum +1 more
2/12/2026

No official code found. Best implementation: Sanaelotfi/sublora-bounds-for-llms (13 stars, Apache-2.0, last commit 2024-06-04).

Abstract

Modern language models can contain billions of parameters, raising the question of whether they can generalize beyond the training data or simply parrot their training corpora. We provide the first non-vacuous generalization bounds for pretrained large language models (LLMs), indicating that language models are capable of discovering regularities that generalize to unseen data. In particular, we derive a compression bound that is valid for the unbounded log-likelihood loss using prediction smoothing, and we extend the bound to handle subsampling, accelerating bound computation by orders of magnitude on massive datasets. To achieve the extreme level of compression required for non-vacuous bounds, we devise SubLoRA, a simple low-dimensional nonlinear parameterization that leads to non-vacuous generalization bounds for models with nearly a billion parameters. Finally, we use our bounds to understand LLM generalization and find that larger models have better generalization bounds and are more compressible than smaller models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Computing compression-based generalization bounds for LLMs using SubLoRA

133PythonJun 4, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{lotfi2026nonvacuous,
  title  = {Non-Vacuous Generalization Bounds for Large Language Models},
  author = {Sanae Lotfi and Marc Finzi and Yilun Kuang and Tim G. J. Rudner and Micah Goldblum and Andrew Gordon Wilson},
  year   = {2026},
  eprint = {2312.17173},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.17173},
  journal = {ICML 2023 2023}
}

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/2312.17173.svg)](https://codeofpaper.com/paper/2312.17173)

Discussion