EdgeLLM: Fast On-Device LLM Inference With Speculative Decoding

计算机科学 解码方法 推论 并行计算 算法 人工智能
作者
Daliang Xu,Wangsong Yin,Hao Zhang,Xin Jin,Ying Zhang,Shiyun Wei,Mengwei Xu,Xuanzhe Liu
出处
期刊:IEEE Transactions on Mobile Computing [IEEE Computer Society]
卷期号:24 (4): 3256-3273 被引量:30
标识
DOI:10.1109/tmc.2024.3513457
摘要

Generative tasks, such as text generation and question answering, are essential for mobile applications. Given their inherent privacy sensitivity, executing them on devices is demanded. Nowadays, the execution of these generative tasks heavily relies on the Large Language Models (LLMs). However, the scarce device memory severely hinders the scalability of these models. We present EdgeLLM, an efficient on-device LLM inference system for models whose sizes exceed the device's memory capacity. EdgeLLM is built atop speculative decoding, which delegates most tokens to a smaller, memory-resident (draft) LLM. EdgeLLM integrates three novel techniques: (1) Instead of generating a fixed width and depth token tree, EdgeLLM proposes compute-efficient branch navigation and verification to pace the progress of different branches according to their accepted probability to prevent the wasteful allocation of computing resources to the wrong branch and to verify them all at once efficiently. (2) It uses a self-adaptive fallback strategy that promptly initiates the verification process when the smaller LLM generates an incorrect token. (3) To not block the generation, EdgeLLM proposes speculatively generating tokens during large LLM verification with the compute-IO pipeline. Through extensive experiments, EdgeLLM exhibits impressive token generation speed which is up to 9.3× faster than existing engines.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
btcat完成签到,获得积分0
1秒前
fyy完成签到 ,获得积分10
1秒前
干净的琦应助沐雨采纳,获得50
5秒前
知画春秋完成签到 ,获得积分10
7秒前
v0id应助xelloss采纳,获得10
8秒前
晨屿完成签到 ,获得积分10
9秒前
疯狂的凡梦完成签到 ,获得积分10
10秒前
casey完成签到 ,获得积分10
11秒前
ZaZa完成签到,获得积分10
12秒前
LXZ完成签到,获得积分10
13秒前
Ellen关注了科研通微信公众号
15秒前
北方知既白完成签到 ,获得积分10
16秒前
weilan604718完成签到,获得积分10
17秒前
许鸽完成签到,获得积分10
17秒前
安安完成签到,获得积分10
18秒前
23秒前
宋宋宋完成签到 ,获得积分10
23秒前
fufu完成签到 ,获得积分10
27秒前
29秒前
翰飞寰宇完成签到 ,获得积分10
29秒前
Fin2046完成签到,获得积分10
30秒前
六包辣条发布了新的文献求助10
34秒前
lx840518完成签到 ,获得积分10
34秒前
xy1114应助科研通管家采纳,获得10
34秒前
aajhajkahna应助科研通管家采纳,获得10
35秒前
Owen应助科研通管家采纳,获得10
35秒前
跳跃太清完成签到 ,获得积分0
35秒前
辛道月完成签到 ,获得积分10
36秒前
yywang完成签到,获得积分10
36秒前
微笑的严青完成签到,获得积分10
37秒前
欢呼以柳完成签到,获得积分10
39秒前
dui完成签到,获得积分10
39秒前
jackhlj完成签到,获得积分10
42秒前
43秒前
聪慧的冷风完成签到,获得积分10
43秒前
李y梅子完成签到 ,获得积分10
46秒前
Mr_龙在天涯完成签到,获得积分10
48秒前
心无杂念完成签到 ,获得积分10
49秒前
不如看海完成签到 ,获得积分10
51秒前
Doctor.TANG完成签到 ,获得积分10
52秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
APA handbook of comparative psychology: Basic concepts, methods, neural substrate, and behavior 1000
Health Psychology 1000
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
The fast track to determining transfer functions of linear circuits: The student guide 500
Römisch-Germanische Forschungen 500
Electric machines: theory, operating applications, and controls 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7598259
求助须知:如何正确求助?哪些是违规求助? 9174693
关于积分的说明 19640719
捐赠科研通 7174642
什么是DOI,文献DOI怎么找? 3268256
关于科研通互助平台的介绍 2432872
邀请新用户注册赠送积分活动 2261666