Theoretical Limits of Language Generation: Hallucination vs. Breadth

Introduction and Preliminaries

Large Language Models (LLMs) have achieved remarkable success in generating human-like text, but they often face fundamental trade-offs between factual consistency and diversity of output. Two common failure modes are hallucination – producing outputs that are invalid or unfaithful to the source – and mode collapse – producing only a narrow set of safe or repetitive outputs, failing to capture the full diversity of valid responses. Recent theoretical work has formalized these notions in the context of language generation and proven fundamental limits on simultaneously avoiding hallucinations and mode collapse. In particular, three papers provide a rigorous foundation for understanding these issues:

  • Kleinberg & Mullainathan (2024): “Language Generation in the Limit.” Introduces a formal model of generation and shows that, in the limit of infinite data, an algorithm can learn to produce new valid strings without ever identifying the exact target language ([2404.06757] Language Generation in the Limit). This demonstrates that consistent generation (no hallucinations eventually) is possible in general, but does not guarantee full diversity of outputs.
  • Kalavasis, Mehrotra & Velegkas (2024a): “On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse.” Proves an impossibility theorem that no broad class of generative models (including next-token predictors) can simultaneously be consistent (asymptotically zero hallucinations) and achieve breadth (covering all valid outputs) for most language classes ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). They provide sample-complexity bounds and show this trade-off can only be overcome by incorporating negative examples (feedback about invalid outputs).
  • Kalavasis, Mehrotra & Velegkas (2024b): “Characterizations of Language Generation With Breadth.” Extends the theoretical framework by distinguishing exact breadth vs. approximate breadth and fully characterizing when each is achievable. They prove that generating with full breadth is possible if and only if the class of languages is identifiable in the limit (Angluin’s condition). Weaker conditions suffice for approximate breadth. This ties the generation problem to classical results in formal language learning.

Before diving into each paper’s contributions, we formalize key definitions common to all:

Intuitively, consistency is about avoiding false outputs (no hallucinations), while breadth is about achieving complete generalization (no mode collapse). Achieving both is challenging: if a model plays it safe (to avoid hallucinations), it might refrain from generating novel strings (collapsing to a subset of ); if it aggressively generates novel patterns, it risks venturing outside . We now examine how the three papers rigorously explore this dilemma using formal mathematics and probability theory.

1. Language Generation in the Limit (Kleinberg & Mullainathan, 2024)

Problem Setup: Kleinberg and Mullainathan introduce a simple but powerful theoretical model for language generation ([2404.06757] Language Generation in the Limit). Consider a countable collection of candidate languages , each being a set of strings (the languages may be infinite). There is an unknown target language which the model needs to generate from. The model is given access to training examples from : specifically, an adversary reveals strings from one by one (an enumeration of ). After seeing samples, the model outputs a new string as its guess of an unseen string in . This game continues indefinitely. The key definition is:

Generation in the Limit: An algorithm (generator) generates from in the limit if there exists some finite step such that for all , every output produced by is an element of that had not been seen in the training samples so far. In other words, beyond some point, outputs only new strings from the target language and never hallucinates ([2404.06757] Language Generation in the Limit).

This definition captures eventual consistency (after , no outputs outside ) and a weak form of breadth (the outputs are new strings not seen before, so is not just repeating the training data). However, it does not require that all strings of be generated – only that the algorithm keeps producing some valid new strings indefinitely. Essentially, the generator must have infinite coverage of (infinitely many distinct outputs from over time), but it need not enumerate exhaustively.

Main Result: Surprisingly, Kleinberg & Mullainathan prove that under this minimal criterion, language generation is always possible regardless of how complex the language class is. Formally:

Theorem (Kleinberg & Mullainathan, 2024) ([2404.06757] Language Generation in the Limit): For any countable collection of candidate languages (each possibly infinite), there exists a generating algorithm such that for any target language and for any enumeration of , generates from in the limit. In other words, consistent generation (eventual exclusion of invalid strings) with infinite coverage is achievable for every countable class of languages ([2404.06757] Language Generation in the Limit).

This result is remarkable because classic results in formal language learning (Gold, 1967; Angluin, 1980) showed that identifying an unknown language from positive examples is, in general, impossible for broad classes (for example, the class of all infinite languages is not learnable from only positive data) ([2404.06757] Language Generation in the Limit). Here, however, the goal is relaxed: we do not require the algorithm to identify exactly; it only needs to generate new examples from . The theorem above starkly contrasts with Gold’s negative results: it demonstrates a separation between identification and generation ([2404.06757] Language Generation in the Limit). Intuitively, even if the model never fully learns which language is, it can still cautiously output strings that are very likely in without risking hallucination.

