SOTAVerified

Adversarial Self-Attention for Language Understanding

2022-06-25Code Available0· sign in to hype

Hongqiu Wu, Ruixue Ding, Hai Zhao, Pengjun Xie, Fei Huang, Min Zhang

Code Available — Be the first to reproduce this paper.

Reproduce

Code

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 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.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
WNUT 2017ASA + RoBERTaF157.3Unverified
WNUT 2017ASA + BERT-baseF149.8Unverified

Reproductions