Language identification in the limit is a formal model for inductive inference of formal languages, mainly by computers (see machine learning and induction of regular languages). It was introduced by E. Mark Gold in a technical report [1] and a journal article [2] with the same title.
In this model, a teacher provides to a learner some presentation (i.e. a sequence of strings) of some formal language. The learning is seen as an infinite process. Each time the learner reads an element of the presentation, it should provide a representation (e.g. a formal grammar) for the language.
Gold defines that a learner can identify in the limit a class of languages if, given any presentation of any language in the class, the learner will produce only a finite number of wrong representations, and then stick with the correct representation. However, the learner need not be able to announce its correctness; and the teacher might present a counterexample to any representation arbitrarily long after.
Gold defined two types of presentations:
This model is an early attempt to formally capture the notion of learnability. Gold's journal article [3] introduces for contrast the stronger models
A weaker formal model of learnability is the Probably approximately correct learning (PAC) model, introduced by Leslie Valiant in 1984.
| Teacher | Learner's | ||
|---|---|---|---|
| Guess | Query | ||
| 0. | abab | ||
| 1. | yes | abab | baba |
| 2. | yes | a*(ba)*b* | aa |
| 3. | no | (ab)*(ba)*(ab)*(ba)* | bababa |
| 4. | yes | (ab+ba)* | babb |
| 5. | no | (ab+ba)* | baaa |
| ... | ... | ||
| Teacher | Learner | |
|---|---|---|
| 1. | abab | abab |
| 2. | baba | a*(ba)*b* |
| 3. | (ab)*(ba)*(ab)*(ba)* | |
| 4. | bababa | (ab+ba)* |
| 5. | (ab+ba)* | |
| 6. | (ab+ba)* | |
| 7. | ε | (ab+ba)* |
| ... | ... |
| Teacher | Learner | |
|---|---|---|
| 1. | abab | abab |
| 2. | ba | abab+ba |
| 3. | baba | abab+ba+baba |
| 4. | ba | abab+ba+baba |
| 5. | baba | abab+ba+baba |
| 6. | abab | abab+ba+baba |
| 7. | ε | abab+ba+baba+ε |
| ... | ... |
| Teacher | Learner | |
|---|---|---|
| 1. | abab | abab |
| 2. | baba | abab+baba |
| 3. | baabab | (b+ε)(ab)* |
| 4. | baabab | (b+ε)(ab)*+baabab |
| 5. | abbaabba | (ab)*(ba)*(ab)*(ba)* |
| 6. | baabbaab | (ab+ba)* |
| 7. | bababa | (ab+ba)* |
| ... | ... |
It is instructive to look at concrete examples (in the tables) of learning sessions the definition of identification in the limit speaks about.
More formally, [7]
Notes:
Gold's theorem (1967) (Theorem I.8 of (Gold, 1967))—If a language family contains , such that and , then it is not learnable.
Suppose is a learner that can learn , then we show it cannot learn , by constructing an environment for that "tricks" .
First, construct environments for languages .
Next, construct environment for inductively as follows:
By construction, the resulting environment contains the entirety of , thus it contains , so it is an environment for . Since the learner always switches to for some finite , it never converges to .
Gold's theorem is easily bypassed if negative examples are allowed. In particular, the language family can be learned by a learner that always guesses until it receives the first negative example , where , at which point it always guesses .
Dana Angluin gave the characterizations of learnability from text (positive information) in a 1980 paper. [8] If a learner is required to be effective, then an indexed class of recursive languages is learnable in the limit if there is an effective procedure that uniformly enumerates tell-tales for each language in the class (Condition 1). [9] It is not hard to see that if an ideal learner (i.e., an arbitrary function) is allowed, then an indexed class of languages is learnable in the limit if each language in the class has a tell-tale (Condition 2). [10]
| Learnability model | Class of languages |
|---|---|
| Anomalous text presentation [note 2] | |
| Recursively enumerable | |
| Recursive | |
| Complete presentation | |
| Primitive recursive [note 3] | |
| Context-sensitive | |
| Context-free | |
| Regular | |
| Superfinite [note 4] | |
| Normal text presentation [note 5] | |
| Finite | |
| Singleton [note 6] | |
The table shows which language classes are identifiable in the limit in which learning model. On the right-hand side, each language class is a superclass of all lower classes. Each learning model (i.e. type of presentation) can identify in the limit all classes below it. In particular, the class of finite languages is identifiable in the limit by text presentation (cf. Example 2 above), while the class of regular languages is not.
Pattern Languages , introduced by Dana Angluin in another 1980 paper, [12] are also identifiable by normal text presentation; they are omitted in the table, since they are above the singleton and below the primitive recursive language class, but incomparable to the classes in between. [note 7] [ clarification needed ]
Condition 1 in Angluin's paper [9] is not always easy to verify. Therefore, people come up with various sufficient conditions for the learnability of a language class. See also Induction of regular languages for learnable subclasses of regular languages.
A class of languages has finite thickness if every non-empty set of strings is contained in at most finitely many languages of the class. This is exactly Condition 3 in Angluin's paper. [13] Angluin showed that if a class of recursive languages has finite thickness, then it is learnable in the limit. [14]
A class with finite thickness certainly satisfies MEF-condition and MFF-condition; in other words, finite thickness implies M-finite thickness. [15]
A class of languages is said to have finite elasticity if for every infinite sequence of strings and every infinite sequence of languages in the class , there exists a finite number n such that implies is inconsistent with . [16]
It is shown that a class of recursively enumerable languages is learnable in the limit if it has finite elasticity.
A bound over the number of hypothesis changes that occur before convergence.
A language L has infinite cross property within a class of languages if there is an infinite sequence of distinct languages in and a sequence of finite subset such that:
Note that L is not necessarily a member of the class of language.
It is not hard to see that if there is a language with infinite cross property within a class of languages, then that class of languages has infinite elasticity.