Abstract & Overview
On-device Large Language Model (LLM) inference is becoming increasingly important for edge platforms, yet practical deployment remains challenging due to the high computational and memory demands of LLMs and the tight resource constraints of edge devices. Modern LLM applications often involve long prompts. Although recent compact models, such as BitNet and LLaMA3.2, reduce the cost of linear layers through weight compression, they leave attention computation largely unoptimized, causing attention to overtake linear layers as the dominant bottleneck, especially in the prefilling stage. Existing attention pruning methods are primarily designed for highly parallel hardware (e.g., GPUs) and target long context windows, making them unsuitable for edge scenarios. We presentDeltaLLM, a training-free LLM framework based on algorithm-hardware-dataflow co-design to accelerate prefilling attention.DeltaLLMintroduces a causal-attention-aware K-only delta formulation. The formulation enables Delta-Key reuse across query heads under Grouped-Query Attention (GQA). A context-aware hybrid strategy further preserves exact attention near the diagonal while applying delta approximation to nonlocal regions. For score–value multiplication, we propose a vectorized structured sparse online softmax (VSSOS) that converts fine-grained spatial score sparsity into hardware-friendly column-level skipping. These algorithms are supported by a specialized vector-processor architecture and unified sparse/dense attention dataflow to fully exploit the sparsity brought out by our algorithm. Evaluated on BitNet-b1.58-2B-4T and LLaMA3.2-1B-Instruct,DeltaLLMachieves up to 60% Delta-Key sparsity and 63% structured attention-score sparsity, with negligible average accuracy loss. On the KV260 FPGA board, it delivers 1.62x speedup over TeLLMe-v2 while reducing DSP and BRAM usage. These results show thatDeltaLLMis well-suited for edge LLM deployment, offering integration with existing pipelines without fine-tuning.