亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
2秒前
23秒前
孤独剑完成签到 ,获得积分10
31秒前
33秒前
yizhikeyangou发布了新的文献求助10
37秒前
Akim应助einspringen采纳,获得10
39秒前
39秒前
伶俐的一斩完成签到,获得积分10
42秒前
44秒前
einspringen发布了新的文献求助10
49秒前
CodeCraft应助yizhikeyangou采纳,获得10
49秒前
Sarah完成签到 ,获得积分10
1分钟前
南絮完成签到 ,获得积分10
1分钟前
1分钟前
积极问凝完成签到 ,获得积分10
1分钟前
1分钟前
1分钟前
坦率如之完成签到,获得积分10
1分钟前
Copyright应助科研通管家采纳,获得10
2分钟前
北欧森林完成签到,获得积分10
2分钟前
朴实的新柔完成签到,获得积分10
2分钟前
香蕉觅云应助einspringen采纳,获得10
2分钟前
2分钟前
einspringen发布了新的文献求助10
2分钟前
2分钟前
2分钟前
2分钟前
2分钟前
yizhikeyangou发布了新的文献求助10
2分钟前
科研通AI6.4应助喷火球采纳,获得10
2分钟前
2分钟前
美丽的沛菡完成签到,获得积分10
3分钟前
MchemG完成签到,获得积分0
3分钟前
科目三应助flyingpig采纳,获得10
3分钟前
万能图书馆应助yizhikeyangou采纳,获得10
3分钟前
3分钟前
lixuebin完成签到 ,获得积分10
3分钟前
3分钟前
宋文娟发布了新的文献求助10
3分钟前
3分钟前
高分求助中
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小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7257577
求助须知:如何正确求助?哪些是违规求助? 8879520
关于积分的说明 18757224
捐赠科研通 6937984
什么是DOI,文献DOI怎么找? 3201098
关于科研通互助平台的介绍 2375215
邀请新用户注册赠送积分活动 2176943