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

Valeria Ruscio, Umberto Nanni, Fabrizio Silvestri
6/4/2026
cs.AIcs.CL
transformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

The residual stream supplies the second. Under causal attention the activation at position $0$ attends only to itself and runs as a closed dynamical system from the embedding of the token at that position; downstream attention reads this trajectory through sink-reading heads. Both components appear in all three architectures we study, in architecturally specific balance: NTK scaling suppresses the residual-stream component, sliding-window attention allows it to accumulate with depth, and standard RoPE sits between. Replacing the \texttt{BOS} embedding before the forward pass removes $40\%$ of the residual-stream component at early queries. Attention sinks are token-anchored stabilizers that pass forward a deterministic fingerprint of the token at position $0$, constant across inputs when that token is the auto-prepended \texttt{BOS} and varying with it otherwise.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ruscio2026where,
  title  = {Where does Absolute Position come from in decoder-only Transformers?},
  author = {Valeria Ruscio and Umberto Nanni and Fabrizio Silvestri},
  year   = {2026},
  eprint = {2606.06160},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.06160v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.06160.svg)](https://codeofpaper.com/paper/2606.06160)

Discussion