Executive Summary
While theoretical models suggest that generating new sentences is easier than learning a language's entire grammar, this paper proves that for most common formal language classes, the amount of data required to do so is astronomically high. By analyzing the "sample complexity" of language generation, the authors demonstrate that even when generation is mathematically possible, it is often computationally infeasible, requiring exponential or even non-computable amounts of training data.
Introduction
In the 1960s, E.M. Gold established a pessimistic view of language learning: most complex languages cannot be "identified in the limit" using only positive examples. However, the recent success of Large Language Models (LLMs) seems to contradict this classical view. LLMs do not necessarily "learn the grammar" in a traditional sense; rather, they excel at generating new, valid strings.
Recently, researchers Kleinberg and Mullainathan proposed a more relaxed framework called Language Generation in the Limit. They demonstrated that while identifying a grammar is hard, simply generating new strings from a language is theoretically possible for any countable family of languages.
This paper addresses the critical follow-up question: Is it feasible? Even if a generator can eventually succeed, how many examples does it need before it can reliably produce a new string that is not just a memorized repeat of its training data? This metric is known as sample complexity.
Theoretical Framework and Methodology
As a theoretical work in formal language theory, this paper does not rely on empirical datasets or training benchmarks. Instead, it utilizes mathematical proofs and reductions from classical problems—such as the Turing Machine Halting Problem—to establish bounds on sample complexity.
The authors analyze four major classes of formal languages:
- Context-Free Languages (CFLs): Languages defined by grammars, similar to those used in programming languages.
- Regular Languages: The simplest class, often represented by Finite Automata or Regular Expressions.
- Locally Threshold Testable (LTT) Languages: A subset of regular languages defined by local patterns and counting.
- Non-erasing Pattern Languages: Languages generated by patterns of constants and variables (e.g., "x a x b").
The researchers primarily utilize a characterization of "uniform generation," which links sample complexity to the size of the largest finite intersection between different languages in a family.
Key Insights: The Intersection Barrier
The fundamental bottleneck for generation is the existence of "large finite intersections." If two distinct languages in a family overlap for a trillion strings before they finally differ, any generator is effectively "blind" until it has seen more than a trillion examples. It needs that massive amount of data to know which language it is dealing with and avoid generating an invalid string.
This confirms a fundamental asymmetry in language learning. While generation is "easier" than identification in terms of pure computability, it still inherits massive complexity barriers. For Context-Free Languages, the authors prove via a reduction to the Halting Problem that you cannot even calculate a bound on how much data is needed. The sample complexity grows faster than any computable function.
Ultimately, these results establish a clear gap between what is theoretically possible and what is computationally feasible. This suggests that the success of modern LLMs is not due to a general mathematical property of "generation," but rather something specific about the data distributions or the architectures we use.
Complexity Results: A Hierarchy of Infeasibility
The paper provides a strict "hierarchy of infeasibility" for the number of examples ($m$) required to generate novel strings:
- Context-Free Languages: $m$ is non-computable. No algorithm can predict how much data is needed.
- Regular Languages: $m$ is double-exponential ($2^{2^s}$) relative to the size of the language description. This represents a severe feasibility barrier.
- LTT Languages: $m$ is single-exponential. While better than regular languages, it remains prohibitively large for practical use.
- Pattern Languages: $m$ has an exponential lower bound, despite these languages being considered "easy" to learn in other classical identification models.
Discussion and Limitations
The authors acknowledge that their results represent a worst-case analysis under an adversarial model. In the real world, LLMs might succeed where theoretical models fail for several reasons:
- Natural Data Distribution: Real-world training data might naturally avoid the pathological "large finite intersections" that make generation hard in theory.
- Average-case Complexity: The specific, highly complex grammars used to prove these lower bounds might not appear in natural human language.
- Inductive Biases: Modern architectures, such as Transformers, might possess innate inductive biases that help them navigate these complexity barriers, even if the barrier is intrinsic to the language classes themselves.
Future research is needed to determine if "average-case" language families are more well-behaved and if practical data distributions inherently bypass these theoretical limits.
Summary updated