Language Generation with Feedback: Queries and Mistakes

Steve Hanneke, Amin Karbasi, Anay Mehrotra, Grigoris VelegkasICML 2026

Introduction

In the theoretical framework of "Language Generation in the Limit," a generator observes a stream of valid sentences (a corpus) and must eventually learn to produce novel, valid sentences that have not yet appeared in the stream. Previous research demonstrated that while this is possible for countable collections of languages, the standard no-feedback model is highly brittle. It struggles with uncountable collections, lacks closure under unions (e.g., a model might generate from Language A or B individually, but fail completely if the target could be either), and breaks down entirely if a single "typo" appears in the input stream.

This paper investigates how introducing feedback mechanisms fundamentally alters the theoretical landscape of language generation, making it robust to noise and resistant to the mathematical paradoxes found in previous models.

The Role of Feedback: Mistakes and Queries

The authors explore two primary variants of feedback:

  1. Mistake Feedback: The generator produces a string and receives a passive signal indicating if it made a mistake (i.e., the string is not in the target language).
  2. Query Feedback: The generator can proactively ask an oracle, "Is this specific string in the target language?"

By formalizing these interactions using computational learning theory, the authors demonstrate that feedback fundamentally changes the power of language generation.

The Core Theoretical Framework: Countable Inner-Covers

The central theoretical contribution of the paper is the introduction of a combinatorial property called a Countable Inner-Cover. A collection of languages possesses a countable inner-cover if there exists a countable list of infinite sets (acting as "safe cores" or "skeletons") such that every language in the collection contains at least one of these sets.

The authors prove a fundamental characterization theorem: a collection of languages is generable with mistake feedback if and only if it has a countable inner-cover.

Feedback effectively transforms the generation task into a search problem over a countable space. Even if the collection of possible languages is uncountably large, the inner-covers provide a countable roadmap. The generator can simply iterate through the cover until it finds a set that fits the target language.

Key Findings and Implications

Robustness to Noise and Zero-Example Generation

One of the most surprising insights is that with feedback, the adversary's examples become entirely unnecessary. A generator can succeed in a "zero-example" setting, relying solely on the feedback channel to navigate the language space.

Furthermore, feedback-based generation is highly robust to noise. Using a "finite expansion" technique that blurs candidate languages, the authors prove that generation remains possible despite arbitrary contamination in the adversary's example stream, and can even tolerate a finite number of "lies" (corruptions) in the feedback itself.

Resolving Pathologies and the "Sandwich" Result

Unlike the no-feedback model, generation with feedback is mathematically well-behaved. It is closed under countable unions, meaning that if a model can learn to generate from several different sources, it can also learn to generate from their combination.

The authors also apply their techniques back to the classic no-feedback model, proving that generability without feedback is "sandwiched" between two conditions: having a finite inner-cover (which is sufficient) and a countable inner-cover (which is necessary). This narrows down a major open problem in the field.

Set-Based vs. Element-Based Generators

The paper distinguishes between "element-based" generators (which output one string at a time) and "set-based" generators (which produce large sets of text, akin to modern LLMs). For set-based generators, mistake feedback and query feedback have identical expressive power. However, the authors prove a strict separation for query feedback: element-based generators can generate some languages that set-based generators cannot.

Limitations and Future Directions

As a theoretical study grounded in computational learning theory, the paper relies on abstract mathematical sets of strings rather than empirical datasets. Several open questions remain for future work:

  • The Query Gap: While set-based query generation is fully characterized, a complete characterization for element-based query generation remains elusive.
  • Breadth vs. Correctness: The current work focuses strictly on correctness (avoiding mistakes). It does not address breadth—the requirement that a generator eventually produces a large or representative fraction of the target language.
  • Vanishing Noise: While the model handles finite feedback errors, future work could explore "vanishing" noise, where feedback is only statistically or probabilistically correct.

Summary updated

BibTeX
@inproceedings{hanneke2026language,
  author = {Steve Hanneke and Amin Karbasi and Anay Mehrotra and Grigoris Velegkas},
  title = {{Language Generation with Feedback: Queries and Mistakes}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=jvfXyIcQ8a},
}
Figure