深层NLP模型的系统性、组合性和传递性:一个变形测试视角
Systematicity, Compositionality and Transitivity of Deep NLP Models: a Metamorphic Testing Perspective
摘要:
变形测试最近被用来检查神经NLP模型的安全性。它的主要优点是它不依赖于地面实况来生成测试用例。然而,现有的研究大多关注健壮类变质关系,限制了他们可以测试的语言属性的范围。我们提出了三类新的变质关系,解决系统性,组合性和传递性的属性。与鲁棒性不同,我们的关系是在多个源输入上定义的,从而增加了我们可以通过多项式因子产生的测试用例的数量。通过它们,我们测试了最先进的NLP模型的内部一致性,并表明它们并不总是按照预期的语言特性表现。最后,我们引入了一种新的图形符号,有效地总结了内部结构的变质关系。
英文摘要:
Metamorphic testing has recently been used to check the safety of neural NLP models. Its main advantage is that it does not rely on a ground truth to generate test cases. However, existing studies are mostly concerned with robustness-like metamorphic relations, limiting the scope of linguistic properties they can test. We propose three new classes of metamorphic relations, which address the properties of systematicity, compositionality and transitivity. Unlike robustness, our relations are defined over multiple source inputs, thus increasing the number of test cases that we can produce by a polynomial factor. With them, we test the internal consistency of state-of-the-art NLP models, and show that they do not always behave according to their expected linguistic properties. Lastly, we introduce a novel graphical notation that efficiently summarises the inner structure of metamorphic relations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。