Elamur Research

Learning Regular Languages from Simple Positive Examples

Paper · 2001 · François Denis

Summary

A collection of valid strings tells a learner what a language allows. It leaves open how much else the language might allow. A rule that accepts every possible string will agree with every positive example, even when the target follows a much narrower pattern. François Denis asks when a learner can overcome this problem and recover a regular language, the kind recognized by a deterministic finite automaton. His answer depends on how the examples arrive. A string that can be described by a short program given a representation of the target receives relatively high probability. If a candidate rule predicts that a string should occur frequently, its continued absence can count against that prediction.

The paper makes this idea concrete by splitting accepted strings into prefixes and suffixes. A prefix takes an automaton to a state, and a suffix tests whether the automaton can accept from there. Prefixes that reach the same state allow the same continuations. A carefully constructed set of positive pairs can therefore reveal which prefixes belong together, which states accept, and where transitions lead. Denis shows that such a set exists for every nonempty regular language and that its structurally important prefixes and suffixes have short descriptions given the target.

The learner receives ordinary, unsplit strings from a sampling oracle. It uses an initial batch to identify short prefixes and suffixes that occur frequently, then uses a fresh batch to check which combinations occur as whole strings. The crucial result connects those stages. Under the assumed distribution, when a retained prefix and suffix form a valid string, that string has enough probability to be observed with high confidence. The learner can then reconstruct the automaton from the completed record of positive pairs. Given a size bound and a confidence parameter, it recovers the entire target language with high probability in polynomial time. Exact recovery covers every string, including those absent from both batches.

The result gives a precise meaning to learning from missing evidence. The absence of a particular continuation matters because the sampling assumption gives a quantitative reason to expect it if it is valid. The general theorem uses simplicity relative to a representation of the target, and the paper also considers a restricted class under an unconditional simplicity distribution. The connection to human grammar acquisition motivates the work. The evidence consists of mathematical proofs about finite automata under a specified source of examples.

Deep dive: Learning Regular Languages from Simple Positive Examples

François Denis shows how a bias toward simple positive examples lets a learner recover a regular language exactly with high probability. · about 35 minutes to read

The problem and its context

Why positive evidence leaves the language open

In grammatical inference, the learner sees examples and seeks a rule that describes the language behind them. Here a language is a set of finite strings over a fixed alphabet. A positive example is a string in that set, and a negative example is a string outside it. With positive evidence alone, every new observation can rule out a candidate that is too narrow to include it. Any candidate that includes the whole target remains compatible with every observation. An algorithm must find some other basis for deciding how far to generalize.

The paper motivates this asymmetry through language acquisition. It takes seriously the idea that children encounter mainly syntactically valid utterances. It also discusses a possible source of indirect evidence. A learner may expect a form to occur and find that it never appears, or may produce a form and receive no effect in return. Giving this intuition a mathematical meaning requires a reason to expect the missing form. If examples can arrive in an arbitrary order, the next example can always be postponed, including one that a candidate treats as an ordinary part of the language.

Gold’s identification-in-the-limit framework makes that difficulty precise. A learner observes a growing presentation and issues successive hypotheses. The requirement is eventual stabilization on a correct language. Gold’s result applies to any class containing every finite language and an infinite language. A finite portion of a positive presentation is compatible with a target consisting of just those strings. Further positive examples can always extend the presentation toward an infinite target. The regular languages contain both kinds of targets, and Gold’s result rules out identification of the whole class from unrestricted positive presentations.

Denis uses the contrast between unrestricted presentation and informative sampling to ask a narrower question. Overgeneralization may be avoidable if the source makes some evidence reliably available on a useful timescale. This shifts attention from the existence of a string in the target to the probability of seeing that string, or seeing an event that it helps define. For the finite-automaton problem, the relevant events will involve the beginnings and endings of short accepted strings.

What earlier approaches gave the learner

Angluin’s characterization of families identifiable from positive examples suggests treating a hypothesis as a source of predictions about its own characteristic evidence. If a language is a candidate, a learner can look for a finite collection of examples associated with it. The candidate must cover what has already been observed, and its own characteristic evidence must be present before it is selected. Angluin also studied reversible subclasses of regular languages, for which characteristic samples can be obtained efficiently. Denis takes from this line of work the idea that a hypothesis can be held back because the evidence expected under it is missing.

Interactive learning gives the learner more direct access to evidence. As the paper recounts, Angluin showed that regular languages can be recovered exactly in polynomial time through membership and equivalence queries. A membership query asks whether a chosen string belongs to the target. An equivalence query tests an entire candidate and can yield a counterexample. These tools address the information gap directly. Denis is interested in what can be done when the learner may draw examples but cannot choose a string and demand its label. The paper discusses parental correction as a possible analogy for interactive feedback while questioning whether unrestricted queries fit a positive-evidence account of acquisition.

