亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Enhancing On-Device LLM Inference with Historical Cloud-Based LLM Interactions

云计算 推论 计算机科学 数据科学 人工智能 操作系统
作者
Yucheng Ding,Chaoyue Niu,Fan Wu,Shaojie Tang,Chengfei Lyu,Guihai Chen
标识
DOI:10.1145/3637528.3671679
摘要

Many billion-scale large language models (LLMs) have been released for resource-constraint mobile devices to provide local LLM inference service when cloud-based powerful LLMs are not available. However, the capabilities of current on-device LLMs still lag behind those of cloud-based LLMs, and how to effectively and efficiently enhance on-device LLM inference becomes a practical requirement. We thus propose to collect the user's historical interactions with the cloud-based LLM and build an external datastore on the mobile device for enhancement using nearest neighbors search. Nevertheless, the full datastore improves the quality of token generation at the unacceptable expense of much slower generation speed. To balance performance and efficiency, we propose to select an optimal subset of the full datastore within the given size limit, the optimization objective of which is proven to be submodular. We further design an offline algorithm, which selects the subset after the construction of the full datastore, as well as an online algorithm, which performs selection over the stream and can be flexibly scheduled. We theoretically analyze the performance guarantee and the time complexity of the offline and the online designs to demonstrate effectiveness and scalability. We finally take three ChatGPT related dialogue datasets and four different on-device LLMs for evaluation. Evaluation results show that the proposed designs significantly enhance LLM performance in terms of perplexity while maintaining fast token generation speed. Practical overhead testing on the smartphone reveal the efficiency of on-device datastore subset selection from memory usage and computation overhead.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
无辜的垣完成签到,获得积分20
4秒前
无辜的垣发布了新的文献求助10
6秒前
6秒前
楽le发布了新的文献求助10
10秒前
科研通AI6.4应助飞飞采纳,获得10
19秒前
打打应助gtgyh采纳,获得10
21秒前
NexusExplorer应助Ni采纳,获得10
22秒前
24秒前
27秒前
30秒前
30秒前
科研通AI6.2应助嗯哼哈哈采纳,获得10
30秒前
32秒前
楽le发布了新的文献求助10
33秒前
34秒前
Ni发布了新的文献求助10
36秒前
ly发布了新的文献求助30
37秒前
39秒前
gtgyh发布了新的文献求助10
40秒前
40秒前
40秒前
41秒前
脑洞疼应助科研通管家采纳,获得10
41秒前
41秒前
桐桐应助科研通管家采纳,获得10
41秒前
lsl完成签到 ,获得积分10
42秒前
毛豆应助ranan采纳,获得10
48秒前
毛豆应助ly采纳,获得10
48秒前
CodeCraft应助ly采纳,获得30
48秒前
楽le发布了新的文献求助10
50秒前
56秒前
shaylie完成签到 ,获得积分10
58秒前
aveturner完成签到,获得积分10
59秒前
科目三应助满意的月亮采纳,获得10
1分钟前
1分钟前
嗯哼哈哈发布了新的文献求助10
1分钟前
1分钟前
BigTong应助楽le采纳,获得10
1分钟前
CipherSage应助楽le采纳,获得10
1分钟前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Molecular Mechanisms of Photosynthesis, 4th Edition 1000
Organic Reactions, Volume 116 1000
Current concepts in cutaneous toxicity : proceedings of the Fourth Conference on Cutaneous Toxicity, Washington, D.C., May 9-11, 1979 1000
The recovery-stress questionnaires : user manual 800
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7257420
求助须知:如何正确求助?哪些是违规求助? 8879428
关于积分的说明 18756885
捐赠科研通 6937882
什么是DOI,文献DOI怎么找? 3201074
关于科研通互助平台的介绍 2375192
邀请新用户注册赠送积分活动 2176929