atlas

Research map / Large language models / Language, safety and interpretability

Non-Vacuous Generalization Bounds for Large Language Models

ICML 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives the first non-vacuous PAC-style compression generalization bounds for pretrained-from-scratch GPT-2 style LLMs on OpenWebText, using prediction smoothing for unbounded NLL, subsampled empirical risk, and a nonlinear SubLoRA parameterization.

Problem

Whether large language models generalize beyond their training data rather than memorizing it; existing PAC-Bayes and compression bounds are vacuous for LLMs because the NLL is unbounded, token predictions are not independent, and models have huge parameter counts.

Approach

Combine a finite-hypothesis compression bound (prior from code length) with prediction smoothing to bound the unbounded BPD, a subsampling bound to cheaply estimate empirical risk, and SubLoRA (LoRA applied to a random-subspace-projected parameter vector) to reach extreme compression while keeping expressivity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
combine LoRA with subspace compression rather than using LoRA alone (ablation)GPT-2 small · OpenWebText document-levelTop-1 Error Bound (%): 100 -> 96.41Helped
combine LoRA with subspace compression rather than using subspace training alone (ablation)GPT-2 small · OpenWebText document-levelTop-1 Error Bound (%): 96.52 -> 96.41Helped
combine LoRA with subspace compression rather than using LoRA alone (ablation)GPT-2 small · OpenWebText document-levelBits per Dimension Bound: 13.09 -> 12.12Helped
combine LoRA with subspace compression rather than using subspace training alone (ablation)GPT-2 small · OpenWebText document-levelBits per Dimension Bound: 14.59 -> 12.12Helped
increase GPT-2 model size from 124M to 354MSubLoRA · OpenWebText document-levelBits per Dimension Bound: 12.12 -> 11.96Helped
increase GPT-2 model size from 124M to 458MSubLoRA · OpenWebText document-levelBits per Dimension Bound: 12.12 -> 11.95Helped
increase GPT-2 model size from 124M to 773MSubLoRA · OpenWebText document-levelBits per Dimension Bound: 12.12 -> 12.10Helped
increase GPT-2 model size from 124M to 849MSubLoRA · OpenWebText document-levelBits per Dimension Bound: 12.12 -> 12.01Helped
shuffle token order within each training sequenceGPT-2 language model · OpenWebTextTop-1 Error BoundHurt
apply LoRA to other linear layers in addition to attention and the last linear layer (ablation)SubLoRA pretraining · OpenWebTextpretraining performanceNo clear effect
fine-tune pretrained rather than randomly initialized GPT-2 with SubLoRAGPT-2 · QQPError Bound (%): 71.72 -> 35.27Helped
fine-tune pretrained rather than randomly initialized GPT-2 with SubLoRAGPT-2 · CoLAError Bound (%): 53.42 -> 38.89Helped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText GLUE QQP GLUE CoLA

Benchmarks: OpenWebText GLUE QQP GLUE CoLA

Metrics: BPD generalization bound Top-1/Top-10/Top-100 error bound validation BPD validation NLL classification error bound

Baselines: LoRA only subspace training only original (uncompressed) model

Builds on: PAC-Bayes compression bounds (Lotfi et al. 2022) intrinsic dimension subspace training LoRA Solomonoff prior / Kolmogorov complexity bounds nanoGPT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy