Papers › Non-Vacuous Generalization Bounds for Large Language Models

Non-Vacuous Generalization Bounds for Large Language Models

28 Dec 2023arXiv:2312.17173archive 2025-07-28

Sanae Lotfi, Marc Finzi, Yilun Kuang, Tim G. J. Rudner, Micah Goldblum, Andrew Gordon Wilson

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2312.17173")

Code

Syntology Ran 13 of 38 code samples harvested from 1 repository linked to this paper; 25 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 3 ran · our draft was wrong; 7 ran with no contract checked.

By repository: official repository: 38 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sanaelotfi/sublora-bounds-for-llms officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

38 samples harvested; 13 ran; 1 honoured the contract we drafted; 25 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
3ran · our draft was wrong
7ran
25unverified

Licence: 0 of the 38 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sanaelotfi/sublora-bounds-for-llms. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

FixedNumpySeed sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran Apache-2.0 (permissive) · 42854ae0f684da62 · report
FixedPytorchSeed sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran Apache-2.0 (permissive) · 8e279895b6069a86 · report
IDModule sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 7358581cd466c4e1 · report
RandomMultiply sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran Apache-2.0 (permissive) · b066b14f9c37e272 · report
_AdjointLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 481607e48039c489 · report
_CustomLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 2defed82b8724ef8 · report
_TransposedLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · b8df645779d22d40 · report
_get_dtype sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · our draft was wrong Apache-2.0 (permissive) · b2835d9d07c679de · report
find_locations_from_condition sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · honoured contract Apache-2.0 (permissive) · 5b9d2e9ed76b6318 · report
isintlike sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 0a7da0d18ce0c2fc · report
isshape sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 73c2f05a719caea9 · report
lazy_direct_matmat sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 0a857f86a88fb98e · report
unflatten_like sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 6d8daee3396e21d5 · report
CombinedRDKronFiLM sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · efb07aa0e63ef262 · report
CombinedRDKronQRFiLM sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 51125dd47186c8c0 · report
ConcatLazy sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 52a62393f3317699 · report
FastfoodOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 84ad10dc772efc21 · report
FiLMLazyRandom sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 612604e0a472123c · report
FilterLazyRandom sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 5a5b19e77dff59f3 · report
Lazy sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 03f63f2c2e1eb7bf · report
LazyDirectSum sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · d032cccffcb09566 · report
LazyKron sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 6d76cc862148b017 · report
LazyOneSidedKron sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 0a1f5eeb87655050 · report
LazyPerm sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 2da9befbc32d12d6 · report
LazyRandom sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · cbbd3e437d786806 · report
LazyRandomQR sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 39aba651b25adab7 · report
LazySTFiLMRDKronQR sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 0df6eef43ed7804a · report
RoundedDoubleKron sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 03dfe475ed6ca9b6 · report
RoundedDoubleKronQR sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · ef5b20cc2c4467b6 · report
RoundedKron sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 5d5797a72d977dae · report
SparseOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · c55ed0bc145c418e · report
_PowerLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 37d7ee47abf3dfc2 · report
_ProductLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 5bba23ce771d6766 · report
_ScaledLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 2c0692af09e2ca02 · report
_SumLinearOperator sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · 84b3ddf47d348630 · report
_delchainattr sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · cd1b260fe7f1ec38 · report
_setchainattr sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · d4ac8e1ac6ef5038 · report
create_intrinsic_model sanaelotfi/sublora-bounds-for-llms/sublora/nn/projectors.py official repository unverified Apache-2.0 (permissive) · d63815907fd184b0 · report

Tasks

Generalization Bounds

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections