mlsanityData to 14 Oct 2026

Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guiding

arXiv 2204.02922 ↗First posted 6 Apr 2022cs.CLcited by 6

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  6. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  7. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  8. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
  9. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
  10. 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,838
  11. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
  12. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
27 more
  1. 2019Publicly Available Clinical BERT Embeddingscited by 1,002
  2. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  3. 2019Are Sixteen Heads Really Better than One?cited by 816
  4. 2019How to Fine-Tune BERT for Text Classification?cited by 411
  5. 2019Revealing the Dark Secrets of BERTcited by 301
  6. 2019Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasetscited by 299
  7. 2020Pretrained Transformers for Text Ranking: BERT and Beyondcited by 267
  8. 2020Contrastive Clusteringcited by 265
  9. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 245
  10. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
  11. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  12. 2018Scaling Neural Machine Translationcited by 204
  13. 2018Lessons from Natural Language Inference in the Clinical Domaincited by 151
  14. 2021Clustering-friendly Representation Learning via Instance Discrimination and Feature Decorrelationcited by 65
  15. 2019Understanding the Behaviors of BERT in Rankingcited by 49
  16. 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 43
  17. 2018Multi-Head Attention with Disagreement Regularizationcited by 35
  18. 2019Convolutional Self-Attention Networkscited by 32
  19. 2021Dodrio: Exploring Transformer Models with Interactive Visualizationcited by 28
  20. 2021Thank you BART! Rewarding Pre-Trained Models Improves Formality Style Transfercited by 28
  21. 2020Improving BERT with Syntax-aware Local Attentioncited by 26
  22. 2021Using Prior Knowledge to Guide BERT's Attention in Semantic Textual Matching Taskscited by 22
  23. 2020Guiding Attention for Self-Supervised Learning with Transformerscited by 14
  24. 2019Joint Source-Target Self Attention with Locality Constraintscited by 4
  25. 2020MHSAN: Multi-Head Self-Attention Network for Visual Semantic Embeddingcited by 3
  26. 2021BERT-DRE: BERT with Deep Recursive Encoder for Natural Language Sentence Matchingcited by 3
  27. 2020Multiple Structural Priors Guided Self Attention Network for Language Understandingcited by 1

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 2; 2024: 3.

6 papers.