107
Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions Learning Automata over Large Alphabets Oded Maler Irini Eleftheria Mens CNRS-VERIMAG University of Grenoble EQINOCS Workshop, Paris 9 Mai 2016 VERIMAG O Maler - IE Mens 1 / 22

IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Learning Automata over Large Alphabets

Oded Maler Irini Eleftheria Mens

CNRS-VERIMAGUniversity of Grenoble

EQINOCS Workshop, Paris

9 Mai 2016

VERIMAG O Maler - IE Mens 1 / 22

Page 2: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Outline

Learning Languages

The L* Algorithm

Learning over Large Alphabets

Learning with/without a Teacher

Conclusions

VERIMAG O Maler - IE Mens 2 / 22

Page 3: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Machine Learning in General

- Given a sample M = {(x, y) | x ∈ X, y ∈ Y}- Find f : X → Y such that f (x) = y, ∀(x, y) ∈ M

- Predict f (x) for all x ∈ X

1 0 1 2 3 4 5 6 71.5

1.0

0.5

0.0

0.5

1.0

1.5

VERIMAG O Maler - IE Mens 3 / 22

Page 4: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Learning Regular Languages

Let Σ be an alphabet and let L ⊆ Σ∗ be a regular language (the target

language)

start q0

q4

3, 4

q6

2

q3

0, 1

0 1, 2, 3, 4

q2q5

0, 1, 2, 3, 4

3, 4

2

0, 1

0, 1, 2, 3, 4

1

q10, 2, 3, 4

2, 3, 4 0

1

χL : Σ∗ → {0, 1}

?

- Edward F Moore, Gedanken-experiments on sequential machines, 1956- E. Mark Gold, System Identification via State Characterization, 1972- Dana Angluin, Learning regular sets from queries and

counterexamples, 1987

VERIMAG O Maler - IE Mens 4 / 22

Page 5: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Active Learning

Learner

learning

algorithm

start q0

q4

3, 4

q6

2

q3

0, 1

0 1, 2, 3, 4

q2q5

0, 1, 2, 3, 4

3, 4

2

0, 1

0, 1, 2, 3, 4

1

q10, 2, 3, 4

2, 3, 4 0

1

hypothesis

Teacher

L ⊆ Σ∗

Memb(·)

w?∈ L

+/−

Equiv(·)L(H)

?= L

cex

Return HTrue

VERIMAG O Maler - IE Mens 5 / 22

Page 6: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Regular Sets and their Syntactic Congruences

Equivalence relation ∼L on Σ∗ induced by L ⊆ Σ∗

u ∼L v iff ∀w ∈ Σ∗ u · w ∈ L⇔ v · w ∈ L

This relation is a right-congruence with respect to concatenationu ∼ v implies u · w ∼ ·w for all u, v,w ∈ Σ∗

- [u] is the equivalence class of u

- Σ∗/∼ is the set of all equivalence classes

Theorem (Myhill-Nerode)

The language L is regular iff ∼L has finitely many congruence classes

VERIMAG O Maler - IE Mens 6 / 22

Page 7: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Canonical Representation

The minimal automaton for L is AL = (Σ,Q, q0, δ,F) where

- Q = Σ∗/∼

- q0 = [ε]

- δ([u], a) = [u · a]

- F = {[u] : u · ε ∈ L}

AL is homomorphic to any other automaton accepting L

VERIMAG O Maler - IE Mens 7 / 22

Page 8: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Observation Table - T = (Σ, S,R,E, f )

definition and properties

Eε a

S

ε − +a + −b − −ba − −

R

aa − +ab + −bb + −baa − −bab + −

- S states of the canonical automaton

- The words/paths correspond to aspanning tree

- R cross- and back-edges/transitions

ε

a b

aa ab ba bb

··· . . .

a b

a b a b

a b

VERIMAG O Maler - IE Mens 8 / 22

Page 9: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Observation Table - T = (Σ, S,R,E, f )

