mlsanityData to 7 Oct 2026

Using Prior Knowledge to Guide BERT's Attention in Semantic Textual Matching Tasks

arXiv 2102.10934 ↗First posted 22 Feb 2021cs.CL cs.AIcited by 22

Not on the map. Why?

Abstract (arXiv)

We study the problem of incorporating prior knowledge into a deep Transformer-based model,i.e.,Bidirectional Encoder Representations from Transformers (BERT), to enhance its performance on semantic textual matching tasks. By probing and analyzing what BERT has already known when solving this task, we obtain better understanding of what task-specific knowledge BERT needs the most and where it is most needed. The analysis further motivates us to take a different approach than most existing works. Instead of using prior knowledge to create a new training task for fine-tuning BERT, we directly inject knowledge into BERT's multi-head attention mechanism. This leads us to a simple yet effective approach that enjoys fast training stage as it saves the model from training on additional data or tasks other than the main task. Extensive experiments demonstrate that the proposed knowledge-enhanced BERT is able to consistently improve semantic textual matching performance over the original BERT model, and the performance benefit is most salient when training data is scarce.

Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 32 of its 52 references that are in the map. First posted on arXiv 22 Feb 2021.

Builds on

32 of 52 references.

References · 32

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  6. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  7. 2018Deep contextualized word representationscited by 2,285
  8. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  9. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  10. 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
  11. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  12. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
20 more
  1. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  2. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
  3. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  4. 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 525
  5. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
  6. 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
  7. 2019K-BERT: Enabling Language Representation with Knowledge Graphcited by 303
  8. 2016A Decomposable Attention Model for Natural Language Inferencecited by 214
  9. 2016Enhanced LSTM for Natural Language Inferencecited by 199
  10. 2017Bilateral Multi-Perspective Matching for Natural Language Sentencescited by 120
  11. 2019Semantics-aware BERT for Language Understandingcited by 111
  12. 2015Convolutional Neural Network Architectures for Matching Natural Language Sentencescited by 82
  13. 2017A Continuously Growing Dataset of Sentential Paraphrasescited by 72
  14. 2017Neural Natural Language Inference Models Enhanced with External Knowledgecited by 40
  15. 2015ABCNN: Attention-Based Convolutional Neural Network for Modeling Sentence Pairscited by 35
  16. 2018Neural Network Models for Paraphrase Identification, Semantic Textual Similarity, Natural Language Inference, and Question Answeringcited by 23
  17. 2019Deep Short Text Classification with Knowledge Powered Attentioncited by 22
  18. 2017Neural Paraphrase Identification of Questions with Noisy Pretrainingcited by 9
  19. 2016Knowledge as a Teacher: Knowledge-Guided Structural Attention Networkscited by 4
  20. 2018Attention Boosted Sequential Inference Modelcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 8; 2023: 4; 2024: 3; 2025: 4; 2026: 2.

22 papers.

Sort:

By area:

  1. 2022DABERT: Dual Attention Enhanced BERT for Semantic Matchingcited by 21
  2. 2023Dual Path Modeling for Semantic Matching by Perceiving Subtle Conflictscited by 21
  3. 2022Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusioncited by 18
  4. 2024Resolving Word Vagueness with Scenario-guided Adapter for Natural Language Inferencecited by 11
  5. 2022Match-Prompt: Improving Multi-task Generalization Ability for Neural Text Matching via Prompt Learningcited by 10
  6. 2024Comateformer: Combined Attention Transformer for Semantic Sentence Matchingcited by 9
  7. 2021Mixed Attention Transformer for Leveraging Word-Level Knowledge to Neural Cross-Lingual Information Retrievalcited by 8
  8. 2025Linguistic Interpretability of Transformer-based Language Models: a systematic reviewcited by 7
  9. 2022Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guidingcited by 6
  10. 2022The Analysis of Synonymy and Antonymy in Discourse Relations: An interpretable Modeling Approachcited by 2
  11. 2023Geo-Encoder: A Chunk-Argument Bi-Encoder Framework for Chinese Geographic Re-Rankingcited by 1
  12. 2025TPK: Trustworthy Trajectory Prediction Integrating Prior Knowledge For Interpretability and Kinematic Feasibilitycited by 1
10 more
  1. 2026TestifAI: Tomography-Based Testing for Deep Learning Systemscited by 1
  2. 2022Dict-TTS: Learning to Pronounce with Prior Dictionary Knowledge for Text-to-Speechcited by 0
  3. 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structurescited by 0
  4. 2022Learning Semantic Textual Similarity via Topic-informed Discrete Latent Variablescited by 0
  5. 2023IEKM: A Model Incorporating External Keyword Matricescited by 0
  6. 2023Make BERT-based Chinese Spelling Check Model Enhanced by Layerwise Attention and Gaussian Mixture Modelcited by 0
  7. 2024HARE: HumAn pRiors, a key to small language model Efficiencycited by 0
  8. 2025Using External knowledge to Enhanced PLM for Semantic Matchingcited by 0
  9. 2025Boosting Neural Language Inference via Cascaded Interactive Reasoningcited by 0
  10. 2026Multi-Granularity Reasoning for Natural Language Inferencecited by 0