atlas

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

The Hyperfitting Phenomenon: Sharpening and Stabilizing LLMs for Open-Ended Text Generation

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 1 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.

Shows that overfitting pre-trained LLMs (and ImageGPT) to near-zero training loss on a tiny dataset ("hyperfitting") sharply improves greedy-decoding open-ended generation, as judged by humans and diversity metrics.

Problem

Greedy decoding from pre-trained LLMs produces repetitive, degenerate long-form text; existing fixes are sampling heuristics and repetition penalties, and the cause is poorly understood.

Approach

Fine-tune a pre-trained model with a small learning rate on about 2000 sequences for 20 epochs until training loss is near zero. This "hyperfitting" makes greedy decoding less repetitive and preferred by humans, even though validation perplexity worsens, and the sharpened low-entropy predictions are hypothesized to reflect top-rank encouragement.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Hyperform the pretrained model on a small Fiction-Stories datasetTinyLlama, DeepSeek, and Llama 3.1 · Open-ended text generation, 256 tokenshuman preference (%): 4.9 -> 34.3; 17.1 -> 45.2; 25.6 -> 42.9Helped
Hyperform the pretrained model on a small Fiction-Stories datasetTinyLlama, DeepSeek, and Llama 3.1 · Open-ended text generation, 256 tokensTTR: 17.0 -> 60.0; 32.2 -> 60.5; 34.5 -> 62.6Helped
Add citation blocking to the hyperfitted model (ablation)Hyperform models · Open-ended text generation, 256 tokenshuman preference (%): 34.3 -> 35.0; 45.2 -> 44.1; 42.9 -> 41.2No clear effect
Use News or Wikipedia rather than Fiction data for hyperfitting (ablation)Llama 3.1 (8 B) · 256-token human preference, Fiction/Wikipedia/Newsaverage human preference (%): 40.73 -> 66.37; 40.73 -> 50.87Helped
Hyperform on Fiction-Stories dataDeepSeek (7 B) and Llama 3.1 (8 B), base and Chat · MMLU 0-shotaccuracy: 46.4 -> 44.5; 65.4 -> 58.9; 51.5 -> 49.7; 68.5 -> 63.1Hurt
Hyperform TinyLlama with fewer Fiction training samples (ablation)TinyLlama · Greedy generation from 300 contextsTTRMixed
Shuffle the order of identical hyperfitting data (ablation)Llama 3.1 (8 B) Hyperfitted · Top-1 next-token predictionstop-1 prediction similarity: ~30% different top-1 predictionsHurt
Hyperform ImageGPT-Large on CIFAR-10 imagesImageGPT-Large · CIFAR-10 image generationimage qualityHelped
Hyperform on Fiction-Stories dataDeepSeek (7 B) and Llama 3.1 (8 B) · Held-out text next-token predictionsperplexity: 12.7 -> 94.7; 13.1 -> 103Hurt
Hyperform the model on a small datasetPretrained LLMs · Open-ended text generation, 256 tokenshuman preference versus Top-P decoding: TinyLlama: 34.3 vs 21.1; DeepSeek: 45.2 vs 35.6; Llama 3.1 (8 B): 42.9 vs 38.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: Fiction-Stories Wikipedia BBC News CIFAR-10 MMLU GLUE

Benchmarks: MMLU GLUE

Metrics: human preference ratio type-token ratio perplexity Self-BLEU dataset BLEU dataset overlap accuracy

Baselines: Top-P sampling original pre-trained models TinyLlama 1.1B Top-P DeepSeek 7B Top-P Llama 3.1 8B Top-P

Builds on: nucleus sampling grokking double descent

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