definition and properties

Eε a

S

ε − +a + −b − −ba − −

R

aa − +ab + −bb + −baa − −bab + −

- S states of the canonical automaton

- The words/paths correspond to aspanning tree

- R cross- and back-edges/transitions

ε

a b

a b

b ab

a

VERIMAG O Maler - IE Mens 8 / 22

Page 10: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε

−a +b −

hypothesis automaton

VERIMAG O Maler - IE Mens 9 / 22

Page 11: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a

+

b

hypothesis automaton

ε ?a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 12: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +b −

hypothesis automaton

ε ?a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 13: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +b −

hypothesis automaton

ε ?a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 14: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +

b −

hypothesis automaton

ε a ?a

b

a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 15: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +

b −aa

ab

+

hypothesis automaton

ε a ?a

b

a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 16: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +

b −aa −ab +

hypothesis automaton

ε a ?a

b

a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 17: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +

b −aa −ab +

hypothesis automaton

ε a ?a

b

a, b

VERIMAG O Maler - IE Mens 9 / 22

Page 18: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +

b −aa −ab +

hypothesis automaton

ε aa

b

b

a

VERIMAG O Maler - IE Mens 9 / 22

Page 19: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε

ε −a +

b −aa −ab +

hypothesis automaton

ε aa

b

b

a

Ask Equivalence Query:counterexample: −ba

a 6∼ ba −→ a is a new distinguishing

string

VERIMAG O Maler - IE Mens 9 / 22

Page 20: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε −

+

a +

b −

aa −

+

ab +

hypothesis automaton

ε aa

b

b

a

Ask Equivalence Query:

counterexample: −ba

a 6∼ ba −→ a is a new distinguishing

string

VERIMAG O Maler - IE Mens 9 / 22

Page 21: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε − +a + −b − −aa − +ab + −

hypothesis automaton

ε aa

b

b

a

Ask Equivalence Query:

counterexample: −ba

a 6∼ ba −→ a is a new distinguishing

string

VERIMAG O Maler - IE Mens 9 / 22

Page 22: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε − +a + −b − −aa − +ab + −

hypothesis automaton

ε aa

b

b

a

Ask Equivalence Query:

counterexample: −ba

a 6∼ ba −→ a is a new distinguishing

string

VERIMAG O Maler - IE Mens 9 / 22

Page 23: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε − +a + −b − −aa − +ab + −ba

− −

bb

+ −

hypothesis automaton

ε a

b

a

b

b

a

VERIMAG O Maler - IE Mens 9 / 22

Page 24: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε − +a + −b − −aa − +ab + −ba − −bb + −

hypothesis automaton

ε a

b

a

b

b

a

VERIMAG O Maler - IE Mens 9 / 22

Page 25: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε − +a + −b − −aa − +ab + −ba − −bb + −

hypothesis automaton

ε a

b

a

b

b

a

ba

VERIMAG O Maler - IE Mens 9 / 22

Page 26: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

L∗ Example (Σ = {a, b})

observation table

ε aε − +a + −b − −aa − +ab + −ba − −bb + −

hypothesis automaton

ε a

b

a

b

b

a

ba

Ask Equivalence Query:

True

VERIMAG O Maler - IE Mens 9 / 22

Page 27: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Laguages over Large Alphabets

- Traditionally automata theory is flat, based on small alphabets,e.g. {a, b}

- In verification, for example, we have sequences over a hugestate-space like Bn for very large n

- Or we want to have languages over numbers or vectors

- We use symbolic automata with a modest number of states

- We do not want to enumerate all transitions but represent themsymbolically using predicates on the alphabet

- We will use inequalities (intervals) for numbers or Booleanfunctions for Boolean vectors

VERIMAG O Maler - IE Mens 10 / 22

Page 28: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Symbolic Automata

q0

q1

q2

q3

q4

[0, 10)

[30, 100)

