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

基于失败的深度强化学习智能体测试方法

Failure-Based Testing for Deep Reinforcement Learning Agents

Beihang University(北京航空航天大学)

Weibin Lin, Jiangtao Meng, Zheng Zheng

AI总结:

针对深度强化学习智能体测试中奖励信号失效的问题,提出一种基于任务失败洞察的黑盒测试方法PRT,通过优先测试高难度任务来提升故障检测效率,在四个基准上测试成本降低超50%。

摘要:

深度强化学习(DRL)智能体已被广泛应用于各个领域,以解决具有挑战性的决策问题,例如自动驾驶和机器人控制。鉴于其中许多应用涉及安全和关键任务,对DRL智能体进行严格测试不可或缺。现有的测试方法通常由奖励信号引导以检测故障。然而,对于训练良好的智能体,其在标准操作条件下的性能接近最优水平,奖励信号通常保持较高水平,使得现有方法在发现关键故障方面效果不佳。为了解决这些挑战,我们提出了一种新颖的基于失败的方法,利用任务诱导的失败洞察来增强故障检测能力,同时减少所需测试的数量。由于DRL智能体本质上是根据人类定义的任务设计的,它们提供了关于任务难度的宝贵线索。直观地说,当面对更困难的任务时,DRL智能体更可能失败;因此,PRT优先处理这些任务。在此基础上,我们提出了优先随机测试(PRT),一种基于黑盒的失败驱动测试方法,能够在保持生成测试用例多样性的同时实现有针对性的优先级排序。在任务诱导的失败洞察指导下,PRT优先考虑输入域中易出错的区域,从而促进高效的故障检测。PRT在四个广泛使用的基准上进行了评估,并与包括模糊测试、基于搜索和基于生成的方法在内的不同最先进方法进行了比较。在发现第一个故障的成本和测试用例的多样性方面,PRT均名列前茅。值得注意的是,与随机测试相比,PRT实现了更好的多样性,并将测试成本降低了50%以上。

英文摘要:

Deep Reinforcement Learning (DRL) agents have been widely adopted across diverse domains to address challenging decision-making problems, such as autonomous driving and robotic control. Given that many of these applications are safety- and security-critical, rigorous testing of DRL agents is indispensable. Existing testing methods are typically guided by reward signals to detect failures. However, for well-trained agents, whose performance approaches optimal levels in standard operating conditions, reward signals remain generally high, making current methods ineffective at uncovering critical failures. To address these challenges, we propose a novel failure-based method that leverages task-induced failure insights to enhance failure detection capability while reducing the number of tests required. Since DRL agents are inherently designed with human-defined tasks, they provide valuable cues about task difficulty. Intuitively, a DRL agent is more likely to fail when confronted with a more difficult task; therefore, PRT prioritizes these tasks. Building on this foundation, we propose Prior Random Testing, a black-box failure-based testing method that enables targeted prioritization while preserving the diversity of generated test cases. Guided by task-induced failure insights, PRT prioritizes failure-prone regions of the input domain, thereby facilitating efficient failure detection. PRT is evaluated on four widely used benchmarks and compared with different state-of-the-art methods including fuzzing, search-based and generative-based methods. PRT ranks among the top performers in terms of both the cost of finding the first failure and the diversity of test cases. Notably, compared to random testing, PRT achieves better diversity and reduces the testing cost by over 50%.

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

↑