cs.SENov 6, 2026

TensorMutation: Learning Weight-Space Mutations of Deep Learning Models on Neural Graphs

Authors: Zaheed Ahmed, Philip Makedonski, Jens Grabowski

Organizations: Institute of Computer Science, University of Göttingen, Germany

Abstract

Mutation testing for deep learning (DL) faces a cost-realism trade-off. The pre-training approach produces realistic but computationally expensive mutants, whereas existing post-training operators modify trained models efficiently but produce mutants that less closely resemble real faults. This study asks whether the trade-off is necessary: can the weight-space effect of a fault-informed pre-training mutation operator be predicted from a trained model, without retraining it? We answer this question with TensorMutation, which represents a trained model as a neural graph and uses a mutation-conditioned graph neural network (GNN) to predict parameter changes. The GNN is trained offline and reused across unseen models so that TensorMutation can generate executable mutants without retraining. We construct a corpus of 25,252 original-mutant pairs from 71 multilayer perceptron (MLP) classifiers using 11 fault-informed pre-training operators, including 25 newly curated subjects. TensorMutation partially reproduces the behavioral effects of pre-training mutations on nine held-out subjects, and direct weight-space supervision significantly improves weight-space fidelity. On 12 real-fault subjects, TensorMutation achieves the highest median behavioral similarity among the evaluated approaches. The improvement over the post-training tool DeepMutation++ is statistically significant (Holm-adjusted p=0.018), whereas the differences from the pre-training tool DeepCrime and the norm-matched random control are not significant. These results show that fault-informed pre-training mutations leave learnable structure in weight space that transfers to unseen models.

Figures & tables

Explore similar work

CardsList
  1. Quality-Driven Selective Mutation for Deep Learning

    Apr 24, 2026Zaheed Ahmed, Emmanuel Charleson Dapaah, Philip Makedonski +1

  2. Grounding Deep Learning Framework Testing in Data Flow

    Oct 11, 2026Jiatao Ge, Yanzhou Mu, Yinglong Zou +3Automated Software TestingDNN Testing