Beyond Sinusoids: A Morlet Wavelet Framework for Transformer Positional Encoding
Not on the map. Why?
Abstract (arXiv)
Standard positional encodings for transformers - sinusoidal and rotary (RoPE) - treat every position as equally local: they encode where a token is, but not how far its positional influence should extend. We propose that the Morlet wavelet, which simultaneously minimises uncertainty in position and frequency, is the natural basis for positional encoding, and introduce Morlet Positional Encoding (MoPE): each embedding dimension learns its own frequency and locality bandwidth from data. The main theoretical result is a unification: sinusoidal PE and the RoPE correlation kernel both emerge as limiting cases of MoPE when locality is switched off (sigma_i -> infinity). The phase of MoPE recovers the RoPE rotation angle exactly; the amplitude adds a learned Gaussian locality kernel that standard encodings lack. Empirically, MoPE combined with Energy-Gated Attention achieves +0.119 improvement over standard attention on TinyShakespeare, outperforming either component alone. Analysis of the learned parameters reveals that all 128 frequency-bandwidth pairs converge to the wavelet admissibility boundary - an empirical observation consistent with a companion result on energy gating, suggesting a reproducible property of character-level language signals that warrants further investigation.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 9 of its 12 references that are in the map. First posted on arXiv 31 May 2026.
Builds on
9 of 12 references.
References · 9
- 2017Attention Is All You Needcited by 60,361
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2020Language Through a Prism: A Spectral Approach for Multiscale Language Representationscited by 39
- 2024Towards Signal Processing In Large Language Modelscited by 7
- 2026Energy-Gated Attention: Spectral Salience as an Inductive Bias for Transformer Attentioncited by 5
- 2026Energy-Gated Attention and Wavelet Positional Encoding: Complementary Inductive Biases for Transformer Attentioncited by 4
Built on by
Citing papers per year: 2026: 3.
3 papers.