CRISP:悬崖感知、输入自适应稀疏预填充,基于结构质量驱动的路由
研究论文 · 2026/09/03
CRISP 是一种针对长上下文 LLM 推理中注意力预填充阶段的新型稀疏注意力方法。该方法通过结构代理 C_struct 替代 JSD 路由,消除了池化矩阵乘法和 KL 散度开销,并基于噪声底限提出 sink-aware 阈值,以应对 post-softmax 质量悬崖问题。实验表明,CRISP 在多个基准上优于现有稀疏方法,在检索任务上最高提升 28.0 个百分点,并在 512k 令牌时实现 5.30 倍注意力加速。
该论文提出了一种新颖的稀疏注意力方法,解决了长上下文推理中的关键瓶颈,具有理论分析和显著实验提升,对高效 LLM 推理领域有重要贡献。
The attention prefilling phase of long-context LLM inference scales quadratically, making self-attention a severe computational bottleneck. Traditional sparse attention methods mitigate this through fixed patterns or offline profiling, but lack the flexibility to adapt to input-dependent attention structure. Recent dynamic methods address this by routing heads to sparse patterns in real-time, but rely on indirect routing proxies with overhead and budget allocation mechanisms that overlook the post-softmax mass hierarchy. We present CRISP (Cliff-awaRe Input-adaptive Sparse Prefilling), which identifies and addresses two structural challenges in this dynamic routing paradigm. First, we show that the routing decision can be read directly off the structure of the proxy attention map. We replace the Jensen-Shannon Divergence (JSD) routing with C_struct, a structural proxy that measures mass at Vertical-Slash compatible positions and reproduces JSD's routing decisions while eliminating both the pooled matmul and subsequent KL divergence overhead. Second, we formalize the post-softmax mass cliff and demonstrate theoretically that strictly cumulative coverage thresholds accumulate O(n) background noise at long contexts. CRISP navigates this via a sink-aware threshold grounded in the noise floor. Empirically, across InfiniteBench, RULER and LongBench on two model families, CRISP is the strongest sparse method overall and matches or exceeds exact dense attention on retrieval-heavy benchmarks, recovering up to +28.0 pp on retrieval tasks over baselines and achieving up to a 5.30x attention speedup at 512k tokens, driven primarily by our O(n) noise elimination during selection while preserving structural integrity.