Explaining Text Similarity in Transformer Models
Not on the map. Why?
Abstract (arXiv)
As Transformers have become state-of-the-art models for natural language processing (NLP) tasks, the need to understand and explain their predictions is increasingly apparent. Especially in unsupervised applications, such as information retrieval tasks, similarity models built on top of foundation model representations have been widely applied. However, their inner prediction mechanisms have mostly remained opaque. Recent advances in explainable AI have made it possible to mitigate these limitations by leveraging improved explanations for Transformers through layer-wise relevance propagation (LRP). Using BiLRP, an extension developed for computing second-order explanations in bilinear similarity models, we investigate which feature interactions drive similarity in NLP models. We validate the resulting explanations and demonstrate their utility in three corpus-level use cases, analyzing grammatical interactions, multilingual semantics, and biomedical text retrieval. Our findings contribute to a deeper understanding of different semantic similarity tasks and models, highlighting how novel explainable AI methods enable in-depth analyses and corpus-level insights.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 33 of its 62 references that are in the map. First posted on arXiv 10 May 2024.
Builds on
33 of 62 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2020Shortcut Learning in Deep Neural Networkscited by 1,928
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Attention is not Explanationcited by 916
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2019Is Attention Interpretable?cited by 387
21 more
- 2019Unmasking Clever Hans Predictors and Assessing What Machines Really Learncited by 359
- 2017Methods for Interpreting and Understanding Deep Neural Networkscited by 342
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
- 2015Explaining NonLinear Classification Decisions with Deep Taylor Decompositioncited by 248
- 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
- 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
- 2017The Shattered Gradients Problem: If resnets are the answer, then what is the question?cited by 156
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2019The Shapley Taylor Interaction Indexcited by 143
- 2020Higher-Order Explanations of Graph Neural Networks via Relevant Walkscited by 138
- 2020Explaining Explanations: Axiomatic Feature Interactions for Deep Networkscited by 103
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2017Explaining Recurrent Neural Network Predictions in Sentiment Analysiscited by 87
- 2020Evolution of Semantic Similarity -- A Surveycited by 83
- 2015Convolutional Neural Network Architectures for Matching Natural Language Sentencescited by 82
- 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
- 2020How does this interaction affect me? Interpretable attribution for feature interactionscited by 73
- 2023SHAP-IQ: Unified Approximation of any-order Shapley Interactionscited by 50
- 2020Building and Interpreting Deep Similarity Modelscited by 34
- 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29
Built on by
Citing papers per year: 2024: 1; 2025: 8.
9 papers.
- 2025Interpretable Text Embeddings and Text Similarity Explanation: A Surveycited by 12
- 2025Capturing Polysemanticity with PRISM: A Multi-Concept Feature Description Frameworkcited by 9
- 2025Position: We Need An Algorithmic Understanding of Generative AIcited by 5
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributionscited by 3
- 2025Cat, Rat, Meow: On the Alignment of Language Model and Human Term-Similarity Judgmentscited by 1
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonalitycited by 1
- 2025ExpertLens: Activation steering features are highly interpretablecited by 0
- 2025Leveraging Language Models for Automated Patient Record Linkagecited by 0
- 2025Mechanistic Decomposition of Sentence Representationscited by 0
- 2025Order-Level Attention Similarity Across Language Models: A Latent Commonality7 Nov 2025
- 2025Position: We Need An Algorithmic Understanding of Generative AI10 Jul 2025
- 2025Capturing Polysemanticity with PRISM: A Multi-Concept Feature Description Framework18 Jun 2025
- 2025Mechanistic Decomposition of Sentence Representations4 Jun 2025
- 2025Leveraging Language Models for Automated Patient Record Linkage21 Apr 2025
- 2025Cat, Rat, Meow: On the Alignment of Language Model and Human Term-Similarity Judgments10 Apr 2025
- 2025ExpertLens: Activation steering features are highly interpretable20 Feb 2025
- 2025Interpretable Text Embeddings and Text Similarity Explanation: A Survey20 Feb 2025
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributions26 Aug 2024