Where to Attend: A Principled Vision-Centric Position Encoding with Parabolas

Christoffer Koo Øhrstrøm, Rafael I. Cabral Muchacho, Yifei Dong, Filippos Moumtzidellis, Ronja Güldenring +2 more
2/1/2026
cs.CVcs.LG

Official code: DTU-PAS/parabolic-position-encoding (14 stars, last commit 2026-04-23).

Abstract

We propose Parabolic Position Encoding (PaPE), a parabola-based position encoding for vision modalities in attention-based architectures. Given a set of vision tokens-such as images, point clouds, videos, or event camera streams-our objective is to encode their positions while accounting for the characteristics of vision modalities. Prior works have largely extended position encodings from 1D-sequences in language to nD-structures in vision, but only with partial account of vision characteristics. We address this gap by designing PaPE from principles distilled from prior work: translation invariance, rotation invariance (PaPE-RI), distance decay, directionality, and context awareness. We evaluate PaPE on 8 datasets that span 4 modalities. We find that either PaPE or PaPE-RI achieves the top performance on 7 out of 8 datasets. Extrapolation experiments on ImageNet-1K show that PaPE extrapolates remarkably well, improving in absolute terms by up to 10.5% over the next-best position encoding. Code is available at https://github.com/DTU-PAS/parabolic-position-encoding.

View on arXivView PDF

Code Implementations(1)

Where to Attend: A Principled Vision-Centric Position Encoding with Parabolas

140Rust, ShellJan 29, 20266 months ago

Similar Papers

Cite this paper

@article{hrstrm2026where,
  title  = {Where to Attend: A Principled Vision-Centric Position Encoding with Parabolas},
  author = {Christoffer Koo Øhrstrøm and Rafael I. Cabral Muchacho and Yifei Dong and Filippos Moumtzidellis and Ronja Güldenring and Florian T. Pokorny and Lazaros Nalpantidis},
  year   = {2026},
  eprint = {2602.01418},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.01418v1}
}

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/2602.01418.svg)](https://codeofpaper.com/paper/2602.01418)

Discussion