Energy-Gated Attention and Wavelet Positional Encoding: Complementary Inductive Biases for Transformer Attention
Not on the map. Why?
Abstract (arXiv)
Standard transformer attention computes pairwise token similarity but treats all tokens as equally salient and all positions as equally local, regardless of the informational structure of the input. We identify two complementary inductive biases that standard attention lacks: energy salience (which tokens concentrate informational energy, learned end-to-end without explicit frequency decomposition) and scale-selective locality (how far positional influence extends at each frequency, implemented via Morlet wavelet encoding). We address both with two simple components. Energy-Gated Attention (EGA) gates value aggregation by a learned energy estimate of key token embeddings, computed via a single linear projection; it selects what to attend to. Morlet Positional Encoding (MoPE) replaces fixed sinusoidal encodings with learned Gaussian-windowed wavelets that adapt the joint position-frequency localization to the corpus; it specifies where attention operates at each scale. On TinyShakespeare, EGA alone achieves +0.092 validation loss improvement over standard attention (+0.103 over Phase 1-3 baseline); MoPE alone is -0.032 (below baseline as a standalone encoding); but their combination achieves +0.119 -- more than the sum of parts. This superadditivity, observed across two independent training runs, is the central empirical finding: salience and locality are complementary inductive biases, each addressing a gap the other cannot fill alone. Ablations confirm that structured spectral priors (Morlet wavelet gates, scale-initialized heads, fixed sinusoidal PE) consistently underperform their unconstrained learned counterparts, while complementary learned components interact superadditively. All experiments are at small scale (<=6M parameters, character-level benchmarks, single seed); larger-scale multi-seed validation is the most important direction for future work.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 14 of its 21 references that are in the map. First posted on arXiv 25 May 2026.
Builds on
14 of 21 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 162
- 2020Language Through a Prism: A Spectral Approach for Multiscale Language Representationscited by 39
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Beyond Sinusoids: A Morlet Wavelet Framework for Transformer Positional Encodingcited by 3
- 2026Multiscale POD of Transformer Attention Fields: Scale-Selective Analysis via Morlet Scalogramcited by 2
- 2026FourierQK: Spectral Preprocessing of Query-Key Projections Improves Transformer Attentioncited by 1
- 2026FourierQK: Filter Shape, Admissibility and the Leakage-Coverage Lawcited by 0
- 2026FourierQK: Filter Shape, Admissibility and the Leakage-Coverage Law9 Jul 2026
- 2026FourierQK: Spectral Preprocessing of Query-Key Projections Improves Transformer Attention8 Jul 2026
- 2026Multiscale POD of Transformer Attention Fields: Scale-Selective Analysis via Morlet Scalogram4 Jun 2026
- 2026Beyond Sinusoids: A Morlet Wavelet Framework for Transformer Positional Encoding31 May 2026