[Paper Review] AmbieGen: A Search-based Framework for Autonomous Systems Testing
AmbieGen is an open-source, search-based framework that uses evolutionary algorithms to automatically generate diverse and challenging test scenarios for autonomous systems, such as self-driving cars and robots. It won the SBST 2022 tool competition by efficiently identifying fault-revealing scenarios within limited time budgets, leveraging a modular architecture for extensibility and integration with simulators.
Thorough testing of safety-critical autonomous systems, such as self-driving cars, autonomous robots, and drones, is essential for detecting potential failures before deployment. One crucial testing stage is model-in-the-loop testing, where the system model is evaluated by executing various scenarios in a simulator. However, the search space of possible parameters defining these test scenarios is vast, and simulating all combinations is computationally infeasible. To address this challenge, we introduce AmbieGen, a search-based test case generation framework for autonomous systems. AmbieGen uses evolutionary search to identify the most critical scenarios for a given system, and has a modular architecture that allows for the addition of new systems under test, algorithms, and search operators. Currently, AmbieGen supports test case generation for autonomous robots and autonomous car lane keeping assist systems. In this paper, we provide a high-level overview of the framework's architecture and demonstrate its practical use cases.
Motivation & Objective
- To address the challenge of exploring vast, high-dimensional test scenario spaces in autonomous systems testing.
- To develop a scalable and extensible framework for generating adversarial test cases that expose system failures.
- To support research in search-based testing by enabling experimentation with different algorithms, operators, and fitness functions.
- To improve test diversity and fault detection in safety-critical autonomous systems such as lane-keeping assist systems and robot navigation.
- To provide a reusable, open-source tool compatible with simulation environments and extensible for new systems and testing objectives.
Proposed method
- Employs evolutionary search via the Pymoo framework to explore the space of virtual environment configurations for autonomous systems.
- Represents test scenarios as 2D arrays encoding discrete environmental features such as road topology, obstacle placement, and dynamic agents.
- Uses a simplified system model to compute fitness scores rapidly, guiding the search toward fault-revealing scenarios.
- Supports multiple search algorithms, including random search, single-objective genetic algorithm, and multi-objective NSGA-II.
- Enables modular extension of components such as initialization, crossover, mutation, and fitness functions for custom testing problems.
- Integrates with simulators (planned) to validate generated scenarios and incorporate feedback into fitness evaluation.
Experimental results
Research questions
- RQ1To what extent do diversity-preserving techniques improve the coverage and fault-detection capability of test suites in autonomous systems?
- RQ2How do different search operators and algorithms (e.g., NSGA-II vs. single-objective GA) compare in convergence speed and fault-revealing effectiveness?
- RQ3Which fitness functions best guide the search toward critical, failure-inducing scenarios in neural network-based autonomous systems?
- RQ4How effective is using a simplified model for fitness evaluation in guiding search for real system failures in full simulators?
- RQ5Can the framework be extended to support complex, real-world scenario specifications (e.g., SCENIC) and integration with major simulators like CARLA?
Key findings
- AmbieGen successfully won the SBST 2022 tool competition by generating the highest number of diverse, fault-revealing scenarios for an autonomous vehicle lane-keeping assist system within a constrained time budget.
- The framework demonstrated strong performance using NSGA-II and single-objective genetic algorithms, outperforming random search in both fault detection and scenario diversity.
- The modular architecture enables seamless integration of new systems under test, fitness functions, and search operators, supporting rapid experimentation.
- The use of a simplified model for fitness evaluation significantly reduced computational cost while still guiding the search toward meaningful failure-inducing scenarios.
- The framework is compatible with the Pymoo ecosystem, allowing researchers to leverage advanced optimization algorithms and comparative analysis features.
- The tool has been open-sourced with full reproducibility via a CodeOcean capsule and GitHub repository, enabling community contributions and long-term extensibility.
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.