A different form of help comes from the teacher in Goldman and Mathias’s framework. The teacher provides a finite set of labeled examples. A learner must recover the target from any correctly labeled sample containing that set, including one enlarged by an adversary. With both positive and negative labels, teaching a regular language can be organized around the transitions of its automaton. The teacher supplies suffix tests that exhibit where two candidate states behave differently, and the learner uses this information to decide which states can be merged.

The positive-only version of that teaching requirement runs into a direct contradiction for regular languages. Choose an infinite regular language and take the finite positive sample assigned to it by the teacher. The strings in that sample also constitute a finite regular language. The teacher’s examples for the finite language are necessarily among those same strings. Consequently, the original sample would require the learner to produce the infinite language and would also require it to produce the finite one. The learner receives the same input in both cases. Denis’s eventual use of a positive teaching set has a different meaning, because the learner extracts a complete pattern of accepted combinations from a random source.

Why change the distribution?

In the usual probably approximately correct setting, a learner receives independent labeled examples under an arbitrary fixed distribution. The error of a candidate is the probability that it disagrees with the target on a draw from that distribution. The guarantee combines an error tolerance with a confidence requirement. Denis cites the result that finite automata are inherently unpredictable under the discrete root assumption. He uses the distribution-free requirement to frame the question of what becomes possible if the source of examples is tied to the target.

Li and Vitányi’s simple PAC framework gives more probability to strings with short program descriptions. Denis and colleagues had previously considered a conditional version in which the program can use a representation of the target as input. A string can be simple in this sense even when it takes a long time to print or looks complicated to someone who has never seen the target. The paper reports that Parekh and Honavar had already shown approximate learnability for regular languages in the conditional setting. The task here is exact recovery when every example is positive.

The paper also describes practical work with probabilistic finite-state automata and hidden Markov approaches as examples of learning from positive data. Those precedents concern methods that can work in particular settings. Denis formulates a guarantee for a whole class of target languages. The claim therefore depends on specifying the source of data, the form of the target, and what constitutes successful recovery.

The method, step by step

From strings to state tests

A deterministic finite automaton reads a string from left to right. It starts at a designated state and uses the next symbol to determine the next state. When the input ends, the string is accepted if the current state is accepting. The paper permits a transition to be undefined. In that case the input cannot be accepted along that path. Denis presents the construction for a binary alphabet and says that the results extend to a general finite alphabet.

The automaton is represented as follows.

A = (Σ, Q, q₀, T, δ)

Here A is the automaton, Σ the alphabet, Q the finite state set, q₀ the starting state, and T the set of accepting states. In this formula δ is the partial transition function. Elsewhere in the learning guarantee the paper uses the same Greek letter for the failure allowance. The meaning follows from whether the symbol is being applied to a state and an input or used to set a confidence level.

A regular language can be represented by different automata. The proof uses a reference automaton that is both minimal and trimmed. Minimality means that the automaton has as few states as possible. Trimming keeps the states that can be reached from the start and from which acceptance is still possible. For a nonempty language this makes every state relevant to the positive evidence. A prefix reaching any such state can be completed to an accepted string.

The behavior that distinguishes one state from another is its set of acceptable continuations.

L_q = {w ∈ Σ* | δ(q, w) ∈ T}

Here L_q is the continuation language at state q. The symbol w ranges over Σ*, the set of all finite strings over the alphabet, including the empty string. The transition function δ is extended to read a whole string, and T is the set of accepting states. Membership in L_q means that reading w from q ends in an accepting state.

Consider a positive word and make a cut anywhere in it. The part before the cut is an access string, since reading it takes the automaton from the start to some state. The part after the cut is a continuation that happens to be accepted from that state. Move the cut, and the same word can tell the learner something about another state. An empty prefix tests the starting state’s behavior, and an empty suffix tests whether the reached state already accepts.

Two prefixes reaching the same state give identical answers on every possible suffix. Conversely, two distinct states of the minimal automaton differ on some suffix. That difference is the reason to keep them distinct. A useful finite set of observations can exploit this fact by testing prefixes against a common collection of suffixes. If the collection separates every pair of states, the resulting pattern of accepted suffixes identifies the state reached by each prefix.

The paper’s running example is the language of binary strings ending in the symbol 1. The prefix 1 reaches a state that accepts the empty continuation, because the word already has the required ending. The empty prefix reaches a state that does not accept the empty continuation. Appending 1 works for both. In that example the empty suffix provides the distinction, while the suffix 1 makes the behavior of the nonaccepting state visible through positive examples. The construction generalizes these two jobs across the states of an arbitrary target.

What a positive teaching set records

Denis’s positive teaching set is a set of ordered pairs, with a prefix in the first position and a suffix in the second. Its projections are the prefix and suffix collections appearing anywhere in the pairs. The defining condition is that the set contains every valid pairing of its own components. In other words, the complete table is implicit in a list of its positive entries.

