conference-paper Open access

DIAA: A Decoding-Efficient Inference Acceleration Approach for On-Device Large Language Models

  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Association for the Advancement of Artificial Intelligence
Research footprint

At a glance

Citations
0
References
0
Comments
0
Paper overview

Abstract

Large Language Models (LLMs) have revolutionized intelligent interactions, enabling mobile applications such as personal assistants on edge devices for local execution. Speculative decoding (SD) has emerged as a promising paradigm to accelerate LLM inference without compromising generation quality, employing a draft-then-verify manner. However, due to the constrained computing and memory resources on edge devices, existing SD works heavily rely on an auxiliary draft model that incurs additional memory burden and hinders the adaptability, as well as static token trees that yield suboptimal inference performance. To this end, we propose DIAA, a Decoding-efficient Inference Acceleration Approach for on-device LLMs. DIAA achieves plug-and-play and model-agnostic inference speedup with memory and computation efficiency for edge devices. Specifically, a pair of lightweight look-up tables (LUTs) is constructed by Top-K token sampling to cache historical tokens and probabilities for rapid candidate drafting. DIAA integrates a dynamic token tree with prior LUTs enabling paralleled verification, updated during decoding process, to adapt the online context. A computation overlap is then employed to pipeline the update operations of token tree, LUTs, and KV cache to improve the computational efficiency. Finally, through extensive experiments implemented on edge platform NVIDIA Jetson, DIAA outperforms existing baselines in generation speed and inference wall-clock time, while incurring minimal memory overhead.

Record transparency

Publication details

DOI
10.1609/aaai.v40i31.39789
OpenAlex
W7137858023
Document type
conference-paper
Language
EN
Source
Proceedings of the AAAI Conference on Artificial Intelligence
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.