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

具有屏蔽神经元覆盖的NLP模型的白盒测试

White-box Testing of NLP models with Mask Neuron Coverage

University of Virginia(弗吉尼亚大学)

Arshdeep Sekhon, Yangfeng Ji, Matthew B. Dwyer, Yanjun Qi

摘要:

最近的文献已经看到越来越多的人对使用黑盒策略(如CheckList)来测试NLP模型的行为感兴趣。关于白盒测试的研究已经开发了许多方法来评估深度模型的内部行为测试的彻底程度,但它们不适用于NLP模型。我们提出了一套白盒测试方法,是定制的基于transformer的NLP模型。其中包括Mask Neuron Coverage(MNCOVER),它可以测量模型中的注意力层在测试过程中的执行程度。我们表明,MNCOVER可以完善CheckList生成的测试套件,大大减少它们的大小,平均超过60%,同时保留失败的测试-从而集中了测试套件的故障检测能力。此外,我们还展示了MNCOVER如何用于指导CheckList输入生成,评估替代NLP测试方法,并驱动数据增强以提高准确性。

英文摘要:

Recent literature has seen growing interest in using black-box strategies like CheckList for testing the behavior of NLP models. Research on white-box testing has developed a number of methods for evaluating how thoroughly the internal behavior of deep models is tested, but they are not applicable to NLP models. We propose a set of white-box testing methods that are customized for transformer-based NLP models. These include Mask Neuron Coverage (MNCOVER) that measures how thoroughly the attention layers in models are exercised during testing. We show that MNCOVER can refine testing suites generated by CheckList by substantially reduce them in size, for more than 60\% on average, while retaining failing tests -- thereby concentrating the fault detection power of the test suite. Further we show how MNCOVER can be used to guide CheckList input generation, evaluate alternative NLP testing methods, and drive data augmentation to improve accuracy.

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

↑