Construction and Insight: How can one generate new strings from without knowing fully? The constructive idea behind the proof is to output strings that are safe bets given the data observed so far. One way to achieve this is as follows: at any time , consider the set of all languages in that remain consistent with the samples seen (, where are the samples seen). The true language is in . Now take some string that is in the intersection of all languages in . Such a is guaranteed to lie in (because every candidate consistent with the data contains ) – so can be safely output with no risk of hallucination. By choosing a new such at each step that hasn’t been seen before, the algorithm will never output an invalid string. Of course, this procedure requires that the intersection of all remaining candidate languages still contains some unseen string . For very large classes , might have an empty intersection (candidates may disagree on all unseen strings). Kleinberg and Mullainathan show, however, that one can design the learning strategy in a clever way to guarantee infinitely many safe outputs. The details involve a careful diagonalization argument ensuring that for every possible target language, eventually the algorithm finds some string to output that that language must contain. Importantly, their construction does not worry about efficiency or computational tractability (the algorithm can be non-computable in the worst case). It is an information-theoretic existence proof that sidesteps the need for full identification.

Implications: The K&M result establishes an optimistic baseline: in theory, lack of negative evidence (only seeing positive examples) does not prevent a learning agent from generating infinitely many correct novel outputs. This provides hope that an LLM can generalize to new examples without explicit instruction for each one. The caveat, however, is that the agent in this theorem might be extremely conservative – it might output only very obvious strings that all candidate languages share, which could be a very small subset of . Indeed, the algorithm may avoid many valid strings that are plausible but not certain, thereby sacrificing breadth to maintain consistency. Kleinberg & Mullainathan explicitly left open the question: can an algorithm achieve both consistency and breadth, i.e. eventually generate all strings from ? This question is answered negatively by the next paper.

2. Impossibility of Consistency and Breadth (Kalavasis, Mehrotra & Velegkas, 2024a)

Kalavasis et al. build directly on the framework above, but now demand the stronger criterion that the generator eventually covers the entire target language (full breadth) in addition to being hallucination-free. They formalize the combined requirement as follows:

Consistency and Breadth (exact) ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse): A generating algorithm generates from with consistency and breadth if as the number of training samples grows, (i) produces no hallucinations (its support is a subset of for large ), and (ii) eventually can produce every string in that was not in the training set. Equivalently, there is some such that for all , the support of on new outputs satisfies . In words, beyond some point the model’s outputs (together with the seen samples) cover the entire target language .

This is a stringent requirement: the generator must not only avoid errors, but also not “get stuck” producing a limited subset. It must eventually learn to output all unseen valid strings. As we suspected from the K&M result, this is much harder. The main theorem of Kalavasis et al. (2024a) establishes that, in general, this is impossible without further assumptions:

Impossibility Theorem (Kalavasis et al. 2024a) ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse): For a broad class of learning algorithms – including standard next-token prediction models and any passive learning scheme using only positive examples – there exist target language collections for which no algorithm can achieve both consistency and breadth. In fact, for “most” non-trivial collections of candidate languages, it is impossible to have a generator that eventually outputs only strings from and covers all of . This stands in contrast to the consistency-without-breadth scenario, which is always possible for countable classes ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse).

In essence, if the class of languages is non-identifiable (in a sense we clarify shortly), any generative model trained only on positive examples will face an inherent trade-off: it either hallucinates (outputs strings not in ) or mode-collapses (fails to produce some strings in ). There is no way to guarantee both properties simultaneously.

Proof Sketch and Key Insight: The proof leverages classic results from formal language learning (Angluin’s theorem) to pinpoint when identification – and thus full breadth generation – is impossible. At a high level, if one could achieve consistency + breadth, one would essentially have identified the language perfectly: since the generator eventually produces all strings of and no others, one could determine whether any candidate string is in by simply waiting for the generator to produce it. If never appears in the output (despite the generator outputting everything in ), that would indicate . Thus, a successful generator with breadth can serve as a decision oracle for membership in . Formally, Kalavasis et al. show that a generator with consistency & breadth would make the membership problem (deciding ) decidable for the target language in the limit ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). Consequently, the existence of such a generator for every language in a collection would imply that is “learnable” in a strong sense (each language has a finite distinguishing test set, etc.). If lacks that property, a contradiction arises.

A simple illustrative example of the impossibility is instructive: suppose the candidate class has two possible languages,

