Saved in:
Bibliographic Details
Main Authors: Gopalakrishnan, Anand, Csordás, Robert, Schmidhuber, Jürgen, Mozer, Michael C.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.10534
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915691376934912
author Gopalakrishnan, Anand
Csordás, Robert
Schmidhuber, Jürgen
Mozer, Michael C.
author_facet Gopalakrishnan, Anand
Csordás, Robert
Schmidhuber, Jürgen
Mozer, Michael C.
contents The attention mechanism in a Transformer architecture matches key to query based on both content -- the what -- and position in a sequence -- the where. We present an analysis indicating that what and where are entangled in the popular RoPE rotary position embedding. This entanglement can impair performance particularly when decisions require independent matches on these two factors. We propose an improvement to RoPE, which we call Polar Coordinate Position Embeddings or PoPE, that eliminates the what-where confound. PoPE is far superior on a diagnostic task requiring indexing solely by position or by content. On autoregressive sequence modeling in music, genomic, and natural language domains, Transformers using PoPE as the positional encoding scheme outperform baselines using RoPE with respect to evaluation loss (perplexity) and downstream task performance. On language modeling, these gains persist across model scale, from 124M to 774M parameters. Crucially, PoPE shows strong zero-shot length extrapolation capabilities compared not only to RoPE but even a method designed for extrapolation, YaRN, which requires additional fine tuning and frequency interpolation.
format Preprint
id arxiv_https___arxiv_org_abs_2509_10534
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddings
Gopalakrishnan, Anand
Csordás, Robert
Schmidhuber, Jürgen
Mozer, Michael C.
Machine Learning
Artificial Intelligence
Computation and Language
The attention mechanism in a Transformer architecture matches key to query based on both content -- the what -- and position in a sequence -- the where. We present an analysis indicating that what and where are entangled in the popular RoPE rotary position embedding. This entanglement can impair performance particularly when decisions require independent matches on these two factors. We propose an improvement to RoPE, which we call Polar Coordinate Position Embeddings or PoPE, that eliminates the what-where confound. PoPE is far superior on a diagnostic task requiring indexing solely by position or by content. On autoregressive sequence modeling in music, genomic, and natural language domains, Transformers using PoPE as the positional encoding scheme outperform baselines using RoPE with respect to evaluation loss (perplexity) and downstream task performance. On language modeling, these gains persist across model scale, from 124M to 774M parameters. Crucially, PoPE shows strong zero-shot length extrapolation capabilities compared not only to RoPE but even a method designed for extrapolation, YaRN, which requires additional fine tuning and frequency interpolation.
title Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddings
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2509.10534