On the Emergence of Position Bias in Transformers
Not on the map. Why?
Abstract (arXiv)
Recent studies have revealed various manifestations of position bias in transformer architectures, from the "lost-in-the-middle" phenomenon to attention sinks, yet a comprehensive theoretical understanding of how attention masks and positional encodings shape these biases remains elusive. This paper presents a graph-theoretic framework for analyzing position bias in multi-layer attention. Modeling attention masks as directed graphs, we quantify how tokens interact with contextual information based on their sequential positions. We uncover two key insights: First, causal masking inherently biases attention toward earlier positions, as tokens in deeper layers attend to increasingly more contextualized representations of earlier tokens. Second, we characterize the competing effects of the causal mask and relative positional encodings, such as the decay mask and rotary positional encoding (RoPE): while both mechanisms introduce distance-based decay within individual attention maps, their aggregate effect across multiple attention layersunicodex2013coupled with the causal maskunicodex2013leads to a trade-off between the long-term decay effects and the cumulative importance of early sequence positions. Through controlled numerical experiments, we not only validate our theoretical findings but also reproduce position biases observed in real-world LLMs. Our framework offers a principled foundation for understanding positional biases in transformers, shedding light on the complex interplay of attention mechanism components and guiding more informed architectural design.
Key facts. Cited by 59 papers in the map (data through 14 Oct 2026). Builds on 39 of its 50 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
39 of 50 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
27 more
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2023Large Language Models are Zero-Shot Rankers for Recommender Systemscited by 309
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 260
- 2019Representation Degeneration Problem in Training Natural Language Generation Modelscited by 255
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2017Structured Attention Networkscited by 95
- 2024Transformers need glasses! Information over-squashing in language taskscited by 91
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 83
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
- 2024Anisotropy Is Inherent to Self-Attention in Transformerscited by 63
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 56
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 48
- 2024One-layer transformers fail to solve the induction heads taskcited by 32
- 2024Serial Position Effects of Large Language Modelscited by 30
- 2021Multilingual Language Models Predict Human Reading Behaviorcited by 29
Built on by
Citing papers per year: 2025: 27; 2026: 32.
59 papers.
Sort:
By area:
- 2025Long-Context Generalization with Sparse Attentioncited by 21
- 2026Large Language Model Reasoning Failurescited by 21
- 2025Empirical Analysis of Decoding Biases in Masked Diffusion Modelscited by 19
- 2025Positional Biases Shift as Inputs Approach Context Window Limitscited by 9
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 9
- 2025Graph-KV: Breaking Sequence via Injecting Structural Biases into Large Language Modelscited by 6
- 2025Over-squashing in Spatiotemporal Graph Neural Networkscited by 6
- 2025Beyond Early-Token Bias: Model-Specific and Language-Specific Position Effects in Multilingual LLMscited by 5
- 2025Fragile Preferences: A Deep Dive Into Order Effects in Large Language Modelscited by 5
- 2025DoPE: Denoising Rotary Position Embeddingcited by 5
- 2026A Structural Theory of Position Bias in Transformerscited by 5
- 2026EvoComp: Learning Visual Token Compression for Multimodal Large Language Models via Semantic-Guided Evolutionary Labelingcited by 5
38 more
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessionscited by 5
- 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Modelscited by 4
- 2026Lost in the Middle at Birth: An Exact Theory of Transformer Position Biascited by 4
- 2025User-Assistant Bias in LLMscited by 3
- 2025Fine-grained Analysis of Brain-LLM Alignment through Input Attributioncited by 3
- 2025Natural Language Tools: A Natural Language Approach to Tool Calling In Large Language Agentscited by 3
- 2026Why Do LLMs Struggle in Strategic Play? Broken Links Between Observations, Beliefs, and Actionscited by 3
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Servingcited by 3
- 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understandingcited by 2
- 2025Emergence of Primacy and Recency Effect in Mamba: A Mechanistic Point of Viewcited by 2
- 2025GRPOformer: Advancing Hyperparameter Optimization via Group Relative Policy Optimizationcited by 2
- 2025ParaScopes: What do Language Models Activations Encode About Future Text?cited by 2
- 2025Jailbreaking in the Haystackcited by 2
- 2025Accelerate Speculative Decoding with Sparse Computation in Verificationcited by 2
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalizationcited by 2
- 2025Probability Consistency in Large Language Models: Theoretical Foundations Meet Empirical Discrepanciescited by 1
- 2025LayerNorm Induces Recency Bias in Transformer Decoderscited by 1
- 2025Understanding the Failure Modes of Transformers through the Lens of Graph Neural Networkscited by 1
- 2026Layer-wise Positional Bias in Short-Context Language Modelingcited by 1
- 2026Gender Bias in LLMs: Preliminary Evidence from Shared Parenting Scenario in Czech Family Lawcited by 1
- 2026Enhancing LLM-Based Data Annotation with Error Decompositioncited by 1
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systemscited by 1
- 2026Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigationcited by 1
- 2026Bias by Necessity: Impossibility Theorems for Sequential Processing with Convergent AI and Human Validationcited by 1
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibrationcited by 1
- 2026Order Matters: LVLMs as Judges for Temporal Reasoning in Image Sequencescited by 1
- 2026Overwhelmed by Choice: Studying LLM Decision Making at Scalecited by 1
- 2025Token Homogenization under Positional Biascited by 0
- 2025Evaluation Framework for Highlight Explanations of Context Utilisation in Language Modelscited by 0
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddingscited by 0
- 2025Enhanced MLLM Black-Box Jailbreaking Attacks and Defensescited by 0
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Modelscited by 0
- 2026On the Runway Cascade of Transformers for Language Modelingcited by 0
- 2026Probing Cultural Signals in Large Language Models through Author Profilingcited by 0
- 2026LLM-ReSum: A Framework for LLM Reflective Summarization through Self-Evaluationcited by 0
- 2026The Cost of Context: Mitigating Textual Bias in Multimodal Retrieval-Augmented Generationcited by 0
- 2026Continuity Laws for Sequential Modelscited by 0
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenoncited by 0
50 most cited of 59 All 59 (JSON)
- 2026RIFT: Token Influence Follows the Path of Least Resistance12 Oct 2026
- 2026How Local Mixing Encodes Relative Position in Global NoPE Attention29 Sep 2026
- 2026Overwhelmed by Choice: Studying LLM Decision Making at Scale26 Sep 2026
- 2026The Sirens' Song: When Proximal Background Context Overshadows Distant Evidence22 Sep 2026
- 2026It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attention8 Sep 2026
- 2026Climate-ModernBERT: Revisiting Corpus Composition for Domain-Adaptive Continued Pretraining7 Sep 2026
- 2026Order Matters: LVLMs as Judges for Temporal Reasoning in Image Sequences11 Aug 2026
- 2026Attention is Case-Sensitive4 Aug 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026Comparing Architectures for Supervised Political Scaling1 Jul 2026
- 2026How Token Influence Decays with Distance: A Green-Function View of Trained Language Models28 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
38 more
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessions22 May 2026
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibration12 May 2026
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenon9 May 2026
- 2026Bias by Necessity: Impossibility Theorems for Sequential Processing with Convergent AI and Human Validation9 May 2026
- 2026Continuity Laws for Sequential Models8 May 2026
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Serving7 May 2026
- 2026The Cost of Context: Mitigating Textual Bias in Multimodal Retrieval-Augmented Generation7 May 2026
- 2026Why Do LLMs Struggle in Strategic Play? Broken Links Between Observations, Beliefs, and Actions30 Apr 2026
- 2026LLM-ReSum: A Framework for LLM Reflective Summarization through Self-Evaluation28 Apr 2026
- 2026EvoComp: Learning Visual Token Compression for Multimodal Large Language Models via Semantic-Guided Evolutionary Labeling18 Apr 2026
- 2026Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigation28 Mar 2026
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systems21 Mar 2026
- 2026Probing Cultural Signals in Large Language Models through Author Profiling17 Mar 2026
- 2026Lost in the Middle at Birth: An Exact Theory of Transformer Position Bias10 Mar 2026
- 2026A Structural Theory of Position Bias in Transformers18 Feb 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2026On the Runway Cascade of Transformers for Language Modeling20 Jan 2026
- 2026Enhancing LLM-Based Data Annotation with Error Decomposition17 Jan 2026
- 2026Gender Bias in LLMs: Preliminary Evidence from Shared Parenting Scenario in Czech Family Law9 Jan 2026
- 2026Layer-wise Positional Bias in Short-Context Language Modeling7 Jan 2026
- 2025Accelerate Speculative Decoding with Sparse Computation in Verification26 Dec 2025
- 2025Understanding the Failure Modes of Transformers through the Lens of Graph Neural Networks9 Dec 2025
- 2025DoPE: Denoising Rotary Position Embedding12 Nov 2025
- 2025Jailbreaking in the Haystack5 Nov 2025
- 2025ParaScopes: What do Language Models Activations Encode About Future Text?31 Oct 2025
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Models26 Oct 2025
- 2025Enhanced MLLM Black-Box Jailbreaking Attacks and Defenses24 Oct 2025
- 2025Natural Language Tools: A Natural Language Approach to Tool Calling In Large Language Agents16 Oct 2025
- 2025Fine-grained Analysis of Brain-LLM Alignment through Input Attribution14 Oct 2025
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMs11 Oct 2025
- 2025Struc-EMB: The Potential of Structure-Aware Encoding in Language Embeddings9 Oct 2025
- 2025Evaluation Framework for Highlight Explanations of Context Utilisation in Language Models3 Oct 2025
- 2025LayerNorm Induces Recency Bias in Transformer Decoders25 Sep 2025
- 2025GRPOformer: Advancing Hyperparameter Optimization via Group Relative Policy Optimization21 Sep 2025
- 2025Token Homogenization under Positional Bias23 Aug 2025
- 2025Empirical Analysis of Decoding Biases in Masked Diffusion Models18 Aug 2025
- 2025User-Assistant Bias in LLMs16 Aug 2025
- 2025Positional Biases Shift as Inputs Approach Context Window Limits10 Aug 2025
50 newest of 59 All 59 (JSON)
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessionscited by 5
- 2025Natural Language Tools: A Natural Language Approach to Tool Calling In Large Language Agentscited by 3
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Servingcited by 3
- 2025Jailbreaking in the Haystackcited by 2
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessions22 May 2026
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Serving7 May 2026
- 2025Jailbreaking in the Haystack5 Nov 2025
- 2025Natural Language Tools: A Natural Language Approach to Tool Calling In Large Language Agents16 Oct 2025
- 2026Large Language Model Reasoning Failurescited by 21
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systemscited by 1
- 2026Order Matters: LVLMs as Judges for Temporal Reasoning in Image Sequencescited by 1
- 2026Overwhelmed by Choice: Studying LLM Decision Making at Scalecited by 1
- 2026Overwhelmed by Choice: Studying LLM Decision Making at Scale26 Sep 2026
- 2026Order Matters: LVLMs as Judges for Temporal Reasoning in Image Sequences11 Aug 2026
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systems21 Mar 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2026EvoComp: Learning Visual Token Compression for Multimodal Large Language Models via Semantic-Guided Evolutionary Labelingcited by 5
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibrationcited by 1
- 2026The Cost of Context: Mitigating Textual Bias in Multimodal Retrieval-Augmented Generationcited by 0
- 2026Logit-Attention Divergence: Mitigating Position Bias in Multi-Image Retrieval via Attention-Guided Calibration12 May 2026
- 2026The Cost of Context: Mitigating Textual Bias in Multimodal Retrieval-Augmented Generation7 May 2026
- 2026EvoComp: Learning Visual Token Compression for Multimodal Large Language Models via Semantic-Guided Evolutionary Labeling18 Apr 2026
- 2025Enhanced MLLM Black-Box Jailbreaking Attacks and Defenses24 Oct 2025
- 2025Long-Context Generalization with Sparse Attentioncited by 21
- 2025Positional Biases Shift as Inputs Approach Context Window Limitscited by 9
- 2025Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMscited by 9
- 2025Over-squashing in Spatiotemporal Graph Neural Networkscited by 6
- 2025Beyond Early-Token Bias: Model-Specific and Language-Specific Position Effects in Multilingual LLMscited by 5
- 2025Fragile Preferences: A Deep Dive Into Order Effects in Large Language Modelscited by 5
- 2025DoPE: Denoising Rotary Position Embeddingcited by 5
- 2026A Structural Theory of Position Bias in Transformerscited by 5
- 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Modelscited by 4
- 2026Lost in the Middle at Birth: An Exact Theory of Transformer Position Biascited by 4
- 2025User-Assistant Bias in LLMscited by 3
- 2026Why Do LLMs Struggle in Strategic Play? Broken Links Between Observations, Beliefs, and Actionscited by 3
12 most cited of 42 All 42 (JSON)
- 2026RIFT: Token Influence Follows the Path of Least Resistance12 Oct 2026
- 2026How Local Mixing Encodes Relative Position in Global NoPE Attention29 Sep 2026
- 2026The Sirens' Song: When Proximal Background Context Overshadows Distant Evidence22 Sep 2026
- 2026It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attention8 Sep 2026
- 2026Climate-ModernBERT: Revisiting Corpus Composition for Domain-Adaptive Continued Pretraining7 Sep 2026
- 2026Attention is Case-Sensitive4 Aug 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026Comparing Architectures for Supervised Political Scaling1 Jul 2026
- 2026How Token Influence Decays with Distance: A Green-Function View of Trained Language Models28 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenon9 May 2026
- 2026Bias by Necessity: Impossibility Theorems for Sequential Processing with Convergent AI and Human Validation9 May 2026
12 newest of 42 All 42 (JSON)