本地大语言模型和视觉-语言模型的扩展定律
Scaling Laws for Energy Efficiency of Local LLMs
AI总结:
研究揭示了本地大语言模型和视觉-语言模型在中央处理单元上的计算扩展定律,并展示了量子启发压缩在降低能耗和资源消耗方面的效果。
摘要:
在边缘设备上部署本地大型语言模型和视觉-语言模型需要在准确性与受限的计算和能源预算之间进行平衡。尽管图形处理器主导现代人工智能部署,但大多数消费者硬件——包括笔记本电脑、台式机、工业控制器和嵌入式系统——都依赖于中央处理单元。尽管如此,针对仅使用中央处理单元进行本地语言和视觉-语言工作负载的计算定律仍然鲜有研究。我们系统地在两个广泛用于本地推理的中央处理单元层级上对大型语言和视觉-语言模型进行了基准测试:一台MacBook Pro M2,代表主流笔记本电脑类部署,以及一台Raspberry Pi 5,代表受限的低功耗嵌入式环境。通过基于连续采样处理器和内存使用情况以及面积-曲线积分的统一方法,我们表征了计算负载如何随输入文本长度(对于语言模型)和图像分辨率(对于视觉-语言模型)而变化。我们揭示了两个经验定律:(1)语言模型推断的计算成本大致与标记长度成线性关系;(2)视觉-语言模型表现出由预处理驱动的“分辨率膝点”,即在内部分辨率限制以上计算保持恒定,而在其以下急剧下降。此外,我们展示了受量子启发的压缩可以将处理器和内存使用量减少高达71.9%,并将能源消耗减少高达62%,同时保持或提高语义准确性。这些结果为本地语言和视觉-语言工作负载的多模态中央处理单元-only扩展提供了系统量化,并识别了模型压缩和输入分辨率预处理作为可持续边缘推断的有效、低成本杠杆。
英文摘要:
Deploying local large language models and vision-language models on edge devices requires balancing accuracy with constrained computational and energy budgets. Although graphics processors dominate modern artificial-intelligence deployment, most consumer hardware--including laptops, desktops, industrial controllers, and embedded systems--relies on central processing units. Despite this, the computational laws governing central-processing-unit-only inference for local language and vision-language workloads remain largely unexplored. We systematically benchmark large language and vision-language models on two representative central-processing-unit tiers widely used for local inference: a MacBook Pro M2, reflecting mainstream laptop-class deployment, and a Raspberry Pi 5, representing constrained, low-power embedded settings. Using a unified methodology based on continuous sampling of processor and memory usage together with area-under-curve integration, we characterize how computational load scales with input text length for language models and with image resolution for vision-language models. We uncover two empirical scaling laws: (1) computational cost for language-model inference scales approximately linearly with token length; and (2) vision-language models exhibit a preprocessing-driven "resolution knee", where compute remains constant above an internal resolution clamp and decreases sharply below it. Beyond these laws, we show that quantum-inspired compression reduces processor and memory usage by up to 71.9% and energy consumption by up to 62%, while preserving or improving semantic accuracy. These results provide a systematic quantification of multimodal central-processing-unit-only scaling for local language and vision-language workloads, and they identify model compression and input-resolution preprocessing as effective, low-cost levers for sustainable edge inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。