An Attribution Method for Siamese Encoders
Not on the map. Why?
Abstract (arXiv)
Despite the success of Siamese encoder models such as sentence transformers (ST), little is known about the aspects of inputs they pay attention to. A barrier is that their predictions cannot be attributed to individual features, as they compare two inputs rather than processing a single one. This paper derives a local attribution method for Siamese encoders by generalizing the principle of integrated gradients to models with multiple inputs. The solution takes the form of feature-pair attributions, and can be reduced to a token-token matrix for STs. Our method involves the introduction of integrated Jacobians and inherits the advantageous formal properties of integrated gradients: it accounts for the model's full computation graph and is guaranteed to converge to the actual prediction. A pilot study shows that in an ST few token-pairs can often explain large fractions of predictions, and it focuses on nouns and verbs. For accurate predictions, it however needs to attend to the majority of tokens and parts of speech.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 23 of its 36 references that are in the map. First posted on arXiv 9 Oct 2023.
Builds on
23 of 36 references.
References · 23
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2017Towards A Rigorous Science of Interpretable Machine Learningcited by 1,416
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
- 2019Attention is not Explanationcited by 929
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2019Attention is not not Explanationcited by 636
11 more
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2017Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Modelscited by 206
- 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
- 2015Visualizing and Understanding Neural Models in NLPcited by 200
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
- 2020The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?cited by 122
- 2021Discretized Integrated Gradients for Explaining Language Modelscited by 46
- 2020Gradient-based Analysis of NLP Models is Manipulablecited by 41
- 2022SBERT studies Meaning Representations: Decomposing Sentence Embeddings into Explainable Semantic Featurescited by 33
- 2020ABNIRML: Analyzing the Behavior of Neural IR Modelscited by 23
- 2023Representation biases in sentence transformerscited by 7
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 2.
8 papers.
- 2025Interpretable Text Embeddings and Text Similarity Explanation: A Surveycited by 12
- 2024Approximate Attributions for Off-the-Shelf Siamese Transformerscited by 7
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributionscited by 3
- 2024Which Neurons Matter in IR? Applying Integrated Gradients-based Methods to Understand Cross-Encoderscited by 1
- 2025Exploring Robustness of LLMs to Paraphrasing Based on Sociodemographic Factorscited by 1
- 2026Xetrieval: Mechanistically Explaining Dense Retrievalcited by 1
- 2025Mechanistic Decomposition of Sentence Representationscited by 0
- 2026Explaining Image Similarity with Automatically Extracted Concept Activation Vectorscited by 0
- 2026Explaining Image Similarity with Automatically Extracted Concept Activation Vectors30 Jul 2026
- 2026Xetrieval: Mechanistically Explaining Dense Retrieval28 May 2026
- 2025Mechanistic Decomposition of Sentence Representations4 Jun 2025
- 2025Interpretable Text Embeddings and Text Similarity Explanation: A Survey20 Feb 2025
- 2025Exploring Robustness of LLMs to Paraphrasing Based on Sociodemographic Factors14 Jan 2025
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributions26 Aug 2024
- 2024Which Neurons Matter in IR? Applying Integrated Gradients-based Methods to Understand Cross-Encoders27 Jun 2024
- 2024Approximate Attributions for Off-the-Shelf Siamese Transformers5 Feb 2024