arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.00002cs.PFcs.AIcs.HCcs.NI
收藏

我们到了吗?移动设备上 LLM 应用效率的测量研究

Are We There Yet? A Measurement Study of Efficiency for LLM Applications on Mobile Devices

The University of Texas at Dallas(德克萨斯大学达拉斯分校)

Xiao Yan, Yi Ding

AI总结:

本文测量评估了LLM应用在移动、边缘和云部署间的效率权衡,发现移动端仅能运行小模型且延迟高,边缘部署提供折中方案,为系统设计提供了重要见解。

摘要:

大型语言模型(LLMs)的最新进展促使人们关注将这些模型部署在移动设备上,以实现无需依赖云连接的新应用。然而,在资源受限的设备上部署 LLMs 的效率限制带来了重大挑战。在本文中,我们进行了一项全面的测量研究,以评估 LLM 应用在基于移动设备、基于边缘和基于云的部署之间的效率权衡。我们实现了 AutoLife-Lite,这是一个简化的基于 LLM 的应用,用于分析智能手机传感器数据以推断用户位置和活动上下文。我们的实验表明:(1)只有小型 LLMs(<4B 参数)能够在强大的移动设备上成功运行,尽管与较大的模型相比它们表现出质量限制;(2)模型压缩在降低硬件要求方面是有效的,但可能导致显著的性能下降;(3)在移动设备上运行 LLMs 以产生有意义输出的延迟显著(>30 秒),而云服务表现出更好的时间效率(<10 秒);(4)边缘部署在延迟和模型能力之间提供了折中方案,在基于 CPU 和基于 GPU 的设置下具有不同的结果。这些发现为系统设计者提供了关于设备上 LLM 应用的当前局限性和未来方向的有价值见解。

英文摘要:

Recent advancements in large language models (LLMs) have prompted interest in deploying these models on mobile devices to enable new applications without relying on cloud connectivity. However, the efficiency constraints of deploying LLMs on resource-limited devices present significant challenges. In this paper, we conduct a comprehensive measurement study to evaluate the efficiency tradeoffs between mobile-based, edge-based, and cloud-based deployments for LLM applications. We implement AutoLife-Lite, a simplified LLM-based application that analyzes smartphone sensor data to infer user location and activity contexts. Our experiments reveal that: (1) Only small-size LLMs (<4B parameters) can run successfully on powerful mobile devices, though they exhibit quality limitations compared to larger models; (2) Model compression is effective in lower the hardware requirement, but may lead to significant performance degradation; (3) The latency to run LLMs on mobile devices with meaningful output is significant (>30 seconds), while cloud services demonstrate better time efficiency (<10 seconds); (4) Edge deployments offer intermediate tradeoffs between latency and model capabilities, with different results on CPU-based and GPU-based settings. These findings provide valuable insights for system designers on the current limitations and future directions for on-device LLM applications.

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

↑