S = {(u, v) ∈ π₁(S) × π₂(S) | uv ∈ L}

Here S is the teaching set and π₁(S) and π₂(S) are its first and second projections. The product sign ranges over all pairings of a prefix u and a suffix v from those projections. The expression uv is their concatenation and L is the target language. An entry occurs in the set exactly when that concatenation belongs to L.

The completeness condition explains when an absent pair can do useful work. If the table is complete, the absence of a cell says that the suffix fails from the state reached by that prefix. An arbitrary collection of positive strings carries no comparable assurance. In particular, even when a smaller table is complete, adding a new prefix or suffix can expose additional valid cells that must also be filled. Denis proves that an enlargement retains the teaching property when it is itself complete over its projections.

Other conditions ensure that the table contains enough structure. The empty string must occur among both kinds of components. Every state must be reached by at least one prefix. Every pair of distinct states must be separated by a suffix. Every defined transition must be represented by a prefix and its one-symbol extension, so that those two rows show where the transition starts and ends. Together these requirements specify the witnesses the reconstruction algorithm needs. They also clarify the difference from a teacher handing over a finite set of strings. Here the choice of components and completeness of their combinations are part of what gives the data meaning.

Denis builds a canonical table to show that good witnesses exist. Strings are ordered first by length and then lexicographically among strings of equal length. For each state, he uses the first string that reaches it. He includes those access strings and their extensions along defined transitions. The access string for a state can be reached through an access string for its predecessor, so the resulting prefix pool has at most 2n + 1 members on the binary alphabet, where n is the target’s state count. Its elements have length at most n.

Suffix selection uses the behavior of groups of states. If a group has distinct states, some suffix is accepted from certain members and rejected from the others. The construction chooses the first such suffix and uses it to divide the group. It then applies the same procedure within the resulting groups until the distinctions have been made. Denis proves that the number of selected suffixes is smaller than the number of states being separated. He also assigns each chosen suffix to a distinct state that accepts it, arranging the assignments during the recursive construction.

For states still without a suffix assignment, the construction chooses their first accepted continuation. This gives each state a positive suffix witness while retaining the suffixes needed to tell states apart. The resulting suffix pool has at most n members, each of length at most n − 1. It contains the empty string. If accepting and nonaccepting states are both present, that string is the first test that separates them. If all states accept, it can serve as the first accepted continuation for a state left without an assignment. The canonical table then collects the accepted concatenations of the canonical prefix and suffix pools.

The reconstruction itself is a row-grouping procedure. The learner puts prefixes in the same class if they occur with precisely the same suffixes in the teaching set. Each class becomes a state. The class containing the empty prefix becomes the initial state. A class is accepting when its row includes the empty suffix. Whenever a prefix and its extension by a letter both appear, the transition on that letter goes from the former’s class to the latter’s.

To see why this gives the target, map each class to the state reached by any prefix in it. All prefixes reaching a given state have the same acceptance pattern over the selected suffixes. The distinguishing suffixes ensure that different target states have different patterns. The coverage conditions then make the mapping a bijection that preserves the start, acceptance, and defined transitions. In particular, any other observed prefix with the same row represents the same state, so evidence from different representatives gives consistent destinations. The resulting automaton is isomorphic to the trimmed minimal automaton of the target.

How the distribution favors identifiable witnesses

The probability argument uses prefix Kolmogorov complexity. A program is a string processed by a fixed reference machine. The machine is a prefix machine, meaning that valid halting programs are self-delimiting in the sense relevant to the prefix-code bound. It is also universal with additive optimality. Changing to another suitable reference machine affects description lengths by at most a fixed additive cost.

K(x | r) = min {|p| : U(⟨p, r⟩) = x}

Here K(x | r) is the conditional complexity of the string x given the auxiliary string r. The variable p is a program, |p| its length, and U the fixed reference prefix machine. The brackets encode the program and auxiliary input as a pair. The minimum takes the length of the shortest program that causes the machine to halt with output x. The unconditional version uses the empty string as auxiliary input.

In the regular-language construction, r is the code of an automaton that recognizes the target. The code need not come from a minimal automaton. The paper assumes a coding scheme that gives the same name to isomorphic automata and permits efficient encoding and decoding. The code of the trimmed minimal automaton supplies a canonical name for a nonempty target. A fixed program can obtain that name from any valid name of the same language by decoding, minimizing, and encoding again.

This conversion matters because the learner’s guarantee must hold regardless of which representation determines the probabilities. If a short program can produce a witness from the canonical code, then a program with a fixed amount of extra machinery can first compute that code and then produce the witness. The same idea explains why structural witnesses can be simple. A program can generate the canonical prefix pool and output the item at a supplied index. Since the pool has a size bounded in terms of the number of states, the index is cheap to describe. The same argument applies to the canonical suffix pool.

The paper assigns probability to a string by an exponentially decreasing function of its description length.

