학술

Attention Calibration for Position-Fair Dense Retrieval

arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Abstract

Dense retrieval compresses a passage into a single vector, but this compression is positionally skewed: early content dominates the embedding, and retrieval degrades when the relevant span appears later.

A prior inference-time method counteracts this skew by equalizing the pooling token's attention across passage segments.

However, it (i) redistributes attention at a fixed strength, (ii) fixes the pooling token's self-attention at a basket-level mass despite substantial variation across layers and architectures, and (iii) has not been evaluated for retrieval.

We address each in turn: (i) a strength coefficient that interpolates between uncalibrated and fully equalized attention; (ii) a variant that preserves the pooling token's self-attention mass and redistributes only the remainder; (iii) a large-scale retrieval evaluation, made practical by an efficient implementation that reduces peak calibration memory overhead from 5-7 GiB to under 0.1 MiB.

Across three dense retrievers and two pooling schemes, moderate calibration provides a better retrieval trade-off than full equalization.

On the position-aware PosIR benchmark (10 languages, 31 domains), a configuration selected on English FineWeb-PosQ and transferred without tuning reduces position sensitivity for the two <s>-pooled models in all 16 length-quartile, model, and retrieval-setting combinations, by up to 43% relative, while improving nDCG@10 by up to 4.8% relative and leaving general retrieval effectiveness on NanoBEIR essentially unchanged.

Calibration runs at indexing time, adding no query-time latency.

Code: this https URL.

관련 뉴스