Block Sparse Matrices for Smaller and Faster Language Models
Read the original on Hugging Face Blog →The Flow has not summarised this story yet — read it at Hugging Face Blog.
The Flow has not summarised this story yet — read it at Hugging Face Blog.
The paper argues that sparse attention should be viewed as a matrix approximation problem rather than merely selecting large scalar entries from the attention matrix. It introduces Matrix Approximation Sparse Attention (MASA), a method that replaces raw attention-mass ranking with a closed‑form score reflecting the reduction in matrix‑product approximation error. MASA can be integrated into existing sparse attention frameworks and, according to extensive experiments, consistently improves accuracy across various methods, benchmarks, and LLM backbones.
DUET is a training‑free dual‑sparse inference framework for diffusion language models that reduces inference cost by two techniques: prefix Key‑Value sparsity and early query sparsity. It constructs a compact historical KV subset reused across denoising steps, and predicts which positions will be updated to propagate only the necessary queries through the suffix Transformer layers. Experiments demonstrate that DUET keeps accuracy while delivering up to 4.72× speedups on large models with 32K context length.
Large Language Models (LLMs) achieve strong performance across many domains, but their efficiency is limited by the quadratic cost of attention with respect to prompt length. Sparse attention reduces...