arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.09114cs.LGcs.AIcs.DCcs.PF
收藏

有时痛苦但无疑有前途:边缘设备上语言模型推断的可行性和权衡

Sometimes Painful but Certainly Promising: Feasibility and Trade-offs of Language Model Inference at the Edge

University of Helsinki(赫尔辛基大学);EURECOM

Maximilian Abstreiter, Sasu Tarkoma, Roberto Morabito

AI总结:

研究探讨了边缘设备上语言模型推断的可行性及权衡,评估了不同设备的性能指标,揭示了模型大小与效率之间的平衡问题。

摘要:

语言模型(LMs)的迅速发展扩展了自然语言处理的能力,推动了从文本生成到复杂决策的应用。尽管最先进的LM通常拥有数百亿参数,主要部署在数据中心,但最近的趋势表明,对紧凑模型的关注正在增加——通常参数少于100亿,这得益于量化和其他模型压缩技术。这种转变为边缘设备上的LM提供了可能的好处,如增强的隐私、降低的延迟和改进的数据主权。然而,即使这些较小的模型也具有内在的复杂性,加上边缘硬件计算资源有限,引发了在云之外执行LM推断的实际权衡问题。为了解决这些挑战,我们对生成LM推断进行了全面评估,测试了代表性的CPU和GPU加速的边缘设备。我们的研究测量了关键性能指标,包括内存使用、推断速度和能耗,涵盖了各种设备配置。此外,我们还检查了吞吐量-能耗权衡、成本考虑和易用性,以及对模型性能的定性评估。尽管量化有助于缓解内存开销,但并不能完全消除资源瓶颈,尤其是对于较大的模型。我们的发现量化了必须考虑的记忆和能耗限制,为实际的现实部署提供了具体的见解,揭示了模型大小、推断性能和效率之间的权衡。边缘上的LM探索仍处于早期阶段。我们希望这项研究能为未来研究提供基础,指导模型的完善、推断效率的提升以及边缘中心AI系统的发展。

英文摘要:

The rapid rise of Language Models (LMs) has expanded the capabilities of natural language processing, powering applications from text generation to complex decision-making. While state-of-the-art LMs often boast hundreds of billions of parameters and are primarily deployed in data centers, recent trends show a growing focus on compact models-typically under 10 billion parameters-enabled by techniques such as quantization and other model compression techniques. This shift paves the way for LMs on edge devices, offering potential benefits such as enhanced privacy, reduced latency, and improved data sovereignty. However, the inherent complexity of even these smaller models, combined with the limited computing resources of edge hardware, raises critical questions about the practical trade-offs in executing LM inference outside the cloud. To address these challenges, we present a comprehensive evaluation of generative LM inference on representative CPU-based and GPU-accelerated edge devices. Our study measures key performance indicators-including memory usage, inference speed, and energy consumption-across various device configurations. Additionally, we examine throughput-energy trade-offs, cost considerations, and usability, alongside an assessment of qualitative model performance. While quantization helps mitigate memory overhead, it does not fully eliminate resource bottlenecks, especially for larger models. Our findings quantify the memory and energy constraints that must be considered for practical real-world deployments, offering concrete insights into the trade-offs between model size, inference performance, and efficiency. The exploration of LMs at the edge is still in its early stages. We hope this study provides a foundation for future research, guiding the refinement of models, the enhancement of inference efficiency, and the advancement of edge-centric AI systems.

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

↑