m_r(x) = α_r · 2^(−K(x | r))

Here m_r(x) is the probability of string x given the representation r, K(x | r) is its conditional description length, and α_r is the normalizer that makes the weights sum to unity over all finite strings. The prefix-code bound makes the sum of the unnormalized weights finite. The paper also bounds α_r uniformly. A fixed program can simply output its auxiliary input, so the raw weight assigned to r itself gives a lower bound on the normalizing sum.

The learner receives positive examples only. Denis therefore restricts this distribution to the target language and normalizes again.

μ_r(x) = { m_r(x) / m_r(L)  if x ∈ L;  0  if x ∉ L }

Here μ_r is the positive sampling distribution, L the nonempty target, and m_r(L) the total probability that m_r assigns to strings in L. The string x receives its original probability divided by that total when it belongs to L. Outside the target its probability is zero. Every target string retains positive probability.

The total mass m_r(L) is bounded below by a uniform positive constant for the representation scheme. To see the reason, a fixed program can enumerate strings in the given order, use r to test membership, and stop at the first positive string. A nonempty target assures termination. That first word therefore has uniformly bounded conditional complexity. This observation controls the effect of positive restriction. Conditioning helps the probabilities of individual accepted strings, and it increases the probability of any positive event by at most a fixed factor.

The paper also proves a more general sample-coverage fact. If the relevant strings have conditional complexity at most a fixed multiple of the logarithm of the target size, there are polynomially many such strings and each has at least inverse-polynomial probability under any admissible positive distribution for the target. The chance of missing a particular string shrinks with independent repetitions. An upper bound on the chance of missing any string follows by adding the individual failure bounds. The sampling argument in the learner needs additional structure because the learner has to find suitable prefix and suffix pools and know when their joint table is complete.

Why frequent components can be checked together

The first direction of the probability argument starts with a canonical witness. Fix a representation of the language and a prefix that can be completed to a short accepted string. Given the prefix and the representation, a fixed program can find the first such completion. The program can recover the state count from the representation and use it to set the length limit. A short description of the prefix thus yields a short description of an accepted word in its prefix event. The same reasoning applies to a suffix if a short accepted word ends in that suffix.

The length limit in the teaching construction is 2n − 1, where n is the state count. It covers the concatenations of the canonical access prefixes and suffixes. Every canonical component occurs in some accepted concatenation, so there is a positive event of that bounded length for it. The paper obtains a common lower bound for the probabilities of those events.

a = c₃ / (n(log n)²)

Here a is the frequency scale chosen by the learner, c₃ is the constant in Denis’s lower bound for canonical component events, and n is the state-count parameter. The logarithm is in the complexity convention used for program lengths. The bound is used for the prefix event and the suffix event separately. Each event consists of accepted words within the length cap that have the designated component.

The second direction is the harder one. The learner picks components by frequency and has no access to the true canonical pools. A frequent prefix might owe its probability to many different longer strings. To validate a whole table, the learner needs more than a statement about one convenient completion of that prefix. It needs a bound for an accepted word that happens to be built from two retained components.

Denis shows that a short prefix with a large total extension probability has a short conditional description. A key observation is that a program describing a concatenation can be augmented with a description of the cut position to recover the ordered pair. Bounding the prefix length bounds the additional description of the cut. The proof then uses symmetry of algorithmic information to separate the cost of describing the prefix from the remaining cost of describing an extension. Summing the weights of the extensions leaves a bounded contribution from the second cost, by the prefix-code property. The event’s probability can therefore be large only if the prefix description is sufficiently cheap. A suffix satisfies a corresponding bound.

This reasoning reaches from a marginal probability to the description length of the component. It does so even if many strings contributed to the marginal. Knowing that the distribution of positive examples is the normalized restriction of m_r lets Denis apply the bound on extensions under m_r to the observed positive events. The uniform lower bound on the mass of the full target is important in that transfer.

Finally, two short programs can be combined to specify the concatenation. For retained components with sufficiently frequent events, validity of the concatenation then implies a lower bound on its own probability.

μ_r(uv) ≥ c₄ · (a / (n(log n)²))²

Here μ_r(uv) is the positive probability of the single word formed by the prefix u and the suffix v. The constant c₄ comes from the concatenation bound, a is the common lower threshold for the two component-event probabilities in this bound, and n is the state-count parameter. The inequality is for pairs whose concatenation belongs to the target. In the actual validation step it is applied at the lower threshold justified for the empirically retained components.

The proof also controls how many components can pass a fixed threshold. Among the retained prefixes, consider those that are maximal under prefix inclusion. Their extension events are disjoint, so there can be only a bounded number of them relative to the probability threshold. Every other retained prefix is a prefix of one of these maximal elements. Since component lengths are bounded, each maximal element can account for only a bounded number of retained prefixes. For suffixes the containment and disjointness argument works from the other end of the string. The product of the two pool sizes gives a bound on the number of pairs that validation must cover.

