Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guiding
Not on the map. Why?
Abstract (arXiv)
Pre-trained language models (PLM) have demonstrated their effectiveness for a broad range of information retrieval and natural language processing tasks. As the core part of PLM, multi-head self-attention is appealing for its ability to jointly attend to information from different positions. However, researchers have found that PLM always exhibits fixed attention patterns regardless of the input (e.g., excessively paying attention to [CLS] or [SEP]), which we argue might neglect important information in the other positions. In this work, we propose a simple yet effective attention guiding mechanism to improve the performance of PLM by encouraging attention towards the established goals. Specifically, we propose two kinds of attention guiding methods, i.e., map discrimination guiding (MDG) and attention pattern decorrelation guiding (PDG). The former definitely encourages the diversity among multiple self-attention heads to jointly attend to information from different representation subspaces, while the latter encourages self-attention to attend to as many different positions of the input as possible. We conduct experiments with multiple general pre-trained models (i.e., BERT, ALBERT, and Roberta) and domain-specific pre-trained models (i.e., BioBERT, ClinicalBERT, BlueBert, and SciBERT) on three benchmark datasets (i.e., MultiNLI, MedNLI, and Cross-genre-IR). Extensive experimental results demonstrate that our proposed MDG and PDG bring stable performance improvements on all datasets with high efficiency and low cost.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 39 of its 49 references that are in the map. First posted on arXiv 6 Apr 2022.
Builds on
39 of 49 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,838
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
27 more
- 2019Publicly Available Clinical BERT Embeddingscited by 1,002
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019How to Fine-Tune BERT for Text Classification?cited by 411
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2019Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasetscited by 299
- 2020Pretrained Transformers for Text Ranking: BERT and Beyondcited by 267
- 2020Contrastive Clusteringcited by 265
- 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 245
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2018Scaling Neural Machine Translationcited by 204
- 2018Lessons from Natural Language Inference in the Clinical Domaincited by 151
- 2021Clustering-friendly Representation Learning via Instance Discrimination and Feature Decorrelationcited by 65
- 2019Understanding the Behaviors of BERT in Rankingcited by 49
- 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 43
- 2018Multi-Head Attention with Disagreement Regularizationcited by 35
- 2019Convolutional Self-Attention Networkscited by 32
- 2021Dodrio: Exploring Transformer Models with Interactive Visualizationcited by 28
- 2021Thank you BART! Rewarding Pre-Trained Models Improves Formality Style Transfercited by 28
- 2020Improving BERT with Syntax-aware Local Attentioncited by 26
- 2021Using Prior Knowledge to Guide BERT's Attention in Semantic Textual Matching Taskscited by 22
- 2020Guiding Attention for Self-Supervised Learning with Transformerscited by 14
- 2019Joint Source-Target Self Attention with Locality Constraintscited by 4
- 2020MHSAN: Multi-Head Self-Attention Network for Visual Semantic Embeddingcited by 3
- 2021BERT-DRE: BERT with Deep Recursive Encoder for Natural Language Sentence Matchingcited by 3
- 2020Multiple Structural Priors Guided Self Attention Network for Language Understandingcited by 1
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 3.
6 papers.
- 2023A Survey of Large Language Models in Medicine: Progress, Application, and Challengecited by 124
- 2023Joint A-SNN: Joint Training of Artificial and Spiking Neural Networks via Self-Distillation and Weight Factorizationcited by 35
- 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformerscited by 21
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Modelscited by 7
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidancecited by 1
- 2024Evaluating Lexicon Incorporation for Depression Symptom Estimationcited by 0
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Models15 Jun 2024
- 2024Evaluating Lexicon Incorporation for Depression Symptom Estimation30 Apr 2024
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidance26 Feb 2024
- 2023A Survey of Large Language Models in Medicine: Progress, Application, and Challenge9 Nov 2023
- 2023Joint A-SNN: Joint Training of Artificial and Spiking Neural Networks via Self-Distillation and Weight Factorization3 May 2023
- 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformers7 Nov 2022