ACL-OCL / Base_JSON /prefixC /json /C04 /C04-1013.json
Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "C04-1013",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T13:19:13.336415Z"
},
"title": "Partially Distribution-Free Learning of Regular Languages from Positive Samples",
"authors": [
{
"first": "Alexander",
"middle": [],
"last": "Clark",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "University of Geneva UNI-MAIL",
"location": {
"addrLine": "Boulevard du Pont-d'Arve",
"postCode": "CH-1211",
"settlement": "Gen\u00e8ve 4",
"country": "Switzerland"
}
},
"email": ""
},
{
"first": "Franck",
"middle": [],
"last": "Thollard",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "Universit\u00e9 Jean Monnet",
"location": {
"addrLine": "23, Rue du Docteur Paul Michelon",
"postCode": "42023",
"settlement": "Saint-Etienne C\u00e9dex 2",
"country": "France"
}
},
"email": "thollard@univ-st-etienne.fr"
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "Regular languages are widely used in NLP today in spite of their shortcomings. Efficient algorithms that can reliably learn these languages, and which must in realistic applications only use positive samples, are necessary. These languages are not learnable under traditional distribution free criteria. We claim that an appropriate learning framework is PAC learning where the distributions are constrained to be generated by a class of stochastic automata with support equal to the target concept. We discuss how this is related to other learning paradigms. We then present a simple learning algorithm for regular languages, and a self-contained proof that it learns according to this partially distribution free criterion.",
"pdf_parse": {
"paper_id": "C04-1013",
"_pdf_hash": "",
"abstract": [
{
"text": "Regular languages are widely used in NLP today in spite of their shortcomings. Efficient algorithms that can reliably learn these languages, and which must in realistic applications only use positive samples, are necessary. These languages are not learnable under traditional distribution free criteria. We claim that an appropriate learning framework is PAC learning where the distributions are constrained to be generated by a class of stochastic automata with support equal to the target concept. We discuss how this is related to other learning paradigms. We then present a simple learning algorithm for regular languages, and a self-contained proof that it learns according to this partially distribution free criterion.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "Regular languages, especially generated by deterministic finite state automata are widely used in Natural Language processing, for various different tasks (Mohri, 1997) . Efficient learning algorithms, that have some guarantees of correctness, would clearly be useful. Existing algorithms for learning deterministic automata, such as (Carrasco and Oncina, 1994) have only guarantees of identification in the limit (Gold, 1967) , generally considered not to be a good guide to practical utility. Unforunately the prospects for learning according to the more useful PAC-learning criterion are poor after the well known result of (Kearns and Valiant, 1989) . Distribution-free learning criteria require algorithms to learn for every possible combination of concept and distribution. Under this worstcase analysis many simple concept classes are unlearnable. However in many situations it is more realistic to assume that there is some relationship between the concept and the distribution, and furthermore in general only positive examples will be available.",
"cite_spans": [
{
"start": 155,
"end": 168,
"text": "(Mohri, 1997)",
"ref_id": "BIBREF8"
},
{
"start": 334,
"end": 361,
"text": "(Carrasco and Oncina, 1994)",
"ref_id": "BIBREF1"
},
{
"start": 414,
"end": 426,
"text": "(Gold, 1967)",
"ref_id": "BIBREF5"
},
{
"start": 627,
"end": 653,
"text": "(Kearns and Valiant, 1989)",
"ref_id": "BIBREF6"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "There are two ways of modelling this. The simplest is to study the learnability of distributions (Kearns et al., 1994; Ron et al., 1995) . In this case the samples are drawn from the distribution that is being learned. The choice of error function then becomes critical -the most natural (and difficult) being the Kullback-Leibler divergence. This means that any successful algorithm must produce hypotheses that assign a non-zero probability to every string. If what we are interested in is learning the underlying nonprobabilistic concept then these hypotheses will be useless. We have elsewhere proved (Clark and Thollard, 2004) a suitable result similar to that of (Ron et al., 1995) , bounding the divergence, but that proof involves some more elaborate technical machinery.",
"cite_spans": [
{
"start": 97,
"end": 118,
"text": "(Kearns et al., 1994;",
"ref_id": "BIBREF7"
},
{
"start": 119,
"end": 136,
"text": "Ron et al., 1995)",
"ref_id": "BIBREF9"
},
{
"start": 605,
"end": 631,
"text": "(Clark and Thollard, 2004)",
"ref_id": null
},
{
"start": 669,
"end": 687,
"text": "(Ron et al., 1995)",
"ref_id": "BIBREF9"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "The second way is to consider a traditional concept-learning problem, but to restrict the class of distributions to some set that only generates positive examples, and has some relation to the target concept. It is this latter possibility that we explore here.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "In the particular case of learning languages we will have an instance space of \u03a3 * for some finite alphabet \u03a3, and we shall have a concept class, in this paper, corresponding to the class of all regular languages. In a distribution-free setting this is not learnable from positive and negative samples, nor a fortiori from positive samples alone. In our partially distribution-free framework however, we are able to prove learnability with an additional parameter in the sample complexity polynomial, that bounds a simple property of the distribution. We are able to present a simple stand alone proof for this well studied class of languages.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "The rest of the paper is structured as follows. Section 2 argues for a modified version of PAC learning as being an appropriate learning framework for a range of NLP problems. After defining some notation in Section 3 we then define an algorithm that learns regular languages (Sec-tion 4) and then in Section 5 prove that it does so according to this modified PAC-learnability criterion. We conclude with a critical analysis of our results.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "Regular languages are widely used in a number of different applications drawn from numerous domains such as computational biology, robotics etc. In many of these areas, efficient learning algorithms are desirable but in each the exact requirements will be different since the sources of information, and the desired properties of the algorithms vary widely. We argue here that learning algorithms in NLP have certain special properties that make the particular learnability result we study here useful. The most important feature in our opinion is the necessity for learning from positive examples only. Negative examples in NLP are rarely available. Even in a binary classification problem, there will often be some overlap between the classes so that examples labelled with \u2212 are not necessarily negative examples of the class labelled with +. For this reason alone we consider a traditional distribution-free PAC-learning framework to be wholly inappropriate. An essential part of the PAC-learning framework is a sort of symmetry between the positive and negative examples. Furthermore, there are a number of negative results which rule out distribution free learning of regular languages (Kearns et al., 1994) .",
"cite_spans": [
{
"start": 1192,
"end": 1213,
"text": "(Kearns et al., 1994)",
"ref_id": "BIBREF7"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "A related problem is that in the sorts of learning situations that occur in practice in NLP problems, and also those such as first language acquisition that one wishes to model formally, the distribution of examples is dependent on the concept being learned. Thus if we are modelling the acquisition of the grammar of a language, the positive examples are the grammatical, or perhaps acceptable, sentences of the target language. The distribution of examples is clearly highly dependent on the particular language, simply as a matter of fact, in that the sentences in the sample are generated by people who have acquired the language.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "It thus seems reasonable to require the distribution to be drawn from some limited class that depends on the target concept and generates only positive examples -i.e. where the support of the distribution is identical to the positive part of the target concept.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "Our proposal is that when the class of lan-guages is defined by some simple class of automata, we can consider only those distributions generated by the corresponding stochastic automata. The set of distributions is restricted and thus we call this partially distribution free. Thus when learning the class of regular languages, which are generated by deterministic finite-state automata, we select the class of distributions which are generated by PDFAs. Similarly, context free languages are normally defined by context-free grammmars which can be extended again to probabilistic or stochastic context free grammars. Formally, for every class of languages, L, defined by some formal device define a class of distributions, D, defined by a stochastic variant of that device. Then for each language L, we select the set of distributions whose support is equal to the language:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "D + L = {D \u2208 D : \u2200s \u2208 \u03a3 * s \u2208 L \u21d4 P D (s) > 0}",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "Samples are drawn from one of these distributions. There are two technical problems here: first, this doesn't penalise over-generalisation. Since the distribution is over positive examples, negative examples have zero weight -which would give a hypothesis of all strings zero error. We therefore need some penalty function over negative examples or alternatively require the hypothesis to be a subset of the target, and use a one-sided loss function as in Valiant's original paper (Valiant, 1984) , which is what we do here. Secondly, this definition is too vague. The exact way in which you extend the \"crisp\" language to a stochastic one can have serious consequences. When dealing with regular languages, for example, though the class of languages defined by deterministic automata is the same as that defined by non-deterministic languages, the same is not true for their stochastic variants. Additionally, one can have exponential blow-ups in the number of states when determinizing automata. Similarly, with context free languages, (Abney et al., 1999) showed that converting between two parametrisations of models for stochastic context free languages are equivalent but that there are blow-ups in both directions.",
"cite_spans": [
{
"start": 481,
"end": 496,
"text": "(Valiant, 1984)",
"ref_id": "BIBREF10"
},
{
"start": 1038,
"end": 1058,
"text": "(Abney et al., 1999)",
"ref_id": "BIBREF0"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "It is interesting to compare this to the PAClearning with simple distributions model (Denis, 2001 ). There, the class of distributions is limited to a single distribution derived from algorithmic complexity theory. There are a number of reasons why this is not appropriate.",
"cite_spans": [
{
"start": 85,
"end": 97,
"text": "(Denis, 2001",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "First there is a computational issue: since Kolmogorov complexity is not computable, sampling from the distribution is not possible, though a lower bound on the probabilities can be defined. Secondly, there are very large constants in the sample complexity polynomial. Finally and most importantly, there is no reason to think that in the real world, samples will be drawn from this distribution; in some sense it is the easiest distribution to learn from since it dominates every other distribution up to a multiplicative factor.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "We reject the identification in the limit paradigm introduced by (Gold, 1967) as unsuitable for three reasons. First it is only an asymptotic bound that says nothing about the performance of the algorithms on finite amounts of data; secondly because it must learn under all presentations of the data even when these are chosen by an adversary to make it hard to learn, and thirdly because it has no bounds on the amount of computation allowed.",
"cite_spans": [
{
"start": 65,
"end": 77,
"text": "(Gold, 1967)",
"ref_id": "BIBREF5"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "An alternative way to conceive of this problem is to consider the task of learning distributions directly (Kearns et al., 1994) , a task related to probability density estimation and language modelling, where the algorithm is given examples drawn from a distribution and must approximate the distribution closely according to some distance metric: usually the Kullback-Leibler divergence or the variational distance. We consider the choice between the distribution-learning analysis, and the analysis we present here to depend on what the underlying task or phenomena to be modelled is. If it is the probability of the event occurring, then the distribution modelling analysis is better. If on the other hand it concerns binary judgments about the membership of strings in some set then the analysis we present here is preferable.",
"cite_spans": [
{
"start": 106,
"end": 127,
"text": "(Kearns et al., 1994)",
"ref_id": "BIBREF7"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "The result of (Kearns et al., 1994) shows up a further problem. Under a standard cryptographic assumption the class of acyclic PDFAs over a two-letter alphabet are not learnable since the class of noisy parity functions can be embedded in this simple subclass of PDFAs. (Ron et al., 1995) show that this can be circumvented by adding an additional parameter to the sample complexity polynomial, the distinguishability, which we define below.",
"cite_spans": [
{
"start": 14,
"end": 35,
"text": "(Kearns et al., 1994)",
"ref_id": "BIBREF7"
},
{
"start": 270,
"end": 288,
"text": "(Ron et al., 1995)",
"ref_id": "BIBREF9"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Appropriateness",
"sec_num": "2"
},
{
"text": "We will write \u03c3 for letters and s for strings. We have a finite alphabet \u03a3, and \u03a3 * is the free monoid generated by \u03a3, i.e. the set of all strings with letters from \u03a3, with \u03bb the empty string (identity). For s \u2208 \u03a3 * we define |s| to be the length of s. The subset of \u03a3 * of strings of length d is denoted by",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u03a3 d . A distribution or stochastic language D over \u03a3 * is a function D : \u03a3 * \u2192 [0, 1] such that s\u2208\u03a3 * D(s) = 1. The L \u221e norm between two distributions is defined as max s |D 1 (s) \u2212 D 2 (s)|.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "For a multiset of strings S we write\u015c for the empirical distribution defined by that multiset -the maximum likelihood estimate of the probability of the string.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "A probabilistic deterministic finite state automaton is a mathematical object that stochastically generates strings of symbols. It has a finite number of states one of which is a distinguished start state.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "Parsing or generating starts in the start state, and at any given moment makes a transition with a certain probability to another state and emits a symbol. We have a particular symbol and state which correspond to finishing.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "A PDFA A is a tuple (Q, \u03a3, q 0 , q f , \u03b6, \u03c4, \u03b3) , where",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 Q is a finite set of states,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 \u03a3 is the alphabet, a finite set of symbols,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 q 0 \u2208 Q is the single initial state,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 q f \u2208 Q is the final state,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 \u03b6 \u2208 \u03a3 is the final symbol,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 \u03c4 : Q \u00d7 \u03a3 \u222a {\u03b6} \u2192 Q \u222a {q f } is the transition function and",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "\u2022 \u03b3 : Q \u00d7 \u03a3 \u222a {\u03b6} \u2192 [0, 1] is the next symbol probability function. \u03b3(q, \u03c3) = 0 when \u03c4 (q, \u03c3) is not defined.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "We will sometimes refer to automata by the set of states. All transitions that emit \u03b6 go to the final state. In the following \u03c4 and \u03b3 will be extended to strings recursively in the normal way.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "The sum of the output transition from each states must be one: so for all q \u2208 Q \u03c3\u2208\u03a3\u222a{\u03b6} \u03b3(q, \u03c3) = 1",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "(1)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "Assuming further that there is a non zero probability of reaching the final state from each state:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "EQUATION",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [
{
"start": 0,
"end": 8,
"text": "EQUATION",
"ref_id": "EQREF",
"raw_str": "i.e. \u2200q \u2208 Q\u2203s \u2208 \u03a3 * : \u03c4 (q, s\u03b6) = q f \u2227 \u03b3(q, s\u03b6) > 0",
"eq_num": "(2)"
}
],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "the PDFA then defines a probability distribution over \u03a3 * , where the probability of generating a string s \u2208 \u03a3 * is P A (s) = \u03b3(q 0 , s\u03b6). We will write L(A) for the support of this distribution, L(A) = {s \u2208 \u03a3 * : P A (s) > 0}. We will also define P q (s) = \u03b3(q, s\u03b6) which we call the suffix distribution of the state q.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "We say that two states q, q are \u00b5distinguishable if L \u221e (P q , P q ) > \u00b5 for some \u00b5 > 0. An automaton is \u00b5-distinguishable iff every pair of states is \u00b5-distinguishable. Since we can merge states q, q which have L \u221e (P q , P q ) = 0, we can assume without loss of generality that every PDFA has a non-zero distinguishability.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "Note that \u03b3(q 0 , s) where s \u2208 \u03a3 * is the prefix probability of the string s, i.e. the probability that the automaton will generate a string that starts with s.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "We will use a similar notation, neglecting the probability function for (non-probabilistic) deterministic finite-state automata (DFAs).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Preliminaries",
"sec_num": "3"
},
{
"text": "We shall first state our main result.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Algorithm",
"sec_num": "4"
},
{
"text": "Theorem 1 For any regular language L, when samples are generated by a PDFA A where L(A) = L, with distinguishability \u00b5 and number of states n, for any , \u03b4 > 0, the algorithm LearnDFA will with probability at least 1 \u2212 \u03b4 return a DFA H which defines a language L(H) that is a subset of L with P A (L(A) \u2212 L(H)) < . The algorithm will draw a number of samples bounded by a polynomial in |\u03a3|, n, 1/\u00b5, 1/ , 1/\u03b4, and the computation is bounded by a polynomial in the number of samples and the total length of the strings in the sample.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Algorithm",
"sec_num": "4"
},
{
"text": "We now define the algorithm LearnDFA. We incrementally construct a sequence of DFAs that will generate subsets of the target language. Each state of the hypothesis automata will represent a state of the target and will have attached a multiset of strings that approximates the distribution of strings generated by that state. We calculate the following quantities m 0 and N from the input parameters.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Algorithm",
"sec_num": "4"
},
{
"text": "EQUATION",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [
{
"start": 0,
"end": 8,
"text": "EQUATION",
"ref_id": "EQREF",
"raw_str": "m 0 = 8 \u00b5 2 log 48n|\u03a3|(n|\u03a3| + 2) \u00b5\u03b4 (3) N = 2n|\u03a3|m 0",
"eq_num": "(4)"
}
],
"section": "Algorithm",
"sec_num": "4"
},
{
"text": "We start with an automaton that consists of a single state and no transitions, and the attached multiset is a sample of strings from the target. At each step we sample N strings from the target distribution. This re-sampling ensures the independence of all of the samples, and allows us to apply bounds in a straightforward way. For each state u in the hypothesis automaton and letter \u03c3 in the alphabet, such that there is no arc labelled with \u03c3 out of u we construct a candidate node (u, \u03c3) which represents the state reached from u by the transition labelled with \u03c3. For each string in the sample, we trace the corresponding path through the hypothesis. When we reach a candidate node, we remove the preceding part of the string, and add the rest to the multiset of the candidate node. Otherwise, in the case when the string terminates in the hypothesis automaton we discard the string.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Algorithm",
"sec_num": "4"
},
{
"text": "After we have done this for every string in the sample, we select a candidate node (u, \u03c3) that has a multiset of size at least m 0 . If there is no such candidate node, the algorithm terminates, Otherwise we compare this candidate node with each of the nodes already in the hypothesis. The comparison we use calculates the L \u221e -norm between the empirical distributions of the two multisets and says they are similar if this distance is less than \u00b5/4. We will make sure that with high probability these empirical distributions are close in the L \u221e -norm to the suffix distributions of the states they represent. Since we know that the suffix distributions of different states will be at least \u00b5 apart, we can be confident that we will only rarely make mistakes. If there is a node, v, which is similar then we conclude that v and (u, \u03c3) represent the same state. We therefore add an arc labelled with \u03c3 leading from u to v. If it is not similar to any node in the hypothesis, then we conclude that it represents a new node, and we create a new node u and add an arc labelled with \u03c3 leading from u to u . In this case we attach the multiset of the candidate node to the new node in the hypothesis. Intuitively this multiset will be a sample from the suffix distribution of the state of the target that it represents. We then discard all of the candidate nodes and their associated multisets, but keep the multisets attached to the states of the hypothesis, and repeat.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Algorithm",
"sec_num": "4"
},
{
"text": "We can now prove that this algorithm has the properties we claim. We use one technical lemma that we prove in the appendix.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "Lemma 1 Given a distribution D over \u03a3 * , for any \u00b5 < 1/2, when we independently draw a number of samples m more than m 0 = 1 2\u00b5 2 log 12 \u00b5 \u03b4 , into a multiset S then L \u221e (\u015c, D) < \u00b5 with probability greater than 1 \u2212 \u03b4 .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "Let H 0 , H 1 , . . . , H k be the sequence of finite automata, the states labelled with multisets, generated by the algorithm when samples are generated by a target PDFA A.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "We will say that a hypothesis automaton H i is \u00b5-good if there is a bijective function \u03a6 from a subset of states of A including q 0 , to all the states of H i such that \u03a6(q 0 ) is the root node of H i , and if there is an edge in H i such that \u03c4 (u, \u03c3) = v then \u03c4 (\u03a6 \u22121 (u), \u03c3) = \u03a6 \u22121 (v) i.e. if H i is isomorphic to a subgraph of the target that includes the root. If \u03a6(q) = u then we say that u represents q. In this case the language generated by H i is a subset of the target language. Additionally we require that for every state v in the hypothesis, the corresponding multiset satisfies",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "L \u221e (\u015c v , P \u03a6 \u22121 (v) ) < \u00b5/4",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": ". When a multiset satisfies this we will say it is \u00b5-good.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "We will extend the function \u03a6 to candidate nodes in the obvious way, and also the definition of \u00b5-good.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "Definition 1 (Good sample) We say that a sample of size N is \u00b5--good given a good hypothesis DFA H and a target A if all the candidate nodes with multisets larger than the threshold m 0 are \u00b5-good, and that if P A (L(A) \u2212 L(H)) > then the number of strings that exit the hypothesis automaton is more than 1 2 N P A (L(A) \u2212 L(H)).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Proof",
"sec_num": "5"
},
{
"text": "We will now show if all the samples are good, that for all i \u2212 0, 1, . . . , k, the hypothesis H i will be good, and that when the algorithm terminates the final hypothesis will have low error. We will do this by induction on the index i of the hypothesis H i . Clearly H 0 is good. Suppose H i\u22121 is good, and we draw a good sample. Consider a candidate node (u, \u03c3) with multiset greater than m 0 .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Approximately Correct",
"sec_num": "5.1"
},
{
"text": "Since the previous hypothesis was good, this will be a representative of a state q and thus the multiset will be a sequence of independent draws from the suffix distribution of this state P q . Thus L \u221e (\u015c u,\u03c3 , P q ) < \u00b5/4 by the goodness of the sample. We compare it to a state in the hypothesis v. If this state is a representative of the same state in the target v, then L \u221e (\u015c v , P q ) < \u00b5/4 (by the goodness of the multisets), the triangle inequality shows that L \u221e (\u015c u,\u03c3 ,\u015c v ) < \u00b5/2, and therefore the comparison will return true. On the other hand, let us suppose that v is a representative of a different state q v . We know that L \u221e (\u015c u,\u03c3 , P q ) < \u00b5/4 and L \u221e (\u015c v , P qv ) < \u00b5/4 (by the goodness of the multisets), and L \u221e (P q , P qv ) \u2265 \u00b5 (by the \u00b5-distinguishability of the target). By the triangle inequality",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Approximately Correct",
"sec_num": "5.1"
},
{
"text": "L \u221e (P q , P qv ) \u2264 L \u221e (\u015c u,\u03c3 , P q ) + L \u221e (\u015c u,\u03c3 ,\u015c v ) + L \u221e (\u015c v , P qv ), which implies that L \u221e (\u015c u,\u03c3 ,\u015c v",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Approximately Correct",
"sec_num": "5.1"
},
{
"text": ") > \u00b5/2 and the comparison will return false. In these cases H i will be good. Alternatively there is no candidate node above threshold in which case the algorithm terminates, and i = k. The total number of strings that exit the hypotheis must then be less than n|\u03a3|m 0 since there are at most n|\u03a3| candidate nodes each of which has multiset of size less than m 0 . By the definition of N and the goodness of the sample P A (L(A) \u2212 L(H)) < . Since it is good and thus defines a subset of the target language, this is a suitably close hypothesis.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Approximately Correct",
"sec_num": "5.1"
},
{
"text": "We must now show that by setting m 0 sufficiently large we can be sure that with probability greater than 1 \u2212 \u03b4 all of the samples will be good. We need to show that with high probability a sample of size N will be good for a given hypotheis G. We can assume that the hypothesis is good at each step. Each step of the algorithm will increase the number of transitions in the active set by at least 1. There are at most n|\u03a3| transitions in the target; so there are at most n|\u03a3| + 2 steps in the algorithm since we need an initial step to get the multiset for the root node and another at the end when we terminate. So we want to show that a particular sample will be good with probability at least 1 \u2212 \u03b4 n|\u03a3|+2 . There are two sorts of errors that can make the sample bad. First, one of the multisets could be bad, and secondly too few strings might exit the graph. There are at most n|\u03a3| candidate nodes, so we will make the probability of getting a bad multiset less than \u03b4/2n|\u03a3|(n|\u03a3| + 2), and we will make the probability of the second sort of error less than \u03b4/2(n|\u03a3| + 2).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Probably Correct",
"sec_num": "5.2"
},
{
"text": "First we bound the probability of getting a bad multiset of size m 0 . This will be satisfied if we set \u00b5 = \u00b5/4 and \u03b4 = \u03b4/2n|\u03a3|(n|\u03a3| + 2), and use Lemma 1.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Probably Correct",
"sec_num": "5.2"
},
{
"text": "We next need to show that at each step the number of strings that exit the graph will be not too far from its expectation, if P A (L(A) \u2212 L(H)) > . We can use Chernoff bounds to show that the probability too few strings exit the graph will be less than \u03b4/2(n|\u03a3| + 2) e \u2212N (G)P A (L(A)\u2212L(H))/4 < e \u2212N /4 < \u03b4/2(n|\u03a3| + 2) which will be satisfied by the value of N defined earlier, as can be easily verified.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Probably Correct",
"sec_num": "5.2"
},
{
"text": "Since we need to draw at most n|\u03a3| + 2 samples of size N the overall sample complexity will be (n|\u03a3| + 2)N , which ignoring log factors gives a sample complexity of O(n 2 |\u03a3| 2 \u00b5 \u22122 \u22121 ), which is quite benign. It is easy to see that the computational complexity is polynomial. Producing an exact bound is difficult since it depends on the length of the strings. The precise complexity also depends on the relative magnitudes of \u00b5, |\u03a3| and so on. The complexity is dominated by the cost of the comparisons. We can limit each multiset comparison to at most m 0 strings, which can be compared naively with m 2 0 string comparisons or much more efficiently using hashing or sorting. The number of nodes in the hypothesis is at most n, and the number of candidate nodes is at most n|\u03a3|, so the number of comparisons at each step is bounded by n 2 |\u03a3| and thus the total number of multiset comparisons by n 2 |\u03a3|(n|\u03a3|+2). Construction of multisets can be performed in time linear in the sample size. These observations suffice to show that the computation is polynomially bounded.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Polynomial complexity",
"sec_num": "5.3"
},
{
"text": "The convergence of these sorts of algorithms has been studied before in the identification in the limit framework, but previous proofs have not been completely convincing (Carrasco and Oncina, 1999) , and this criterion gives no guide to the practical utility of the algorithms since it applies only asymptotically. The partially distribution free learning problem we study here is novel. as is the extension of the results of (Ron et al., 1995) to cyclic automata and thus to infinite languages.",
"cite_spans": [
{
"start": 171,
"end": 198,
"text": "(Carrasco and Oncina, 1999)",
"ref_id": "BIBREF2"
},
{
"start": 427,
"end": 445,
"text": "(Ron et al., 1995)",
"ref_id": "BIBREF9"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "Before we examine our results critically, we would like to point out some positive aspects of the algorithm. First, this class of algorithms is in practice efficient and reliable. This particular algorithm is designed to have a provably good worst-case performance, and thus we anticipate its average performance on naturally occurring data to be marginally worse than comparable algorithms. We have established that we can learn an exponentially large family of infinite languages using polynomial amounts of data and computation. Mild properties of the input distributions suffice to guarantee learnability. The algorithm we present here is however not intended to be efficient or cognitively plausible: our intention was to find one that allowed a simple proof.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "The major weakness of this approach in our opinion is that the parameter n in the sample complexity polynomial is the number of states in the PDFA generating the distribution, and not the number of states in the minimal FA generating the language. Since determinisation of finite automata can cause exponential blow ups this is potentially a serious problem, depending on the application domain. A second problem is the need for a distinguishability parameter, which again in specific cases could be exponentially small. An alternative to this is to define a class of \u00b5-distinguishable automata where the distinguishability is bounded by an inverse polynomial in the number of states. Formally this is equivalent, but it has the effect of removing the parameter from the sample complexity polynomial at the cost of having a further restriction on the class of distributions. Indeed we can deal with the previous objection in the same way if necessary by requiring the number of states in the generating PDFA to be bounded by a polynomial in the minimal number of states needed to generate the target language. However both of these limitations are unavoidable given the negative results previously discussed. which rules out a naive application of Hoeffding bounds. It will suffice to show that every string with probability less than \u00b5 /2 will have empirical probability less than \u00b5 , and that all other strings will have probability within \u00b5 of their true values. The latter is straightforward: since there are at most 2/\u00b5 of these frequent strings. For any given frequent string s, by Hoeffding bounds: P r[|p(s) \u2212 p(s)| > \u00b5 ] < 2e \u22122m\u00b5 2 < 2e \u22122m 0 \u00b5 2 (5) So the probability of making an error on a frequent string is less than 4/\u00b5 e \u22122m 0 \u00b5 2 .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "Consider all of the strings whose probability is in [\u00b5 2 \u2212(k+1) , \u00b5 2 \u2212k ).",
"cite_spans": [
{
"start": 57,
"end": 63,
"text": "\u2212(k+1)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "S k = {s \u2208 \u03a3 * : \u03b3(q, s\u03b6) \u2208 [\u00b5 2 \u2212(k+1) , \u00b5 2 \u2212k )} (6) We define S rare = \u221e k=1 S k . The Chernoff bound says that for any \u03b4 > 0, for the sum of n bernouilli variables with prob p and P r(X > (1 + \u03b4)np) < e \u03b4 (1 + \u03b4) (1+\u03b4) np 7Now we bound each group separately, using the binomial Chernoff bound where n = m\u00b5 > mp (which is true since p < \u00b5 )",
"cite_spans": [
{
"start": 33,
"end": 39,
"text": "\u2212(k+1)",
"ref_id": null
},
{
"start": 218,
"end": 223,
"text": "(1+\u03b4)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "EQUATION",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [
{
"start": 0,
"end": 8,
"text": "EQUATION",
"ref_id": "EQREF",
"raw_str": "P r p(s) \u2265 \u00b5 \u2264 mp n n e n\u2212mp",
"eq_num": "(8)"
}
],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "This bound decreases with p, so we can replace this for all strings in S k with the upper bound for the probability, and we can replace m with m 0 .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "P r p(s) \u2265 \u00b5 \u2264 m 0 \u00b5 2 \u2212k m 0 \u00b5 m 0 \u00b5 e m 0 \u00b5 \u2212m 0 \u00b5 2 \u2212k \u2264 2 \u2212k e 1\u22122 \u2212k m 0 \u00b5 < 2 \u2212km 0 \u00b5",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "Assuming that m 0 \u00b5 > 3 P r p(s) \u2265 \u00b5 < 2 \u22122k 2 2\u2212m 0 \u00b5 P r \u2203s \u2208 S k :p(s) \u2265 \u00b5",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "\u2264 |S k |2 \u22122k 2 2\u2212m 0 \u00b5 \u2264 8 \u00b5 2 \u2212k 2 \u2212m 0 \u00b5",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "Using the factor of the form 2 \u2212k , we can sum over all of the k.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "P r[\u2200s \u2208 S rare :p(s) \u2265 \u00b5 ] < 8 \u00b5 2 \u2212m 0 \u00b5 \u221e k=1 2 \u2212k < 8 \u00b5 2 \u2212m 0 \u00b5",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "Putting these together we can show that the probability of the bound being exceeded will be 4 \u00b5 e \u22122m 0 \u00b5 2 + 8 \u00b5 2 \u2212m 0 \u00b5 < 12 \u00b5 e \u22122m 0 \u00b5 2 (9)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "This will be less than \u03b4 if",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "EQUATION",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [
{
"start": 0,
"end": 8,
"text": "EQUATION",
"ref_id": "EQREF",
"raw_str": "m 0 = 1 2\u00b5 2 log 12 \u00b5 \u03b4",
"eq_num": "(10)"
}
],
"section": "Discussion",
"sec_num": "6"
},
{
"text": "which establishes the result.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Discussion",
"sec_num": "6"
}
],
"back_matter": [
{
"text": "Proof of Lemma 1.We write p(s) for the true probability and p(s) = c(s)/m for the empirical probability of the string in the sample -i.e. the maximum likelihood estimate. We want to bound the probability over an infinite number of strings,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Appendix",
"sec_num": null
}
],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Relating probabilistic grammars and automata",
"authors": [
{
"first": "S",
"middle": [],
"last": "Abney",
"suffix": ""
},
{
"first": "D",
"middle": [],
"last": "Mcallester",
"suffix": ""
},
{
"first": "F",
"middle": [],
"last": "Pereira",
"suffix": ""
}
],
"year": 1999,
"venue": "Proceedings of ACL '99",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "S. Abney, D. McAllester, and F. Pereira. 1999. Relating probabilistic grammars and automata. In Proceedings of ACL '99.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "Learning stochastic regular grammars by means of a state merging method",
"authors": [
{
"first": "R",
"middle": [
"C"
],
"last": "Carrasco",
"suffix": ""
},
{
"first": "J",
"middle": [],
"last": "Oncina",
"suffix": ""
}
],
"year": 1994,
"venue": "Grammatical Inference and Applications, ICGI-94, number 862 in LNAI",
"volume": "",
"issue": "",
"pages": "139--152",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "R. C. Carrasco and J. Oncina. 1994. Learn- ing stochastic regular grammars by means of a state merging method. In R. C. Carrasco and J. Oncina, editors, Grammatical Infer- ence and Applications, ICGI-94, number 862 in LNAI, pages 139-152, Berlin, Heidelberg. Springer Verlag.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Learning deterministic regular grammars from stochastic samples in polynomial time",
"authors": [
{
"first": "R",
"middle": [
"C"
],
"last": "Carrasco",
"suffix": ""
},
{
"first": "J",
"middle": [],
"last": "Oncina",
"suffix": ""
}
],
"year": 1999,
"venue": "Theoretical Informatics and Applications",
"volume": "33",
"issue": "1",
"pages": "1--20",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "R. C. Carrasco and J. Oncina. 1999. Learning deterministic regular grammars from stochas- tic samples in polynomial time. Theoretical Informatics and Applications, 33(1):1-20.",
"links": null
},
"BIBREF4": {
"ref_id": "b4",
"title": "Pac-learnability of probabilistic deterministic finite state automata",
"authors": [],
"year": 2001,
"venue": "Machine Learning",
"volume": "5",
"issue": "",
"pages": "37--66",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Pac-learnability of probabilistic determinis- tic finite state automata. Journal of Machine Learning Research, 5:473-497, May. F. Denis. 2001. Learning regular languages from simple positive examples. Machine Learning, 44(1/2):37-66.",
"links": null
},
"BIBREF5": {
"ref_id": "b5",
"title": "Language indentification in the limit",
"authors": [
{
"first": "E",
"middle": [
"M"
],
"last": "Gold",
"suffix": ""
}
],
"year": 1967,
"venue": "Information and control",
"volume": "10",
"issue": "5",
"pages": "447--474",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "E. M. Gold. 1967. Language indentification in the limit. Information and control, 10(5):447 -474.",
"links": null
},
"BIBREF6": {
"ref_id": "b6",
"title": "Cryptographic limitations on learning boolean formulae and finite automata",
"authors": [
{
"first": "M",
"middle": [],
"last": "Kearns",
"suffix": ""
},
{
"first": "G",
"middle": [],
"last": "Valiant",
"suffix": ""
}
],
"year": 1989,
"venue": "21st annual ACM symposium on Theory of computation",
"volume": "",
"issue": "",
"pages": "433--444",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "M. Kearns and G. Valiant. 1989. Crypto- graphic limitations on learning boolean for- mulae and finite automata. In 21st annual ACM symposium on Theory of computation, pages 433-444, New York. ACM, ACM.",
"links": null
},
"BIBREF7": {
"ref_id": "b7",
"title": "On the learnability of discrete distributions",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Kearns",
"suffix": ""
},
{
"first": "Y",
"middle": [],
"last": "Mansour",
"suffix": ""
},
{
"first": "D",
"middle": [],
"last": "Ron",
"suffix": ""
},
{
"first": "R",
"middle": [],
"last": "Rubinfeld",
"suffix": ""
},
{
"first": "R",
"middle": [
"E"
],
"last": "Schapire",
"suffix": ""
},
{
"first": "L",
"middle": [],
"last": "Sellie",
"suffix": ""
}
],
"year": 1994,
"venue": "Proc. of the 25th Annual ACM Symposium on Theory of Computing",
"volume": "",
"issue": "",
"pages": "273--282",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "M.J. Kearns, Y. Mansour, D. Ron, R. Rubin- feld, R.E. Schapire, and L. Sellie. 1994. On the learnability of discrete distributions. In Proc. of the 25th Annual ACM Symposium on Theory of Computing, pages 273-282.",
"links": null
},
"BIBREF8": {
"ref_id": "b8",
"title": "Finite-state transducers in language and speech processing",
"authors": [
{
"first": "Mehryar",
"middle": [],
"last": "Mohri",
"suffix": ""
}
],
"year": 1997,
"venue": "Computational Linguistics",
"volume": "23",
"issue": "2",
"pages": "269--311",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Mehryar Mohri. 1997. Finite-state transducers in language and speech processing. Compu- tational Linguistics, 23(2):269-311.",
"links": null
},
"BIBREF9": {
"ref_id": "b9",
"title": "On the learnability and usage of acyclic probabilistic finite automata",
"authors": [
{
"first": "D",
"middle": [],
"last": "Ron",
"suffix": ""
},
{
"first": "Y",
"middle": [],
"last": "Singer",
"suffix": ""
},
{
"first": "N",
"middle": [],
"last": "Tishby",
"suffix": ""
}
],
"year": 1995,
"venue": "COLT 1995",
"volume": "",
"issue": "",
"pages": "31--40",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "D. Ron, Y. Singer, and N. Tishby. 1995. On the learnability and usage of acyclic probabilistic finite automata. In COLT 1995, pages 31-40, Santa Cruz CA USA. ACM.",
"links": null
},
"BIBREF10": {
"ref_id": "b10",
"title": "A theory of the learnable",
"authors": [
{
"first": "L",
"middle": [],
"last": "Valiant",
"suffix": ""
}
],
"year": 1984,
"venue": "Communications of the ACM",
"volume": "27",
"issue": "11",
"pages": "1134--1142",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "L. Valiant. 1984. A theory of the learnable. Communications of the ACM, 27(11):1134 - 1142.",
"links": null
}
},
"ref_entries": {}
}
}