learning i o automata
play

Learning I/O Automata Fides Aarts and Frits Vaandrager ICIS, - PowerPoint PPT Presentation

Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning I/O Automata Fides Aarts and Frits Vaandrager ICIS, Radboud Universiteit Nijmegen CONCUR 2010, Paris Fides Aarts and Frits


  1. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning I/O Automata Fides Aarts and Frits Vaandrager ICIS, Radboud Universiteit Nijmegen CONCUR 2010, Paris Fides Aarts and Frits Vaandrager Learning I/O Automata

  2. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Background: Grammatical Inference Teacher Learner Angluin’s L ∗ algorithm for active learning deterministic FSMs: Learner poses membership and equivalence queries Fides Aarts and Frits Vaandrager Learning I/O Automata

  3. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning Reactive Systems Angluin’s algorithm has been extended to Mealy machines by Niese and implemented in the LearnLib tool. Fides Aarts and Frits Vaandrager Learning I/O Automata

  4. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning Reactive Systems Angluin’s algorithm has been extended to Mealy machines by Niese and implemented in the LearnLib tool. Membership queries are replaced by output queries: which output is generated in response to a sequence of inputs? Fides Aarts and Frits Vaandrager Learning I/O Automata

  5. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning Reactive Systems Angluin’s algorithm has been extended to Mealy machines by Niese and implemented in the LearnLib tool. Membership queries are replaced by output queries: which output is generated in response to a sequence of inputs? Equivalence queries are approximated by test sequences generated using algorithms for model based testing. Fides Aarts and Frits Vaandrager Learning I/O Automata

  6. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning Reactive Systems (cnt) Fides Aarts and Frits Vaandrager Learning I/O Automata

  7. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Learning Reactive Systems (cnt) Active learning may provide models of reactive systems in situations where we have no access to the code (black box) and not even a specification, e.g. to learn reference implementations. Fides Aarts and Frits Vaandrager Learning I/O Automata

  8. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Challenges Fides Aarts and Frits Vaandrager Learning I/O Automata

  9. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Challenges Handle data and large state spaces Fides Aarts and Frits Vaandrager Learning I/O Automata

  10. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Challenges Handle data and large state spaces Handle nondeterministic systems Fides Aarts and Frits Vaandrager Learning I/O Automata

  11. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Challenges Handle data and large state spaces Handle nondeterministic systems For many applications, requirement that each input corresponds to exactly one output is overly restrictive Fides Aarts and Frits Vaandrager Learning I/O Automata

  12. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work I/O Automata in in in out1 out2 in Proposed independently by Lynch & Tuttle and Jonsson (1987). Fides Aarts and Frits Vaandrager Learning I/O Automata

  13. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work The I/O Behavior of I/O Automata? in in in out1 out2 in What output is generated in response to input sequence in in ? Common answer: either out1 훿 or out2 훿 (here 훿 = quiescence) Fides Aarts and Frits Vaandrager Learning I/O Automata

  14. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Determinism Engineers want deterministic systems: for every stream of inputs that is offered to the system, the stream of outputs that is generated should be unique. Deterministic systems are predictable. A deterministic FSM is behavior deterministic: for each string the output (accepted or not accepted) is unique. A deterministic Mealy machine is also behavior deterministic. Fides Aarts and Frits Vaandrager Learning I/O Automata

  15. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Determinism Engineers want deterministic systems: for every stream of inputs that is offered to the system, the stream of outputs that is generated should be unique. Deterministic systems are predictable. A deterministic FSM is behavior deterministic: for each string the output (accepted or not accepted) is unique. A deterministic Mealy machine is also behavior deterministic. How about I/O automata? Fides Aarts and Frits Vaandrager Learning I/O Automata

  16. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Determinism An IOA is input deterministic if i i q → q 1 ∧ q → q 2 ∧ i ∈ I ⇒ q 1 = q 2 Fides Aarts and Frits Vaandrager Learning I/O Automata

  17. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Determinism An IOA is input deterministic if i i q → q 1 ∧ q → q 2 ∧ i ∈ I ⇒ q 1 = q 2 It is output deterministic if o o q → q 1 ∧ q → q 2 ∧ o ∈ O ⇒ q 1 = q 2 Fides Aarts and Frits Vaandrager Learning I/O Automata

  18. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Determinism An IOA is input deterministic if i i q → q 1 ∧ q → q 2 ∧ i ∈ I ⇒ q 1 = q 2 It is output deterministic if o o q → q 1 ∧ q → q 2 ∧ o ∈ O ⇒ q 1 = q 2 It is output determined if: o 1 o 2 q → q 1 ∧ q → q 2 ∧ { o 1 , o 2 } ⊆ O ⇒ o 1 = o 2 ∧ q 1 = q 2 Fides Aarts and Frits Vaandrager Learning I/O Automata

  19. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Determinism An IOA is input deterministic if i i q → q 1 ∧ q → q 2 ∧ i ∈ I ⇒ q 1 = q 2 It is output deterministic if o o q → q 1 ∧ q → q 2 ∧ o ∈ O ⇒ q 1 = q 2 It is output determined if: o 1 o 2 q → q 1 ∧ q → q 2 ∧ { o 1 , o 2 } ⊆ O ⇒ o 1 = o 2 ∧ q 1 = q 2 For usual notion of I/O behavior, input deterministic, output determined IOAs are not behavior deterministic! Fides Aarts and Frits Vaandrager Learning I/O Automata

  20. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Avoiding Race Conditions Nondeterminism due to race conditions between IUT and tester. Common assumption: there is T such that IUT never produces output if more than T time has elapsed since previous event. Allows tester to observe quiescence. Dual assumption: there is t such that IUT never produces output if less than t time has elapsed since previous event. Allows tester/learner to avoid race conditions (if it is fast enough)! Fides Aarts and Frits Vaandrager Learning I/O Automata

  21. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work I/O Behavior of IOAs By action Δ we give IOA opportunity to produce next output. Sequences e ∈ ( I Δ ) ∗ are called environment sequences. By action 훿 , IOA indicates that it reached quiescent state: 훿 q → q iff q enables no output. e / u Define ⇒ to be least relation s.t. 휖/휖 ⇒ q q e / u ⇒ q ′ ∧ q ′ → q ′′ ∧ i ∈ I e i / u i i q ′′ q ⇒ q ⇒ e / u ⇒ q ′ ∧ q ′ → q ′′ ∧ o ∈ O 훿 e Δ / u o o q ′′ q ⇒ q ⇒ For 풜 an IOA, obs 풜 ( e ) = { u ∈ ( I ∪ O 훿 ) ∗ ∣ ∃ q ∈ Q : q 0 e / u ⇒ q } . Fides Aarts and Frits Vaandrager Learning I/O Automata

  22. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Observation Equivalence and ioco Fact (Output deterministic IOAs are behavior deterministic) If IOA 풜 is input deterministic and output determined then obs 풜 ( e ) is a singleton set, for all e ∈ ( I Δ ) ∗ . Fides Aarts and Frits Vaandrager Learning I/O Automata

  23. Introduction I/O Behavior and Determinism Interface Automata Learning IOAs Conclusions and Future Work Observation Equivalence and ioco Fact (Output deterministic IOAs are behavior deterministic) If IOA 풜 is input deterministic and output determined then obs 풜 ( e ) is a singleton set, for all e ∈ ( I Δ ) ∗ . Theorem Let 풜 1 and 풜 2 be IOAs. Then 풜 1 ioco 풜 2 iff, for all e ∈ ( I Δ ) ∗ , obs 풜 1 ( e ) ⊆ obs 풜 2 ( e ). Fides Aarts and Frits Vaandrager Learning I/O Automata

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend