Attention, Dynamic Wave and Hybrid Sequence Mixers in Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) rely on Multi-Head Attention (MHA) for sequence modeling, but scaling to long contexts is constrained by the quadratic cost of attention, motivating sub-quadratic recurrent alternatives. This paper formalizes a Dynamic Wave recurrent layer, based on input-dependent exponential damping and cosine phase modulation, and evaluates three 10.94M-parameter configurations (Pure Transformer, Pure Wave, and Hybrid Wave-Attention) on TinyStories under perplexity, latency, throughput and peak VRAM profiling up to 4096 tokens. The Hybrid configuration reaches the best perplexity, 5.95 on the full held-out split against 6.93 for the Transformer and 7.26 for Pure Wave. The efficiency picture, however, is governed by implementation rather than by architecture. Against an unfused attention baseline, Pure Wave uses 78.7% less peak VRAM at a 4096-token context (1404.3 MB vs. 6601.6 MB); against a fused scaled-dot-product attention kernel the same comparison yields no advantage at all (1404.3 MB vs. 1403.6 MB), and in training mode Pure Wave is 8.3% more expensive than the Transformer. Likewise, hoisting elementwise terms out of the recurrence loop speeds the layer up 2.53-fold with no custom kernel, reducing its latency gap to attention from 2.48-fold to 1.12-fold. A hybrid stack is found to inherit the cost of its more expensive mixer rather than the advantage of its cheaper one, its peak VRAM matching the Pure Transformer to within 0.1%. A closed-form memory model reproduces these measurements and predicts the context length beyond which attention overtakes the vocabulary projection. The findings indicate that reported efficiency gains for recurrent attention replacements must be stated relative to a named attention backend and a named implementation, and that hybridization is best justified on quality grounds.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 21 of its 30 references that are in the map. Submitted 29 Oct 2026.
Builds on
21 of 30 references.
References · 21
- 2017Attention Is All You Needcited by 62,125
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,853
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,337
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 2,115
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,843
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,450
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 1,003
9 more
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 902
- 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distributioncited by 834
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
- 2024Simplified and Generalized Masked Diffusion for Discrete Datacited by 698
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 684
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 670
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 544
- 2025Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decodingcited by 489
- 2025dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Cachingcited by 189
Built on by
Not cited yet.