[10, 30)

a11

a12

a13

[0, 50)

[50, 100)

[0, 20)

[50, 70)

[0, 50), [70, 100)

[20, 100)

Σ

a01

a02

a22

a32

a31, a33

a21

a41

[[a01]] = [0, 50) Σ = [0, 100) ⊆ R

[[a]] = {a ∈ Σ | ψ(a) = a}

w = 20 · 40 · 60 +

A = (Σ,Σ, ψ,Q, δ, q0,F)

- Q finite set of states,

- q0 initial state,

- F accepting states,

- Σ large concrete alphabet,

- δ ⊆ Q× 2Σ × Q

- Σ finite alphabet (symbols)

- ψq : Σ→ Σq, q ∈ Q

A is complete and deterministic

if ∀q ∈ Q {[[a]] | a ∈ Σq}forms a partition of Σ

VERIMAG O Maler - IE Mens 11 / 22

Page 29: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Learning using Evidences and Representatives

u

Σ[[a]] µ̂(a) µ̂(b)

a1 a2 a3 ak. . .

[[b]]

|p

? ? ? ?

evidences

µ(u · a) = {µ̂(u) · ai | ai ∈ [[a]]}

representatives

µ̂(u · a) = µ̂(u) · µ̂(a)

Let Σ be a subset of R

- To characterize continuations of u, ask queriesabout u · a for a finite sample of Σ (evidence)

- Evidence can be a fixed set, random, or a resultof binary search

- Form evidence compatible partitions- All evidences within a partition block

behave the same- Estimate boundaries using split, binary

search,. . .

- Associate a symbol to each partition block

- Choose one evidence as the representative foreach new symbol

VERIMAG O Maler - IE Mens 12 / 22

Page 30: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Symbolic Observation Table - T = (Σ,Σ,S,R, ψ,E, f , µ, µ̂)

Eε a

Sε − +a1 + −a2 − −

R

a1a3 + −a1a4 − +a1a5 − −a2a6 + −

- Prefixes are symbolic words- Symbols represent sets of letters (“fat” edges)

- Suffixes are concrete words (distinguish states)

- Fill in the table according to the representatives

a1 a2

a3

a4

a5 a6

ε

a1 a2

a1a3 a1a4 a1a5 a2a6

VERIMAG O Maler - IE Mens 13 / 22

Page 31: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Symbolic Observation Table - T = (Σ,Σ,S,R, ψ,E, f , µ, µ̂)

Eε a

Sε − +a1 + −a2 − −

R

a1a3 + −a1a4 − +a1a5 − −a2a6 + −

- ψ = {ψs}s∈S, ψs : Σ→ Σs semantics- [[a]] = {a ∈ Σ | ψ(a) = a}

- µ : Σ→ 2Σ evidences- µ(ε) = {ε}, µ(s · a) = µ̂(s) · µ(a)

- µ̂ : Σ→ Σ representative- µ̂(ε) = ε, µ̂(s · a) = µ̂(s) · µ̂(a)

- f : (S ∪ R) · E → {−,+} classif. function- f(s · e) = f (µ̂(s) · e), f s(e) = f(s · e)

VERIMAG O Maler - IE Mens 13 / 22

Page 32: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Counter-example Treatment (Symbolic Breakpoint)

Proposition

If w is a counter-example to AT then there exists an i-factorization of w suchthat either

f (µ̂(si−1 · ai) · vi) 6= f (µ̂(si) · vi) (1)

orf (µ̂(si−1) · ai · vi) 6= f (µ̂(si−1) · µ̂(ai) · vi) (2)

• If (1), then vi is a new distinguishing word vertical expansion

- Table not closed→ new state

• If (2), then ai is a new evidence for ai. horizontal expansion

- Evidence incompatibility→ new transition / refinement

VERIMAG O Maler - IE Mens 14 / 22

