arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.15150cs.SE
收藏

muPRL:基于真实故障的深度强化学习变异测试流水线

muPRL: A Mutation Testing Pipeline for Deep Reinforcement Learning based on Real Faults

Deepak-George Thomas, Matteo Biagiola, Nargiz Humbatova, Mohammad Wardat, Gunel Jahangirova, Hridesh Rajan, Paolo Tonella

AI总结:

本文提出了muPRL,一个基于真实故障的深度强化学习变异测试流水线,通过代码库挖掘构建真实RL故障分类体系并推导出变异算子,实验证明其能有效区分强弱测试生成器,为开发者提供测试场景充分性的反馈。

摘要:

强化学习(RL)越来越多地被用于训练能够处理复杂序列任务的智能体,例如驾驶自动驾驶汽车或控制人形机器人。相应地,需要新颖的方法来确保RL智能体在投入生产前得到充分测试。其中,变异测试极具前景,特别是在假设注入的故障(变异)能够模拟真实故障的情况下。在本文中,我们首先描述了通过代码库挖掘获得的真实RL故障分类体系。然后,我们展示了从这些真实故障中推导出的变异算子,并在工具muPRL中实现了这些算子。最后,我们讨论了实验结果,表明muPRL能有效区分强测试生成器和弱测试生成器,从而为开发者提供关于生成测试场景充分性的有用反馈。

英文摘要:

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 muPRL. Finally, we discuss the experimental results, showing that muPRL is effective at discriminating strong from weak test generators, hence providing useful feedback to developers about the adequacy of the generated test scenarios.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