Learning to ignore adversarial attacks: rationale models improve robustness on BERT and RoBERTaLearning to Ignore Adversarial Attacks
AI summary
Researchers propose using a rationale model to explicitly learn to ignore attack tokens in adversarial attacks, which can successfully ignore more than 90% of attack tokens. On BERT and RoBERTa, the method consistently improves robustness over baselines by about 10% on three datasets, and stably outperforms data augmentation using only adversarial examples. In most cases, it can also narrow the performance gap between the clean test set and the attacked test set, thereby weakening the impact of adversarial attacks.