Page 33: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Counter-example Treatment (Symbolic Breakpoint)Let w = a1 · · · · ai · · · a|w| = ui · ai · vi ) be a counter-example.

f (µ̂(si−1 · ai) · vi) 6= f (µ̂(si) · vi)

f (µ̂(si−1) · ai · vi) 6= f (µ̂(si−1) · µ̂(ai) · vi)

si = δ(ε, ui · ai)

ε

s s′

µ̂(ai)

µ̂(ui)

vi

vi

6=

ε

s s′

new

µ̂(ai)

µ̂(ui)

vi

vi

6=

6=

s · ai is anew state ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

6=

ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

refine [[ai]]

VERIMAG O Maler - IE Mens 15 / 22

Page 34: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Counter-example Treatment (Symbolic Breakpoint)Let w = a1 · · · · ai · · · a|w| = ui · ai · vi ) be a counter-example.

f (µ̂(si−1 · ai) · vi) 6= f (µ̂(si) · vi)

f (µ̂(si−1) · ai · vi) 6= f (µ̂(si−1) · µ̂(ai) · vi)

si = δ(ε, ui · ai)

ε

s s′

µ̂(ai)

µ̂(ui)

vi

vi

6=

ε

s s′

new

µ̂(ai)

µ̂(ui)

vi

vi

6=

6=

s · ai is anew state

ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

6=

ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

refine [[ai]]

VERIMAG O Maler - IE Mens 15 / 22

Page 35: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Counter-example Treatment (Symbolic Breakpoint)Let w = a1 · · · · ai · · · a|w| = ui · ai · vi ) be a counter-example.

f (µ̂(si−1 · ai) · vi) 6= f (µ̂(si) · vi) f (µ̂(si−1) · ai · vi) 6= f (µ̂(si−1) · µ̂(ai) · vi)

si = δ(ε, ui · ai)

ε

s s′

µ̂(ai)

µ̂(ui)

vi

vi

6=

ε

s s′

new

µ̂(ai)

µ̂(ui)

vi

vi

6=

6=

s · ai is anew state ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

6=

ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

refine [[ai]]

VERIMAG O Maler - IE Mens 15 / 22

Page 36: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Counter-example Treatment (Symbolic Breakpoint)Let w = a1 · · · · ai · · · a|w| = ui · ai · vi ) be a counter-example.

f (µ̂(si−1 · ai) · vi) 6= f (µ̂(si) · vi) f (µ̂(si−1) · ai · vi) 6= f (µ̂(si−1) · µ̂(ai) · vi)

si = δ(ε, ui · ai)

ε

s s′

µ̂(ai)

µ̂(ui)

vi

vi

6=

ε

s s′

new

µ̂(ai)

µ̂(ui)

vi

vi

6=

6=

s · ai is anew state ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

6=ε

s

µ̂(ui)

µ̂(ai) ai

vi vi

6=

refine [[ai]]

VERIMAG O Maler - IE Mens 15 / 22

Page 37: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Learning with a Teacher

Σ. . . ai ai+1 . . .

|p

error in the partitions

- Equivalence is checked by an oracle (teacher) returning aminimal counter-examples (in length and lexicographically)

- Choose as evidence the min element of the interval (Σ has min)

- The counter-example indicates the minimal element of a newtransition (in horizontal expansion)

- The partition bounds are exact and no error is introduced

[[a]]

µ̂(a) µ̂(b)Σ

[[b]]

|p

VERIMAG O Maler - IE Mens 16 / 22

Page 38: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε

−1

a0 +

semantics hypothesis automaton

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 39: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −

1a0 +

semantics

ε

hypothesis automaton

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 40: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0

+

semantics

ε

[[a0]] = [1, 100)

hypothesis automaton

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 41: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

semantics

ε

[[a0]] = [1, 100)

hypothesis automaton

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 42: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

semantics

ε

[[a0]] = [1, 100)

hypothesis automaton

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 43: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

semantics

ε

[[a0]] = [1, 100)

