$\mu \text{PRL}$: A Mutation Testing Pipeline for Deep Reinforcement Learning Based on Real Faults
Abstract
Reinforcement Learning (RL) is increasingly adopted to train agents that can deal with complex sequential tasks, such as driving an autonomous vehicle or controlling a humanoid robot. Correspondingly, novel approaches are needed to ensure that RL agents have been tested adequately before going to production. Among them, mutation testing is quite promising, especially under the assumption that the injected faults (mutations) mimic the real ones. In this paper, we first describe a taxonomy of real RL faults obtained by repository mining. Then, we present the mutation operators derived from such real faults and implemented in the tool$\mu \text{PRL}$. Finally, we discuss the experimental results, showing that$\mu \text{PRL}$is effective at discriminating strong from weak test generators, hence providing useful feedback to developers about the adequacy of the generated test scenarios.
BibTeX
@inproceedings{Thomas-al:ICSE25,
author = {Deepak{-}George Thomas and
Matteo Biagiola and
Nargiz Humbatova and
Mohammad Wardat and
Gunel Jahangirova and
Hridesh Rajan and
Paolo Tonella},
title = {\${\textbackslash}mu {\textbackslash}text{PRL}\$: A Mutation Testing Pipeline for Deep Reinforcement Learning Based on Real Faults},
booktitle = {ICSE},
pages = {2238--2250},
publisher = {{IEEE}},
year = {2025},
}