paper-with-me

Papers

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

2026-06-04 · Valeria Ruscio, Umberto Nanni, Fabrizio Silvestri arxiv

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 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.

📄 PDF Abstract BibTeX arXiv:2606.06160

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Segmental Attention Decoding With Long Form Acoustic Encodings

2025-12-16 · Pawel Swietojanski, Xinwei Li, Mingbin Xu, Takaaki Hori 외 arxiv

We address the fundamental incompatibility of attention-based encoder-decoder (AED) models with long-form acoustic encodings. AED models trained on segmented utterances learn to encode absolute frame positions by exploit…

Semantic Segmentation

Pruning as Regularization: Sensitivity-Aware One-Shot Pruning in ASR

2025-11-11 · Julian Irigoyen, Arthur Söhler, Andreas Søeborg Kirkedal arxiv

We challenge the conventional view of neural network pruning as solely a compression technique, demonstrating that one-shot magnitude pruning serves as a powerful implicit regularizer for ASR. Using Whisper-small, we com…

Network Pruning

StableMask: Refining Causal Masking in Decoder-only Transformer

2024-02-07 · Qingyu Yin, Xuzheng He, Xiang Zhuang, Yu Zhao 외

The decoder-only Transformer architecture with causal masking and relative position encoding (RPE) has become the de facto choice in language modeling. Despite its exceptional performance across various tasks, we have id…

DecoderLanguage ModelingLanguage ModellingPosition

Learning Multi-Scene Absolute Pose Regression with Transformers

2021-03-21 · ICCV 2021 10 · Yoli Shavit, Ron Ferens, Yosi Keller

Absolute camera pose regressors estimate the position and orientation of a camera from the captured image alone. Typically, a convolutional backbone with a multi-layer perceptron head is trained with images and pose labe…

regressionVisual Localization

Self-Attention with Relative Position Representations

2018-03-06 · NAACL 2018 6 · Peter Shaw, Jakob Uszkoreit, Ashish Vaswani

Relying entirely on an attention mechanism, the Transformer introduced by Vaswani et al. (2017) achieves state-of-the-art results for machine translation. In contrast to recurrent and convolutional neural networks, it do…

Machine TranslationPositionTranslation