TY - GEN
T1 - Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddings
AU - Chi, Ta Chung
AU - Fan, Ting Han
AU - Chen, Li Wei
AU - Rudnicky, Alexander I.
AU - Ramadge, Peter J.
N1 - Publisher Copyright:
© 2023 Association for Computational Linguistics.
PY - 2023
Y1 - 2023
N2 - The use of positional embeddings in transformer language models is widely accepted. However, recent research has called into question the necessity of such embeddings. We further extend this inquiry by demonstrating that a randomly initialized and frozen transformer language model, devoid of positional embeddings, inherently encodes strong positional information through the shrinkage of self-attention variance. To quantify this variance, we derive the underlying distribution of each step within a transformer layer. Through empirical validation using a fully pretrained model, we show that the variance shrinkage effect still persists after extensive gradient updates. Our findings serve to justify the decision to discard positional embeddings and thus facilitate more efficient pretraining of transformer language models.
AB - The use of positional embeddings in transformer language models is widely accepted. However, recent research has called into question the necessity of such embeddings. We further extend this inquiry by demonstrating that a randomly initialized and frozen transformer language model, devoid of positional embeddings, inherently encodes strong positional information through the shrinkage of self-attention variance. To quantify this variance, we derive the underlying distribution of each step within a transformer layer. Through empirical validation using a fully pretrained model, we show that the variance shrinkage effect still persists after extensive gradient updates. Our findings serve to justify the decision to discard positional embeddings and thus facilitate more efficient pretraining of transformer language models.
UR - http://www.scopus.com/inward/record.url?scp=85172224468&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85172224468&partnerID=8YFLogxK
M3 - Conference contribution
AN - SCOPUS:85172224468
T3 - Proceedings of the Annual Meeting of the Association for Computational Linguistics
SP - 1183
EP - 1193
BT - Short Papers
PB - Association for Computational Linguistics (ACL)
T2 - 61st Annual Meeting of the Association for Computational Linguistics, ACL 2023
Y2 - 9 July 2023 through 14 July 2023
ER -