card(S_r^a) ≤ n(n + 1) / a²

Here S_r^a is the set of accepted pairs whose prefix and suffix events each have probability at least a under μ_r. The function card counts its pairs. The state-count parameter n gives the length bounds on the component pools. The inequality bounds the size of the table that would result from exact knowledge of the probabilities. It applies before the learner has any way to identify its entries from a sample.

What the learner does with its two samples

Reconstructing an automaton from random positive strings

The steps in order.

Reconstructing an automaton from random positive stringsStep 1: Draw positive strings and retain short examples1. Draw positive strings and retain short examplesStep 2: List their admissible prefix and suffix cuts2. List their admissible prefix and suffix cutsStep 3: Estimate the probability of each component event3. Estimate the probability of each component eventStep 4: Retain frequent prefixes and suffixes4. Retain frequent prefixes and suffixesStep 5: Draw fresh strings and record observed combinations5. Draw fresh strings and record observed combinationsStep 6: Group prefixes by their recorded continuations6. Group prefixes by their recorded continuationsStep 7: Recover accepting states and transitions7. Recover accepting states and transitions

The learner is given a failure allowance and a size bound. The size bound supplies an upper bound on the number of states because of the way automata are encoded. Denis describes the sampling procedure with n as its state-count parameter and uses the input bound in that role in the complete learner. The learner knows the constants for its sampling rules and has access to independent positive examples. It has no description of the particular target automaton, even though a representation of that automaton’s language determines the oracle’s sampling distribution.

The first batch serves to measure component frequencies. The learner discards strings longer than the cutoff and keeps multiplicities for the rest. It generates possible cuts of the retained strings, with the prefix and suffix length bounds used in the teaching set construction. A component’s estimated probability is the proportion of all original draws that contributed to its event. A discarded long word contributes nothing to the numerator, because these events are defined over short words. The denominator still includes the full batch. This detail makes the estimator measure the probability under the oracle’s distribution.

The learner can use the same batch to propose components and estimate their frequencies because the proof controls all possible short component events at once. Hoeffding’s inequality bounds the deviation for each event, and summing the failure bounds yields simultaneous control. The family of possible strings grows exponentially with the length limit, but the sample size depends on the logarithm of the number of events in the concentration bound. The algorithm only enumerates components actually encountered in the batch.

The empirical threshold is below a, leaving room for the first batch’s estimation error. When all the estimates are accurate within a/3, every component whose true event probability is at least a passes the empirical threshold 2a/3. Such a component also appears in the first batch, since its estimated frequency is positive. Each selected component in turn has true probability at least a/3. Values in the interval between the inner and outer guarantees can be resolved either way by the sample. This flexibility preserves every required canonical component and gives a lower bound for every retained component.

The second batch checks whole words. It is drawn independently after the prefix and suffix pools have been selected. The learner again discards words outside the length cap and records a pair when its prefix and suffix both belong to the selected pools and their concatenation occurs in this fresh batch. A word with several admissible cuts can supply several entries. The oracle draws only positive strings, so every recorded entry is sound. The concatenation probability bound and the bound on the number of candidate pairs ensure that all valid entries appear with high probability as well.

At this point the learner passes the positive pairs to the reconstruction procedure. On the success event, the table is complete over the selected pools and contains the canonical witnesses. Its projections contain the prefixes and suffixes needed for reconstruction. The row partition gives the states, and the represented extensions give the transitions. The final output is an automaton code. Its exactness rests on a finite structural reconstruction argument after the probabilistic work of finding a sufficient table.

Experiments and results

What is measured in the paper

The paper’s results are mathematical guarantees for random draws from the specified oracle. Its only concrete strings serve as examples of automata and teaching sets. There are no empirical datasets, held-out accuracy measurements, or implemented baseline comparisons. The relevant quantities are the probability of exact recovery, the number of oracle draws sufficient for that guarantee, and the time required to process them. The proper reference points are earlier learning guarantees with different access to evidence, and the earlier parts of Denis’s proof that make the final theorem possible.

Success means equality of languages. Every string accepted by the output must belong to the target, and every target string must be accepted by the output. This covers strings outside the length cap and strings that were never sampled. Although the reconstruction yields the structure of the minimal trimmed automaton on the success event, equality of language is the criterion in the theorem. The confidence parameter specifies how often sample randomness may lead the algorithm away from that criterion.

Pr[L′ = L] ≥ 1 − δ

Here L′ is the language recognized by the learner’s output, L the nonempty target, and δ the allowed failure probability. The probability is over the oracle draws. The guarantee is for a target whose representation size is within the input bound and for any of its positive admissible sampling distributions. Within a successful run the equality is exact. The probability measures uncertainty about the run, instead of a rate of correct answers on individual words.

