Scaling Laws for Energy Efficiency of Local LLMs
Ander Alvarez, Alessandro Genuardi, Nilotpal Sinha, Antonio Tiene, Mikail Okyay, Bakbergen Ryskulov, David Montero, Samuel Mugel, Román Orús
TL;DR
The study analyzes CPU-only local inference for LLMs and VLMs on two edge hardware regimes (MacBook Pro M2 and Raspberry Pi 5) to understand scalability under energy and compute constraints. Using a unified AUC-based profiling framework, it uncovers two scaling laws: LLM compute increases roughly linearly with token length, while VLM compute exhibits a preprocessing induced knee governed by a resize clamp. It further demonstrates that CompactifAI compression reduces CPU/RAM usage and energy, often while preserving or improving semantic accuracy, with larger gains on constrained hardware. These findings yield practical guidance for edge deployments: explicitly manage tokens and pixels, deploy compressed models by default, and document preprocessing configurations as part of system design for sustainable local inference.
Abstract
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.
