MNN-AECS: Energy Optimization for LLM Decoding on Mobile Devices via Adaptive Core Selection

Zhengxiang Huang, Chaoyue Niu, Zhaode Wang, Jiarui Xue, Hanming Zhang, Yugang Wang, Zewei Xin, Xiaotang Jiang, Chengfei Lv, Fan Wu, Guihai ChenarXiv 2025

Abstract

As the demand for on-device Large Language Model (LLM) inference grows, energy efficiency has become a major concern, especially for battery-limited mobile devices. Our analysis shows that the memory-bound LLM decode phase dominates energy use, and yet most existing works focus on accelerating the prefill phase, neglecting energy concerns. We introduce Adaptive Energy-Centric Core Selection (AECS) and integrate it into MNN to create the energy-efficient version, MNN-AECS, the first engine-level system solution without requiring root access or OS modifications for energy-efficient LLM decoding. MNN-AECS is designed to reduce LLM decoding energy while keeping decode speed within an acceptable slowdown threshold by dynamically selecting low-power CPU cores. MNN-AECS is evaluated across 5 Android and 2 iOS devices on 5 popular LLMs of various sizes. Compared to original MNN, MNN-AECS cuts down energy use by 23% without slowdown averaged over all 7 devices and 4 datasets. Against other engines, including llama.cpp, executorch, mllm, and MediaPipe, MNN-AECS delivers 39% to 78% energy saving and 12% to 363% speedup on average.

Introduction

Deploying Large Language Models (LLMs) locally on mobile devices offers significant advantages for privacy and latency. However, the high energy consumption of these models poses a critical challenge for battery-constrained devices. LLM inference typically consists of two phases: prefill, which is compute-bound, and decode, which is memory-bound. While most research targets the prefill phase, the decode phase often consumes 16x–26x more energy due to its prolonged duration. Current mobile engines often utilize high-power "big" cores for both phases, leading to significant energy waste during the memory-bound decode phase as these cores operate at high frequencies while waiting for memory access.

Methodology: Adaptive Energy-Centric Core Selection (AECS)

MNN-AECS addresses this inefficiency by dynamically selecting the most energy-efficient CPU core configuration for the decode phase. The system implements a two-stage search process:

  1. Performance Search: Identifies the fastest core configuration by iteratively adding cores until performance gains plateau.
  2. Energy Optimization: Utilizes a heuristic power model to select a configuration that minimizes energy consumption while maintaining a user-imperceptible slowdown (within an 8% threshold).
Workflow of MNN-AECS compared to the original MNN engine, highlighting the adaptive core selection process.

The implementation is integrated directly into the MNN engine, allowing for rapid switching between "performance" cores for prefill and "efficiency" cores for decode without requiring OS-level modifications or root access. This engine-level approach ensures compatibility across standard Android and iOS environments.

Experimental Evaluation

The system was evaluated using Qwen2.5, Llama 3.2, and Gemma 2 models across four datasets: MathQA, TruthfulQA, ShareGPT, and RoleBench. Testing spanned seven devices, including Android flagships (Xiaomi 15 Pro, Meizu 21) and recent iPhone models (12 and 15).

Results and Discussion

MNN-AECS demonstrates superior performance and energy efficiency compared to both the baseline MNN and other state-of-the-art mobile inference engines.

Comparison of MNN-AECS against other mobile LLM engines in terms of energy consumption and speed.

Key findings include:

  • Energy Efficiency: MNN-AECS achieved an average energy reduction of 23% compared to standard MNN. Against competitors like llama.cpp, executorch, and MediaPipe, energy savings ranged from 39% to 78%.
  • Performance Gains: Despite the focus on energy, MNN-AECS was 12%–363% faster than other engines. In some scenarios, using fewer cores actually improved speed by reducing memory bus contention and avoiding thermal throttling.
  • Platform Versatility: On iOS, where core affinity is restricted, MNN-AECS optimized thread counts to achieve up to 42% energy reduction on the iPhone 12.

Conclusion and Future Work

MNN-AECS provides a practical, engine-level solution for energy-efficient LLM inference on mobile devices. By recognizing the distinct hardware requirements of the decode phase, it significantly extends battery life without compromising user experience. Future work will explore extending these adaptive techniques to mobile GPUs and NPUs, as well as refining the heuristic power models for emerging chip architectures.

Summary updated

BibTeX
@misc{huang2025mnn,
  author = {Zhengxiang Huang and Chaoyue Niu and Zhaode Wang and Jiarui Xue and Hanming Zhang and Yugang Wang and Zewei Xin and Xiaotang Jiang and Chengfei Lv and Fan Wu and Guihai Chen},
  title = {{MNN-AECS: Energy Optimization for LLM Decoding on Mobile Devices via Adaptive Core Selection}},
  year = {2025},
  eprint = {2506.19884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.19884},
}
Figure