AVQ-Attention-2: Adaptive Vector-Quantized Attention with Exact Local Blocks and Linear-Cost Training
Winfried van den Dool, Patrick Forré, Amir Habibian, Yuki M. Asano, Max Welling
Abstract
Attention costs in the number of tokens. Vector-quantized attention reduces this to by clustering the keys, attending to the codewords instead, and its adaptive form, AVQ-attention, concentrates codebook resolution where a query's attention mass actually falls. We present AVQ-Attention-2, a better design that merges it with exact local attention and attends to the mean of each cluster's keys rather than to a codeword. We show three improvements: consistently better quality at comparable cost; training that now also costs rather than ; and an approximation accurate enough that the layer can be dropped into a pretrained transformer without fine-tuning. Across a variety of sequence lengths the result is competitive not merely with other approximate attention but with exact dense attention, running faster than FlashAttention at little to no loss in quality.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CV
Related papers
Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration
Shared title terminologycs.LGJunsoo Oh, Jihun Yun, Junhyuck Kim et al.
Eliciting the Recall Capacity of Linear Attention
Shared title terminologycs.LGJohan Lindqvist, Antonio Orvieto
MXFP4 for LLM Inference: Complementary Post-Training Quantization Techniques and Their Interactions
Shared title terminologycs.LGNatalia Frumkin, Alireza Khodamoradi, Kristof Denolf et al.
When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM Attention
Shared title terminologycs.LGIrmaan Mirzanejad
Train-Only-Constrained LM for Synthetic Clinical Trajectories: Leak-Safe Calibration and Auditable Dynamics
Shared title terminologycs.LGYaser Kord, Moritz Hess
Text-Conditioned Low-Rank Adaptation of Time-Series Foundation Models for Multimodal Forecasting
Shared title terminologycs.LGKunqi Li, Bin Liang, Zhidong Li