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

DILEMMA:边缘计算系统上的联合LLM量化与分布式LLM推理

DILEMMA: Joint LLM Quantization and Distributed LLM Inference Over Edge Computing Systems

University of Kentucky(肯塔基大学)

Minoo Hosseinzadeh, Hana Khamfroush

AI总结:

本文提出DILEMMA框架,通过联合优化层放置与层量化,在边缘计算系统中部署LLM以最小化推理延迟,在保持模型性能的同时实现高达12.75%的量化率。

摘要:

随着近期在智慧城市不同应用中使用大型语言模型(LLMs)的趋势,有必要将这些模型推向网络边缘,同时仍保持其性能。边缘计算(EC)作为物理上更接近终端用户的计算资源,有助于减少为依赖LLM的服务提供终端用户任务时的通信延迟。然而,EC服务器在通信、计算和存储容量方面容量有限。本文引入了DILEMMA,一个通过联合优化EC系统中的层放置和层量化来解决在EC系统中部署LLMs挑战的新颖框架。DILEMMA构建了一个整数线性规划问题以最小化总推理延迟,同时确保可接受的LLM性能水平,利用逐层量化和知识蒸馏进行LLM性能控制。在SQuAD数据集上使用OPT-350模型进行的实验评估表明,DILEMMA在保持模型损失的同时实现了高达12.75%的量化率,突显了其在资源受限环境中的有效性。

英文摘要:

With a recent trend of using Large Language Models (LLMs) for different applications within smart cities, there is a need for pushing these models toward the edge of network while still preserving their performance. Edge Computing (EC) as a physically closer computing resource to the end users can help to reduce the communication delay for serving end users' tasks for LLM-dependent services. However, EC servers have limited capacity in terms of communication, computation, and storage capacity. This paper introduces DILEMMA, a novel framework addressing the challenges of deploying LLMs in EC systems by jointly optimizing layer placement and layer quantization in EC systems. DILEMMA formulates an Integer Linear Programming problem to minimize total inference delay while ensuring acceptable LLM performance levels, leveraging layer-wise quantization and knowledge distillation for LLM performance control. Experimental evaluations on OPT-350 model using the SQuAD dataset demonstrate that DILEMMA achieves a quantization ratio of up to 12.75% while preserving model loss, highlighting its effectiveness in resource-constrained environments.

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

↑