mlsanityData to 7 Oct 2026

Explaining Text Similarity in Transformer Models

arXiv 2405.06604 ↗First posted 10 May 2024cs.CL cs.LGcited by 9

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  5. 2020Shortcut Learning in Deep Neural Networkscited by 1,928
  6. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
  7. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  8. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  9. 2019Attention is not Explanationcited by 916
  10. 2020Quantifying Attention Flow in Transformerscited by 759
  11. 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
  12. 2019Is Attention Interpretable?cited by 387
21 more
  1. 2019Unmasking Clever Hans Predictors and Assessing What Machines Really Learncited by 359
  2. 2017Methods for Interpreting and Understanding Deep Neural Networkscited by 342
  3. 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
  4. 2015Explaining NonLinear Classification Decisions with Deep Taylor Decompositioncited by 248
  5. 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
  6. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  7. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
  8. 2017The Shattered Gradients Problem: If resnets are the answer, then what is the question?cited by 156
  9. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
  10. 2019The Shapley Taylor Interaction Indexcited by 143
  11. 2020Higher-Order Explanations of Graph Neural Networks via Relevant Walkscited by 138
  12. 2020Explaining Explanations: Axiomatic Feature Interactions for Deep Networkscited by 103
  13. 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
  14. 2017Explaining Recurrent Neural Network Predictions in Sentiment Analysiscited by 87
  15. 2020Evolution of Semantic Similarity -- A Surveycited by 83
  16. 2015Convolutional Neural Network Architectures for Matching Natural Language Sentencescited by 82
  17. 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
  18. 2020How does this interaction affect me? Interpretable attribution for feature interactionscited by 73
  19. 2023SHAP-IQ: Unified Approximation of any-order Shapley Interactionscited by 50
  20. 2020Building and Interpreting Deep Similarity Modelscited by 34
  21. 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 8.

9 papers.