a0

hypothesis automaton

ε a0Σ

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 44: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1

semantics

ε

[[a0]] = [1, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0Σ

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 45: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

semantics

ε

[[a0]] = [1, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0Σ

Σ

Ask Equivalence Query:

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 46: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

semantics

ε

[[a0]] = [1, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0Σ

Σ

Ask Equivalence Query:counterexample − 24

24 ∈ [[a0]] but 1 6∼ 24

−→ refine a0

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 47: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0

[1, 24)

Σ

Ask Equivalence Query:counterexample − 24

24 ∈ [[a0]] but 1 6∼ 24

−→ refine a0

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 48: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0

[1, 24)

Σ

Ask Equivalence Query:counterexample − 24

24 ∈ [[a0]] but 1 6∼ 24

−→ refine a0

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 49: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24)

Σ

Ask Equivalence Query:

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 50: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24)

Σ

Ask Equivalence Query:counterexample + 1 · 66

66 ∈ [[a1]] but 1 6∼ 66

−→ refine a1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 51: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24)

Σ

Ask Equivalence Query:counterexample + 1 · 66

66 ∈ [[a1]] but 1 6∼ 66

−→ refine a1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 52: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −1

a066a3

+

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24)

[1, 66)

Ask Equivalence Query:counterexample + 1 · 66

66 ∈ [[a1]] but 1 6∼ 66

−→ refine a1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 53: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −1

a066a3 +

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24)

[1, 66)

Ask Equivalence Query:counterexample + 1 · 66

66 ∈ [[a1]] but 1 6∼ 66

−→ refine a1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 54: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −1

a066a3 +

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24) [66, 100)

[1, 66)

Ask Equivalence Query:

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 55: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε

ε −1

a0 +

1a0

1a1 −

24a2 −1

a066a3 +

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24) [66, 100)

[1, 66)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 56: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε −1

a0 +

1a0

1a1 −

24a2 −1

a066a3 +

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24) [66, 100)

[1, 66)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 57: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −1

a01

a1 − +24a2 − −1

a066a3 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

hypothesis automaton

ε a0

[24, 100)

[1, 24) [66, 100)

[1, 66)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 58: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

hypothesis automaton

ε a0

a2

[1, 24) [66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 59: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4

− −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 100)

hypothesis automaton

ε a0

a2

[1, 24) [66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 60: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 100)

hypothesis automaton

ε a0

a2

[1, 24) [66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 61: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 100)

hypothesis automaton

ε a0

a2

[1, 24) [66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample − 24 · 1

1 6∼ 24 · 1 −→ add

distinguishing suffix 1

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 62: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 100)

hypothesis automaton

ε a0

a2

[1, 24)

Σ

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 63: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 100)

hypothesis automaton

ε a0

a2

[1, 24)

Σ

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample + 24 · 51

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 64: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 100)

hypothesis automaton

ε a0

a2

[1, 24)

Σ

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample + 24 · 51

51 ∈ [[a4]] but 1 6∼ 51

−→ refine a4

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 65: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5

+ −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample + 24 · 51

51 ∈ [[a4]] but 1 6∼ 51

−→ refine a4

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 66: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample + 24 · 51

51 ∈ [[a4]] but 1 6∼ 51

−→ refine a4

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 67: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[51, 100)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample + 24 · 51

51 ∈ [[a4]] but 1 6∼ 51

−→ refine a4

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 68: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[51, 100)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:counterexample + 24 · 51

51 ∈ [[a4]] but 1 6∼ 51

−→ refine a4

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 69: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[51, 100)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:

True

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4

VERIMAG O Maler - IE Mens 17 / 22

Page 70: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[51, 100)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:

True

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}

L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4VERIMAG O Maler - IE Mens 17 / 22

Page 71: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example with Teacher (Σ = [1, 100))Teacher returns minimal counterexamples

observation table

ε 1ε − +1

