arXiv:2608.22284cs.SEcs.AI2026-08

用对比测试发现深度强化学习模型的效率缺陷,提升可靠性。

Learning from the Test: Self-Referential Differential Testing for Deep RL Agents

论文配图:Learning from the Test: Self-Referential Differential Testing for Deep RL Agents
图 1 · 摘自论文原文
  • 通过两阶段测试:先测安全,再用数据训练对手模型对比性能
  • 在5个环境中共发现平均2518个效率问题,比基线提升50.2%
  • 适合关注DRL模型实际表现而非仅安全性的研究人员

深度强化学习(DRL)在复杂决策任务中取得显著进展。随着DRL系统越来越多地应用于真实场景,其质量与可靠性至关重要。现有工作主要关注检测安全关键性故障,常忽视策略最优性,导致效率降低、用户不信任和经济损失。这一疏漏,叠加最优性评估的“测试预言机难题”,使DRL系统全面评估存在重大空白。为此,我们提出Delta(面向DRL代理的差分测试),一种新型综合性框架,可自动识别DRL代理的安全与最优性漏洞。Delta采用两阶段方法:(1) 安全测试,评估待测代理(AUT)是否存在灾难性失败,并收集其决策策略数据;(2) 最优性测试,利用前一阶段的数据,通过离线强化学习训练一个挑战者代理。通过比较挑战者代理与AUT的表现,若挑战者获得更高累积奖励,则表明AUT存在最优性问题。我们在五个环境中验证了Delta的有效性。研究了三种离线强化学习算法(BC、BCQ、CQL)在生成挑战者代理方面的效果。实验结果表明,安全测试数据对训练高效DRL代理具有重要价值。使用BCQ训练的挑战者代理在Delta框架中识别最优性问题最有效。在五个环境中,Delta平均发现2518个最优性问题,优于基线方法50.2%。

原文摘要 · Abstract (English)

Deep Reinforcement Learning (DRL) has achieved significant success in complex decision-making problems. As DRL systems are increasingly deployed in real-world applications, ensuring their quality and reliability is paramount. Current works primarily focus on detecting safety-critical failures, often neglecting policy optimality, which can lead to reduced efficiency, user distrust, and economic losses. This oversight, compounded by the inherent "testing oracle problem" for optimality, leaves a significant gap in comprehensively evaluating DRL systems. To address this gap, we propose Delta (Differential Testing for DRL Agents), a novel and comprehensive framework that automatically identifies both safety-critical and optimality bugs in DRL agents. Delta employs a two-phase approach: (1) Safety Testing, where the Agent Under Test (AUT) is evaluated for catastrophic failures while collecting data from its decision-making policy, and (2) Optimality Testing, where this collected data from the prior phase is used to train a challenger agent via Offline Reinforcement Learning. Differential testing is then performed by comparing the challenger agent against the AUT; instances where the challenger achieves higher cumulative rewards indicate optimality issues in the AUT. We demonstrate Delta's effectiveness across five environments. We investigate the effectiveness of three offline RL algorithms (BC, BCQ, and CQL) in generating challenger agents. Experimental results demonstrate that safety testing datasets are valuable for training competent DRL agents. Challenger agents trained with BCQ proved most effective for identifying optimality issues within the framework of Delta. Across the five environments, Delta uncovered an average of 2,518 optimality issues, outperforming the baseline methods by 50.2%.

强化学习差分测试模型评估

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。