Decoupling the "What" and "Where" With Polar Coordinate Positional Embedding
Abstract
The attention mechanism in a Transformer matches query and key 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 rotary position embedding (RoPE), which can impair performance particularly when decision making requires independent matches on these two factors. We propose an improvement to RoPE, we call Polar Coordinate Position Embedding 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 training 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, whereas RoPE's performance degrades significantly on longer sequences at test time without fine tuning or the use of position-interpolation methods.
BibTeX
@inproceedings{gopalakrishnan2026decoupling,
author = {Anand Gopalakrishnan and Róbert Csordás and Jürgen Schmidhuber and Michael Curtis Mozer},
title = {{Decoupling the "What" and "Where" With Polar Coordinate Positional Embedding}},
booktitle = {International Conference on Machine Learning},
year = {2026},
url = {https://openreview.net/forum?id=I3Z9za1EkO},
}Ask Althea to put this paper to the test.