atlas

Research map / Architectures and efficiency / Attention and transformers

Rethinking Addressing in Language Models via Contextualized Equivariant Positional Encoding

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TAPE, a transformer positional encoding that contextualizes positional embeddings with sequence content across layers while enforcing permutation and orthogonal (O(R)) equivariance, and shows gains in arithmetic, language modeling, and long-context retrieval.

Problem

Existing positional encodings weaken position-based addressing in transformers: they impose rigid decay patterns on attention and are learned as dataset-wide biases rather than being specialized to each instance's context.

Approach

Treat positional embeddings as tensors that are updated layer by layer by attention and MLP modules using token content, with the updates constrained to be permutation-equivariant and O(R)-equivariant so relative position relationships are preserved; RoPE is a special case and serves as initialization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use TAPE instead of FIREdecoder-only transformer trained from scratch · Addition Bucket 40 (average accuracy)accuracy: 26.98% -> 32.82%Helped
Use TAPE instead of RandPEpre-trained transformer · SCROLLS QASF1: 13.44 -> 11.52Hurt
Use TAPE instead of xPospre-trained transformer · SCROLLS CNLIEM: 71.75 -> 72.80Helped
Use TAPE instead of xPospre-trained transformer · SCROLLS NQAF1: 4.83 -> 6.79Helped
Use TAPE instead of FIREpre-trained transformer · SCROLLS QuALEM: 1.25 -> 11.60Helped
Use TAPE instead of xPospre-trained transformer · SCROLLS QMSRgm: 10.73 -> 12.42Helped
Use TAPE instead of ALiBipre-trained transformer · SCROLLS SumSRgm: 9.78 -> 10.34Helped
Use TAPE instead of ALiBipre-trained transformer · SCROLLS GovRRgm: 18.81 -> 15.18Hurt
Use TAPE instead of LoRALlama2 7B extended to 8192 context · Proof-pile, 8192 tokensperplexity: 2.867 -> 2.708Helped
Use TAPE instead of Theta ScalingLlama2 7B extended to 8192 context · PG-19, 8192 tokensperplexity: 7.999 -> 7.063Helped

Surprising findings

Limitations

Experimental setup

Datasets: Addition Bucket 40 C4 SCROLLS RedPajama Proof-pile PG19

Benchmarks: Addition Bucket 40 SCROLLS Proof-pile PG19 passkey retrieval

Metrics: accuracy F1 exact match Rouge geometric mean (Rgm) perplexity FLOPs throughput

Baselines: RoPE ALiBi RandPE FIRE xPos NoPE LoRA LongLoRA Theta Scaling

Builds on: RoPE FIRE T5 relative bias LoRA LongLoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy