**arXiv ID:** 2506.00920 **Authors:** Philip Heejun Lee **Published:** 2025-06-01T09:20:44Z **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 tha...
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill position-as-probability-selfsupervised-transformers-that-think-past-their-training-for-length-extrapolation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Position As Probability Selfsupervised Transformers That Think Past Their Training For Length Extrapolation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-position-as-probability-selfsupervised-transformer)More formats (shields.io, HTML) on the badges page.
# Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolation
**arXiv ID:** 2506.00920
**Authors:** Philip Heejun Lee
**Published:** 2025-06-01T09:20:44Z
**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, multiplication), SCAN compositionality tasks, and complex copy variants derived from DeepMind's recent datasets. Our analysis demonstrates that PRISM's stochastic positional encoding maintains sharp and interpretable internal states, providing a theoretical basis for reliable length generalization. These results advance the goal of neural sequence models that remain algorithmically robust at lengths far exceeding their training horizon.
## Skill Description
This skill is generated from the arXiv paper: Position as Probability: Self-Supervised Transformers that Think Past Their Training for Length Extrapolation (2506.00920).
## How to Use
[To be filled in by the user or by future automation]
## References
- [arXiv:2506.00920](http://arxiv.org/abs/2506.00920v2)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!