MuFF: Stable and Sensitive Post-training Mutation Testing for Deep Learning
Jinhan Kim, Nargiz Humbatova, Gunel Jahangirova, Shin Yoo, Paolo Tonella
TL;DR
MuFF tackles instability in post-training mutation testing for deep learning by introducing automated stability checks and two weight-inhibiting operators, enabling the efficient generation of killable and sensitive mutants. A binary-search framework tunes mutation parameters across multiple original models to maximize mutant quality while maintaining stability, achieving substantially higher sensitivity than existing post-training tools and orders-of-magnitude faster performance than pre-training methods. Spectral analysis reveals MuFF mutants are internally cohesive yet distinct from DeepCrime mutants, suggesting a unique and valuable mutant space. The approach maintains the practicality of post-training mutation while delivering gains in reliability, efficiency, and guidance for test-quality assessment and fault localization in DL systems.
Abstract
Rapid adoptions of Deep Learning (DL) in a broad range of fields led to the development of specialised testing techniques for DL systems, including DL mutation testing. However, existing post-training DL mutation techniques often generate unstable mutants across multiple training repetitions and multiple applications of the same mutation operator. Additionally, while extremely efficient, they generate mutants without taking into account the mutants' sensitivity and killability, resulting in a large number of ineffective mutants compared to pre-training mutants. In this paper, we present a new efficient post-training DL mutation technique, named MuFF, designed to ensure the stability of the mutants and capable of generating killable and sensitive mutants. MuFF implements an automated stability check and introduces two mutation operators, named weight and neuron inhibitors. Our extensive empirical experiments show that MuFF generates mutants with 60%pt and 25%pt higher sensitivity compared to DeepMutation++ and DeepCrime, respectively, while also producing mutants that are more stable than those of DeepMutation++ and different from the mutants of DeepCrime. Moreover, MuFF preserves the benefits of the post-training mutation technique, being 61 times faster than DeepCrime in generating mutants.
