English

Adversarial Self-Attention for Language Understanding

Computation and Language 2023-02-09 v3 Machine Learning

Abstract

Deep neural models (e.g. Transformer) naturally learn spurious features, which create a ``shortcut'' between the labels and inputs, thus impairing the generalization and robustness. This paper advances the self-attention mechanism to its robust variant for Transformer-based pre-trained language models (e.g. BERT). We propose \textit{Adversarial Self-Attention} mechanism (ASA), which adversarially biases the attentions to effectively suppress the model reliance on features (e.g. specific keywords) and encourage its exploration of broader semantics. We conduct a comprehensive evaluation across a wide range of tasks for both pre-training and fine-tuning stages. For pre-training, ASA unfolds remarkable performance gains compared to naive training for longer steps. For fine-tuning, ASA-empowered models outweigh naive models by a large margin considering both generalization and robustness.

Keywords

Cite

@article{arxiv.2206.12608,
  title  = {Adversarial Self-Attention for Language Understanding},
  author = {Hongqiu Wu and Ruixue Ding and Hai Zhao and Pengjun Xie and Fei Huang and Min Zhang},
  journal= {arXiv preprint arXiv:2206.12608},
  year   = {2023}
}

Comments

Accepted by AAAI 2023

R2 v1 2026-06-24T12:03:46.819Z