On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse
Alkis Kalavasis, Anay Mehrotra, Grigoris Velegkas
TL;DR
This work formalizes the trade-off between hallucination (hallucinating invalid outputs) and mode collapse (limited breadth) in language generation within a Gold–Angluin inspired probabilistic framework. It introduces the generation error and breadth notions, and studies them for countable language collections under a membership oracle (MOP). The key results show a fundamental tension: for broad, practically relevant iterative generators (including next-token models), generation with breadth is impossible at any rate if the language collection is not identifiable in the limit; however, generation with breadth becomes achievable when negative examples are available, and universal exponential rates are possible for generation without breadth. The paper further analyzes relaxations like unambiguous generation and approximate breadth, proving strong impossibility results under stability and decidable MOP, while providing conditions under which exponential rates can be obtained using subset or positive/negative feedback, highlighting the potential of post-training feedback to mitigate hallucinations and reduce mode collapse in real-world systems.
Abstract
Specifying all desirable properties of a language model is challenging, but certain requirements seem essential. Given samples from an unknown language, the trained model should produce valid strings not seen in training and be expressive enough to capture the language's full richness. Otherwise, outputting invalid strings constitutes "hallucination," and failing to capture the full range leads to "mode collapse." We ask if a language model can meet both requirements. We investigate this within a statistical language generation setting building on Gold and Angluin. Here, the model receives random samples from a distribution over an unknown language K, which belongs to a possibly infinite collection of languages. The goal is to generate unseen strings from K. We say the model generates from K with consistency and breadth if, as training size increases, its output converges to all unseen strings in K. Kleinberg and Mullainathan [KM24] asked if consistency and breadth in language generation are possible. We answer this negatively: for a large class of language models, including next-token prediction models, this is impossible for most collections of candidate languages. This contrasts with [KM24]'s result, showing consistent generation without breadth is possible for any countable collection of languages. Our finding highlights that generation with breadth fundamentally differs from generation without breadth. As a byproduct, we establish near-tight bounds on the number of samples needed for generation with or without breadth. Finally, our results offer hope: consistent generation with breadth is achievable for any countable collection of languages when negative examples (strings outside K) are available alongside positive ones. This suggests that post-training feedback, which encodes negative examples, can be crucial in reducing hallucinations while limiting mode collapse.
