COBS: Cumulant Order Block Sparse Attention

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

COBS (Cumulant Order Block Sparse Attention) is a new method designed to improve block sparse attention in large language models, addressing the key-value (KV) cache read bottleneck. While block sparse attention is hardware-friendly, its adoption is limited by the performance of existing selection strategies, such as DeepSeek's Native Sparse Attention (NSA), which rely on first-order approximations of attention mass. COBS enhances NSA by incorporating a novel selector that stores a compressed second-order statistic per block, allowing for more accurate block selection. This approach significantly boosts performance on long-context tasks; on the 32k RULER benchmark, COBS increased the NSA baseline's mean score from 0.2999 to 0.8195, closing approximately 86% of the gap to dense attention's 0.9040. Furthermore, COBS maintains short-context behavior and reduces KV cache read traffic by 15.15x compared to dense attention.

Key takeaway

For Machine Learning Engineers optimizing large language model inference for long-context applications, you should evaluate COBS as a superior alternative to existing block sparse attention methods. This approach significantly improves retrieval performance on benchmarks like 32k RULER, closing 86% of the gap to dense attention, while reducing KV cache read traffic by 15.15x. Implementing COBS allows you to achieve near-dense attention quality and lower negative log-likelihood without compromising short-context behavior, making it a compelling choice for efficient, high-performance LLM deployment.

Key insights

Enhancing block sparse attention by using second-order statistics for more accurate block selection significantly improves long-context performance.

Principles

Method

COBS extends DeepSeek's NSA by integrating a novel selector that stores a compressed second-order statistic per block, enabling more precise attention mass approximation for block ranking.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.