Scout Before You Attend: Sketch-and-Walk Sparse Attention for Efficient LLM Inference
Abstract
Lay Summary
Modern AI assistants spend most of their time on a single operation called attention, in which the model decides which earlier words in the input matter for the next word. As the input grows longer — say, an entire book or a long meeting transcript — this step becomes the main bottleneck, slowing responses and consuming large amounts of energy. Existing speed-ups skip parts of the attention computation, but they each look at only one layer of the model at a time and often miss connections that emerge across several layers, hurting accuracy. We developed Sketch&Walk, a method that makes attention faster without retraining the model: it first builds a quick, compressed sketch of who-attends-to-whom, then takes a short "walk" across the model's layers to surface indirect connections, the way mutual friends reveal that two people are linked even when they've never met, so the model only computes the most relevant ones. In our experiments, Sketch&Walk runs attention up to 4.7× faster than other implementation while preserving accuracy on long-document benchmarks, making long-context AI assistants meaningfully cheaper to deploy and more responsive to use.