Learning Invariant Representation Improves Robustness for MRC Models

Hai Yu,Wen Liu,Hui Meng,Tianyu Li,Houfeng Wang
DOI: https://doi.org/10.18653/v1/2022.findings-emnlp.241
2022-01-01
Abstract:The prosperity of Pretrained Language Models (PLM) has greatly promoted the development of Machine reading comprehension (MRC).However, these models are vulnerable and not robust to adversarial examples.In this paper, we propose Stable and Contrastive Question Answering (SCQA) to improve invariance of model representation to alleviate these robustness issues.Specifically, we first construct positive example pairs which have same answer through data augmentation.Then SCQA trains enhanced representations with better alignment between positive pairs by introducing stability and contrastive loss.Experimental results show that our approach can boost the robustness of QA models cross different MRC tasks and attack sets significantly and consistently. 1
What problem does this paper attempt to address?