具有多模态、多任务、多轮对话的设备-云协作大语言模型推理
Device-Cloud Collaborative LLM Inference with Multi-Modal, Multi-Task, Multi-Turn Conversations
AI总结:
研究大语言模型部署挑战,设计TMO设备-云推理系统,结合轻量级设备LLM和大规模云LLM,开发资源受限强化学习策略优化推理,贡献M4A1数据集,实验证明TMO在延迟、成本和响应质量方面效果显著。
摘要:
与传统机器学习模型相比,近期的大语言模型(LLMs)能通过多模态数据源和多轮对话展现多任务解决能力。其独特特性及大模型规模使其部署更具挑战,在设备上部署面临资源问题,在云端部署无法保证实时服务且有通信/使用成本。本文设计了TMO系统,结合轻量级设备LLM和大规模云LLM,开发资源受限强化学习策略优化推理位置和多模态数据源使用。还贡献了M4A1数据集用于评估卸载决策。实验表明TMO在延迟、成本和响应质量上有显著提升。
英文摘要:
Compared to traditional machine learning models, recent large language models (LLMs) can exhibit multi-task-solving capabilities through multi-modal data sources and multi-turn conversations. These unique characteristics of LLMs, together with their large model size, make their deployment more challenging. Specifically, (i) deploying LLMs on devices faces computational, memory, and energy resource issues, while (ii) deploying them in the cloud cannot guarantee real-time service and incurs communication/usage costs. In this paper, we design TMO, a device-cloud LLM inference system with Three-M Offloading: Multi-modal, Multi-task, and Multi-turn. TMO incorporates (i) a lightweight on-device LLM that can process simple tasks at high speed and (ii) a large-scale cloud LLM that can handle multi-modal data sources. We develop a resource-constrained reinforcement learning (RCRL) strategy for TMO that optimizes the inference location (i.e., device vs. cloud) and multi-modal data sources to use for each task in multi-turn conversations, aiming to maximize the long-term reward (response quality, latency, and usage cost) while adhering to resource constraints. We also contribute M4A1, a new dataset we curated across multiple modalities, tasks, conversation turns, and LLM configurations, enabling evaluation of offloading decisions. We demonstrate the effectiveness of TMO compared to several exploration-decision and LLM-as-Router baselines, showing significant improvements in latency, cost, and response quality. Our code and dataset are available at https://github.com/liangqiyuan/TMO.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。