Where does Absolute Position come from in decoder-only Transformers?

📰 ArXiv cs.AI

Learn how absolute position emerges in decoder-only Transformers despite relative position encoding, and why it matters for understanding transformer architecture

advanced Published 5 Jun 2026
Action Steps
  1. Analyze the role of causal masks in transformer decoders to understand their impact on absolute position
  2. Investigate how residual streams contribute to the emergence of absolute position in attention patterns
  3. Apply knowledge of absolute position sources to optimize transformer architecture for specific NLP tasks
  4. Configure experiments to test the effects of causal masks and residual streams on absolute position in decoder-only Transformers
  5. Compare the performance of transformer models with and without absolute position encoding to evaluate its importance
Who Needs to Know This

NLP engineers and researchers working with transformer models can benefit from understanding the source of absolute position in decoder-only Transformers, as it can inform architecture design and optimization decisions

Key Insight

💡 Absolute position in decoder-only Transformers arises from the interaction of causal masks and residual streams, not just relative position encoding

Share This
🤖 Did you know absolute position can emerge in decoder-only Transformers despite relative position encoding? 📊 Learn how causal masks and residual streams contribute to this phenomenon #transformers #nlp

Key Takeaways

Learn how absolute position emerges in decoder-only Transformers despite relative position encoding, and why it matters for understanding transformer architecture

Full Article

Title: Where does Absolute Position come from in decoder-only Transformers?

Abstract:
arXiv:2606.06160v1 Announce Type: new Abstract: RoPE-trained transformers distinguish absolute position in their attention patterns, even though RoPE encodes only relative offsets in the inner product. We trace this leakage to two architectural components, The causal mask is responsible for the first: its per-query softmax denominator depends on the absolute query position by construction. The residual stream supplies the second. Under causal attention the activation at position $0$ attends only
Read full paper → ← Back to Reads

Related Videos

5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Philosopher David Chalmers asks: When we talk to AI, what are we talking to?
Philosopher David Chalmers asks: When we talk to AI, what are we talking to?
UC Berkeley
Running a Streamlit App from Google Colab - Serve an LLM app in Colab
Running a Streamlit App from Google Colab - Serve an LLM app in Colab
Abonia Sojasingarayar
Run Ollama with Langchain Locally - Local LLM
Run Ollama with Langchain Locally - Local LLM
Abonia Sojasingarayar
Easily Run Hugging Face GGUF Models Locally with Ollama #LLM #HuggingFace #GGUFModels #Ollama#asitop
Easily Run Hugging Face GGUF Models Locally with Ollama #LLM #HuggingFace #GGUFModels #Ollama#asitop
Abonia Sojasingarayar
Running Ollama in Colab (Free Tier) - Step by Step Tutorial
Running Ollama in Colab (Free Tier) - Step by Step Tutorial
Abonia Sojasingarayar