This presentation delves into the complexities of learning languages from text, emphasizing the need for positive examples and addressing the risks of over-generalization. It discusses various types of languages, including k-testable and k-reversible languages, while outlining the theoretical framework for learning from text. Key challenges include the absence of negative examples and the implications of limit points in language classes. The conclusions drawn highlight the limitations of learning processes and the need for practical solutions to enhance language identification from unlabelled data.
01 / 67Exploring Learning from Text: Challenges, Limitations, and Language Types
1 / 17
Télécharger la présentation
Exploring Learning from Text: Challenges, Limitations, and Language Types
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation
Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement.Téléchargez la présentation en cliquant sur ce lien.Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.
Outline • Motivations, definition and difficulties • Some negative results • Learning k-testable languages from text • Learning k-reversible languages from text • Conclusions http://pagesperso.lina.univ-nantes.fr/~cdlh/slides/ Chapters 8 and 11
1 Identification in the limit yields A class of languages L Pres ℕX a L A learner The naming function G A class of grammars L(a())=yields() (ℕ)=(ℕ) yields()=yields()
Learning from text • Only positive examples are available • Danger of over-generalization: why not return *? • The problem is “basic”: • Negative examples might not be available • Or they might be heavily biased: near-misses, absurd examples… • Base line: all the rest is learning with help
From the sample to the PTA PTA(S+) 7 a 11 a a 4 8 b 2 a b a 14 a b 9 12 5 1 a 15 b 13 3 b a a 10 6 S+={, aaa, aaba, ababa, bb, bbaaa}
Unanswered Questions • Data is unlabelled… • Is this a clustering problem? • Is this a problem posed in other settings?
2 The theory • Gold 67: No super-finite class can be identified from positive examples (or text) only • Necessary and sufficient conditions for learning exist • Literature: • inductive inference, • ALT series, …
Limit point • A class L of languages has a limit pointif there exists an infinite sequence Lnnℕ of languages in L such that L0 L1 … Lk …, and there exists another language LL such that L= nℕLn • L is called a limit point of L
Theorem If L admits a limit point, then L is not learnable from text Proof: Letsibe a presentation in length-lex order for Li,and s be a presentation in length-lex order for L. Thennℕi: knsik= sk Note: having a limit point is a sufficient condition for non learnability; not a necessary condition
Mincons classes • A class is mincons if there is an algorithm which, given a sample S, builds a grammar GG such that S L L(G) L =L(G) • Ie there is a unique minimum (for inclusion) consistent grammar
Accumulation point (Kapur 91) A class L of languages has an accumulation pointif there exists an infinite sequence Sn nℕ of sets such that S0 S1 … Sn …, and L= nℕSn L …and for any nℕ there exists a language Ln’ in L such that Sn Ln’ L. The language L is called an accumulation point of L
Infinite Elasticity • If a class of languages has a limit point there exists an infinite ascending chain of languages L0 L1 … Ln …. • This property is called infinite elasticity
Theorem (Angluin) G is learnable iff there is a computable partial function : Gℕ* such that: • nℕ, (G,n) is defined iffGG and L(G) • GG, TM={(G,n): nℕ} is a finite subset of L(G) called a tell-tale subset • G,G’M, if TM L(G’) then L(G’) L(G)
Proposition (Kapur 91) A language L in L has a tell-tale subsetiffL is not an accumulation point. (for mincons)
Summarizing • Many alternative ways of proving that identification in the limit is not feasible • Methodological-philosophical discussion • We still need practical solutions
3 Learning k-testable languages P. García and E. Vidal. Inference of K-testable languages in the strict sense and applications to syntactic pattern recognition. Pattern Analysis and Machine Intelligence, 12(9):920–925, 1990 P. García, E. Vidal, and J. Oncina. Learning locally testable languages in the strict sense. In Workshop on Algorithmic Learning Theory (ALT 90), pages 325–338, 1990
Definition Let k0, a k-testable language in the strict sense (k-TSS) is a 5-tuple Zk=(, I, F, T, C) with: • a finite alphabet • I, Fk-1(allowed prefixes of length k-1 and suffixes of length k-1) • Tk (allowed segments) • C<k contains all strings of length less than k • Note that I∩F=C∩Σk-1
The k-testable language is L(Zk)=I* *F - *(k-T)*C • Strings (of length at least k) have to use a good prefix and a good suffix of length k-1, and all sub-strings have to belong to T. Strings of length less than k should be in C • Or: k-T defines the prohibited segments • Key idea: use a window of size k
a b a a a b An example (2-testable) I={a} F={a} T={aa, ab, ba} C={,a}
Window language • By sliding a window of size 2 over a string we can parse • ababaaababababaaaa OK • aaabbaaaababab not OK
The hierarchy of k-TSS languages • k-TSS()={L*: L is k-TSS} • All finite languages are in k-TSS() if k is large enough! • k-TSS() [k+1]-TSS() • (bak)* [k+1]-TSS() • (bak)* k-TSS()
K-TSS inference Given a sample S, L(ak-TSS(S))= Zk where Zk=((S), I(S), F(S), T(S), C(S) ) and • (S) is the alphabet used in S • C(S)=(S)<kS • I(S)=(S)k-1Pref(S) • F(S)= (S)k-1Suff(S) • T(S)=(S)k {v: uvwS}
Building the corresponding automaton • Each string in IC and PREF(IC) is a state • Each substring of length k-1 of strings in T is a state • is the initial state • Add a transition labeled b from u to ub for each state ub • Add a transition labeled b from au to ub for each aub in T • Each state/substring that is in F is a final state • Each state/substring that is in C is a final state
a aa aa a a a I={aa, ab} b F={aa, ba} ab ab T={abb, bbb, bba} C={a, aa} b bb a bb ba ba b Running the algorithm S={a, aa, abba, abbbba}
Properties (1) • S L(ak-TSS(S)) • L(ak-TSS(S)) is the smallest k-TSS language that contains S • If there is a smaller one, some prefix, suffix or substring has to be absent
Properties (2) • ak-TSS identifies any k-TSS language in the limit from polynomial data • Once all the prefixes, suffixes and substrings have been seen, the correct automaton is returned • If YS, L(ak-TSS(Y)) L(ak-TSS(S))
Properties (3) • L(ak+1-TSS(S)) L(ak-TSS(S)) In Ik+1 (resp. Fk+1 and Tk+1) there are less allowed prefixes (resp. suffixes or substrings) than in Ik (resp. Fk and Tk) • k>maxxSx, L(ak-TSS(S))= S • Because for a large k, Tk(S)=
The k-reversible languages • The class was proposed by Angluin (1982) • The class is identifiable in the limit from text • The class is composed by regular languages that can be accepted by a DFA such that its reverse is deterministic with a look-ahead of k
a b A a 2 b 1 0 a 4 a a 3 a AT b a 2 b 1 0 a 4 a a 3
Some definitions • u is a k-successor of q if │u│=k and (q,u) • u is a k-predecessor of q if │u│=k and T(q,uT) • is 0-successor and 0-predecessor of any state
a b A a 2 b • aa is a 2-successor of 0 and 1 but not of 3 • a is a 1-successor of 3 • aa is a 2-predecessor of 3 but not of 1 1 0 a 4 a a 3
Example a b This automaton is not deterministic with look-ahead 1 but is deterministic with look-ahead 2 a 2 b 1 0 a 4 a a 3
K-reversible automata • A is k-reversible if A is deterministic and AT is deterministic with look-ahead k • Example b b a a b a 2 b a 2 1 0 1 0 b b deterministic with look-ahead 1 deterministic
Notations • RL(, k) is the set of all k reversible languages over alphabet • RL() is the set of all k-reversible languages over alphabet (ie for all values of k) • ak-RL is the learning algorithm we describe
Properties • There are some regular languages that are not in RL() • RL(,k)RL(,k-1) check
Violation of k-reversibility Two states q, q’ violate the k-reversibility condition if • they violate the deterministic condition: q,q’(q”,a) or • they violate the look-ahead condition: • q,q’F, uk: u is k-predecessor of both q and q’ • uk, (q,a)=(q’,a) and u is k-predecessor of both q and q’
Connexion au compte
Connectez-vous pour publier votre contenu sur SlideServe.