Kernel Reality Check:大规模基准测试与蒸馏高效注意力机制
The Kernel Reality Check: Benchmarking and Distilling Efficient Attention at Scale
研究对核化注意力方法进行系统评测,发现FlashAttention在多数序列长度下训练内存与耗时均优于SOTA核化方法,仅因果语言模型推理内存为例外。统一蒸馏协议下核化方法与softmax存在2-10分差距,LARA++通过自适应提议分布的重要性采样可恢复最高99%的softmax精度,但计算开销依然显著。
arXiv:2611.22947v1 Announce Type: new Abstract: Kernelized attention methods, which aim to replace the $O(N^2)$ complexity of softmax attention with $O(N)$ alternatives, have been the focus of intense research in the last five years. Despite growing interest, systematic evaluations and fair comparisons across approaches and scales are still missing. We analyze kernelized attention in two halves and highlight prominent limitations on each. On efficiency, FlashAttention achieves lower memory consumption and faster wall-clock time than SOTA kernelized methods during training and in vision transformers across most sequence lengths (with inference-time memory in causal language models the only clear exception), contradicting the core assumption for pure kernelized attention used as a drop-in replacement for softmax. We also discover that reported efficiency gains often fail to reproduce against modern baselines. On quality, current kernelized methods leave gaps of 2-10 points relative to softmax under a unified distillation protocol, and model scala alone does not close these gaps. We show this gap is not intrinsic to kernelization: LARA++, a principled extension of LARA that approximates softmax via importance sampling with adaptive proposal distributions, recovers up to 99% of softmax accuracy. We establish that the gap is closable; however, the computational overhead remains substantial, leaving the efficiency wall intact. Code is available at https://github.com/firatoncel/KernelRealityCheckNeurIPS2026
来源:arXiv (AI + Vision + Imaging) · arxiv.org