where is some infinite set of strings and is one additional string. Intuitively, and differ only on the presence of one string . Now imagine we train on some samples from the true language (which is either or , but we don’t know which). If the sample data does not include (quite possible, since is just one string), then from the positive data alone, and are indistinguishable. A generator that never outputs might be correct if (since truly isn’t in the language), but if the true language was , then failing to output means it never achieves full breadth. Conversely, a generator that eventually outputs (to cover the possibility of ) will horribly hallucinate if the true language was . There is no strategy that avoids one of these mistakes. This example is a manifestation of Angluin’s famous result: if two languages in the class differ by only finitely many strings, no amount of positive-only evidence can ever conclusively distinguish them. The collection does not satisfy the condition needed for identification in the limit (Angluin’s finite tell-tale condition), hence a trade-off is inevitable. Kalavasis et al. generalize this argument: whenever the class fails Angluin’s criterion (informally, the languages are “too hard to tell apart” with positive data alone), a generator cannot be both consistent and broad ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse).

In formal terms, Angluin (1980) proved that a countable class is identifiable from positive examples iff each language has a finite characteristic set that no other language in contains. Kalavasis et al. show that this same condition essentially governs the feasibility of exact breadth generation. If the condition fails (the class is “non-identifiable”), then for any would-be generator there will be some target language and some adversarial sequence of training samples that forces the generator into either a hallucination or a missed output. Thus, consistent full-breadth generation is unachievable for most complex language classes, such as the class of all regular languages or all recursively enumerable languages.

Learning Rates and Sample Complexity: Beyond the qualitative impossibility, the authors derive near-tight bounds on how many samples are needed when generation is possible ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). In the “easy” case (identifiable classes where breadth is achievable), they show the number of samples needed to approach zero error probability (on both validity and coverage) grows about as fast as the distinguishing features of the language appear. In fact, their analysis indicates an exponential convergence rate: the probability that the generator still misses a particular valid string or produces an invalid one decays exponentially with under appropriate learning algorithms ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). This is because each new sample has some independent chance of revealing a previously unseen crucial element (a tell-tale string), so the chance of not seeing it after samples falls off exponentially. They provide matching lower bounds showing this rate is essentially optimal – in the worst case, the model might indeed need to see on the order of samples to confidently include a rare string in its output. Conversely, in the hard (non-identifiable) case, no finite can eliminate error: there will always remain an irreducible uncertainty leading to either a hallucination risk or incomplete coverage. In such cases the error (say, the probability of a hallucinated output) may plateau at a non-zero value even as if the model is forced to make a choice. This aligns with empirical observations that purely likelihood-trained LMs cannot simultaneously achieve high precision and high recall in generation tasks – there is a Pareto frontier rather than a single optimum.

Overcoming the Impossibility – Negative Examples: Importantly, Kalavasis et al. (2024a) don’t stop at the negative result. They ask: What additional information would allow us to achieve consistency _and breadth? The answer they find is intuitive: negative evidence. If the model can ever learn that a certain string is _not in , this breaks the symmetric uncertainty and allows full identification. In practice, negative evidence could come as explicit negative examples (labeled “this string is not in the language”) or implicit feedback signals. Formally, they show:

Theorem (with Negative Examples) ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse): If the learning algorithm has access to both positive and negative examples of the target language (i.e. it occasionally is given or can query strings outside ), then for any countable collection of languages, there exists a generator that achieves consistent generation with breadth. In other words, with negative examples available, the impossibility is overcome ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse).

This result is powerful – it says that no matter how complex is, if you provide enough information (including what not to do), the learner can eventually produce all and only strings from the target language. Negative examples essentially implement an oracle that can tell the learner when it is about to hallucinate. In the earlier example of vs , a single negative example “ is not in ” would immediately tell the model the true language is , or conversely seeing as a positive example tells it is the case. With such feedback, the model can safely output only in the correct scenario.

Kalavasis et al. suggest that in practical LLM training, techniques like human feedback or fact-checking serve the role of providing implicit negative examples ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). For instance, reinforcement learning from human feedback (RLHF) can be seen as telling the model which outputs are undesirable (hallucinations, toxic responses, etc.), thereby giving it clues about what lies outside the target distribution of “acceptable outputs.” Their theory indicates that such feedback can be crucial for eliminating hallucinations while preserving a broad, expressive output distribution ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). Without feedback, a model might only achieve one of the two: either erring on the side of caution (mode collapse) or being creative but error-prone (hallucinations).

In summary, “On the Limits of Language Generation” establishes a fundamental limit: with only passive learning from positive data, perfect generalization is generally unattainable – one must choose between occasional hallucinations or incomplete coverage. However, by incorporating additional information (negative data), this barrier can be broken. The work thus formalizes the intuition that purely self-supervised LLMs will inevitably make some mistakes (especially on ambiguous, one-off cases) and that active feedback is needed to fully align them. They also quantitatively characterize learning curves, showing consistency error can drop rapidly with data in favorable cases. These findings lay the groundwork for a deeper theoretical understanding, which the authors extend in their follow-up paper discussed next.

3. Characterizations of Generation with Breadth (Kalavasis, Mehrotra & Velegkas, 2024b)

