arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04322cs.SEcs.AIcs.LG
收藏

基于RLExplorer的深度强化学习程序调试研究

Toward Debugging Deep Reinforcement Learning Programs with RLExplorer

Mila(米拉研究所);Polytechnique Montréal(蒙特利尔理工学院);Université de Montréal(蒙特利尔大学)

Rached Bouchoucha, Ahmed Haj Yahmed, Darshan Patil, Janarthanan Rajendran, Amin Nikanjam, Sarath Chandar, Foutse Khomh

AI总结:

针对深度强化学习系统故障难调试的问题,提出首个DRL故障诊断工具RLExplorer,通过监控训练轨迹检测特有故障并给出解决方案,实验验证其诊断准确率高、缺陷识别效率远超人工且易集成。

摘要:

深度强化学习(DRL)已在机器人、计算机游戏和推荐系统等多个领域展现出成效。然而,与其他软件系统一样,基于DRL的软件系统也容易出现故障,这类故障给调试和诊断带来了独特挑战。它们通常仅引发意外行为,却不会产生明确的故障和错误提示,导致调试难度大、耗时长。因此,实现DRL系统的自动化监控与诊断,对减轻开发者负担至关重要。\n本文提出了首个面向DRL软件系统的故障诊断方法RLExplorer。该方法自动监控训练轨迹,并基于DRL学习动态特性运行诊断程序,检测DRL特有故障的发生情况,随后将诊断结果记录为警告,内容涵盖理论概念、推荐实践以及已识别故障的潜在解决方案。\n我们开展了两组评估验证RLExplorer的效果:第一组针对来自Stack Overflow的故障DRL样本的评估显示,该方法能有效诊断83%案例中的真实故障;第二组邀请15位DRL专家/开发者参与的评估表明,其一,RLExplorer识别出的缺陷数量是人工调试的3.6倍;其二,RLExplorer可轻松集成到DRL应用中。

英文摘要:

Deep reinforcement learning (DRL) has shown success in diverse domains such as robotics, computer games, and recommendation systems. However, like any other software system, DRL-based software systems are susceptible to faults that pose unique challenges for debugging and diagnosing. These faults often result in unexpected behavior without explicit failures and error messages, making debugging difficult and time-consuming. Therefore, automating the monitoring and diagnosis of DRL systems is crucial to alleviate the burden on developers. In this paper, we propose RLExplorer, the first fault diagnosis approach for DRL-based software systems. RLExplorer automatically monitors training traces and runs diagnosis routines based on properties of the DRL learning dynamics to detect the occurrence of DRL-specific faults. It then logs the results of these diagnoses as warnings that cover theoretical concepts, recommended practices, and potential solutions to the identified faults. We conducted two sets of evaluations to assess RLExplorer. Our first evaluation of faulty DRL samples from Stack Overflow revealed that our approach can effectively diagnose real faults in 83% of the cases. Our second evaluation of RLExplorer with 15 DRL experts/developers showed that (1) RLExplorer could identify 3.6 times more defects than manual debugging and (2) RLExplorer is easily integrated into DRL applications.

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

↑