The Curious Case of Absolute Position Embeddings

Koustuv Sinha, Amirhossein Kazemnejad, Siva Reddy, Joelle Pineau, Dieuwke Hupkes +1 more
10/23/2022
cs.CLcs.LG

Official code: kazemnejad/lm_pos_investigations (2 stars, last commit 2022-10-26).

Abstract

Transformer language models encode the notion of word order using positional information. Most commonly, this positional information is represented by absolute position embeddings (APEs), that are learned from the pretraining data.

Show full abstract

However, in natural language, it is not absolute position that matters, but relative position, and the extent to which APEs can capture this type of information has not been investigated. In this work, we observe that models trained with APE over-rely on positional information to the point that they break-down when subjected to sentences with shifted position information. Specifically, when models are subjected to sentences starting from a non-zero position (excluding the effect of priming), they exhibit noticeably degraded performance on zero to full-shot tasks, across a range of model families and model sizes. Our findings raise questions about the efficacy of APEs to model the relativity of position information, and invite further introspection on the sentence and word order processing strategies employed by these models.

View on arXivView PDF

Code Implementations(1)

Code for the paper "The curious case of absolute position embeddings", EMNLP 2022 Findings

20Oct 6, 20224 years ago

Similar Papers

Cite this paper

@article{sinha2022curious,
  title  = {The Curious Case of Absolute Position Embeddings},
  author = {Koustuv Sinha and Amirhossein Kazemnejad and Siva Reddy and Joelle Pineau and Dieuwke Hupkes and Adina Williams},
  year   = {2022},
  eprint = {2210.12574},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12574}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.12574.svg)](https://codeofpaper.com/paper/2210.12574)

Discussion