In their second paper, Kalavasis et al. provide a comprehensive theoretical characterization of all possible regimes of language generation with regard to hallucination and breadth. They introduce refined definitions to capture gradations of the breadth requirement and then give necessary and sufficient conditions for each regime. The upshot is a complete taxonomy connecting learning-theoretic conditions (like Angluin’s identifiability) to what a generator can achieve. We summarize the key definitions and results:

Refined Notions of Breadth: In addition to exact breadth (as defined earlier, eventually producing all elements of ), they define approximate breadth and relate it to a notion introduced by Charikar & Pabbaraju (2024) called exhaustive generation:

  • Exact Breadth: . After some point, no element of remains missing from the generator’s outputs ([Revue de papier] Characterizations of Language Generation With Breadth).- Approximate Breadth: The generator eventually produces almost all elements of , potentially missing only a finite number of strings ([Revue de papier] Characterizations of Language Generation With Breadth) ([Revue de papier] Characterizations of Language Generation With Breadth). Equivalently, for some , for all , is a finite set. This means the generator might never output a few rare strings from , but outputs all others. This relaxed criterion tolerates finitely many “holes” in coverage.
  • Exhaustive Generation: A notion from Charikar & Pabbaraju (2024) closely related to exact breadth. It formalizes that the sequence of outputs of the generator, across rounds, enumerates the entire language (allowing possibly some hallucinations early on, but not infinitely many). In essence, exhaustive generation means every string in will eventually appear as an output at some point, and strings outside appear only finitely many times (no infinite hallucination rate).
  • Unambiguous Generation: Introduced in Kalavasis et al. (2024a) and refined here, this means the generator’s output distribution eventually becomes concentrated on in a way that distinguishes from any other language in the class. Formally, converges in distribution to something that has support exactly and assigns zero probability to strings not in (no hallucination) – thus the output distribution could be used to identify uniquely (hence “unambiguous”). Unambiguous generation turns out to be equivalent to exact breadth in these contexts.

With these definitions, Kalavasis et al. (2024b) present a trichotomy (Main Theorem 1) that summarizes which conditions on the language class allow which level of breadth. Paraphrasing their Main Theorem 1:

  1. Zero-Breadth Case (Infinite Coverage only): For any countable class , just achieving infinite coverage (some new outputs forever, but possibly missing infinitely many strings) is always possible. In fact, they show this is equivalent to the baseline generation in the limit of K&M. No special condition on is needed (any countable works). This reiterates K&M’s result: consistent generation without breadth is always achievable ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse).
  2. Approximate Breadth Case: Achieving approximate breadth (all but finitely many outputs eventually) is possible if and only if satisfies a weak Angluin condition. This weak condition is a slight relaxation of Angluin’s finite tell-tale condition – intuitively, each language must still be distinguishable, but perhaps by an infinite witness set instead of a finite one. The paper provides a precise definition of this Weak Angluin’s Condition. When this condition holds, there exists a generating algorithm that achieves consistency and approximate breadth (and even exhaustive generation in the sense of enumerating with only finitely many errors). Conversely, if the condition fails, no generator can achieve approximate breadth without hallucination. In terms of oracles: even with membership queries (asking if a given string is in ) alone, approximate breadth might be unachievable unless the class has this property. Essentially, weak Angluin’s condition is the exact threshold for eliminating infinite mode collapse – it allows only a finite gap in coverage.
  3. Exact Breadth (and Unambiguous Generation) Case: Achieving full, exact breadth (and equivalently unambiguous generation and identification of ) is possible if and only if satisfies the classical Angluin’s Condition. This is a strong condition requiring each language to have a finite distinguishing set (a tell-tale set) not contained in any other language in the class. If this holds, an algorithm can identify the language after seeing those tell-tale strings and then output everything in (clearly, consistency and breadth follow). If it fails, as we saw, exact breadth is impossible. This item of the theorem thus formally equates “generation with exact breadth” to “identification in the limit”. Moreover, it shows unambiguous generation (no confusion in output distribution) is equivalent to these, reinforcing that producing all of without error means the learner has effectively learned .

To summarize in simpler terms: there is a hierarchy of learnability conditions matching the hierarchy of breadth requirements. Any countable class allows infinite coverage (the weakest breadth) with no condition. A weaker version of Angluin’s criterion characterizes those classes where you can almost cover the language (missing finitely many). And the full Angluin condition characterizes classes where you can completely cover the language. This trichotomy elegantly generalizes the prior paper’s findings: case (3) corresponds to the scenario where the impossibility theorem doesn’t apply (identifiable classes), case (2) is an intermediate scenario of “nearly complete” generation, and case (1) is the general scenario of only consistency.

