EMNLP 2023long findings0 citations

The Locality and Symmetry of Positional Encodings

Lihu Chen, Gael Varoquaux, Fabian M. Suchanek

Abstract

Positional Encodings (PEs) are used to inject word-order information into transformer-based language models. While they can significantly enhance the quality of sentence representations, their specific contribution to language models is not fully understood, especially given recent findings that various positional encodings are insensitive to word order. In this work, we conduct a systematic study of positional encodings in \textbf{Bidirectional Masked Language Models} (BERT-style) , which complements existing work in three aspects: (1) We uncover the core function of PEs by identifying two common properties, Locality and Symmetry; (2) We show that the two properties are closely correlated with the performances of downstream tasks; (3) We quantify the weakness of current PEs by introducing two new probing tasks, on which current PEs perform poorly. We believe that these results are the basis for developing better PEs for transformer-based language models.

Positional EncodingsSentence RepresentationsPre-trained Language Models
BibTeX
@inproceedings{
chen2023the,
title={The Locality and Symmetry of Positional Encodings},
author={Lihu Chen and Gael Varoquaux and Fabian M. Suchanek},
booktitle={The 2023 Conference on Empirical Methods in Natural Language Processing},
year={2023},
url={https://openreview.net/forum?id=6c2s6HddQ4}
}