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

Argus:基于令牌的分布式大语言模型推理优化

Argus: Token Aware Distributed LLM Inference Optimization

CUHK(SZ)(香港中文大学(深圳))

Panlong Wu, Yifei Zhong, Danyang Chen, Ting Wang, Fangxin Wang

AI总结:

Argus是一种基于令牌的分布式大语言模型推理优化框架,通过长度感知语义模块和Lyapunov引导卸载优化模块,实现高效的任务卸载和动态异构环境下的高效率推理。

摘要:

大型语言模型(LLMs)正迅速被集成到现实世界应用中,但其自回归架构引入了显著的推理时间变异性,尤其是在异构边缘-云系统中部署时更为明显。现有解决方案大多忽视了此类环境的动态性、随机性和异构性,往往忽略变量输出令牌长度和设备多样性的影响。在本文中,我们提出了Argus,这是首个基于令牌的分布式边缘-云LLM推理框架,能够高效地进行任务卸载。Argus包含一个长度感知语义(LAS)模块,该模块利用微调的语言模型,通过具有令牌长度敏感特征调节的功能,预测输入提示的输出令牌长度,从而实现精确估计。在此基础上,我们的Lyapunov引导卸载优化(LOO)模块制定了长期的体验质量优化,明确考虑了LLM预填充和解码成本。我们引入了一种新的迭代卸载算法与阻尼和拥堵控制(IODCC),以有效解决由此产生的整数非线性规划问题,在时间变化约束下。广泛的理论和实证评估表明,Argus在高度动态和异构的环境中实现了稳健的性能和优越的效率。

英文摘要:

Large Language Models (LLMs) are rapidly being integrated into real-world applications, yet their autoregressive architectures introduce significant inference time variability, especially when deployed across heterogeneous edge-cloud systems. Existing solutions largely neglect the dynamic, stochastic, and heterogeneous nature of such environments, often ignoring the impact of variable output token lengths and device diversity. In this work, we present Argus, the first token-aware distributed edge-cloud LLM inference framework that conducts efficient task offloading. Argus features a Length-Aware Semantics (LAS) module, which predicts output token lengths for incoming prompts using a fine-tuned language model with token-length-sensitive feature modulation, enabling precise estimation. Building on this, our Lyapunov-guided Offloading Optimization (LOO) module formulates long-term Quality-of-Experience optimization that explicitly considers both LLM prefilling and decoding costs. We introduce a novel Iterative Offloading Algorithm with Damping and Congestion Control (IODCC) to effectively solve the resulting integer nonlinear programming problem under time-varying constraints. Extensive theoretical and empirical evaluations demonstrate that Argus achieves robust performance and superior efficiency in highly dynamic, heterogeneous settings.

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

↑