atlas

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

Unlocking Tokens as Data Points for Generalization Bounds on Larger Language Models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 2 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 token-level, non-IID generalization bounds for LLMs via Azuma's inequality on martingale differences, and combines them with Monarch/Kronecker/LoRA parametrizations and QuIP post-training quantization to obtain non-vacuous BPD bounds for models up to LLaMA2-70B.

Problem

Compression-based generalization bounds for LLMs are computed at the document level with IID assumptions, so they are vacuous for billion-parameter models and only non-vacuous for heavily compressed models that generate low-quality text.

Approach

Treat each token (rather than each document) as a data point and use Azuma's inequality on the martingale difference sequence of token NLLs, so the complexity term is divided by the far larger token count and tolerates much less restrictive compression, including post-training quantization of pretrained models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use token-level prediction smoothing with a learned token-dependent alpha instead of a single global alphaToken-level generalization bounds · Token-level bound evaluationBPD boundHelped
Use Monarch matrices without subspace compression rather than SubLoRAGPT2 Small compression · OpenWebTextBPD bound: 10.49 -> 7.65Helped
Remove subspace compression from Kronecker factorization (ablation)GPT2 Small compression · OpenWebTextBPD bound: 10.02 -> 8.03Helped
Extend LoRA compression to all fully connected layers and train biases and layer normalization parametersGPT2 Small LoRA compression · OpenWebTextBPD bound: 10.49 -> 7.85Helped
Increase GPT2 model size from 124M to 774M with post-training quantizationGPT2 · OpenWebTextBPD bound: 7.61 -> 10.47Hurt
Increase LLaMA2 model size from 7B to 70B with 2-bit post-training QuIP quantizationLLaMA2 · AmberBPD bound: 4.28 -> 6.39Hurt
Fine-tune LLaMA2 for dialogueLLaMA2 · Amber, 2-bit quantizationBits per Dimension: 4.28 -> 4.54; 4.52 -> 4.77; 6.14 -> 6.40Hurt
Increase GPT2 context length from 1 to 2 tokens (ablation)GPT2-S-Quantized · OpenWebTextBPD bound: 11.1 -> 9.0Helped
Use GPT2 rather than a Markov chain with context length 4GPT2-S-Quantized · OpenWebTextBPD bound: 22.4 -> 7.9Helped
Apply more aggressive post-training quantization (ablation)GPT2 on structured versus random integer sequences · Structured and unstructured sequencesInteger prediction training accuracyMixed
Use token-level bounds instead of document-level boundsCompression-based LLM generalization bounds · LLM next-token predictionBound tightnessHelped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText Amber Observed Antibody Sequences (OAS) WebText-derived GPT2 zero-shot benchmarks

Benchmarks: OpenWebText BPD bound Amber BPD bound Top-1/10/100 error bounds OAS antibody bounds

Metrics: bits per dimension bound top-k error bound validation loss correlation with downstream accuracy and perplexity

Baselines: SubLoRA Random Guess GPT2 SubLoRA document-level bound (Lotfi et al.) Markov chains

Builds on: PAC-Bayes / finite hypothesis compression bounds SubLoRA QuIP QuIP# LoRA Azuma's inequality

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