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

PHYFU:模糊测试现代物理仿真引擎

PHYFU: Fuzzing Modern Physics Simulation Engines

Dongwei Xiao, Zhibo Liu, Shuai Wang

AI总结:

本文提出专用于物理仿真引擎的模糊测试框架PHYFU,通过变异初始状态并依据基本物理定律检测前后向仿真错误,在四个主流PSE中发现超5K个错误触发输入。

摘要:

物理仿真引擎(PSE)是一种模拟物理环境和物体的软件系统。现代PSE同时具备前向仿真和后向仿真能力,其中前向阶段预测被仿真系统的行为,后向阶段为基于学习的控制任务(例如机械臂学习抓取物品)提供梯度(引导)。通过这种方式,现代PSE为基于学习的控制方法展现出良好的支持前景。迄今为止,PSE已被广泛用于各种高利润的商业应用中,例如游戏、电影、虚拟现实(VR)和机器人技术。尽管学术界以及谷歌和英伟达等工业制造商对PSE的开发和运用十分繁荣,PSE仍可能产生不正确的仿真结果,从而带来负面后果,从娱乐场景中糟糕的用户体验,到涉及机器人的制造和外科手术中的事故。本文介绍了PHYFU,一个专门为PSE设计的模糊测试框架,用于在前向和后向仿真阶段发现错误。PHYFU对初始状态进行变异,并断言被测PSE在基本物理定律(PLs)方面是否表现一致。我们进一步使用反馈驱动的测试输入调度来引导并加速错误搜索。我们对四个PSE的研究涵盖了主流工业厂商(谷歌和英伟达)以及学术产品。我们成功发现了超过5K个触发错误的输入,这些输入产生了不正确的仿真结果,且错误跨越了PSE的整个软件栈。

英文摘要:

A physical simulation engine (PSE) is a software system that simulates physical environments and objects. Modern PSEs feature both forward and backward simulations, where the forward phase predicts the behavior of a simulated system, and the backward phase provides gradients (guidance) for learning-based control tasks, such as a robot arm learning to fetch items. This way, modern PSEs show promising support for learning-based control methods. To date, PSEs have been largely used in various high-profitable, commercial applications, such as games, movies, virtual reality (VR), and robotics. Despite the prosperous development and usage of PSEs by academia and industrial manufacturers such as Google and NVIDIA, PSEs may produce incorrect simulations, which may lead to negative results, from poor user experience in entertainment to accidents in robotics-involved manufacturing and surgical operations. This paper introduces PHYFU, a fuzzing framework designed specifically for PSEs to uncover errors in both forward and backward simulation phases. PHYFU mutates initial states and asserts if the PSE under test behaves consistently with respect to basic Physics Laws (PLs). We further use feedback-driven test input scheduling to guide and accelerate the search for errors. Our study of four PSEs covers mainstream industrial vendors (Google and NVIDIA) as well as academic products. We successfully uncover over 5K error-triggering inputs that generate incorrect simulation results spanning across the whole software stack of PSEs.

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

↑