CLLGOct 23, 2022

The Curious Case of Absolute Position Embeddings

Meta AIMILA
arXiv:2210.12574v1299 citationsh-index: 43
Originality Incremental advance
AI Analysis

This highlights a critical flaw in widely used positional encoding methods for NLP models, potentially affecting their robustness in real-world applications.

The study found that transformer language models using absolute position embeddings (APEs) break down when sentences start from non-zero positions, leading to degraded performance across tasks and model sizes, raising questions about APEs' ability to model relative position.

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. 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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes