Back to Search Start Over

White-box Testing of NLP models with Mask Neuron Coverage

Authors :
Sekhon, Arshdeep
Ji, Yangfeng
Dwyer, Matthew B.
Qi, Yanjun
Source :
Findings of the Association for Computational Linguistics: NAACL 2022.
Publication Year :
2022
Publisher :
Association for Computational Linguistics, 2022.

Abstract

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.<br />Findings of NAACL 2022 submission, 12 pages

Details

Database :
OpenAIRE
Journal :
Findings of the Association for Computational Linguistics: NAACL 2022
Accession number :
edsair.doi.dedup.....4454169824651ca3ed9398b8f00026ac
Full Text :
https://doi.org/10.18653/v1/2022.findings-naacl.116