[Paper Review] Complementing Model Learning with Mutation-Based Fuzzing
This paper proposes integrating mutation-based fuzzing with model learning in the Minimally Adequate Teacher framework to improve counterexample discovery for finite state machine (FSM) inference in reactive systems. By combining fuzzing with conformance testing and learning algorithms, the approach achieves better coverage of reachable error states in RERS challenge problems, with fuzzing discovering more errors than traditional methods in reachability tasks while confirming success in LTL verification.
An ongoing challenge for learning algorithms formulated in the Minimally Adequate Teacher framework is to efficiently obtain counterexamples. In this paper we compare and combine conformance testing and mutation-based fuzzing methods for obtaining counterexamples when learning finite state machine models for the reactive software systems of the Rigorous Exampination of Reactive Systems (RERS) challenge. We have found that for the LTL problems of the challenge the fuzzer provided an independent confirmation that the learning process had been successful, since no additional counterexamples were found. For the reachability problems of the challenge, however, the fuzzer discovered more reachable error states than the learner and tester, albeit in some cases the learner and tester found some that were not discovered by the fuzzer. This leads us to believe that these orthogonal approaches are complementary in the context of model learning.
Motivation & Objective
- Address the challenge of efficiently obtaining counterexamples in model learning under the Minimally Adequate Teacher framework.
- Overcome limitations of conformance testing, which relies on a priori bounds on FSM size and becomes computationally expensive.
- Evaluate mutation-based fuzzing as an alternative or complementary technique for counterexample generation in model learning.
- Assess the effectiveness of fuzzing in discovering reachable error states and validating learned models in real-world reactive systems.
- Demonstrate the complementarity of fuzzing and traditional learning/testing methods in model inference pipelines.
Proposed method
- Integrate a mutation-based fuzzer (AFL) with LearnLib to generate and evolve test inputs for target reactive systems.
- Extend AFL to capture and expose system output via shared memory, enabling compatibility with LearnLib’s input-output model.
- Use AFL’s fork server to isolate and restart target processes per query, supporting stateful system interaction.
- Apply fuzzing to generate test sequences independently of the learner and tester, then use them as equivalence queries.
- Combine fuzzing with conformance testing and L* learning to validate and refine FSM hypotheses.
- Use fitness functions based on code coverage and output differences to guide mutation and prioritize interesting test cases.
Experimental results
Research questions
- RQ1Can mutation-based fuzzing effectively discover counterexamples in the absence of a known upper bound on FSM size?
- RQ2How does fuzzing compare to conformance testing in terms of coverage of reachable error states in reactive systems?
- RQ3To what extent do fuzzing and traditional learning/testers discover overlapping or complementary error states?
- RQ4Can fuzzing serve as an independent verification mechanism for model learning success?
- RQ5What is the performance impact of using fuzzing as an equivalence query oracle in terms of learning time and query count?
Key findings
- For LTL problems in the RERS 2016 challenge, the fuzzer did not discover any new counterexamples beyond those found by the conformance tester, confirming the correctness of the learning process.
- In reachability problems, the fuzzer discovered more reachable error states than the learner and tester—e.g., in problem 1, fuzzing found 29/29 error states versus 19/29 via conformance testing.
- In some cases, the learner and tester discovered error states not found by the fuzzer, indicating non-overlapping coverage.
- Using fuzzing as an equivalence oracle reduced learning time significantly: for problem 1, learning with fuzzing took 21 seconds vs. 13 hours with W-method testing.
- Fuzzing reduced the number of queries needed: 16,731 with fuzzing vs. 2.46×10⁸ with W-method testing for problem 1.
- The fuzzer achieved higher state model accuracy (e.g., 1,027 states with fuzzing vs. 25 with W-method in problem 1), indicating better model fidelity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.