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

在决策重要的地方进行测试:面向深度强化学习的重要性驱动测试

Test Where Decisions Matter: Importance-driven Testing for Deep Reinforcement Learning

Graz University of Technology(格拉茨工业大学);King’s College London(伦敦国王学院)

Stefan Pranger, Hana Chockler, Martin Tappler, Bettina Könighofer

AI总结:

提出一种基于模型的状态重要性排名方法,通过计算乐观和悲观安全估计,集中测试深度强化学习策略中最关键的状态,以最优测试用例选择和形式化安全保证发现不安全行为。

摘要:

在许多深度强化学习(RL)问题中,训练好的策略中的决策在策略的预期安全性和性能方面具有不同的重要性。由于RL策略非常复杂,测试工作应集中在智能体决策对预期结果影响最大的状态上。在本文中,我们提出了一种新颖的基于模型的方法,用于严格计算整个状态空间中状态重要性的排名。然后,我们将测试工作集中在排名最高的状态上。在本文中,我们专注于安全性测试。然而,所提出的方法可以很容易地适应于性能测试。在每次迭代中,我们的测试框架计算乐观和悲观的安全性估计。这些估计为策略执行在状态空间中所有建模状态的预期结果提供了下界和上界。我们的方法在收敛时将状态空间划分为安全和不安全的区域,从而清晰地洞察策略的弱点。我们的方法具有两个重要特性。(1)最优测试用例选择:在测试过程中的任何时候,我们的方法都会在安全性最关键的状态下评估策略。(2)保证安全:我们的方法可以通过仅对策略的一小部分进行采样,对整个状态空间提供形式化验证保证。任何由悲观估计所保证的安全性属性都被正式证明对策略成立。我们在几个示例上对我们的框架进行了详细评估,表明我们的方法以较低的测试工作量发现了不安全的策略行为。

英文摘要:

In many Deep Reinforcement Learning (RL) problems, decisions in a trained policy vary in significance for the expected safety and performance of the policy. Since RL policies are very complex, testing efforts should concentrate on states in which the agent's decisions have the highest impact on the expected outcome. In this paper, we propose a novel model-based method to rigorously compute a ranking of state importance across the entire state space. We then focus our testing efforts on the highest-ranked states. In this paper, we focus on testing for safety. However, the proposed methods can be easily adapted to test for performance. In each iteration, our testing framework computes optimistic and pessimistic safety estimates. These estimates provide lower and upper bounds on the expected outcomes of the policy execution across all modeled states in the state space. Our approach divides the state space into safe and unsafe regions upon convergence, providing clear insights into the policy's weaknesses. Two important properties characterize our approach. (1) Optimal Test-Case Selection: At any time in the testing process, our approach evaluates the policy in the states that are most critical for safety. (2) Guaranteed Safety: Our approach can provide formal verification guarantees over the entire state space by sampling only a fraction of the policy. Any safety properties assured by the pessimistic estimate are formally proven to hold for the policy. We provide a detailed evaluation of our framework on several examples, showing that our method discovers unsafe policy behavior with low testing effort.

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

↑