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

对设备端大语言模型的系统评估:量化、性能与资源

A Systematic Evaluation of On-Device LLMs: Quantization, Performance, and Resources

Qingyu Song, Rui Liu, Wei Lin, Peiyu Liao, Wenqian Zhao, Yiwen Wang, Shoubo Hu, Yining Jiang, Mochun Long, Hui-Ling Zhen, Ning Jiang, Mingxuan Yuan, Qiao Xiang, Hong Xu

AI总结:

研究通过分析不同规模模型和量化方法,揭示了量化程度与性能的关系,以及资源利用与计算延迟的关联,为边缘环境下的大语言模型优化提供指导。

摘要:

在边缘设备上部署大语言模型(LLMs)可以增强隐私保护,但受限于资源导致性能面临挑战。本文提出了一种系统性的评估方法,平衡能力、效率和资源约束。通过对0.5B-14B模型和七种后训练量化(PTQ)方法在通用硬件上的广泛分析,证明:1)重度量化的大模型始终优于较小的高精度模型,性能阈值约为3.5有效位/权重(BPW);2)资源利用率与BPW成线性关系,尽管功率和内存足迹因量化算法而异;3)随着模型规模的减小,吞吐量的主要限制从通信开销转为计算延迟。本文最后提供了在资源受限的边缘环境中优化LLMs的指导方针。代码库可在https://anonymous.4open.science/r/LLMOnDevice/获取。

英文摘要:

Deploying Large Language Models (LLMs) on edge devices enhances privacy but faces performance hurdles due to limited resources. We introduce a systematic methodology to evaluate on-device LLMs, balancing capability, efficiency, and resource constraints. Through an extensive analysis of models (0.5B-14B) and seven post-training quantization (PTQ) methods on commodity hardware, we demonstrate that: 1) Heavily quantized large models consistently outperform smaller, high-precision models, with a performance threshold at ~3.5 effective bits-per-weight (BPW); 2) Resource utilization scales linearly with BPW, though power and memory footprints vary by quantization algorithm; and 3) With a reduction in model size, the primary constraint on throughput transitions from communication overhead to computational latency. We conclude by offering guidelines for optimizing LLMs in resource-constrained edge environments. Our codebase is available at https://anonymous.4open.science/r/LLMOnDevice/.

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

↑