The data in the proof have two roles. The first independent batch estimates the frequency of short prefix and suffix events. The second independent batch supplies cell evidence for the selected table. Its purpose resembles a check on predictions made after the first batch. Its outcome is used to construct the automaton, so it is part of the learning data. Exactness is established through the structural conditions on the table and the probability that both batches achieve their required coverage.

A worked comparison from the binary example

The paper illustrates the state tests with the language of binary strings ending in 1. To see what the suffix tests contribute, fix the continuation to the empty string and vary which state the prefix reaches. At the start, acceptance fails because the empty word has no final 1. After reading the prefix 1, the automaton can stop and accept. The paper explicitly gives the empty word as a negative example and the word 1 as a positive example for this language. The following comparison uses the paper’s binary membership coding to show those outcomes under the empty-suffix test.

Acceptance with the empty suffix in the binary strings ending in 1 example

The empty suffix separates the accepting state from the initial state.

Acceptance with the empty suffix in the binary strings ending in 1 exampleEmpty prefix at the initial state: 0Empty prefix at the initial state0Prefix 1 at the canonical accepting state (this paper): 1Prefix 1 at the canonical acceptingstate (this paper)1
The numbers
System or settingBinary membership label
Empty prefix at the initial state0
Prefix 1 at the canonical accepting state (this paper)1

The higher value denotes acceptance in this example. It is a property of the specified language. For the reconstruction proof, the comparison shows what makes a test informative. The empty suffix gives the rows different membership entries, while the suffix 1 gives them an accepted entry in common. A procedure that merged states whenever they share a positive continuation would lose the distinction. The teaching table instead compares the full pattern over the selected suffixes.

The paper illustrates both a positive teaching set and the canonical one for the same language. The canonical prefix pool includes the empty string, 0, 1, 10, and 11. The suffix pool contains the empty string and 1. A prefix ending in 1 pairs successfully with the empty suffix. A prefix ending in 0 can still pair with the suffix 1. The rows therefore show both how the states differ and how a prefix can reach the same state by more than one route. In the transition reconstruction, the relationship between 1 and 10 supplies evidence for the transition on 0 out of the accepting state. The relationship between 1 and 11 gives the transition on 1 from that state.

Sample and running-time bounds

Denis bounds the failure events of the two sampling stages separately. The probability budget assigned to each is δ/2. The first bound controls the simultaneous accuracy of the component estimates. The second controls the chance that some valid concatenation of the selected components fails to appear. Once the first batch satisfies its bound, the chosen pools lie inside a family for which every valid combination has a lower probability bound. Conditioning on the result of the first batch allows the analysis to use this family for the fresh draws. Adding the two possible sources of failure yields the confidence guarantee.

For the sampling procedure, the paper gives the following order for the total number of draws, including draws discarded because the strings are too long.

O(n^(4+α) ln(1/δ))

Here O gives an asymptotic upper bound, n is the state-count parameter of the sampling procedure, and δ is the failure allowance. The symbol α can be any fixed positive exponent slack. The ln is the natural logarithm. This bound concerns oracle calls used to obtain a positive teaching set. The expression gives a sufficient order for the proof, with constants and lower-order factors implicit.

The dependence comes from two distinct coverage requirements. For frequency estimation, a smaller tolerance requires more independent draws. For table completion, the needed number is determined by the lower bound on the probability of the least frequent valid combination at the retained threshold, together with the number of combinations that could need coverage. The proof uses the bound that a word with a given minimum probability is increasingly unlikely to be absent as the batch grows. It then allocates enough draws to make a miss anywhere in the table unlikely.

The end-to-end running-time bound uses the supplied representation-size bound.

O(l^(5+α) ln(1/δ))

Here l is the input size bound used also to bound the number of states, α is any fixed positive exponent slack, and δ is the failure allowance. The O refers to asymptotic running time and ln denotes the natural logarithm. The guarantee includes obtaining and processing the teaching set and reconstructing the automaton. Oracle calls are charged according to the paper’s unit-time example access convention, with length filtering used to keep the algorithm’s own work bounded.

Reconstruction has a useful separate complexity argument. Its operations depend on the numbers of distinct prefixes and suffixes in the recovered table and on the maximum length of those strings. The paper bounds this phase by the order of the product of those quantities. It then uses the threshold bounds on the pools and the length cutoff to place reconstruction within the overall polynomial running time. This is a different quantity from the number of draws. A single sampled word can contribute several candidate cuts in the first batch and several cells in the second.

The theorem extends the earlier approximate learning guarantee under simple sampling in two ways. It uses a source restricted to positive strings, and its success event concerns the entire target language. It also differs from the earlier exact guarantee with a teacher providing a labeled sample. Here the algorithm discovers the evidence it needs through independent random draws and completes the acceptance table with high confidence. These comparisons locate the advances in the proof. They provide no benchmark ranking across the different sampling and query settings.

What the ablations show

