What Are You Token About? Dense Retrieval as Distributions Over the Vocabulary

Ori Ram, Liat Bezalel, Adi Zicher, Yonatan Belinkov, Jonathan Berant +1 more
12/20/2022
cs.CLcs.IR

Official code: oriram/dense-retrieval-projections (6 stars, last commit 2024-09-10).

Abstract

Dual encoders are now the dominant architecture for dense retrieval. Yet, we have little understanding of how they represent text, and why this leads to good performance.

Show full abstract

In this work, we shed light on this question via distributions over the vocabulary. We propose to interpret the vector representations produced by dual encoders by projecting them into the model's vocabulary space. We show that the resulting projections contain rich semantic information, and draw connection between them and sparse retrieval. We find that this view can offer an explanation for some of the failure cases of dense retrievers. For example, we observe that the inability of models to handle tail entities is correlated with a tendency of the token distributions to forget some of the tokens of those entities. We leverage this insight and propose a simple way to enrich query and passage representations with lexical information at inference time, and show that this significantly improves performance compared to the original model in zero-shot settings, and specifically on the BEIR benchmark.

View on arXivView PDF

Code Implementations(1)

60May 19, 20232 years ago

Similar Papers

Cite this paper

@article{ram2022what,
  title  = {What Are You Token About? Dense Retrieval as Distributions Over the Vocabulary},
  author = {Ori Ram and Liat Bezalel and Adi Zicher and Yonatan Belinkov and Jonathan Berant and Amir Globerson},
  year   = {2022},
  eprint = {2212.10380},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10380}
}

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/2212.10380.svg)](https://codeofpaper.com/paper/2212.10380)

Discussion