LayerNorm Induces Recency Bias in Transformer Decoders

Read full text
Authors: Junu Kim, Xiao Liu, Zhenghao Lin, Lei Ji, Yeyun Gong, Edward Choi
Cited by: 0

Abstract

Causal self-attention provides positional information to Transformer decoders.Prior work has shown that stacks of causal self-attention layers alone induce a positional bias in attention scores toward earlier tokens.However, this differs from the bias toward later tokens typically observed in Transformer decoders, known as recency bias.We address this discrepancy by analyzing the interaction between causal selfattention and other architectural components.We show that stacked causal self-attention layers combined with LayerNorm induce recency bias.Furthermore, we examine the effects of residual connections and the distribution of input token embeddings on this bias.Our results provide new theoretical insights into how positional information interacts with architectural components and suggest directions for improving positional encoding strategies.

Fields of Study & Subjects

Social and Intergroup Psychology Decision-Making and Behavioral Economics

Publication details

Journal / source
Findings of the Association for Computational Linguistics: ACL 2026
Publisher
Association for Computational Linguistics
Pages
28638–28652
Publication date
1 January 2026
Language
EN