The paper has no empirical ablations and instead compares learning assumptions, analyzes the two sampling stages separately, and proves an extension for a restricted class under unconditional sampling.

The source of a teaching set changes what it means

The comparison with Goldman and Mathias’s framework helps explain what the probabilistic assumption buys. In adversarial positive teaching, the learner must succeed on any sample containing the teacher’s positives. A sample can give the same view of a finite target and of an infinite target for which that sample was selected. In Denis’s procedure, the table is filled from a distribution chosen for the target. The guarantee applies to the probability that a finite sampling run reveals the full set of valid combinations, given that its components were selected with frequency control.

This distinction also locates the use of unobserved evidence. The learner treats an empty cell in the validation table as a failed prediction about one combination. The analysis bounds the chance that the cell would be empty if the combination were valid. With the promised lower bound, a correct positive event can still be missed, but the proof explicitly budgets for that possibility. The same interpretation would lack a quantitative basis if the examples arrived under an arbitrary source.

Frequency selection and structural coverage do different jobs

The first batch can certify that a prefix occurs frequently in short words and that a suffix does too. These are separate events. Their separate frequencies do not settle whether the prefix and suffix form a valid word. The analysis of the first batch gives two things that the procedure can rely on. There is enough coverage to preserve the canonical components, and the selected components belong to pools with a proved lower bound on true marginal probability.

The second analysis is about each accepted concatenation. The proof applies the joint-word probability bound even when the two components originally came from different strings. A component’s frequency depends on how much probability it carries across all matching words. The description-length argument translates that pooled evidence into a guarantee for a particular compatible pair. The validation batch then resolves which of those pairs are positive. The result is a complete acceptance pattern over the pools, which is exactly the condition needed to use absent cells in state comparisons.

Denis also examines what happens when the canonical teaching table is enlarged. The learner needs a sufficient set of witnesses and can tolerate additional components whose events pass the threshold. Accuracy of frequency estimation keeps canonical components inside the selection and constrains how far the selection can grow. Completeness over the enlarged pools is the decisive structural property. This is why the analysis allows uncertainty about the status of components near the threshold. Learning the exact boundary of the frequent sets is unnecessary for recovering the automaton.

What changing the source of simplicity requires

The general theorem defines simplicity conditional on a representation of the target. Canonical components can therefore be produced by programs that use that representation to generate their pools and use an index to choose an item. The paper considers whether the argument can also work with the unconditional Solomonoff–Levin distribution used by Li and Vitányi, restricted to accepted strings. Denis presents an extension for a class called simple regular languages and relates it to earlier work on simple reversible languages.

The logic of the extension is to replace target-relative short descriptions of the structural witnesses with short unconditional descriptions. If the required access strings and continuations are already simple in that stronger sense, their low complexity can support frequent positive events under the unconditional distribution. The reconstruction from a complete table has the same requirements regardless of the distribution used to obtain it. The extension accordingly isolates the part of the argument that needs target information in the example weights.

There is a notation inconsistency in the statement of this extension. The printed definition writes its simplicity conditions with r_L as auxiliary input, while the proof explicitly relies on using unconditional complexity for the witnesses. The distinction matters because a canonical state witness has a short target-relative description by the main construction. Giving it a short unconditional description is an additional property. The paper’s proof discussion explains the intended substitution, and the main theorem’s conditional-sampling guarantee has its own argument.

The comparison with reversible languages gives a structural reason for the earlier result to fit into the extension. In the case where the reversed minimal trimmed automaton is deterministic, a suffix accepted from a state determines that state among the possible prefix destinations. A suffix with this property already performs the distinguishing job in the table. The construction therefore relates the broader language class to the earlier definition through the roles of the least access strings and least successful continuations.

Limitations

Limits identified by Denis

The oracle is an assumption about the source, and the unconditional Solomonoff–Levin distribution is uncomputable. The learner can operate on draws because its own procedure estimates ordinary frequencies, compares strings, and reconstructs an automaton. Generating the stipulated draws is a separate problem. Denis proposes finding computable families of distributions that retain the properties needed by the proof. He also proposes examining whether natural-language data plausibly display those properties.

The supplied size bound is important to the running-time and recovery claims. It determines the length cutoff, helps set the sample sizes, and tells the learner how much state structure it may have to uncover. Denis illustrates the obstacle with the language of all strings and a language that includes every string only up to a large length limit. If this limit exceeds what the learner can process within its running time, all strings it can inspect may be valid under both targets. A radically different size can then remain hidden behind the same positive evidence.

Denis sees a related obstacle in trying to turn this exact requirement into an approximate one while discarding the size bound. A long word can still have a short description, so an upper bound on the length of processed strings does not by itself control how much probability remains beyond that length. The usual strategy of guessing a size and using held-out examples to check whether a candidate is good enough is difficult to transfer when examples may be too long for the allowed running time. Denis treats the elimination of the bound as a difficulty and suggests viewing the result in terms of size-bounded classes.