Kalavasis et al. provide constructive proofs for each positive direction, often by designing algorithms with access to certain oracles (e.g. membership or subset queries). For instance, for approximate breadth they give an algorithm that uses membership and subset queries to generate exhaustively when the weak Angluin condition holds. Interestingly, they note that Kleinberg & Mullainathan’s original algorithm essentially achieves infinite coverage and can be seen as using only membership queries. To achieve the stronger breadth notions, one needs more power (like a tell-tale oracle or subset comparisons) to pinpoint the subtle differences between languages. This aligns with the intuition that to enumerate fully, the algorithm must effectively learn the boundary of , which requires stronger queries or assumptions.

They also explore a variant where the generator is required to be stable – meaning after some point it stops changing its behavior (its output distribution converges). Under stability, the requirements for approximate breadth become even stricter (essentially collapsing case (2) into case (3)), indicating that a continuously evolving strategy (like K&M’s approach, which never stops learning) can achieve more breadth than one that locks in its hypothesis too early. In practice, an LLM might not be strictly stable since it can always refine outputs with more data or context, which is good news according to this result: an evolving model can get arbitrarily close to full breadth if the task allows, whereas a static model would face harsher limits.

Conclusion of Theoretical Framework: The second paper thus completes the theoretical picture: it tells us exactly which assumptions are needed for an ideal generator to avoid both hallucination and mode collapse, and what the consequences are if those assumptions are absent. In short:

  • If the task (language class) is simple enough to be learnable from positives (satisfies Angluin’s condition), then in principle an LLM can eventually become perfectly calibrated – no hallucinations and no omissions.
  • If the task just fails the strict identifiability but meets the weaker condition, an LLM can get arbitrarily close to full coverage, with only a finite number of stray valid strings it never emits (perhaps extremely obscure ones). In this regime, one might never notice mode collapse except for some edge cases.
  • If even the weak condition fails (complex open-ended tasks), then any LLM will either sometimes say something invalid or forever miss some valid possibilities. There is an inherent incompleteness without further information.

The authors note that these results were concurrent with similar findings by Charikar & Pabbaraju (2024), who introduced exhaustive generation and also showed a negative result for it, aligning with the “weak Angluin” threshold for approximate breadth. The convergence of these independent works adds confidence to the theory’s correctness.

4. Broader Implications for LLMs: Hallucination, Calibration, and Generalization

These theoretical results, while framed in terms of abstract formal languages, carry important insights for real large language models and their limitations:

4.1 Hallucination as an Inevitable Trade-off

The impossibility result formalizes the notion that some degree of hallucination is statistically unavoidable for very broad language tasks. An LLM trained purely to imitate text from a distribution cannot know for sure which statements are valid if the training data doesn’t provide explicit disconfirmation. This aligns with the recent findings of Kalai and Vempala (2024), who showed that even an ideal calibrated language model must hallucinate certain facts at a small rate ([2311.14648] Calibrated Language Models Must Hallucinate). In their analysis, if a “fact” (e.g. a piece of world knowledge) appears only once in training, a well-calibrated model will assign it limited probability and sometimes produce an alternative (incorrect) output, effectively hallucinating. They prove that the probability a calibrated LM hallucinates an “arbitrary fact” is roughly equal to the fraction of facts in training that occurred only once ([2311.14648] Calibrated Language Models Must Hallucinate). This is a startling quantitative confirmation: if, say, 5% of facts were singleton occurrences, then ~5% of the time the model will assert a falsehood when asked about a random fact, no matter how powerful the architecture, unless additional signals beyond the raw text are provided. Our theoretical discussion explains why: those singleton facts are indistinguishable from a scenario where they might not hold at all (just like the string in our earlier example). Without negative evidence or multiple confirmations, the model cannot be certain and will sometimes err. Indeed, hallucination is the price of open-ended generalization under uncertainty ([2311.14648] Calibrated Language Models Must Hallucinate) ([2311.14648] Calibrated Language Models Must Hallucinate).

On the other hand, Kalai & Vempala note that facts which appear multiple times (e.g. well-documented knowledge or systematic rules like arithmetic) need not be hallucinated by a properly trained model ([2311.14648] Calibrated Language Models Must Hallucinate). This resonates with Kalavasis et al.’s finding that when a language class has “repeating evidence” (satisfies learnability conditions), a model can eventually eliminate hallucinations. Thus, not all hallucinations are equal: some are fundamentally harder to avoid (those stemming from one-off, ambiguous training evidence) while others can be driven to zero with sufficient learning. Practically, this suggests focusing on providing models with multiple independent sources for important facts (via larger diverse corpora or retrieval augmentation) to reduce the fraction of one-shot data points – thereby decreasing the inherent hallucination rate.

4.2 Mode Collapse, Diversity, and Creative Generalization

