跳到正文
arXiv cs.AI· Jiawen Qi, Jiayu Liu, Chang Gao, Zhaochun Ren, Qinyu Chen·· 6 天前AI 评分26

DeltaLLM:面向边缘 LLM 的 Delta-Key 稀疏注意力框架

DeltaLLM: Delta-Key Sparse Attention for Edge LLMs

AI 导读

DeltaLLM 是一个免训练的边缘 LLM 预填充注意力加速框架,通过因果注意力感知的 K-only delta 公式在 GQA 下实现 Delta-Key 跨查询头复用,并配合向量化结构化稀疏在线 softmax(VSSOS)将细粒度分数稀疏转为列级跳过。

正文 · 原文

View PDF

Abstract:On-device LLM inference is increasingly important for edge platforms but remains challenging due to high computational and memory demands and tight resource constraints. Modern applications often involve long prompts. Although compact models reduce linear-layer costs through weight compression, attention remains largely unoptimized and becomes the dominant bottleneck, especially during prefilling. Existing attention pruning methods primarily target highly parallel hardware (e.g., GPUs) and long context windows, limiting their suitability for edge scenarios. We present DeltaLLM, a training-free LLM framework based on algorithm-hardware-dataflow co-design to accelerate prefilling attention. DeltaLLM introduces a causal-attention-aware K-only delta formulation that enables Delta-Key reuse across query heads under Grouped-Query Attention (GQA). A context-aware hybrid strategy 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. A specialized vector-processor architecture and unified sparse/dense attention dataflow exploit the resulting sparsity. Evaluated on BitNet-b1.58-2B-4T and LLaMA3.2-1B-Instruct, DeltaLLM achieves up to 60% Delta-Key sparsity and 63% structured attention-score sparsity with negligible average accuracy loss. On the KV260 FPGA board, it delivers a 1.62x speedup over TeLLMe-v2 while reducing DSP and BRAM usage. These results show that DeltaLLM supports efficient edge LLM deployment and integration with existing pipelines without fine-tuning.
Comments: This paper has been accepted by IEEE Transactions on Circuits and Systems for Artificial Intelligence (TCASAI)
Subjects: Artificial Intelligence (cs.AI); Signal Processing (eess.SP)
Cite as: arXiv:2507.19608 [cs.AI]
  (or arXiv:2507.19608v2 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2507.19608

arXiv-issued DOI via DataCite

Submission history

From: Qinyu Chen [view email]
[v1] Fri, 25 Jul 2025 18:23:18 UTC (781 KB)
[v2] Fri, 9 Oct 2026 15:10:32 UTC (2,925 KB)

来源:arXiv cs.AI · arxiv.org