paper-with-me

홈 › Papers

Online Vector Quantized Attention

2026-02-03 · Nick Alonso, Tomas Figliolia, Beren Millidge 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.

📄 PDF Abstract BibTeX arXiv:2602.03922

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

AVQ-Attention: Adaptive Vector-Quantized Attention

2026-07-14 · Winfried van den dool, Patrick Forré, Amir Habibian, Yuki M. Asano 외 arxiv

The $\mathcal{O}(N^2)$ complexity of attention over $N$ tokens remains a computational bottleneck in transformer models. Vector-Quantized (VQ) attention reduces this to $\mathcal{O}(MN)$ by representing keys with $M$ cod…

On the Subgaussianity of Quantized Linear Maps: An AI-Assisted Note

2026-05-26 · Guangyi Zou, Roman Vershynin arxiv

This short note presents a dimension-independent subgaussian concentration bound for Gaussian vectors under coordinate-wise nonlinear mappings. Discovered by Gemini 3.5 Flash, this result applies to any bounded function …

Sparse Quantized Spectral Clustering

2020-10-03 · ICLR 2021 1 · Zhenyu Liao, Romain Couillet, Michael W. Mahoney

Given a large data matrix, sparsifying, quantizing, and/or performing other entry-wise nonlinear operations can have numerous benefits, ranging from speeding up iterative algorithms for core numerical linear algebra prob…

ClusteringQuantization

Mental Accounts for Actions: EWA-Inspired Attention in Decision Transformers

2025-09-19 · Zahra Aref, Narayan B. Mandayam arxiv

Transformers have emerged as a compelling architecture for sequential decision-making by modeling trajectories via self-attention. In reinforcement learning (RL), they enable return-conditioned control without relying on…

Reinforcement Learning

Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddings

2024-02-09 · Yichen Jiang, Xiang Zhou, Mohit Bansal

Transformers generalize to novel compositions of structures and entities after being trained on a complex dataset, but easily overfit on datasets of insufficient complexity. We observe that when the training set is suffi…

Machine TranslationQuantizationSemantic ParsingWord Embeddings