Metraipolis › archive › dc_869e5a5ddd60
Position Encoding in Transformers: From Absolute and Relative Methods to Rotary Position Embeddings and Long-Context Scaling — arXiv:2608.10021
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.10021
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T06:14:08.476Z
- SHA-256 of the archived text
f665fa59886085ebe94d449e09ea31cfe9929b6b8454e64c2936a9be4a89922a- Stable URL of this page
https://metraipolis.com/documento/dc_869e5a5ddd60
How to cite
Position Encoding in Transformers: From Absolute and Relative Methods to Rotary Position Embeddings and Long-Context Scaling — arXiv:2608.10021 — arXiv (en), https://arxiv.org/abs/2608.10021 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_869e5a5ddd60 (Metraipolis archive dc_869e5a5ddd60, sha256 f665fa59886085ebe94d449e09ea31cfe9929b6b8454e64c2936a9be4a89922a)
BibTeX
@misc{dc869e5a5ddd60,
title = {Position Encoding in Transformers: From Absolute and Relative Methods to Rotary Position Embeddings and Long-Context Scaling — arXiv:2608.10021},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.10021},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_869e5a5ddd60; sha256 f665fa59886085ebe94d449e09ea31cfe9929b6b8454e64c2936a9be4a89922a},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.10021. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Self-attention models content-dependent interactions between tokens but does not by itself encode token order. Position encoding addresses this limitation by introducing absolute coordinates, relative distances, or position-dependent rotations into Transformer representations and attention scores. This technical survey develops a unified account of sinusoidal and learned absolute position embeddings, Shaw-style relative position representations, Transformer-XL, T5 relative position bias, ALiBi, and Rotary Position Embeddings (RoPE). We derive how RoPE converts absolute position indices into relative phase differences in Query-Key inner products and compare these methods in terms of where position is injected, computational cost, compatibility with KV caching, and length extrapolation. We then examine long-context extensions, including Position Interpolation, RoPE scaling laws, NTK-aware scaling, Dynamic NTK, NTK-by-parts, YaRN, LongRoPE, and LongRoPE2, with emphasis on frequency allocation, attention rescaling, training length, and target context length. We also summarize implementation considerations, evaluation protocols, and position-encoding choices in representative large language models. A central conclusion is that the ability to compute positional features beyond the training length does not imply reliable long-context generalization; context extension must be evaluated through short-context retention, position-wise perplexity, retrieval, reasoning, and long-context code tasks. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-12 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2608.10021 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-19T06:08:50.304Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-12?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).