Constrained Co-evolutionary Metamorphic Differential Testing for Autonomous Systems with an Interpretability Approach
Authors:
- Hossein YousefizadehHYHossein Yousefizadeh
- Shenghui GuSGShenghui Gu
- Lionel C. BriandLBLionel C. Briand
- Ali NasrANAli Nasr
Preprint
Abstract
Autonomous systems, such as autonomous driving systems, evolve rapidly through frequent updates, risking unintended behavioral degradations. Effective system-level testing is challenging due to the vast scenario space, the absence of reliable test oracles, and the need for practically applicable and interpretable test cases. We present CoCoMagic, a novel automated test case generation method that combines metamorphic testing, differential testing, and advanced search-based techniques to identify behavioral divergences between versions of autonomous systems. CoCoMagic formulates test generation as a constrained cooperative co-evolutionary search, evolving both source scenarios and metamorphic perturbations to maximize differences in violations of predefined metamorphic relations across versions. Constraints and population initialization strategies guide the search toward realistic, relevant scenarios. An integrated interpretability approach aids in diagnosing the root causes of divergences. We evaluate CoCoMagic on an end-to-end ADS, InterFuser, within the Carla virtual simulator. Results show significant improvements over baseline search methods, identifying up to 287\% more distinct high-severity behavioral differences while maintaining scenario realism. The interpretability approach provides actionable insights for developers, supporting targeted debugging and safety assessment. CoCoMagic offers an efficient, effective, and interpretable way for the differential testing of evolving autonomous systems across versions.Keywords
All Related Versions
This publication has 80 references indexed in Scilit:
- MetaSem: metamorphic testing based on semantic information of autonomous driving scenesSoftware Testing, Verification and Reliability, 2024
- Experimentation in Software Engineering2024
- MetaLiDAR: Automated metamorphic testing of LiDAR‐based autonomous driving systemsJournal of Software: Evolution and Process, 2023
- Fitness Functions for Testing Automated and Autonomous Driving Systems2019
- Next Generation Genetic Algorithms: A User’s Guide and Tutorial2018
- Genetic Algorithm2018
- A survey on handling computationally expensive multiobjective optimization problems with evolutionary algorithmsSoft Computing, 2017
- A timing analysis of convergence to fitness sharing equilibrium1998
- Evolutionary computing in multi-agent environments: Operators1998
- Selforganization of matter and the evolution of biological macromoleculesThe Science of Nature, 1971