Autonomous driving has gained much attention from both industry and academia. Currently, Deep Neural Networks (DNNs) are widely used for perception and control in autonomous driving. However, several fatal accidents caused by autonomous vehicles have raised serious safety concerns about autonomous driving models. Some recent studies have successfully used the metamorphic testing technique to detect thousands of potential issues in some popularly used autonomous driving models. However, prior study is limited to a small set of metamorphic relations, which do not reflect rich, real-world traffic scenarios and are also not customizable. This paper presents a novel declarative rule-based metamorphic testing framework called RMT. RMT provides a rule template with natural language syntax, allowing users to flexibly specify an enriched set of testing scenarios based on real-world traffic rules and domain knowledge. RMT automatically parses human-written rules to metamorphic relations using an NLP-based rule parser referring to an ontology list and generates test cases with a variety of image transformation engines. We evaluated RMT on three autonomous driving models. With an enriched set of metamorphic relations, RMT detected a significant number of abnormal model predictions that were not detected by prior work. Through a large-scale human study on Amazon Mechanical Turk, we further confirmed the authenticity of test cases generated by RMT and the validity of detected abnormal model predictions.
翻译:目前,深神经网络(DNNS)被广泛用于自主驾驶的认知和控制。然而,自主车辆造成的几起致命事故引起了对自主驾驶模式的严重的安全关切。最近的一些研究成功地利用变形测试技术探测了某些普遍使用的自主驾驶模式中的数千个潜在问题。然而,先前的研究仅限于少数几组变形关系,这些关系并不反映丰富、真实世界交通情况,也不可定制。本文展示了一个新的基于宣告规则的、基于自主驾驶的变形测试框架,称为RMT。RMT提供了一套基于自然语言合成法的规则模板,使用户能够灵活地根据现实世界交通规则和域知识确定一套更丰富的测试情景。RMT自动利用基于NLP规则的规则将人类成型规则与变形关系联系起来,其中提到一个不反映多种图像转换引擎的在线列表,并生成测试案例。我们用三种变形驱动模型模型来评估三种变形驱动模型。随着一套更丰富的变形关系,RMT检测出大量基于实体交通规则和域知识的异常模型,通过我们先前测测测测得的亚马图性模型测试案例。