Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolation
Philip Heejun Lee

TL;DR
PRISM introduces a probabilistic positional encoding for Transformers, enabling accurate length extrapolation up to 10 times beyond training lengths, improving robustness in algorithmic and compositional tasks.
Contribution
The paper presents PRISM, a novel probabilistic positional encoding mechanism that significantly enhances Transformers' ability to generalize to longer sequences beyond training.
Findings
Achieves state-of-the-art length extrapolation on multiple benchmarks.
Successfully generalizes to sequence lengths 10x training lengths.
Maintains interpretable internal states with probabilistic encoding.
Abstract
Deep sequence models typically degrade in accuracy when test sequences significantly exceed their training lengths, yet many critical tasks--such as algorithmic reasoning, multi-step arithmetic, and compositional generalization--require robust length extrapolation. We introduce PRISM, a Probabilistic Relative-position Implicit Superposition Model, a novel positional encoding mechanism that enables Transformers to extrapolate accurately up to 10x beyond their training length. PRISM learns continuous relative positions through a differentiable histogram-filter update, preserving position uncertainty via a probabilistic superposition rather than conventional deterministic embeddings. Empirically, PRISM achieves state-of-the-art length extrapolation, successfully generalizing to previously intractable sequence lengths across algorithmic benchmarks--including arithmetic (addition,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications · Image Processing and 3D Reconstruction
