Interpreting BERT-based Text Similarity via Activation and Saliency Maps
Itzik Malkiel, Dvir Ginzburg, Oren Barkan, Avi Caciularu, Jonathan Weill, Noam Koenigstein
Abstract
Recently, there has been growing interest in the ability of Transformer-based models to produce meaningful embeddings of text with several applications, such as text similarity. Despite significant progress in the field, the explanations for similarity predictions remain challenging, especially in unsupervised settings. In this work, we present an unsupervised technique for explaining paragraph similarities inferred by pre-trained BERT models. By looking at a pair of paragraphs, our technique identifies important words that dictate each paragraph’s semantics, matches between the words in both paragraphs, and retrieves the most important pairs that explain the similarity between the two. The method, which has been assessed by extensive human evaluations and demonstrated on datasets comprising long and complex paragraphs, has shown great promise, providing accurate interpretations that correlate better with human perceptions.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Self-Supervised Document Similarity Ranking via Contextualized Language Models and Hierarchical Inference cites Optimizing BERT for Unlabeled Text-Based Items Similarity
- Visual Explanations via Iterated Integrated Attributions cites Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
- Visual Explanations via Iterated Integrated Attributions cites Transformer Interpretability Beyond Attention Visualization
- Soft Local Completeness: Rethinking Completeness in XAI cites Visual Explanations via Iterated Integrated Attributions
- Soft Local Completeness: Rethinking Completeness in XAI cites Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
- Soft Local Completeness: Rethinking Completeness in XAI cites Transformer Interpretability Beyond Attention Visualization
- Soft Local Completeness: Rethinking Completeness in XAI cites BEE: Metric-Adapted Explanations via Baseline Exploration-Exploitation
- Optimizing BERT for Unlabeled Text-Based Items Similarity cites Scalable Attentive Sentence Pair Modeling via Distilled Sentence Embedding
- Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers cites Transformer Interpretability Beyond Attention Visualization
- BEE: Metric-Adapted Explanations via Baseline Exploration-Exploitation cites Visual Explanations via Iterated Integrated Attributions
- BEE: Metric-Adapted Explanations via Baseline Exploration-Exploitation cites Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
- BEE: Metric-Adapted Explanations via Baseline Exploration-Exploitation cites Transformer Interpretability Beyond Attention Visualization
- BEE: Metric-Adapted Explanations via Baseline Exploration-Exploitation cites Scalable Attentive Sentence Pair Modeling via Distilled Sentence Embedding
Cited by top-tier papers4
- Visual Explanations via Iterated Integrated AttributionsOren Barkan, Yehonatan Elisha, Yuval Asher, Amit Eshel et al.ICCV 2023 · 33 citations
- Soft Local Completeness: Rethinking Completeness in XAIZiv Weiss Haddad, Oren Barkan, Yehonatan Elisha, Noam KoenigsteinICCV 2025 · 2 citations
- Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-Preserving TransformationsJiyong Uhm, Minseok Kim, Michalis Polychronakis, Hyungjoon KooFSE 2026 · 1 citation
- BEE: Metric-Adapted Explanations via Baseline Exploration-ExploitationOren Barkan, Yehonatan Elisha, Jonathan Weill, Noam KoenigsteinAAAI 2025
Builds on5
- Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder TransformersHila Chefer, Shir Gur, Lior WolfICCV 2021 · 451 citations
- Scalable Attentive Sentence Pair Modeling via Distilled Sentence EmbeddingOren Barkan, Noam Razin, Itzik Malkiel, Ori Katz et al.AAAI 2020 · 37 citations
- Optimizing BERT for Unlabeled Text-Based Items SimilarityItzik Malkiel, Oren Barkan, Avi Caciularu, Noam Razin et al.EMNLP Findings 2020 · 21 citations
- Self-Supervised Document Similarity Ranking via Contextualized Language Models and Hierarchical InferenceDvir Ginzburg, Itzik Malkiel, Oren Barkan, Avi Caciularu et al.ACL Findings 2021 · 16 citations
- Transformer Interpretability Beyond Attention VisualizationHila Chefer, Shir Gur, Lior WolfCVPR 2021
Related papers
- Interpretable Text Embeddings and Text Similarity Explanation: A SurveyJuri Opitz, Lucas Möller, Andrianos Michail, Sebastian Padó et al.EMNLP 2025 · 3 citations
- Analyzing How BERT Performs Entity MatchingMatteo Paganelli, Francesco Del Buono, Andrea Baraldi, Francesco GuerraVLDB 2022 · 35 citations
- A Bilingual Generative Transformer for Semantic Sentence EmbeddingJohn Wieting, Graham Neubig, Taylor Berg-KirkpatrickEMNLP 2020 · 4 citations
- Inducing Relational Knowledge from BERTZied Bouraoui, José Camacho-Collados, Steven SchockaertAAAI 2020 · 183 citations
- On the Sentence Embeddings from Pre-trained Language ModelsBohan Li, Hao Zhou, Junxian He, Mingxuan Wang et al.EMNLP 2020 · 538 citations
