1 / 44

Cristina Bibire

Characterization of state merging strategies which ensure identification in the limit from complete data (II). Cristina Bibire. State of the art A new approach Motivation Results Further Research Bibliography. State of the Art.

aletha
Download Presentation

Cristina Bibire

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Characterization of state merging strategies which ensure identification in the limit from complete data(II) Cristina Bibire

  2. State of the art • A new approach • Motivation • Results • Further Research • Bibliography

  3. State of the Art • 1967 - Gold was the first one to formulate the process of learning formal languages. • 1973 - Trakhtenbrot and Barzdin described a polynomial time algorithm (TB algorithm) for constructing the smallest DFA consistent with a completely labelled training set (a set that contains all the words up to a certain length). • 1978 - Gold rediscovers the TB algorithm and applies it to the discipline of grammatical inference (uniformly complete samples are not required). He also specifies the way to obtain indistinguishable states using the so called state characterization matrices. • 1992 - Oncina and Garcia propose the RPNI (Regular Positive and Negative Inference) algorithm. • 1992 - Lang describes TB algorithm and generalize it to produce a (not necessarily minimum) DFA consistent with a sparsely labelled tree. The algorithm (Traxbar) can deal with incomplete data sets as well as complete data sets.

  4. State of the Art • 1997 - Lang and Pearlmutter organized the Abbadingo One contest. The competition presented the challenge of predicting, with 99% accuracy, the labels which an unseen FSA would assign to test data given training data consisting of positive and negative examples. • Price was able to win the Abbadingo One Learning Competition by using an evidence-driven state merging (EDSM) algorithm. Essentially, Price realized that an effective way of choosing which pair of nodes to merge next within the APTA would simply involve selecting the pair of nodes whose sub-tree share the most similar labels. • As a post-competition work, Lang proposed W-EDSM. In order to improve the running time of the EDSM algorithm, we only consider merging nodes that lie within a fixed sized window from the root node of the APTA • An alternative windowing method (Blue-fringe algorithm) is also described by Lang, PearlmutterandPrice. It uses a red and blue colouring scheme to provide a simple but effective way of choosing the pool of merge candidates at each merge level in the search.

  5. State of the Art • TB algorithm • Gold’s algorithm • RPNI • Traxbar • EDSM • W-EDSM • Blue-fringe

  6. 0 1 1 0 0, 1 1 1 2 4 0 0 1 3 0 State of the Art L=Any string without an odd number of consecutive 0’s after an odd number of consecutive 1’s

  7. 1 000 0 11 01 00 110 10 101 100 011 010 001 111 0101 1010 0000 0001 0010 0011 0100 0110 1110 1000 1001 1101 1011 1111 1100 0111 00001 11111 11110 00000 λ TB algorithm 0 1 (0,λ) 1 0 0 1 0 1 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 0 1 0 0 1

  8. 11 1 10 111 110 101 100 1101 1000 1001 1010 1011 1100 1101 1110 1111 10101 11011 11111 11010 10001 10000 10010 11100 10100 10111 10110 11001 11000 11101 11110 10011 λ TB algorithm 0 1 (11,λ) 0 1 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 1 0 0 1

  9. 10 101 1 1 100 10 101 100 1010 1001 1010 1001 1011 1011 1000 10110 10110 10010 10011 10100 10111 10101 10000 10100 10101 10010 10011 10001 10111 λ λ TB algorithm 0 0 1 1 1 1 (1000,10) (1001,1) 0 0 0 0 1 1 0 0 1 1 1 1 0 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0

  10. (1001,1) 100 1 1 101 100 10 101 10 1010 1011 10110 10111 10100 10101 λ λ TB algorithm 0 0 1 1 1 1 (1010,101) (1011,101) 0 0 0,1 1 1 1 1 0 0 1 0 0 0 1 0 0 1

  11. 1 0 11 100 101 110 10 0 1 1000 1001 1010 1011 10100 10110 10010 λ Gold’s algorithm 0 1 1 0 0 (0,λ) dist? No 1 1 0 0 0 0 0

  12. 1 0 11 10 110 0 100 1 101 1000 1001 1010 1011 10100 10110 10010 λ Gold’s algorithm 0 1 1 0 0 (0,λ) dist? No Yes (1,λ) dist? add 1 to S 1 1 0 0 0 0 0

  13. 1 0 11 1 10 110 0 100 101 1011 1000 1010 1001 10100 10110 10010 λ Gold’s algorithm 0 1 1 0 0 (0,λ) dist? No Yes (1,λ) dist? add 1 to S (10,λ) dist? Yes 1 1 0 0 add 10 to S (10,1) dist? Yes 0 0 0

  14. 1 0 11 100 101 110 10 0 1 1011 1010 1000 1001 10100 10110 10010 λ Gold’s algorithm 0 1 1 0 0 (0,λ) dist? No Yes (1,λ) dist? add 1 to S (10,λ) dist? Yes 1 1 0 0 add 10 to S (10,1) dist? Yes (11,λ) dist? No 0 0 0

  15. 1 0 11 100 101 110 10 1 0 1011 1010 1000 1001 10110 10010 10100 λ Gold’s algorithm 0 1 1 0 0 (0,λ) dist? No Yes (1,λ) dist? add 1 to S (10,λ) dist? Yes 1 1 0 0 add 10 to S (10,1) dist? Yes (11,λ) dist? No (100,λ) dist? Yes 0 0 0 add 100 to S (100,1) dist? Yes (100,10) dist? Yes

  16. 1 0 11 100 101 110 10 1 0 1011 1010 1000 1001 10110 10010 10100 λ Gold’s algorithm 0 1 1 0 0 (101,λ) dist? Yes 1 1 0 0 (101,1) dist? Yes add 101 to S (101,10) dist? Yes (101,100) dist? Yes 0 0 0

  17. 1 0 100 101 110 10 11 1 0 1000 1001 1010 1011 10010 10110 10100 λ Gold’s algorithm 0 1 1 0 0 1 1 0 0 (1000,10) dist? No 0 0 0

  18. 1 0 100 101 110 10 11 1 0 1000 1001 1010 1011 10100 10010 10110 λ Gold’s algorithm 0 1 1 0 0 1 1 0 0 (1000,10) dist? No (1001,1) dist? No 0 0 0

  19. 1 0 1 10 110 0 100 11 101 1000 1001 1010 1011 10010 10110 10100 λ Gold’s algorithm 0 1 1 0 0 1 1 0 0 (1000,10) dist? No No (1001,1) dist? (1010,101) dist? No 0 0 0

  20. 1 0 1 10 110 0 100 11 101 1000 1001 1010 1011 10110 10100 10010 λ Gold’s algorithm 0 1 1 0 0 1 1 0 0 (1000,10) dist? No No (1001,1) dist? (1010,101) dist? No 0 0 0 (1011,101) dist? No

  21. 1 0 1 10 110 0 100 11 101 1000 1001 1010 1011 10110 10100 10010 λ Gold’s algorithm 0 1 1 0 0 1 1 0 0 (1000,10) dist? No No (1001,1) dist? 0 0 0 (1010,101) dist? No (1011,101) dist? No

  22. 10 101 10 100 101 1 λ Gold’s algorithm 1 0 1 0 0,1 1 1 0 0

  23. 0 1 1 10 100 110 10 11 1 0 1 100 1000 1001 10000 0 1 0 0 λ λ RPNI K 1 0 Fr 0 1 0 0 1 0 0

  24. Traxbar • A variation of the Trakhtenbrot and Barzdin algorithm was implemented by Lang. The modifications made to the algorithm were needed to maintain consistency with incomplete training sets. For instance, unlabeled nodes and missing transitions in the APTA needed to be considered. • The simple extensions added to the Trakhtenbrot and Barzdin algorithm are as follows. • If node q2 is to be merged with node q1 then: • labels of labelled nodes in the sub-tree rooted at q2 must be copied over their respective unlabeled nodes in the sub-tree rooted at q1; • transitions in any of the nodes in the sub-tree rooted at q2 that do not exist in their respective node in the sub-tree rooted at q1 must be copied in. • As a result of these changes, the Traxbar algorithm will produce a (not necessarily minimum size) DFA that is consistent with the training set.

  25. 0 λ,0,11,110 0 λ,0 1 1 1 110 11 11 1 1 100 10 1 10 10 110 101 100 101 101 100 0 0 1 0 1011 1011 1000 1010 1001 1001 1001 1010 1000 1010 1011 1000 10100 10010 10010 10110 10010 10100 10100 10110 10110 1 0 1 0 0 1 1 0 0 1 1 0 0 λ 0 0 0 0 0 0 Traxbar (0,λ) (11,λ) 1 0 0 1 1 0 0 1 1 0 0 0 0 0

  26. 0 0 λ,0,11,110 λ,0,11,110 0 λ,0,11,110 1 1 1 1 1 1 0 0 1 10 101 100 101 1 100 101 100 1 1, 1001 0 0 10,1000 10,1000,10010 0 1011 1000 1001 1010 1011 1001 1010 1011 1010 10110 10100 10110 10010 10010 10110 10100 10100 1 1 0 0 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 Traxbar (1000,10) (1001,1) (1010,101) (1011,101)

  27. 100 1, 1001 101,1010,10100,1011,10110 Traxbar 0 λ,0,11,110 1 1 0,1 0 1 1 0 10,1000,10010 0

  28. EDSM • The general idea of the EDSM approach is to avoid bad merges by selecting the pair of nodes within the APTA which has the highest score. It is expected that the scoring will indicate the correctness of each merge, since on average, a merge that survives more label comparisons is more likely to be correct. • A post-competition version of the EDSM algorithm as described by Lang, Pearlmutter and Price is included below. • Evaluate all possible pairings of nodes within the APTA. • Merge the pair of nodes which has the highest calculated score. • Repeat the steps above until no other nodes within the APTA can be merged. • The score is calculated by assigning one point for each overlapping label node within the sub-tree rooted at the nodes considered for merging

  29. Windowed-EDSM • To improve the running time of the EDSM algorithm, it is suggested that we only consider merging nodes that lie within a fixed sized window from the root node of the APTA. • In breadth-first order, create a window of nodes starting from the root of the APTA. • Evaluate all possible merge pairs within the window. • Merge the pair of nodes which has the highest number of matching labels within its sub-trees. • If the merge reduces the size of the window, in breadth-first order, include the number of nodes needed to regain the fixed size of the window. • If no merge is possible within the given window, increase the size of the window by a factor of 2. • Terminate when no merges are possible. • The recommended size of the window is twice the number of states in the target DFA.

  30. Blue-Fringe • An alternative windowing method to that used by the W-EDSM algorithm is also described by Lang, Pearlmutter and Price. It uses a red and blue colouring scheme to provide a simple but effective way of choosing the pool of merge candidates at each merge level in the search. • The Blue-fringe windowing method aids in the implementation of the algorithm and improves on its running time. • Colour the root of the APTA red. • Colour the non-red children of each red node blue. • Evaluate all possible pairings of red and blue nodes. • Promote the first blue node which is distinguishable from each red node. • Otherwise, merge the pair of nodes which have the highest number of matching labels within their sub-trees. • Terminate when there are no blue nodes to promote and no possible merges to perform.

  31. A new approach Goal: to design an algorithm capable of incrementally learn new information without forgetting previously acquired knowledge and without requiring access to the original set of samples. We denote by: = the set of all automata having the alphabet Let be any of the algorithms defined so far (TB, Gold, RPNI, Traxbar, EDSM, W-EDSM, Blue-fringe) ?

  32. 1 3 2 0 A new approach 1 0 1 1 0 + 0 0 0 1 0

  33. 1 3 2 0 A new approach 0 1 1 1 0 0 0 0 1 0

  34. 1 3 2 0 A new approach 0 1 1 0 0 0 0 1 0

  35. 1 3 2 0 A new approach 0 1 1 0 0 0 1 0

  36. 0 q 2 3 1 1 2 3 1 1 (q,1) 0 1 0 0 0 0 A new approach 0 1 1 0 0 0 1

  37. 0 0 2 1 3 2 3 1 1 1 1 1 0 0 1 1 0 0 0 0 0 0 A new approach =

  38. Motivation • Q: Why do we need this algorithm? • In many practical applications, acquisition of a representative training data is expensive and time consuming. • It might be the case that a new sample is introduced after several days, months or even years • We might have lost the initial database

  39. Lemma 1 It is not always true that: Lemma 2 Let such that . It is not always true that: Lemma 3 Let such that . It is not always true that: Results

  40. Results Sketch of the Proof (for Lemma1 and Lemma2): Sketch of the Proof (for Lemma3):

  41. Further Research • To determine the complexity of the algorithm and to test it on large/sparse data • To determine how much time and resources we save using this algorithm instead of the classical ones • To design an algorithm to deal with new introduced negative samples • To find the answer to the question: when is the automaton created with this method weakly equivalent with the one obtained with the entire sample? • To improve the software in order to be able to deal with new samples

  42. Bibliography • Colin de la Higuera, José Oncina, Enrique Vidal. “Identification of DFA: Data-Dependent versus Data-Independent Algorithms” • Rajesh Parekh, Vasant Honavar. “Learning DFA from Simple Examples” • Michael J. Kearns, Umesh V. Vazirani “An Introduction to Computational Theory” • J. Oncina, P. Garcia. “A polynomial algorithm to infer regular languages” • Dana Angluin. “Inference of Reversible Languages” • P. Garcia, A. Cano, J. Ruiz. “A comparative study of two algorithms for automata identification” • P. Garcia , A. Cano, J. Ruiz. “Inferring subclasses of regular languages faster using RPNI and forbidden configurations” • K.J. Lang, B.A. Pearlmutter, R.A. Price. “Results of the Abbadingo One DFA Learning Competition and a New Evidence-Driven State Merging Algorithm”

  43. Bibliography • Takashi Yokomori. “Grammatical Inference and Learning”. • M. Sebban, J.C. Janodet, E. Tantini. ”BLUE : a Blue-Fringe Procedure for Learning DFA with Noisy Data” • Kevin J. Lang. “Random DFA’s can be Approximately Learned from Sparse Uniform Examples” • P. Dupont, L. Miclet, E. Vidal. “What is the search space of the regular inference?” • Sara Porat, Jerome A. Feldman. “Learning Automata from Ordered Examples” • Orlando Cicchello, Stefan C. Kremer. “Inducing Grammars from Sparse Data Sets: A Survey of Algorithms and results”

  44. Thank You!

More Related