Mode collapse in the context of LLMs often manifests as repetitive or overly conservative outputs. The theoretical trade-off implies that if we push models to avoid mistakes at all costs, they may end up in a collapsed mode (e.g. always responding “I’m sorry, I don’t know” or repeating template answers). Empirically, this is observed when using decoding strategies like low-temperature sampling or beam search: the outputs become high-probability but dull and sometimes looped (a known issue termed Neural Text Degeneration ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse)). Holtzman et al. (2020) found that maximizing likelihood during decoding leads to generic repetitions – essentially a form of mode collapse – and one must use methods like nucleus sampling to inject diversity at the expense of occasionally lower-probability (and potentially less factual) words. Our formal discussion explains that phenomenon: a deterministic high-probability decoder is akin to an algorithm trying to be overly consistent (never deviate from the training distribution’s top mode), which sacrifices breadth. Introducing randomness (or a broader search) allows the model to explore more of ’s support, but if done injudiciously, it may include invalid sequences (hallucinations). There is a principled balance to strike in decoding.

Furthermore, the condition for approximate breadth being weaker than for exact breadth suggests that even if a model cannot guarantee complete diversity, it might still achieve a strong form of it – covering everything except perhaps some extremely rare outputs. In practice, LLMs do often have blind spots: certain valid inputs or dialects of language they never produce simply because those were absent or exceedingly rare in training. For instance, a language model might never generate valid sentences in a minority language if it saw almost none in training (mode collapse on the dominant languages). To address this, one could either supply negative feedback when it fails to use those (if we expect it to) or better, supply positive examples of those modes in training to satisfy the identifiability condition for that mode.

Interestingly, RLHF (reinforcement learning from human feedback), which is widely used to align LLMs like ChatGPT, tends to make the model outputs more constrained – often prioritizing safe, in-distribution responses. Users have noticed that aligned models can be more formulaic or refuse queries more often (which is a reduction in breadth of behavior). This is arguably an intentional introduction of a bit of mode collapse to eliminate harmful or hallucinated outputs. The theory tells us this is expected: if we strongly penalize every hallucination via feedback (negative examples), we enable the model to avoid those, but if the feedback is not equally encouraging all forms of correct output, the model may retreat to a subset of easiest acceptable answers. Designing feedback to broaden the model (cover all correct modes) while narrowing out only the truly incorrect modes is challenging – it essentially requires telling the model exactly what not to do (negative examples) without inadvertently telling it to also avoid some valid but less common behaviors. An ideal feedback regime would simulate the tell-tale oracle: precisely indicate the boundaries of the target behavior.

4.3 Calibration and Selective Generation

Another practical implication is the value of calibration – having the model know when it might be wrong. If a model can internally estimate its uncertainty about a query, it could choose not to answer (or defer to a human or tool) when it is likely to hallucinate. This is akin to allowing the model to exhibit mode collapse on uncertain inputs while being broad on inputs it is confident about. Techniques like selective prediction or abstention can indeed drastically reduce observed hallucination rates: e.g. a question-answering system that says “I don’t know” for questions it’s unsure about will make fewer factual errors (hallucinations), at the cost of not answering every question. This is effectively moving from exact breadth (answer everything) towards approximate breadth (answer most, skip a few hard ones) in order to ensure consistency. Our theoretical framework supports this trade-off: by allowing a finite (or bounded) set of missing outputs (those the model refuses to produce), one can avoid incorrect outputs on those cases. If we treat refusals as not generating certain elements (the answers that should have been given), that’s acceptable under approximate breadth – and approximate breadth is strictly easier to achieve than exact. In fact, the weak Angluin condition might be met in many realistic scenarios if we permit a small set of extremely tricky corner cases to remain unanswered.

However, as Kalai & Vempala warn, a model that is perfectly calibrated to its training distribution will necessarily have a certain hallucination rate ([2311.14648] Calibrated Language Models Must Hallucinate). So even knowing its own uncertainty doesn’t completely remove the problem – it just localizes it to those uncertain cases. In practice, we see that large models often overestimate their knowledge (they can be overconfident in wrong answers). Calibration research aims to fix that such that the model’s probability outputs truly reflect correctness likelihood. Better calibrated models might say “I’m not sure” more often on tough queries, which is good for honesty. But if we then force them to answer anyway (to achieve breadth), they will sometimes hallucinate, exactly in line with the theoretical lower bound. Thus, one can either have a model that is honest about uncertainty (and hence must sometimes refuse or hedge – a form of partial mode collapse), or one that attempts everything (and inevitably hallucinates occasionally). This is essentially a precision-recall trade-off viewed through the lens of calibration (Tackling AI Hallucinations in LLM Apps | by Denis Kazakov).

4.4 Generalization vs. Memorization