a0 + −24a2 − −1

a01

a1 − +1

a066a3 + −

24a2

1a4 − −

24a2

51a5 + −

semantics

ε

[[a0]] = [1, 24)

[[a2]] = [24, 100)

a0

[[a1]] = [1, 66)

[[a3]] = [66, 100)

a2

[[a4]] = [1, 51)

[[a5]] = [51, 100)

hypothesis automaton

ε a0

a2

[1, 24)

[1, 51)

[51, 100)

[66, 100)

[1, 66)

[24, 100)

Ask Equivalence Query:

True

M = {ε, 1, 24, 1 1, 1 66, 24 1, 24 51, 1 1 1, 1 66 1, 24 1 1, 24 51 1}L∗ over (Σ ∩ N)→ |M| = 790, |MQ| = 789, |EQ| = 2, |S| = 4, |R| = 396

|M| = 11, |MQ| = 7, |EQ| = 5, |S| = 3, |R| = 4VERIMAG O Maler - IE Mens 17 / 22

Page 72: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Learning without a Teacher

Σ. . . ai ai+1 . . .

|p

error in the partitions

- Equivalence is checked by testing random wordsselected using a probability distribution D

- Counter-examples are not minimalwe may have errors in the boundaries

- Counter-examples may be missedterminate algorithm and return hypothesis after r(ε, δ, i) randomwords have been tested, none of which is a counter-example

- The final hypothesis A is a good approximation of the targetlanguage L with high probability

P(d(L,LA) < ε) ≥ 1− δ (PAC learnability)

VERIMAG O Maler - IE Mens 18 / 22

Page 73: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 74: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 75: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 76: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92

|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 77: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 78: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +68a2 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 79: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +68a2 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 80: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +

68a2 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 81: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +

68a2 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 82: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +

68a2 −13a1

18a3 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 83: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +

68a2 −13a1

18a3 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 84: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε

ε −13a1 +

68a2 −13a1

18a3 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

Ask Equivalence Query:counterexample − 12 · 73 · 11

add distinguishing string 11

−→ new state

VERIMAG O Maler - IE Mens 19 / 22

Page 85: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε −13a1 +

68a2 −13a1

18a3 −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

Ask Equivalence Query:counterexample − 12 · 73 · 11

add distinguishing string 11

−→ new state

VERIMAG O Maler - IE Mens 19 / 22

Page 86: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

Ask Equivalence Query:counterexample − 12 · 73 · 11

add distinguishing string 11

−→ new state

VERIMAG O Maler - IE Mens 19 / 22

Page 87: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547 |

55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

Ask Equivalence Query:counterexample − 12 · 73 · 11

add distinguishing string 11

−→ new state

VERIMAG O Maler - IE Mens 19 / 22

Page 88: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27

|4547 |

55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 89: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 90: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4

− −

68a2

72a5

+ −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 91: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 92: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

x ≥ 27

x < 27

Σ

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 93: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

Σ

x ≥ 27

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 94: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

Σ

x ≥ 27

Ask Equivalence Query:counterexample − 12 · 73 · 11

add 73 as evidence of a1

−→ new transition

VERIMAG O Maler - IE Mens 19 / 22

Page 95: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73

|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

Σ

x ≥ 27

Ask Equivalence Query:counterexample − 12 · 73 · 11

add 73 as evidence of a1

−→ new transition

VERIMAG O Maler - IE Mens 19 / 22

Page 96: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

Σ

x ≥ 27

Ask Equivalence Query:counterexample − 12 · 73 · 11

add 73 as evidence of a1

−→ new transition

VERIMAG O Maler - IE Mens 19 / 22

Page 97: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

Σ

x ≥ 27

Ask Equivalence Query:counterexample − 12 · 73 · 11

add 73 as evidence of a1

−→ new transition

VERIMAG O Maler - IE Mens 19 / 22

Page 98: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

x ≥ 63

x < 63

