Online Vector Quantized Attention
Not on the map. Why?
Abstract (arXiv)
Standard sequence mixing layers used in language models struggle to balance efficiency and performance. Self-attention performs well on long context tasks but has expensive quadratic compute and linear memory costs, while linear attention and SSMs use only linear compute and constant memory but struggle with long context processing. In this paper, we develop a sequence mixing layer that aims to find a better compromise between memory-compute costs and long-context processing, which we call online vector-quantized (OVQ) attention. OVQ-attention requires linear compute costs and constant memory, but, unlike linear attention and SSMs, it uses a sparse memory update that allows it to greatly increase the size of its memory state and, consequently, memory capacity. We develop a theoretical basis for OVQ-attention based on Gaussian mixture regression, and we test it on a variety of synthetic long context tasks and on long context language modeling. OVQ-attention shows significant improvements over linear attention baselines and the original VQ-attention, on which OVQ-attention was inspired. It demonstrates competitive, and sometimes identical, performance to strong self-attention baselines up 64k sequence length, despite using a small fraction of the memory of full self-attention.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 37 of its 59 references that are in the map. First posted on arXiv 3 Feb 2026.
Builds on
37 of 59 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2017Neural Discrete Representation Learningcited by 4,650
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
25 more
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2018Efficient Attention: Attention with Linear Complexitiescited by 366
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 118
- 2022The Devil in Linear Transformercited by 98
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compressioncited by 65
- 2025A Systematic Analysis of Hybrid Linear Attentioncited by 38
- 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 37
- 2016Scaling Memory-Augmented Neural Networks with Sparse Reads and Writescited by 28
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2025CommVQ: Commutative Vector Quantization for KV Cache Compressioncited by 25
- 2024The Zamba2 Suite: Technical Reportcited by 20
- 2024Memory Mosaicscited by 16
- 2026Fast-weight Product Key Memorycited by 11
- 2024Residual vector quantization for KV cache compression in large language modelcited by 7
- 2023A Sparse Quantized Hopfield Network for Online-Continual Memorycited by 5
- 2025DiVeQ: Differentiable Vector Quantization Using the Reparameterization Trickcited by 5
- 2025Compressed Convolutional Attention: Efficient Attention in a Compressed Latent Spacecited by 5
- 2025AnTKV: Anchor Token-Aware Sub-Bit Vector Quantization for KV Cache in Large Language Modelscited by 3
- 2025VQL: An End-to-End Context-Aware Vector Quantization Attention for Ultra-Long User Behavior Modelingcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024LongVQ: Long Sequence Modeling with Vector Quantization on Structured Memory
- 2026Multi-Mixer Models: Flexible Sequence Modeling with Shared Representations
- 2025Training-free Context-adaptive Attention for Efficient Long Context Modeling
- 2026Sliding-window beats linear attention
- 2026Rethinking the Role of Efficient Attention in Hybrid Architectures
- 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
- 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference