English

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

Information Retrieval 2024-10-29 v2 Computation and Language

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.

Keywords

Cite

@article{arxiv.2404.04163,
  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},
  journal= {arXiv preprint arXiv:2404.04163},
  year   = {2024}
}
R2 v1 2026-06-28T15:45:15.036Z