Skip to content
Live
NVIDIA Technical Blog· Timmy Liu·· 17 days ago30

Co-Designing Sparse Attention for Efficient Long-Context Inference

Co-Designing Sparse Attention for Efficient Long-Context Inference

Brief overview

NVIDIA co-designed a sparse attention mechanism to achieve efficient long-context reasoning, which significantly reduces the attention computation cost of transformer layers at a 128K token length.

Article

Agentic workloads, long documents, and large codebases are pushing context lengths from tens of thousands of tokens to hundreds of thousands. At those lengths,...

Agentic workloads, long documents, and large codebases are pushing context lengths from tens of thousands of tokens to hundreds of thousands. At those lengths, attention becomes the most expensive part of a transformer layer. Dense attention scores every query against every key, so its cost per query grows with the context length N, and at 128K tokens it can take most of the prefill time in a…

Source

Source: NVIDIA Technical Blog · developer.nvidia.com