Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval

João Coelho, Bruno Martins, João Magalhães, Jamie Callan, Chenyan Xiong
4/5/2024
cs.IRcs.CL

No official code found. Best implementation: cxcscmu/LongEmbeddingAnalysis (3 stars, last commit 2024-06-20).

Abstract

This study investigates the existence of positional biases in Transformer-based models for text representation learning, particularly in the context of web document retrieval. We build on previous research that demonstrated loss of information in the middle of input sequences for causal language models, extending it to the domain of representation learning. We examine positional biases at various stages of training for an encoder-decoder model, including language model pre-training, contrastive pre-training, and contrastive fine-tuning. Experiments with the MS-MARCO document collection reveal that after contrastive pre-training the model already generates embeddings that better capture early contents of the input, with fine-tuning further aggravating this effect.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonJun 3, 20242 years ago

Similar Papers

Cite this paper

@article{coelho2024dwell,
  title  = {Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval},
  author = {João Coelho and Bruno Martins and João Magalhães and Jamie Callan and Chenyan Xiong},
  year   = {2024},
  eprint = {2404.04163},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.04163v2}
}

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

Discussion