Generating in the Limit with Infinitely Many Hallucinations

Irene Strauss, Alexandra Butoi, Ryan Cotterell
6/8/2026
cs.CLcs.FLcs.LG

No confident code implementation found for this paper.

Abstract

The classic paradigm of language identification in the limit models learning as a game between an adversary, who reveals strings from an unknown target language, and a learner tasked with identifying that language. The recently introduced framework of language generation in the limit shifted the objective to better reflect modern language modeling, requiring the learner to produce valid, unseen strings from the target language.

Show full abstract

Related work highlighted a fundamental tension: a broad coverage of the target often comes at the cost of validity. We introduce a new notion of precision and recast this problem as the classic recall-precision trade-off. We analyze generation in the limit under varying constraints on enumeration, novelty, and validity, aimed at reflecting settings closer to those encountered by large language models. A key contribution is our analysis of learners that are not eventually valid: we allow infinitely many mistakes, provided their frequency tends to zero so that precision remains one. We show that this relaxation can strictly increase recall when the adversary permanently withholds a large portion of the target language. We also study a continuous relaxation of the novelty constraint that requires only a fixed fraction of outputs to be novel. Taken together, our results move toward a more realistic model of language generation where occasional errors and repetitions are unavoidable, but their rates are controlled.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{strauss2026generating,
  title  = {Generating in the Limit with Infinitely Many Hallucinations},
  author = {Irene Strauss and Alexandra Butoi and Ryan Cotterell},
  year   = {2026},
  eprint = {2606.28354},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.28354v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.28354.svg)](https://codeofpaper.com/paper/2606.28354)

Discussion