Megadose Built for builders and researchers.

AVQ-Attention-2: Adaptive Vector-Quantized Attention with Exact Local Blocks and Linear-Cost Training

· ArXiv · AI/CL/LG ·
The authors report an attention layer that can replace pretrained transformer attention without fine-tuning.

AVQ-Attention-2 combines exact local attention with attention over the mean keys of adaptively allocated clusters. The paper says this reduces training cost from O(N²) to O(NM), where N is the token count and M is the number of clusters. Across varied sequence lengths, the authors report faster execution than FlashAttention with little to no loss in quality.

ArXiv · AI/CL/LG's note

score 5

Categories: Research