atlas

Research map / Architectures and efficiency / Attention and transformers

Wavelet-based Positional Representation for Long Context

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 0 citations (OpenAlex)

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 a relative positional representation built from multi-scale Ricker wavelets (replacing learned RPE embeddings) that extrapolates beyond the training length without clipping the attention field, shown to beat RoPE, ALiBi and Trans-XL in WikiText-103 perplexity and a Llama-2-7B long-context test.

Problem

Transformer language models fail to extrapolate beyond the maximum training sequence length; RoPE relies on absolute positions and ALiBi restricts the effective receptive field, hurting long-range dependencies.

Approach

Interprets RoPE as a fixed-scale Haar-like wavelet transform over head dimensions and ALiBi as multi-window attention, then builds a relative position representation from d wavelet functions with multiple scales and shifts (Ricker base wavelet, s=8 scales, d/s=16 shifts), with no clipping and no receptive-field limit.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace RoPE with wavelet positional representationTransformer · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 93.94 -> 17.99Helped
replace ALiBi with wavelet positional representationTransformer · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 18.41 -> 17.99Helped
replace RoPE with wavelet positional representationLlama-2-7B · CodeParrot, 32 k tokens, non-overlapping inference (L_train=4096)perplexity: 8.90 -> 8.60Helped
use Gaussian instead of Ricker wavelet (ablation)Wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 17.88Helped
use Haar instead of Ricker wavelet (ablation)Wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 18.17Hurt
use Morlet instead of Ricker wavelet (ablation)Wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 26.56Hurt
restrict the Haar wavelet to a fixed scale (ablation)Wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 18.17 -> 299.26Hurt
increase the scale range to {2^1,2^2,...,2^8} with shifts {0,1,2,...,15} (ablation)Ricker wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 18.02No clear effect
increase the scale range to {2^2,2^3,...,2^9} with shifts {0,1,2,...,15} (ablation)Ricker wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 18.07No clear effect
reduce scale patterns and increase shift patterns to {0,1,2,...,31} (ablation)Ricker wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 21.73Hurt
increase scale patterns and reduce shift patterns to {0,1,2,...,7} (ablation)Ricker wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 17.84Helped
remove shift-pattern diversity (ablation)Ricker wavelet positional representation · WikiText-103 validation, 2512 tokens, without non-overlapping inference (L_train=512)perplexity: 17.99 -> 18.29Hurt

Surprising findings

Limitations

Experimental setup

Baselines: RoPE ALiBi Trans-XL NoPE T5 Bias

Builds on: RoPE ALiBi relative position representation (RPE)

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