Positional Bias in Long-Document Ranking: Impact, Assessment, and Mitigation
Leonid Boytsov, David Akinpelu, Nipun Katyal, Tianyi Lin, Fangwei Gao, Yutian Zhao, Jeffrey Huang, Eric Nyberg
TL;DR
Positional bias in long-document ranking limits the apparent advantage of long-context transformers, motivating a benchmark-aware evaluation. The study systematically tests over 20 ranking methods across MS MARCO Documents, Robust04, BEIR, and a new MS MARCO FarRelevant diagnostic, finding that no long-context model beats the FirstP baseline by more than $5\%$ on average. It reveals that relevance tends to concentrate in the early document positions, a bias that persists across benchmarks and can cause overfitting to position; on FarRelevant, many long-context models perform at random without targeted debiasing or in-domain training. Debiasing training data yields mixed improvements, with PARADE and MaxP variants showing relative robustness, underscoring the need for careful benchmark design and more effective debiasing strategies. The work provides data and code to spur further research into robust long-context ranking and fair benchmarking.
Abstract
We tested over 20 Transformer models for ranking long documents (including recent LongP models trained with FlashAttention and RankGPT models "powered" by OpenAI and Anthropic cloud APIs). We compared them with the simple FirstP baseline, which applied the same model to truncated input (up to 512 tokens). On MS MARCO, TREC DL, and Robust04 no long-document model outperformed FirstP by more than 5% (on average). We hypothesized that this lack of improvement is not due to inherent model limitations, but due to benchmark positional bias (most relevant passages tend to occur early in documents), which is known to exist in MS MARCO. To confirm this, we analyzed positional relevance distributions across four long-document corpora (with six query sets) and observed the same early-position bias. Surprisingly, we also found bias in six BEIR collections, which are typically categorized as short-document datasets. We then introduced a new diagnostic dataset, MS MARCO FarRelevant, where relevant spans were deliberately placed beyond the first 512 tokens. On this dataset, many long-context models (including RankGPT) performed at random-baseline level, suggesting overfitting to positional bias. We also experimented with debiasing training data, but with limited success. Our findings (1) highlight the need for careful benchmark design in evaluating long-context models for document ranking, (2) identify model types that are more robust to positional bias, and (3) motivate further work on approaches to debias training data. We release our code and data to support further research.
