A Structural Theory of Position Bias in Transformers

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Herasimchyk, Hanna, Labryga, Robin, Prusina, Tomislav, Laue, Sören
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910262541418496
author Herasimchyk, Hanna
Labryga, Robin
Prusina, Tomislav
Laue, Sören
author_facet Herasimchyk, Hanna
Labryga, Robin
Prusina, Tomislav
Laue, Sören
contents Transformer models systematically favor certain token positions, yet the architectural origins of this position bias remain poorly understood. This bias is closely connected to the Lost-in-the-Middle phenomenon, where models underutilize information placed in the middle of the context. We show that Lost-in-the-Middle-type behavior can arise from the architecture of causal Transformers itself. To do so, we develop a structural theory of position bias based on residual-aware cumulative attention rollout. At finite depth, causal masking and residual connections induce broad, often U-shaped, influence profiles. At infinite depth, our framework resolves a discrepancy between prior attention-only collapse theory and practical Transformer behavior: residual connections fundamentally change cumulative attention dynamics. Empirically, the predicted profiles closely match measured input-token influence in pretrained language models.
format Preprint
id arxiv_https___arxiv_org_abs_2602_16837
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Structural Theory of Position Bias in Transformers
Herasimchyk, Hanna
Labryga, Robin
Prusina, Tomislav
Laue, Sören
Machine Learning
Transformer models systematically favor certain token positions, yet the architectural origins of this position bias remain poorly understood. This bias is closely connected to the Lost-in-the-Middle phenomenon, where models underutilize information placed in the middle of the context. We show that Lost-in-the-Middle-type behavior can arise from the architecture of causal Transformers itself. To do so, we develop a structural theory of position bias based on residual-aware cumulative attention rollout. At finite depth, causal masking and residual connections induce broad, often U-shaped, influence profiles. At infinite depth, our framework resolves a discrepancy between prior attention-only collapse theory and practical Transformer behavior: residual connections fundamentally change cumulative attention dynamics. Empirically, the predicted profiles closely match measured input-token influence in pretrained language models.
title A Structural Theory of Position Bias in Transformers
topic Machine Learning
url https://arxiv.org/abs/2602.16837