Using Prior Knowledge to Guide BERT's Attention in Semantic Textual Matching Tasks
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2018Deep contextualized word representationscited by 2,285
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
20 more
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 525
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
- 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
- 2019K-BERT: Enabling Language Representation with Knowledge Graphcited by 303
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 214
- 2016Enhanced LSTM for Natural Language Inferencecited by 199
- 2017Bilateral Multi-Perspective Matching for Natural Language Sentencescited by 120
- 2019Semantics-aware BERT for Language Understandingcited by 111
- 2015Convolutional Neural Network Architectures for Matching Natural Language Sentencescited by 82
- 2017A Continuously Growing Dataset of Sentential Paraphrasescited by 72
- 2017Neural Natural Language Inference Models Enhanced with External Knowledgecited by 40
- 2015ABCNN: Attention-Based Convolutional Neural Network for Modeling Sentence Pairscited by 35
- 2018Neural Network Models for Paraphrase Identification, Semantic Textual Similarity, Natural Language Inference, and Question Answeringcited by 23
- 2019Deep Short Text Classification with Knowledge Powered Attentioncited by 22
- 2017Neural Paraphrase Identification of Questions with Noisy Pretrainingcited by 9
- 2016Knowledge as a Teacher: Knowledge-Guided Structural Attention Networkscited by 4
- 2018Attention Boosted Sequential Inference Modelcited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 8; 2023: 4; 2024: 3; 2025: 4; 2026: 2.
22 papers.
Sort:
By area:
- 2022DABERT: Dual Attention Enhanced BERT for Semantic Matchingcited by 21
- 2023Dual Path Modeling for Semantic Matching by Perceiving Subtle Conflictscited by 21
- 2022Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusioncited by 18
- 2024Resolving Word Vagueness with Scenario-guided Adapter for Natural Language Inferencecited by 11
- 2022Match-Prompt: Improving Multi-task Generalization Ability for Neural Text Matching via Prompt Learningcited by 10
- 2024Comateformer: Combined Attention Transformer for Semantic Sentence Matchingcited by 9
- 2021Mixed Attention Transformer for Leveraging Word-Level Knowledge to Neural Cross-Lingual Information Retrievalcited by 8
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic reviewcited by 7
- 2022Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guidingcited by 6
- 2022The Analysis of Synonymy and Antonymy in Discourse Relations: An interpretable Modeling Approachcited by 2
- 2023Geo-Encoder: A Chunk-Argument Bi-Encoder Framework for Chinese Geographic Re-Rankingcited by 1
- 2025TPK: Trustworthy Trajectory Prediction Integrating Prior Knowledge For Interpretability and Kinematic Feasibilitycited by 1
10 more
- 2026TestifAI: Tomography-Based Testing for Deep Learning Systemscited by 1
- 2022Dict-TTS: Learning to Pronounce with Prior Dictionary Knowledge for Text-to-Speechcited by 0
- 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structurescited by 0
- 2022Learning Semantic Textual Similarity via Topic-informed Discrete Latent Variablescited by 0
- 2023IEKM: A Model Incorporating External Keyword Matricescited by 0
- 2023Make BERT-based Chinese Spelling Check Model Enhanced by Layerwise Attention and Gaussian Mixture Modelcited by 0
- 2024HARE: HumAn pRiors, a key to small language model Efficiencycited by 0
- 2025Using External knowledge to Enhanced PLM for Semantic Matchingcited by 0
- 2025Boosting Neural Language Inference via Cascaded Interactive Reasoningcited by 0
- 2026Multi-Granularity Reasoning for Natural Language Inferencecited by 0
- 2026TestifAI: Tomography-Based Testing for Deep Learning Systems19 Aug 2026
- 2026Multi-Granularity Reasoning for Natural Language Inference18 Apr 2026
- 2025TPK: Trustworthy Trajectory Prediction Integrating Prior Knowledge For Interpretability and Kinematic Feasibility10 May 2025
- 2025Boosting Neural Language Inference via Cascaded Interactive Reasoning10 May 2025
- 2025Using External knowledge to Enhanced PLM for Semantic Matching10 May 2025
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic review9 Apr 2025
- 2024Comateformer: Combined Attention Transformer for Semantic Sentence Matching10 Dec 2024
- 2024HARE: HumAn pRiors, a key to small language model Efficiency17 Jun 2024
- 2024Resolving Word Vagueness with Scenario-guided Adapter for Natural Language Inference21 May 2024
- 2023Make BERT-based Chinese Spelling Check Model Enhanced by Layerwise Attention and Gaussian Mixture Model27 Dec 2023
- 2023IEKM: A Model Incorporating External Keyword Matrices21 Nov 2023
- 2023Geo-Encoder: A Chunk-Argument Bi-Encoder Framework for Chinese Geographic Re-Ranking4 Sep 2023
10 more
- 2023Dual Path Modeling for Semantic Matching by Perceiving Subtle Conflicts24 Feb 2023
- 2022Learning Semantic Textual Similarity via Topic-informed Discrete Latent Variables7 Nov 2022
- 2022Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusion16 Oct 2022
- 2022DABERT: Dual Attention Enhanced BERT for Semantic Matching7 Oct 2022
- 2022The Analysis of Synonymy and Antonymy in Discourse Relations: An interpretable Modeling Approach9 Aug 2022
- 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structures8 Aug 2022
- 2022Dict-TTS: Learning to Pronounce with Prior Dictionary Knowledge for Text-to-Speech5 Jun 2022
- 2022Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guiding6 Apr 2022
- 2022Match-Prompt: Improving Multi-task Generalization Ability for Neural Text Matching via Prompt Learning6 Apr 2022
- 2021Mixed Attention Transformer for Leveraging Word-Level Knowledge to Neural Cross-Lingual Information Retrieval7 Sep 2021
- 2022DABERT: Dual Attention Enhanced BERT for Semantic Matchingcited by 21
- 2023Dual Path Modeling for Semantic Matching by Perceiving Subtle Conflictscited by 21
- 2022Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusioncited by 18
- 2024Resolving Word Vagueness with Scenario-guided Adapter for Natural Language Inferencecited by 11
- 2022Match-Prompt: Improving Multi-task Generalization Ability for Neural Text Matching via Prompt Learningcited by 10
- 2024Comateformer: Combined Attention Transformer for Semantic Sentence Matchingcited by 9
- 2021Mixed Attention Transformer for Leveraging Word-Level Knowledge to Neural Cross-Lingual Information Retrievalcited by 8
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic reviewcited by 7
- 2022Paying More Attention to Self-attention: Improving Pre-trained Language Models via Attention Guidingcited by 6
- 2022The Analysis of Synonymy and Antonymy in Discourse Relations: An interpretable Modeling Approachcited by 2
- 2023Geo-Encoder: A Chunk-Argument Bi-Encoder Framework for Chinese Geographic Re-Rankingcited by 1
- 2025TPK: Trustworthy Trajectory Prediction Integrating Prior Knowledge For Interpretability and Kinematic Feasibilitycited by 1
12 most cited of 21 All 21 (JSON)
- 2026TestifAI: Tomography-Based Testing for Deep Learning Systems19 Aug 2026
- 2026Multi-Granularity Reasoning for Natural Language Inference18 Apr 2026
- 2025TPK: Trustworthy Trajectory Prediction Integrating Prior Knowledge For Interpretability and Kinematic Feasibility10 May 2025
- 2025Using External knowledge to Enhanced PLM for Semantic Matching10 May 2025
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic review9 Apr 2025
- 2024Comateformer: Combined Attention Transformer for Semantic Sentence Matching10 Dec 2024
- 2024HARE: HumAn pRiors, a key to small language model Efficiency17 Jun 2024
- 2024Resolving Word Vagueness with Scenario-guided Adapter for Natural Language Inference21 May 2024
- 2023Make BERT-based Chinese Spelling Check Model Enhanced by Layerwise Attention and Gaussian Mixture Model27 Dec 2023
- 2023IEKM: A Model Incorporating External Keyword Matrices21 Nov 2023
- 2023Geo-Encoder: A Chunk-Argument Bi-Encoder Framework for Chinese Geographic Re-Ranking4 Sep 2023
- 2023Dual Path Modeling for Semantic Matching by Perceiving Subtle Conflicts24 Feb 2023
12 newest of 21 All 21 (JSON)