Scout Before You Attend: Sketch-and-Walk Sparse Attention for Efficient LLM Inference
Self-attention dominates the computational and memory cost of long-context LLM inference across both prefill and decode phases. To address this challenge, we introduce Sketch&Walk Attention, a training-free sparse attention method that determines sparsity with lightweight sketches and deterministic walk. Sketch&Walk applies Hadamard sketching to get inexpensive approximations of attention scores, then aggregates these estimates across layers via a walk mechanism that captures attention influence beyond direct interactions between tokens. The accumulated walk scores are used to select top-k attention blocks, enabling dynamic sparsity with a single training-free algorithm that applies uniformly to both the prefill and decode phases, together with custom sparse attention kernels. Across a wide range of models and tasks, Sketch&Walk maintains near-lossless accuracy at 20% attention density and can slightly outperform dense attention in some settings, while achieving up to 6x inference speedup.
Code (0)
등록된 구현이 없습니다.
Similar Papers 제목 키워드 기반
SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers
Transformers have demonstrated strong performance across a wide range of sequence modeling tasks, but their quadratic attention complexity limits scalability to long sequences. Linear models such as Mamba and sliding-win…
Scout-Net: Prospective Personalized Estimation of CT Organ Doses from Scout Views
Purpose: Estimation of patient-specific organ doses is required for more comprehensive dose metrics, such as effective dose. Currently, available methods are performed retrospectively using the CT images themselves, whic…
Smart Bird: Learnable Sparse Attention for Efficient and Effective Transformer
Transformer has achieved great success in NLP. However, the quadratic complexity of the self-attention mechanism in Transformer makes it inefficient in handling long sequences. Many existing works explore to accelerate T…
Making Robots Draw A Vivid Portrait In Two Minutes
Significant progress has been made with artistic robots. However, existing robots fail to produce high-quality portraits in a short time. In this work, we present a drawing robot, which can automatically transfer a facia…
Style TransferVocal Bursts Valence PredictionSCOUT: Per-Context Reset Curricula for Sparse-Reward Reinforcement Learning
Sparse-reward reinforcement learning often fails because rollouts from the unassisted evaluation start rarely reach later task stages. Reset curricula address this by starting some training rollouts from easier intermedi…
Reinforcement Learning