Lune

STOC2026Top-tier venue

Language Generation and Identification from Partial Enumeration: Tight Density Bounds and Topological Characterizations

Jon M. Kleinberg, Fan Wei

Abstract

The recent successes of large language models (LLMs) have led to active lines of work in formal theories of language generation and learning. We build on one such theory, language generation in the limit, in which an adversary enumerates the strings of an unknown language K drawn from a countable list of candidate languages, and an algorithm tries to generate unseen strings from the language. Initial work on this model showed there is an algorithm that can always succeed at this task, and more recent work has shown there is in fact an algorithm that can produce a positive-density subset of the language. These results on density reflect the validity–breadth tension in language generation: the trade-off between generating only valid strings while also achieving wide coverage of the true language. Here we begin by resolving one of the main open questions from this work on density, establishing a tight bound of 1/2 on the best achievable lower density of any algorithm. We then consider a more powerful adversary, capturing the fact that generation algorithms may typically be faced with an environment in which only a subset of the language is being produced. This is a model with only partial enumeration of K: We show that there is an algorithm with the property that if an adversary only outputs an infinite subset C of the true language K, it can still achieve language generation in the limit; and moreover, if the subset C has lower density α in K, then the algorithm produces a subset of lower density at least α/2, which matches the upper bound. This generalizes the tight density bound of 1/2 to the case where the algorithm must come within 1/2 of the density of whichever subset of K the adversary reveals. We also revisit the classical Gold-Angluin model of language identification (rather than generation) when the adversary need only partially enumerate an infinite subset C of the true language K. We characterize when it is possible for an algorithm to achieve the natural analogue of identification in the limit in this partial setting, producing languages Mt (and finite representations of them) such that eventually C ⊆ M ⊆ K. Our characterization builds on our earlier topological approach on density in language generation [], and in the process we give a new topological formulation of Angluin’s characterization for language identification in the limit, showing that her condition is precisely equivalent to some appropriate topological space having the TD separation property.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Language Generation with Feedback: Queries and Mistakes cites Language Generation in the Limit
  • Characterizing the Effect of Noise in Language Generation in the Limit cites Calibrated Language Models Must Hallucinate
  • Characterizing the Effect of Noise in Language Generation in the Limit cites Language Generation in the Limit
  • Language Generation in the Limit cites Calibrated Language Models Must Hallucinate
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Characterizing the Effect of Noise in Language Generation in the LimitAaron Li, Ian ZhangICML 2026 · 4 citations
  2. Language Generation with Feedback: Queries and MistakesSteve Hanneke, Amin Karbasi, Anay Mehrotra, Grigorios VelegkasICML 2026

Builds on10

  1. Thinking Like TransformersGail Weiss, Yoav Goldberg, Eran YahavICML 2021 · 183 citations
  2. Representational Strengths and Limitations of TransformersClayton Sanford, Daniel J. Hsu, Matus TelgarskyNeurIPS 2023 · 162 citations
  3. Calibrated Language Models Must HallucinateAdam Tauman Kalai, Santosh S. VempalaSTOC 2024 · 58 citations
  4. Language Generation in the LimitJon M. Kleinberg, Sendhil MullainathanNeurIPS 2024 · 45 citations
  5. ALPINE: Unveiling The Planning Capability of Autoregressive Learning in Language ModelsSiwei Wang, Yifei Shen, Shi Feng, Haoran Sun et al.NeurIPS 2024 · 18 citations

Related papers

  1. Density Measures for Language GenerationJon M. Kleinberg, Fan WeiFOCS 2025 · 1 citation
  2. On the Limits of Language Generation: Trade-Offs between Hallucination and Mode-CollapseAlkis Kalavasis, Anay Mehrotra, Grigoris VelegkasSTOC 2025 · 2 citations
  3. Language Identification in the Limit with Computational TraceBinghui Peng, Amin Saberi, Grigoris VelegkasICLR 2026
  4. Language Generation in the Limit: Complexity Barriers and Implications for LearningMarcelo Arenas, Pablo Barcelo, Luis Cofré, Alexander KozachinskiyICML 2026
  5. Language Generation in the Limit: Noise, Loss, and FeedbackYannan Bai, Debmalya Panigrahi, Ian ZhangSODA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines