Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
80 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Position Information Emerges in Causal Transformers Without Positional Encodings via Similarity of Nearby Embeddings (2501.00073v1)

Published 30 Dec 2024 in cs.CL and cs.LG

Abstract: 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 stored without using explicit positional encoding. We observe that nearby embeddings are more similar to each other than faraway embeddings, allowing the transformer to potentially reconstruct the positions of tokens. We show that this pattern can occur in both the trained and the randomly initialized Transformer models with causal attention and no positional encodings over a common range of hyperparameters.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (3)
  1. Chunsheng Zuo (4 papers)
  2. Pavel Guerzhoy (13 papers)
  3. Michael Guerzhoy (18 papers)
X Twitter Logo Streamline Icon: https://streamlinehq.com

Tweets