paper-with-me

홈 › Papers

ExPe: Exact Positional Encodings for Generative Transformer Models with Extrapolating Capabilities

2025-09-23 · Aleksis Datseris, Sylvia Vassileva, Ivan Koychev, Svetla Boytcheva arxiv

This paper introduces a novel approach to position embeddings in transformer models, named "Exact Positional Embeddings" (ExPE). An absolute positional embedding method that can extrapolate to sequences of lengths longer than the ones it was trained on. Traditional transformer models rely on absolute or relative position embeddings to incorporate positional information into token embeddings, which often struggle with extrapolation to sequences longer than those seen during training. Our proposed method utilizes a novel embedding strategy that encodes exact positional information by overriding specific dimensions of the embedding vectors, thereby enabling a more precise representation of token positions. The proposed approach not only maintains the integrity of the original embeddings but also enhances the model's ability to generalize to more extended sequences. In causal language modeling, our ExPE embeddings significantly reduce perplexity compared to rotary and sinusoidal embeddings, when tested on sequences longer than those used in training.

📄 PDF Abstract BibTeX arXiv:2509.19569

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Comparing Graph Transformers via Positional Encodings

2024-02-22 · Mitchell Black, Zhengchao Wan, Gal Mishne, Amir Nayyeri 외

The distinguishing power of graph transformers is closely tied to the choice of positional encoding: features used to augment the base transformer with information about the graph. There are two primary types of position…

Navigate

Position Information Emerges in Causal Transformers Without Positional Encodings via Similarity of Nearby Embeddings

2024-12-30 · Chunsheng Zuo, Pavel Guerzhoy, Michael Guerzhoy

Transformers with causal attention can solve tasks that require positional information without using positional encodings. In this work, we propose and investigate a new hypothesis about how positional information can be…

Position

HyPE-GT: where Graph Transformers meet Hyperbolic Positional Encodings

2023-12-11 · Kushal Bose, Swagatam Das

Graph Transformers (GTs) facilitate the comprehension of graph-structured data by calculating the self-attention of node pairs without considering node position information. To address this limitation, we introduce an in…

Position

Frontier Language Models Struggle to Copy: Text Can Be Better Viewed in 2D

2026-07-17 · Haodong Wen, Yiran Zhang, Yingfa Chen, Kaifeng Lyu arxiv

While large language models (LLMs) can solve advanced reasoning problems in seconds, we show that even frontier models fail to perform a much simpler operation: exactly copying an input string that lies well within their…

The Impact of Positional Encodings on Multilingual Compression

2021-09-11 · EMNLP 2021 11 · Vinit Ravishankar, Anders Søgaard

In order to preserve word-order information in a non-autoregressive setting, transformer architectures tend to include positional knowledge, by (for instance) adding positional encodings to token embeddings. Several modi…

Inductive Bias