WNet: Discrete Wavelets Transform for Efficient Token Mixing
cs.CL
Submitted: 2026-10-03
Updated: 2026-10-03
License: http://creativecommons.org/licenses/by/4.0/
The gist: In a Transformer, token mixing is the step that lets each token draw information from other tokens, and it dominates the cost of encoding long sequences.
Abstract
In a Transformer, token mixing is the step that lets each token draw information from other tokens, and it dominates the cost of encoding long sequences. Self-attention does this mixing very well: every token weighs every other token by content, which gives strong contextual modeling. That all-pairs comparison is also why its cost grows quadratically with sequence length. We introduce WNet, a Transformer encoder that replaces self-attention with token mixing based on the discrete wavelet transform (DWT). Three attention-free mixers recombine the scales: by linear fusion, by learned gating, or by letting each token choose its scales. A hybrid adds self-attention in the last layer only. A receptive-field analysis shows that wavelet mixers built from two-tap filters, such as Haar, never relate tokens outside fixed blocks, however deep the network, even when the filters are learned. Longer filters reach the whole sequence within two layers. We pre-train every model with masked language modeling on a fixed-token subset of C4 and fine-tune on GLUE, using one controlled setup with size-matched BERT and FNet baselines and a control that cannot mix tokens. The token-gated mixer trains as fast as attention at 256 tokens and 2.7 times faster at 4,096.
Sources
- Longformer: The Long-Document Transformer
- Rethinking Attention with Performers
- Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing
- Language Modeling with Gated Convolutional Networks
- SPECTRE: An FFT-Based Efficient Drop-In Replacement to Self-Attention for Long Contexts
- Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecture
- Caracal: Causal Architecture via Spectral Mixing
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces
- Efficiently Modeling Long Sequences with Structured State Spaces
- WaveMix: Resource-efficient Token Mixing for Images
- Learnable Multi-Scale Wavelet Transformer: A Novel Alternative to Self-Attention
- Pay Attention to MLPs
- Scattering Vision Transformer: Spectral Mixing Matters
- Hyena Hierarchy: Towards Larger Convolutional Language Models
- Efficient Transformers: A Survey
- MLP-Mixer: An all-MLP Architecture for Vision
- Wavelet GPT: Wavelet Inspired Large Language Models
- Linformer: Self-Attention with Linear Complexity
- On Layer Normalization in the Transformer Architecture
- Wave-ViT: Unifying Wavelet and Transformers for Visual Representation Learning
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering