Abstract
Context. While on-device LLMs offer higher privacy over their remotely-hosted counterparts and do not require Internet connectivity, their energy consumption on the client device still remains insufficiently investigated. Goal. This study empirically evaluates the energy usage of client devices when fetching LLM-generated content on-device versus from a remote server. Our goal is to help software developers make informed decisions on the most energy-efficient method for fetching content in different scenarios, so as to optimize the client device's energy consumption. Method. We conduct a controlled experiment with seven LLMs with varying parameter sizes running on a MacBook Pro M2 and on a remote server. The experiment involves fetching content of different lengths from the LLMs deployed either on-device or remotely, while measuring the client device's energy usage and performance metrics such as execution time, CPU, GPU, and memory usage. Results. Fetching LLM-generated content from a remote server uses 3.5 to 8.9 times less energy compared to the on-device method, with a large effect size. We observe a consistent strong positive correlation between energy usage and execution time across all content lengths and fetch methods. For the on-device method, GPU and memory usage are positively correlated with energy usage. Conclusions. We recommend offloading LLM-generated content to a remote server rather than generating it on-device to optimize energy efficiency on the client side. LLM maintainers should optimize on-device LLMs in terms of execution time and computational resources.
| Original language | English |
|---|---|
| Title of host publication | 2025 IEEE/ACM 4th International Conference on AI Engineering – Software Engineering for AI (CAIN) |
| Subtitle of host publication | [Proceedings] |
| Publisher | Institute of Electrical and Electronics Engineers Inc. |
| Pages | 72-82 |
| Number of pages | 11 |
| ISBN (Electronic) | 9798331502195 |
| ISBN (Print) | 9798331502201 |
| DOIs | |
| Publication status | Published - 2025 |
| Event | 4th IEEE/ACM International Conference on AI Engineering - Software Engineering for AI, CAIN 2025 - Ottawa, Canada Duration: 27 Apr 2025 → 28 Apr 2025 |
Conference
| Conference | 4th IEEE/ACM International Conference on AI Engineering - Software Engineering for AI, CAIN 2025 |
|---|---|
| Country/Territory | Canada |
| City | Ottawa |
| Period | 27/04/25 → 28/04/25 |
Bibliographical note
Publisher Copyright:© 2025 IEEE.
Keywords
- empirical software engineering
- energy-efficienct software
- green it
- large-language models
- llm
Fingerprint
Dive into the research topics of 'On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Content'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver