Agentic AI
New sparse attention technique makes large language models practical for edge devices
A training-free framework optimizes the attention mechanism in LLMs to cut computational demands for on-device inference without sacrificing accuracy.
Running large language models on edge devices like smartphones and embedded systems has become a priority for privacy and low-latency AI applications, but the computational demands remain formidable. While model compression techniques have reduced the cost of fully connected layers, the attention mechanism—which dominates processing during the initial phase of text generation—remains a significant bottleneck.
Researchers have proposed DeltaLLM, a new framework designed to accelerate prefilling attention (the phase where all input tokens are processed) by combining algorithmic innovations with hardware-aware design.
The core innovation: delta-key sparsity#
The framework introduces a delta-key formulation that recasts how attention keys are computed. By reformulating attention in this way, the approach enables key tensors to be reused across multiple query heads when using Grouped-Query Attention (GQA), a memory-efficient variant already adopted in modern LLMs. This reuse yields up to 60% sparsity in delta keys, meaning many computation steps can be skipped entirely.
The method also applies a hybrid attention strategy: exact attention calculations are preserved for nearby tokens (along the diagonal of the attention matrix), where fine-grained precision matters, while approximations are applied to distant tokens, where the effects are less critical.
Turning sparsity into hardware efficiency#
Raw sparsity alone does not guarantee speedup on real hardware. DeltaLLM addresses this by proposing vectorized structured sparse online softmax (VSSOS), which reorganizes fine-grained, scattered sparsity in attention scores into structured column-level skipping patterns. This transformation converts irregular memory accesses into operations that vector processors can exploit efficiently.
The researchers also designed a specialized vector-processor architecture and unified dataflow that handle both sparse and dense attention paths, maximizing hardware utilization.
Measured results#
Testing on two representative models—BitNet-b1.58-2B-4T and LLaMA3.2-1B-Instruct—the framework achieves up to 63% structured sparsity in attention scores with negligible accuracy loss. On a KV260 FPGA board, DeltaLLM delivers a 1.62× speedup over the prior TeLLMe-v2 system while using less of the device's specialized resources (DSP and BRAM).

