ACL 2022findings10 citations

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

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.

BibTeX
@inproceedings{xu-etal-2022-towards,
    title = "Towards Adversarially Robust Text Classifiers by Learning to Reweight Clean Examples",
    author = "Xu, Jianhan  and
      Zhang, Cenyuan  and
      Zheng, Xiaoqing  and
      Li, Linyang  and
      Hsieh, Cho-Jui  and
      Chang, Kai-Wei  and
      Huang, Xuanjing",
    editor = "Muresan, Smaranda  and
      Nakov, Preslav  and
      Villavicencio, Aline",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2022",
    month = may,
    year = "2022",
    address = "Dublin, Ireland",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.findings-acl.134/",
    doi = "10.18653/v1/2022.findings-acl.134",
    pages = "1694--1707"
}
Towards Adversarially Robust Text Classifiers by Learning to Reweight Clean Examples · ACL 2022