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

MDPFuzz:测试求解马尔可夫决策过程的模型

MDPFuzz: Testing Models Solving Markov Decision Processes

The Hong Kong University of Science and Technology(香港科技大学)

Qi Pang, Yuanyuan Yuan, Shuai Wang

AI总结:

本文提出首个针对求解 MDP 模型的黑盒模糊测试框架 MDPFuzz,通过异常状态检测、GMM/DynEM 状态新鲜度量化及局部敏感度优先级策略高效发现崩溃状态,并在多个最新模型上验证其能显著提升鲁棒性。

摘要:

马尔可夫决策过程(MDP)为建模顺序决策问题提供了数学框架,其中许多问题对安全性和可靠性至关重要,例如自动驾驶和机器人控制。人工智能研究的快速发展催生了求解 MDP 的高效方法,如深度神经网络(DNN)、强化学习(RL)和模仿学习(IL)。然而,这些流行的求解 MDP 的模型既未经过充分测试,也不具备严格的可靠性。我们提出 MDPFuzz,这是首个针对求解 MDP 模型的模糊测试(黑盒)框架。MDPFuzz 通过检查目标模型是否进入异常和危险状态来构造测试预言。在模糊测试过程中,MDPFuzz 通过衡量变异后的状态是否能够降低累积奖励或形成新的状态序列来决定保留哪些变异状态。我们设计了高效技术,利用高斯混合模型(GMM)和动态期望最大化(DynEM)来量化状态序列的“新鲜度”。我们还通过估计目标模型在状态上的局部敏感度,优先选择那些更有可能暴露崩溃的状态。MDPFuzz 在五个求解 MDP 的最新模型上进行了评估,包括监督式 DNN、RL、IL 和多智能体 RL。我们的评估场景包括自动驾驶、飞机避撞以及两个常用于 RL 基准测试的游戏。在 12 小时的运行中,我们在每个模型上发现了超过 80 个触发崩溃的状态序列。我们展示了令人鼓舞的发现:触发崩溃的状态虽然看起来正常,但与正常状态相比会诱导出不同的神经元激活模式。我们进一步开发了一个异常行为检测器来加固所有被评估的模型,并利用 MDPFuzz 的发现修复它们,从而在不牺牲准确率的情况下显著增强其鲁棒性。

英文摘要:

The Markov decision process (MDP) provides a mathematical framework for modeling sequential decision-making problems, many of which are crucial to security and safety, such as autonomous driving and robot control. The rapid development of artificial intelligence research has created efficient methods for solving MDPs, such as deep neural networks (DNNs), reinforcement learning (RL), and imitation learning (IL). However, these popular models solving MDPs are neither thoroughly tested nor rigorously reliable. We present MDPFuzz, the first blackbox fuzz testing framework for models solving MDPs. MDPFuzz forms testing oracles by checking whether the target model enters abnormal and dangerous states. During fuzzing, MDPFuzz decides which mutated state to retain by measuring if it can reduce cumulative rewards or form a new state sequence. We design efficient techniques to quantify the "freshness" of a state sequence using Gaussian mixture models (GMMs) and dynamic expectation-maximization (DynEM). We also prioritize states with high potential of revealing crashes by estimating the local sensitivity of target models over states. MDPFuzz is evaluated on five state-of-the-art models for solving MDPs, including supervised DNN, RL, IL, and multi-agent RL. Our evaluation includes scenarios of autonomous driving, aircraft collision avoidance, and two games that are often used to benchmark RL. During a 12-hour run, we find over 80 crash-triggering state sequences on each model. We show inspiring findings that crash-triggering states, though they look normal, induce distinct neuron activation patterns compared with normal states. We further develop an abnormal behavior detector to harden all the evaluated models and repair them with the findings of MDPFuzz to significantly enhance their robustness without sacrificing accuracy.

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

↑