The idea that generating novel strings without error might require identifying the target language draws a parallel to generalization vs. memorization in LLMs. A model that only memorizes and regurgitates seen training strings will never hallucinate (it only says what it has seen, all of which are “valid” by definition), but it obviously has zero breadth (no generalization). On the flip side, a model that truly generalizes (creates new combinations or infers unseen facts) is at risk of stepping outside the lines. The theory shows that true generalization (especially extrapolation beyond the support of training data) demands learning the underlying rules or patterns of the language. In contexts like programming, this might mean learning the grammar; in factual QA, it means learning the real facts or constraints of the domain. If an LLM has enough data to infer those rules (e.g. Angluin’s condition holds because it has seen representative examples of all key constructs), then it can generalize new correct samples reliably. But if not, any new generation is essentially a guess. This ties into the observation that current LLMs, while good at interpolating within the distribution of text they saw, struggle with out-of-distribution generalization – for example, making logical inferences that were never explicitly stated in training. Such inferences are akin to producing a string that is in the true language (say the set of all logically entailed conclusions) but which the model had no direct evidence for. Without a mechanism to verify that inference (like a logic engine or negative training signal if it’s wrong), the model might hallucinate a false inference.

The requirement of negative examples for full generalization resonates with the concept of active learning or interaction. In human terms, to fully master a domain, one typically needs not just to passively read positive examples, but also to test hypotheses and receive corrections (negative feedback). LLMs trained by self-supervision get a vast amount of positive data (what humans have said), but rarely get told what is not true or not grammatical, except indirectly (and the internet does have counterarguments and corrections, which might serve as a kind of implicit negative data in some cases). Methods like fact-checking with a search engine or query-answering with tools can be seen as providing the model an active channel to eliminate hallucinations by checking if a candidate output is supported or contradicted. These correspond to giving the model an additional oracle (e.g. a knowledge base query = membership query for facts). Indeed, retrieval-augmented generation (RAG) can significantly reduce hallucinations because the model only generates text that it can back up with retrieved documents, effectively constraining it to the intersection of language fluency and verifiable truth. In our framework, that intersection is analogous to K&M’s safe output intersection – it’s smaller than the full set of true statements perhaps, but it’s a set we are confident is correct.

4.5 Comparing the Arguments

To synthesize the lessons from the three papers: Kleinberg & Mullainathan showed a constructive possibility result – even without identifying everything, you can get the ball rolling on generation. Kalavasis et al. (a) then showed a limitation: that construct can never give you everything, except in trivial or augmented cases. They also quantified how additional info helps. Finally, Kalavasis et al. (b) provided a complete map of the landscape, confirming that the intuitions from (a) align with classical learnability conditions.

One difference in perspective is worth noting: K&M considered an adversarial enumeration of training data (the worst-case order), whereas Kalavasis et al. often consider a statistical setting (random i.i.d. samples from a distribution on ) when talking about sample complexity ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). In worst-case order, an adversary can always withhold a crucial example until very late, forcing an algorithm into error; this is essentially Gold’s worst-case model. In a random setting, there is a chance the distinguishing examples appear earlier, so a model might succeed with high probability after samples. The impossibility still holds in a probabilistic sense – if a distinguishing example has near-zero probability, the model won’t see it in any reasonable sample size, and will be forced to guess. But on average, if the condition (weak or strong Angluin) holds, one will eventually see enough clues. Thus, from a practical standpoint, if the data distribution covers the language well (no extremely rare crucial patterns), an LLM can empirically do very well, approaching breadth as data grows. However, if some important aspects have tiny probability (e.g. rare translations, obscure facts), the model likely misses them – unless by luck or by auxiliary training on those specifically.

In terms of model design, the results also highlight the role of model architecture/class. The impossibility was stated for “a large class of models including next-token predictors” ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). This suggests that the standard left-to-right generative modeling, which is what current LLMs do, doesn’t circumvent the fundamental issue. It wasn’t a matter of using a smarter architecture – it’s an information issue. However, one might wonder: could a very different approach (like a symbolic reasoner or a model with built-in world knowledge base) avoid these pitfalls? In theory, if that approach effectively has access to negative information or a structural prior that reduces the hypothesis class, then yes. For example, if we assume the language is regular or context-free, we add biases that effectively satisfy identifiability (Angluin’s condition is true for many subclasses with appropriate algorithms). Large neural LMs don’t come pre-loaded with an assumption of a small language class – they are extremely flexible function approximators, which is why they need so much data to pin down behavior and can hallucinate weirdly. Incorporating priors or constraints (like “outputs must be logically consistent with a stored knowledge graph”) would reduce the hypothesis space and potentially enable more reliable generalization within that constrained space.

4.6 Toward Bridging the Gap

