@inproceedings{haviv-etal-2022-transformer,
title = "Transformer Language Models without Positional Encodings Still Learn Positional Information",
author = "Haviv, Adi and
Ram, Ori and
Press, Ofir and
Izsak, Peter and
Levy, Omer",
editor = "Goldberg, Yoav and
Kozareva, Zornitsa and
Zhang, Yue",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2022",
month = dec,
year = "2022",
address = "Abu Dhabi, United Arab Emirates",
publisher = "Association for Computational Linguistics",
url = "https://preview.aclanthology.org/landing_page/2022.findings-emnlp.99/",
doi = "10.18653/v1/2022.findings-emnlp.99",
pages = "1382--1390",
abstract = "Causal transformer language models (LMs), such as GPT-3, typically require some form of positional encoding, such as positional embeddings. However, we show that LMs without any explicit positional encoding are still competitive with standard models and that this phenomenon is robust across different datasets, model sizes, and sequence lengths.Probing experiments reveal that such models acquire an implicit notion of absolute positions throughout the network, effectively compensating for the missing information.We conjecture that causal attention enables the model to infer the number of predecessors that each token can attend to, thereby approximating its absolute position.Our findings indicate that causal LMs might derive positional awareness not only from the explicit positioning mechanism but also from the effects of the causal mask."
}
Markdown (Informal)
[Transformer Language Models without Positional Encodings Still Learn Positional Information](https://preview.aclanthology.org/landing_page/2022.findings-emnlp.99/) (Haviv et al., Findings 2022)
ACL