在LLM卸载中通过令牌级不确定性实现精度-延迟权衡
Accuracy-Delay Trade-Off in LLM Offloading via Token-Level Uncertainty
AI总结:
本文提出了一种基于令牌级不确定性的卸载框架,通过贪心算法在保持准确性的同时减少延迟,实现了LLM在移动边缘计算中的精度-延迟权衡。
摘要:
大型语言模型(LLMs)为智能移动服务提供了巨大潜力,但对资源受限设备来说计算成本很高。移动边缘计算(MEC)允许这些设备将推理任务卸载到边缘服务器(ESs),但通信和服务器队列引入了延迟,尤其是在多用户环境中。在本工作中,我们提出了一种不确定性感知的卸载框架,该框架动态决定是否在本地进行推理还是卸载到ES,基于令牌级不确定性和资源限制。我们定义了一个基于边界的令牌级不确定性度量,并展示了其与模型准确性的相关性。利用这一度量,我们设计了一种贪心卸载算法(GOA),通过优先卸载高不确定性查询来最小化延迟同时保持准确性。我们的实验表明,GOA在不同用户密度下均实现了有利的权衡,优于基线策略在准确性和延迟方面,并具有实际的计算时间。这些结果确立了GOA作为MEC环境中LLM推理的可扩展且有效的解决方案。
英文摘要:
Large language models (LLMs) offer significant potential for intelligent mobile services but are computationally intensive for resource-constrained devices. Mobile edge computing (MEC) allows such devices to offload inference tasks to edge servers (ESs), yet introduces latency due to communication and serverside queuing, especially in multi-user environments. In this work, we propose an uncertainty-aware offloading framework that dynamically decides whether to perform inference locally or offload it to the ES, based on token-level uncertainty and resource constraints. We define a margin-based token-level uncertainty metric and demonstrate its correlation with model accuracy. Leveraging this metric, we design a greedy offloading algorithm (GOA) that minimizes delay while maintaining accuracy by prioritizing offloading for highuncertainty queries. Our experiments show that GOA consistently achieves a favorable trade-off, outperforming baseline strategies in both accuracy and latency across varying user densities, and operates with practical computation time. These results establish GOA as a scalable and effective solution for LLM inference in MEC environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。