Constrained Co-evolutionary Metamorphic Differential Testing for Autonomous Systems with an Interpretability Approach

May 16, 2026·
Hossein Yousefizadeh
Equal contribution
Shenghui (Samuel) Gu
Shenghui (Samuel) Gu
Equal contribution
,
Lionel C. Briand
,
Ali Nasr
· 0 min read
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 autonomous driving system, InterFuser, within the Carla virtual simulator. Results show significant improvements over baseline search methods, identifying 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.
Type
Publication
ACM Transactions on Software Engineering and Methodology
Status
Peer-reviewed
publications
Shenghui (Samuel) Gu
Authors
Researcher in Trustworthy AI and Software Engineering
I build methods for testing, validating, and improving trustworthy AI-enabled software systems. My research lies at the intersection of Software Engineering, AI Safety, and System Reliability, spanning LLM-driven testing, search-based software engineering for autonomous systems, and AIOps for distributed architectures. A central theme of my work is to make generative AI useful, interpretable, and dependable for solving complex validation problems in safety-critical and large-scale industrial systems.