Approximate Attributions for Off-the-Shelf Siamese Transformers

Lucas Möller, Dmitry Nikolaev, Sebastian Padó
2/5/2024
cs.CLcs.LG

No official code found. Best implementation: lucasmllr/xsbert (13 stars, MIT, last commit 2024-03-26).

Abstract

Siamese encoders such as sentence transformers are among the least understood deep models. Established attribution methods cannot tackle this model class since it compares two inputs rather than processing a single one. To address this gap, we have recently proposed an attribution method specifically for Siamese encoders (Möller et al., 2023). However, it requires models to be adjusted and fine-tuned and therefore cannot be directly applied to off-the-shelf models. In this work, we reassess these restrictions and propose (i) a model with exact attribution ability that retains the original model's predictive performance and (ii) a way to compute approximate attributions for off-the-shelf models. We extensively compare approximate and exact attributions and use them to analyze the models' attendance to different linguistic aspects. We gain insights into which syntactic roles Siamese transformers attend to, confirm that they mostly ignore negation, explore how they judge semantically opposite adjectives, and find that they exhibit lexical bias.

View on arXivView PDF

Code Implementations(1)

lucasmllr/xsbertCommunity100%
MIT

explainable Siamese sentence transformers

136Python, Jupyter NotebookOct 26, 20232 years agoMIT

Similar Papers

Cite this paper

@article{mller2024approximate,
  title  = {Approximate Attributions for Off-the-Shelf Siamese Transformers},
  author = {Lucas Möller and Dmitry Nikolaev and Sebastian Padó},
  year   = {2024},
  eprint = {2402.02883},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.02883v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.02883.svg)](https://codeofpaper.com/paper/2402.02883)

Discussion