x ≥ 27

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 99: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

x ≥ 63

x < 63

x ≥ 27

Ask Equivalence Query:counterexample − 52 · 47

add 47 as evidence of a2

−→ refine existing transition

VERIMAG O Maler - IE Mens 19 / 22

Page 100: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27 |4547

|55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

x ≥ 63

x < 63

x ≥ 27

Ask Equivalence Query:counterexample − 52 · 47

add 47 as evidence of a2

−→ refine existing transition

VERIMAG O Maler - IE Mens 19 / 22

Page 101: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27

|45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 45

x ≥ 45

x ≥ 63

x < 63

x ≥ 27

Ask Equivalence Query:counterexample − 52 · 47

add 47 as evidence of a2

−→ refine existing transition

VERIMAG O Maler - IE Mens 19 / 22

Page 102: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27

|45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 55

x ≥ 55

x ≥ 63

x < 63

x ≥ 27

counterexample

VERIMAG O Maler - IE Mens 19 / 22

Page 103: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Example without Teacher (Σ = [1, 100))Counterexamples are not minimal

observation table

ε 11ε − +13a1 + −68a2 − −13a1

18a3 − +

13a1

73a6 + −

68a2

17a4 − −

68a2

72a5 + −

semantics

ε

µ̂(a1) µ̂(a2)

13 42 68 78 92|27

a1

µ̂(a3)

18 26 46 542

µ̂(a6)

73|63

a2

µ̂(a4) µ̂(a5)

64 72 9417 27

|45

47 |55

hypothesis automaton

ε a1

a2

x < 27

x < 55

x ≥ 55

x ≥ 63

x < 63

x ≥ 27

Ask Equivalence Query:

counterexample

. . .

VERIMAG O Maler - IE Mens 19 / 22

Page 104: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Computing the Error

0 2 4 6 8 10 12 14 16hypothesis

0.0

0.1

0.2

0.3

0.4

0.5

0.6

erro

r

Run 1Run 2Run 3Run 4

• The error of the hypotheses alongseveral runs of the algorithm

The error is measured as volumes of the symmetric difference L between theconjectured and the target language

error = D(L) = limk→inf Dk(L),where Dk(L) is the k-volume of L, i.e., Dk(L) = V(Lk)/V(Σk)

VERIMAG O Maler - IE Mens 20 / 22

Page 105: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Current Status

- We implemented the algorithm for the case Σ ⊂ R and Σ ⊂ Nwith and without a teacher

- Experimental results on password rules over ASCII charcters

- We developed a similar algorithm for Σ = Bn for large n

- We use bounded complexity alphabet partitions in the style ofk-DNF or decision lists

- First results are encouraging, will be used to extend to Σ ⊂ Rn

VERIMAG O Maler - IE Mens 21 / 22

Page 106: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Discussion

- Symbolic automata: concrete values are used to select atransition but their exact value is not remembered by theautomaton

- Is there a niche for it in the time series analysis science?

- Combination of temporal (automaton) and static concept learning

- Can be an alternative to (deep) recurrent neural networks

- Should relax full compatibility with the sample (noise) and beready to drop negative examples

Thank you

VERIMAG O Maler - IE Mens 22 / 22

Page 107: IRIFLearning LanguagesThe L* AlgorithmLearning over Large AlphabetsLearning with/without a TeacherConclusions Regular Sets and their Syntactic Congruences Equivalence relation ˘ L

Learning Languages The L* Algorithm Learning over Large Alphabets Learning with/without a Teacher Conclusions

Discussion

- Symbolic automata: concrete values are used to select atransition but their exact value is not remembered by theautomaton

- Is there a niche for it in the time series analysis science?

- Combination of temporal (automaton) and static concept learning

- Can be an alternative to (deep) recurrent neural networks

- Should relax full compatibility with the sample (noise) and beready to drop negative examples

Thank you

VERIMAG O Maler - IE Mens 22 / 22