New COBS Attention Boosts LLM Long-Context Performance

Alexander Tian, Aditya Ghai, Sanjit Neelam, Zaal Vasania, Akshay Mishra· July 13, 2026 View original

▶ The 2-minute explainer

Summary

Researchers introduce COBS (Cumulant Order Block Sparse Attention), a novel attention mechanism that significantly improves the long-context retrieval capabilities of large language models (LLMs). COBS closes 86% of the performance gap between sparse and dense attention while drastically reducing key-value cache read traffic, addressing a major bottleneck in LLM efficiency.

Block sparse attention is a promising technique for improving the hardware efficiency of large language models (LLMs) by reducing the key-value (KV) cache read bottleneck. However, its adoption in leading open-weight LLMs has been limited, which often rely on dense attention or more fine-grained selection methods. This research analyzes DeepSeek's Native Sparse Attention (NSA) and identifies that the most critical and challenging aspect is block selection. The authors formalize this selection problem, reducing it to ranking blocks by their 'attention mass.' They demonstrate that if blocks with the largest attention mass are accurately retrieved, sparse attention can match the quality of dense attention. The core challenge lies in approximating this attention mass efficiently without reading all keys. To address this, the paper proposes COBS (Cumulant Order Block Sparse Attention), which builds upon NSA by incorporating a new selector that stores a compressed second-order statistic per block. On the 32k RULER long-context retrieval benchmark, COBS dramatically improved NSA's mean score from 0.2999 to 0.8195, nearing dense attention's 0.9040 and closing approximately 86% of the performance gap. Crucially, it achieved this while using only 1.21 times the KV cache read traffic of NSA and 15.15 times less than dense attention, all while preserving short-context behavior.

Why it matters

This innovation offers a significant leap in making LLMs more efficient for long-context tasks, reducing computational costs and memory requirements. Professionals can deploy more powerful LLMs that handle extensive documents or conversations without prohibitive resource demands.

How to implement this in your domain

  1. 1Evaluate COBS for potential integration into custom LLM architectures or fine-tuning existing models.
  2. 2Benchmark COBS against current sparse attention methods for long-context applications.
  3. 3Collaborate with hardware teams to optimize infrastructure for block sparse attention mechanisms.
  4. 4Explore how COBS can enhance applications requiring extensive document processing or multi-turn dialogues.

Who benefits

Software DevelopmentCloud ComputingAI/ML PlatformsContent Creation

Key takeaways

  • COBS significantly improves long-context retrieval in LLMs, closing 86% of the gap to dense attention.
  • It drastically reduces KV cache read traffic, making LLMs more hardware-friendly.
  • The method uses a novel selector based on second-order statistics to approximate attention mass.
  • COBS maintains short-context performance while enhancing long-context capabilities.

Original post by Alexander Tian, Aditya Ghai, Sanjit Neelam, Zaal Vasania, Akshay Mishra

"arXiv:2607.09052v1 Announce Type: new Abstract: Block sparse attention is a hardware friendly way to alleviate the key-value (KV) cache read bottleneck in large language models (LLMs). However, it is not prevalent among leading open-weight LLMs, which rely instead on dense attent…"

View on X

Originally posted by Alexander Tian, Aditya Ghai, Sanjit Neelam, Zaal Vasania, Akshay Mishra on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses