- An official implementation of the paper LayerNorm Induces Recency Bias in Transformer Decoders (ACL 2026 Findings).
$pip install torch matplotlib seaborn numpy
concept/simulation.ipynb: Figure 1, 3, 4concept/alpha.ipynb: Figure 2, 5- The outputs of each notebook are saved in the
figuresdirectory.
@misc{kim2026layernormrecencybias,
title={LayerNorm Induces Recency Bias in Transformer Decoders},
author={Junu Kim and Xiao Liu and Zhenghao Lin and Lei Ji and Yeyun Gong and Edward Choi},
year={2026},
eprint={2509.21042},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2509.21042},
}