The Hyperfitting Phenomenon: Sharpening and Stabilizing LLMs for Open-Ended Text Generation
Not on the map. Why?
Abstract (arXiv)
This paper introduces the counter-intuitive generalization results of overfitting pre-trained large language models (LLMs) on very small datasets. In the setting of open-ended text generation, it is well-documented that LLMs tend to generate repetitive and dull sequences, a phenomenon that is especially apparent when generating using greedy decoding. This issue persists even with state-of-the-art LLMs containing billions of parameters, trained via next-token prediction on large datasets. We find that by further fine-tuning these models to achieve a near-zero training loss on a small set of samples -- a process we refer to as hyperfitting -- the long-sequence generative capabilities are greatly enhanced. Greedy decoding with these Hyperfitted models even outperform Top-P sampling over long-sequences, both in terms of diversity and human preferences. This phenomenon extends to LLMs of various sizes, different domains, and even autoregressive image generation. We further find this phenomena to be distinctly different from that of Grokking and double descent. Surprisingly, our experiments indicate that hyperfitted models rarely fall into repeating sequences they were trained on, and even explicitly blocking these sequences results in high-quality output. All hyperfitted models produce extremely low-entropy predictions, often allocating nearly all probability to a single token.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 23 of its 27 references that are in the map. First posted on arXiv 5 Dec 2024.
Builds on
23 of 27 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2016Identity Mappings in Deep Residual Networkscited by 1,965
- 2016Understanding deep learning requires rethinking generalizationcited by 1,674
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
11 more
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
- 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 672
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2019Neural Text Generation with Unlikelihood Trainingcited by 503
- 2024The pitfalls of next-token predictioncited by 160
- 2022Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generationcited by 94
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
- 2021Language Model Evaluation Beyond Perplexitycited by 78
- 2023LatestEval: Addressing Data Contamination in Language Model Evaluation through Dynamic and Time-Sensitive Test Constructioncited by 58
Built on by
Citing papers per year: 2025: 4; 2026: 5.
9 papers.
- 2025Understanding the Repeat Curse in Large Language Models from a Feature Perspectivecited by 37
- 2025Rethinking Early Stopping: Refine, Then Calibratecited by 17
- 2025GUARD: Glocal Uncertainty-Aware Robust Decoding for Effective and Efficient Open-Ended Text Generationcited by 10
- 2025Towards Revealing the Effectiveness of Small-Scale Fine-tuning in R1-style Reinforcement Learningcited by 3
- 2026Quality-constrained Entropy Maximization Policy Optimization for LLM Diversitycited by 1
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansioncited by 1
- 2026The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corporacited by 1
- 2026Towards Human-Level Book-Writing Capabilitycited by 0
- 2026Forking: Sudden Overfitting Under Replaycited by 0
- 2026Forking: Sudden Overfitting Under Replay30 Sep 2026
- 2026The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corpora10 Aug 2026
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansion21 May 2026
- 2026Towards Human-Level Book-Writing Capability16 May 2026
- 2026Quality-constrained Entropy Maximization Policy Optimization for LLM Diversity11 Feb 2026
- 2025GUARD: Glocal Uncertainty-Aware Robust Decoding for Effective and Efficient Open-Ended Text Generation28 Aug 2025
- 2025Towards Revealing the Effectiveness of Small-Scale Fine-tuning in R1-style Reinforcement Learning23 May 2025
- 2025Understanding the Repeat Curse in Large Language Models from a Feature Perspective19 Apr 2025
- 2025Rethinking Early Stopping: Refine, Then Calibrate31 Jan 2025