[Paper Review] Understanding Large Language Models in Your Pockets: Performance Study on COTS Mobile Devices
This paper conducts a comprehensive performance benchmark of on-device large language models (LLMs) on commercial-off-the-shelf mobile devices using 7B-parameter models across leading SoCs from Qualcomm, HiSilicon, and MediaTek. It evaluates token throughput, latency, battery consumption, and system-level factors like CPU/GPU utilization, DVFS, and hardware instruction sets, revealing that current LLM inference underutilizes mobile hardware—especially GPUs—and that specialized instructions like Arm's smmla can boost performance by up to 4×.
As large language models (LLMs) increasingly integrate into every aspect of our work and daily lives, there are growing concerns about user privacy, which push the trend toward local deployment of these models. There are a number of lightweight LLMs (e.g., Gemini Nano, LLAMA2 7B) that can run locally on smartphones, providing users with greater control over their personal data. As a rapidly emerging application, we are concerned about their performance on commercial-off-the-shelf mobile devices. To fully understand the current landscape of LLM deployment on mobile platforms, we conduct a comprehensive measurement study on mobile devices. While user experience is the primary concern for end-users, developers focus more on the underlying implementations. Therefore, we evaluate both user-centric metrics-such as token throughput, latency, and response quality-and developer-critical factors, including resource utilization, OS strategies, battery consumption, and launch time. We also provide comprehensive comparisons across the mobile system-on-chips (SoCs) from major vendors, highlighting their performance differences in handling LLM workloads, which may help developers identify and address bottlenecks for mobile LLM applications. We hope that this study can provide insights for both the development of on-device LLMs and the design for future mobile system architecture.
Motivation & Objective
- To understand the real-world performance of on-device LLMs on current commercial mobile devices.
- To identify hardware and system-level bottlenecks affecting LLM inference on mobile platforms.
- To analyze how SoC architecture, CPU/GPU utilization, and specialized instructions impact LLM performance.
- To guide future mobile system design and on-device LLM optimization by revealing untapped hardware potential.
Proposed method
- Deployed 7B-parameter LLMs using llama.cpp and MLC LLM inference engines on high-end mobile devices.
- Collected detailed performance metrics using hardware profilers: Snapdragon Profiler and Arm Streamline.
- Measured token throughput, latency, battery consumption, and system-level dynamics including CPU/GPU utilization and DVFS behavior.
- Analyzed the impact of hardware features such as big.LITTLE CPU architecture, cache size, memory bandwidth, and specialized instructions (e.g., smmla, sdot).
- Evaluated performance across SoCs from Qualcomm, HiSilicon, and MediaTek to compare vendor-specific differences.
- Quantized models using widely adopted schemes to balance speed and accuracy, excluding low-bit quantizations that degrade performance.
Experimental results
Research questions
- RQ1How do different mobile SoCs from major vendors compare in terms of LLM inference performance?
- RQ2To what extent is current mobile hardware—especially GPUs—underutilized during on-device LLM inference?
- RQ3How do system-level factors such as CPU thread count, DVFS, and memory bandwidth affect LLM inference performance?
- RQ4What performance gains can be achieved by leveraging specialized hardware instructions like smmla and sdot?
- RQ5How do hardware accelerators like the Hexagon NPU compare to CPUs and GPUs in prefill latency for on-device LLMs?
Key findings
- Mobile GPUs are significantly underutilized, with only 5%–20% of arithmetic units actively used during LLM inference.
- Despite superior hardware specs, Mali-G720 Immortalis MP12 underperforms compared to Adreno 750, indicating that raw specs do not guarantee better performance.
- Setting the number of inference threads equal to the number of big cores (e.g., prime and performance cores) yields optimal performance; adding efficiency cores often degrades performance.
- Specialized Arm instructions like smmla and sdot can accelerate LLM inference by up to 4× when the weight matrix is properly rearranged.
- The Hexagon NPU achieves a 50× speedup in prefill latency compared to CPU and GPU, demonstrating its strong potential for on-device LLM acceleration.
- Hardware instruction sets such as SVE2 and SME offer further optimization potential for future Armv9-based mobile CPUs, especially with longer vector operations and matrix-specific instructions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.