Knowing these theoretical limits, researchers are actively exploring ways to mitigate hallucination without unduly sacrificing breadth:

  • Tool use and Verification: Giving LLMs calculators for math or databases for facts is equivalent to providing oracles that can tell the model when it’s straying out of . This is like granting membership queries (“Is this equation result correct? Is this fact in the database?”). As theory predicts, this dramatically reduces hallucinations in those domains, allowing the model to produce correct answers it wouldn’t confidently produce alone.
  • Iterative refinement (Self-critique): Techniques where the model generates an answer and then checks or criticizes it (and tries again) effectively provide an internal feedback loop (the model’s critique is a form of negative example for the first draft). This can push the model closer to consistency. The risk is the model’s internal critic needs to be accurate; otherwise it might also prune correct but unusual answers, leaning to collapse. Training a separate verifier model is one approach to ensure a high-quality feedback signal.
  • Ensembling and Self-Consistency: Instead of producing one answer, generate many and take a majority vote or consensus (a method known as self-consistency). If the model is right more often than wrong, this amplifies correctness and filters out outliers (hallucinations) by relying on the “wisdom of crowds” (multiple samples). In theory, this works if hallucinations are somewhat random and diverse, while correct reasoning converges, which is often the case. This again trades some compute (and effectively does partial coverage of possibilities internally) to avoid outputting a single hallucinated result.

These strategies all reflect adding redundancy or feedback, which our theoretical discussion identifies as key to bypassing fundamental uncertainty.

Finally, it’s enlightening to consider the limits in the context of model scaling. As models get larger and are trained on more data, they naturally satisfy more of the conditions for breadth on practical tasks (because larger training likely includes multiple references to important facts, etc.). This is why GPT-4 is far more factual than GPT-2 – the vast increase in data reduces the fraction of one-off unknowns. In the limit of “infinite data covering everything”, a model would indeed approach perfect consistency and breadth on the distribution it’s learned (though if the distribution itself has errors or inconsistencies, the model might mirror those – another issue). However, no matter how large the training corpus, there will always be new queries or extrapolations beyond it. Thus the theoretical limits still apply, but at higher scales the difficult corner cases become increasingly esoteric. This might create a false sense of security – a model might appear to have conquered hallucination until it’s pushed into a truly novel corner. The theory cautions that without a principled way to get negative feedback or ensure identifiability, a corner case always exists.

Conclusion

The three papers discussed provide a rigorous, unified understanding of the theoretical limits of language generation. They show that the twin goals of eliminating hallucinations and maximizing generative breadth are at odds in general, and they pinpoint exactly when and how this dilemma can be resolved. In summary:

  • Language generation with only positive data is fundamentally an under-determined problem. A model can either play it safe (no new information = no hallucination, but limited outputs) or be adventurous (generate freely = cover more ground, but risk being wrong). This is the hallucination vs. mode collapse trade-off made formal ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse).
  • The ability to identify the target distribution from data (Angluin’s condition) is the theoretical requirement to have it all – perfect accuracy and coverage. In cases where this is possible (usually simpler, well-behaved tasks), one can design algorithms (or sufficiently train an LM) to eventually achieve near-perfect performance.
  • For more complex open-ended tasks, one must incorporate additional knowledge or feedback to guide the model. Negative examples, whether through explicit training data or interactive feedback, are a powerful tool to align models and enable broader correct outputs ([2411.09642] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). This mirrors human learning: we often need to be told not just what is correct, but what is not.
  • The theoretical bounds on sample complexity reassure us that when tasks are learnable, more data will rapidly improve performance (exponentially fast error reduction in the favorable regime) ([Revue de papier] On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse). And conversely, they tell us when more data will not help (in an unidentifiable regime, even infinite data won’t yield certain distinctions without new kinds of input).

For practitioners and researchers, these results highlight the importance of task design and data curation. If we want an LLM to be both creative and reliable in a domain, we should strive to either (a) supply it with enough information to make the domain effectively learnable (covering all corner cases, providing definitions or rules for anything tricky), or (b) equip the LLM with mechanisms to acquire that information (through queries, tools, or feedback). In the development of AI, understanding such theoretical limits prevents chasing a mirage of a perfectly all-knowing model trained only on passive data. Instead, it steers us toward hybrid approaches that combine data-driven learning with symbolic knowledge, user feedback, and calibrated uncertainty – the elements necessary to navigate the inherent trade-offs.

In conclusion, the work of Kleinberg, Mullainathan, Kalavasis, Mehrotra, Velegkas (and contemporaries like Charikar, Pabbaraju, Kalai, Vempala) provides a mathematical backbone for the folklore of LLM behavior: it confirms why our models do what they do, and guides us on how to make them better. By rigorously deriving these results with formal language theory and probability, we gain confidence in these principles and can build next-generation language models that push against these limits in informed ways. The theoretical limits may never disappear – but knowing them is the first step to transcending them, or at least achieving the best possible balance given the fundamental constraints.