Towards Adversarially Robust Text Classifiers by Learning to Reweight Clean Examples

Jianhan Xu,Cenyuan Zhang,Xiaoqing Zheng,Linyang Li,Cho-Jui Hsieh,Kai-Wei Chang,Xuanjing Huang
DOI: https://doi.org/10.18653/v1/2022.findings-acl.134
2022-01-01
Abstract:Most of the existing defense methods improve the adversarial robustness by making the models adapt to the training set augmented with some adversarial examples. However, the augmented adversarial examples may not be natural, which might distort the training distribution, resulting in inferior performance both in clean accuracy and adversarial robustness. In this study, we explore the feasibility of introducing a reweighting mechanism to calibrate the training distribution to obtain robust models. We propose to train text classifiers by a sample reweighting method in which the example weights are learned to minimize the loss of a validation set mixed with the clean examples and their adversarial ones in an online learning manner. Through extensive experiments, we show that there exists a reweighting mechanism to make the models more robust against adversarial attacks without the need to craft the adversarial examples for the entire training set.
What problem does this paper attempt to address?