The paper also discusses collusion between a teacher and a learner. If an example can encode a target automaton, a teacher with access to both positive and negative labels can include that code as a string, attach its correct label, and rely on the learner to read the code. A conditional simplicity distribution faces a related concern. The code of the minimal automaton is itself simple given a representation of the language, so a learner with labeled data may encounter a compact encoding of the target as an example. In the positive-only case that encoding would have to belong to the language to be sampled. Denis argues that the impossibility of positive-only Goldman–Mathias teaching gives reason to doubt that the entire class can be handled through such a shortcut. He states that the paper lacks a formal definition of collusion for proving its absence.

The language class is another limit the paper states explicitly. Denis regards regular languages as too limited for substantial fragments of natural language and points to context-free grammar as at least the level of formal description needed. The cognitive examples in the paper explain why the positive-evidence question matters. The proof is about strings and finite-state continuation behavior. It leaves open which stronger language classes admit a comparable combination of short witnesses and reliable sampling.

Limits visible in the proof setup

The theorem assumes independent draws from a fixed distribution in the admissible family. Both the concentration calculation and the calculation for missing a required word use independence. A corpus with dependencies, changing sources, or a different distribution could still have frequent beginnings and endings. Those observations alone would leave open whether the probabilities needed for reconstruction are present. In particular, frequent components on their own provide no general lower bound on the probability of their accepted concatenation. That connection is established for the particular simplicity-based distribution.

Exactness also depends on the distinction between full support and usable probability. All valid words have positive mass under the assumed source, but this alone says only that each can eventually appear. An efficient finite-sample guarantee needs required words to have enough mass to be found within the stated bound. Denis establishes that property for the relevant combinations of selected components. A positive source with full support and very low probabilities for essential witnesses would require a separate analysis.

The proof’s size measure and cost convention matter when interpreting its polynomial bound. The size is measured through an automaton representation, and the example oracle supplies draws in unit time. The algorithm discards long strings because the structural witnesses fit within the chosen cap. A physical implementation would need a way to delimit or reject a long example within its resource budget. The theorem describes learnability with the stated oracle interface. It does not give measured processing costs for files, streams, or corpora.

The empty language is outside the positive sampling promise. The normalization over the language and the search for a first accepted string both rely on nonemptiness. This makes the scope of the exact result precise even though the phrase “regular languages” is used for the class as a whole. Likewise, the success probability is a bound over draws. An individual finite run can have an incomplete table and consequently fail to recover the target. The result quantifies that risk under its assumptions.

The source of the proof’s broad guarantee is also the source of its narrow application. A canonical automaton yields short access and distinguishing strings in terms of its state count. These strings are simple under the admissible distributions, and the sampling argument makes their structural roles usable. A more expressive grammar formalism would require an analogue of the state tests, a way to keep the required evidence efficiently enumerable, and a sampling argument for completeness of whatever replaces the table. The paper leaves those steps as research questions.

What came after

The paper’s account ends with a research agenda. It does not establish a later result that carries the positive-only exact-recovery theorem into a more expressive grammar class, implements a computable replacement for the oracle, or verifies the sampling assumption on a corpus. Earlier work discussed in the paper explains where its questions came from. Its extension to simple regular languages belongs to the paper’s own results.

One direction Denis identifies is to characterize the properties of a source that would suffice for the same reconstruction argument. The proof makes that question concrete. The learner needs a short region of the language containing enough evidence to identify states and transitions. It must be possible to find the required components by their observed frequency. Any accepted word formed from retained components must also have enough probability that a new sample will reveal it. A different family of sources could support the method if it supplied comparable guarantees.

A second direction concerns grammar classes beyond finite automata. The finite-state argument identifies a state by the continuations it accepts and finds a bounded set of tests that expose all relevant differences. This makes a prospective extension a question about structure as well as examples. The corresponding grammar would need finite evidence that determines its behavior, and the learner would need a way to collect and interpret that evidence efficiently from positives.

The empirical direction Denis proposes is to study natural-language corpora for the kinds of frequency relationships used in the proof. The motivating intuition is that simple, valid forms are likely to recur and that the persistent absence of an expected form can guide revision. The formal theorem spells out how strong that expectation must be for exact recovery of a regular language. Checking whether corpus data support comparable expectations is a separate question, and the paper leaves it open.

Cite

Cite as François Denis. 2001. Learning Regular Languages from Simple Positive Examples. Machine Learning.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1023/a:1010826628977

@inproceedings{denis2001learning,
  title = {{Learning Regular Languages from Simple Positive Examples}},
  author = {François Denis},
  booktitle = {Machine Learning},
  year = {2001},
  doi = {10.1023/a:1010826628977},
  url = {https://doi.org/10.1023/a:1010826628977}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/denis-2001-learning-regular-languages-simple-positive/