arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07007cs.CL
收藏

Crayon:通过即时适配器混合与端-云混合推理实现定制化端侧大语言模型

Crayon: Customized On-Device LLM via Instant Adapter Blending and Edge-Server Hybrid Inference

Qualcomm AI Research(高通人工智能研究部门);Qualcomm Korea YH(高通韩国YH公司)

Jihwan Bang, Juntae Lee, Kyuhong Shim, Seunghan Yang, Simyung Chang

AI总结:

本文提出Crayon方法,通过基础适配器池的即时混合实现端侧大语言模型免训练定制,并结合端-云混合推理策略将高难度查询分配给服务器大模型,在保护隐私的同时兼顾定制性能与推理能力。

摘要:

针对用户指定任务的大语言模型(LLMs)定制变得日益重要。然而,在云服务器上维护所有定制化大语言模型会带来巨大的内存和计算开销,上传用户数据也可能引发隐私问题。端侧大语言模型通过缓解这些问题提供了一种有前景的解决方案。但端侧大语言模型的性能本质上受到小规模模型限制的制约。为克服这些限制,我们首先提出Crayon,一种用于端侧大语言模型定制的新方法。Crayon首先构建一个多样化的基础适配器池,然后无需额外训练即可将其即时混合为定制适配器。此外,我们开发了一种端-云混合推理策略,该策略巧妙地将更高要求的查询或非定制任务分配给服务器上规模更大、能力更强的大语言模型。这确保了在不牺牲端侧定制优势的前提下实现最优性能。我们基于多个问答数据集精心构建了一个新的基准,并展示了我们的方法在大语言模型定制中的有效性。

英文摘要:

The customization of large language models (LLMs) for user-specified tasks gets important. However, maintaining all the customized LLMs on cloud servers incurs substantial memory and computational overheads, and uploading user data can also lead to privacy concerns. On-device LLMs can offer a promising solution by mitigating these issues. Yet, the performance of on-device LLMs is inherently constrained by the limitations of small-scaled models. To overcome these restrictions, we first propose Crayon, a novel approach for on-device LLM customization. Crayon begins by constructing a pool of diverse base adapters, and then we instantly blend them into a customized adapter without extra training. In addition, we develop a device-server hybrid inference strategy, which deftly allocates more demanding queries or non-customized tasks to a larger, more capable LLM on a server. This ensures optimal performance without sacrificing the benefits of on-device customization. We carefully craft a novel benchmark from multiple question-answer datasets, and show the efficacy of our method in the LLM customization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