paper-with-me

홈 › Papers

Generating Energy-Efficient Code via Large-Language Models -- Where are we now?

2025-09-12 · Radu Apsan, Vincenzo Stoico, Michel Albonico, Rudra Dhar, Karthik Vaidhyanathan, Ivano Malavolta arxiv

Context. The rise of Large Language Models (LLMs) has led to their widespread adoption in development pipelines. Goal. We empirically assess the energy efficiency of Python code generated by LLMs against human-written code and code developed by a Green software expert. Method. We test 363 solutions to 9 coding problems from the EvoEval benchmark using 6 widespread LLMs with 4 prompting techniques, and comparing them to human-developed solutions. Energy consumption is measured on three different hardware platforms: a server, a PC, and a Raspberry Pi for a total of ~881h (36.7 days). Results. Human solutions are 16% more energy-efficient on the server and 3% on the Raspberry Pi, while LLMs outperform human developers by 25% on the PC. Prompting does not consistently lead to energy savings, where the most energy-efficient prompts vary by hardware platform. The code developed by a Green software expert is consistently more energy-efficient by at least 17% to 30% against all LLMs on all hardware platforms. Conclusions. Even though LLMs exhibit relatively good code generation capabilities, no LLM-generated code was more energy-efficient than that of an experienced Green software developer, suggesting that as of today there is still a great need of human expertise for developing energy-efficient Python code.

📄 PDF Abstract BibTeX arXiv:2509.10099

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Leveraging LLMs to Automate Energy-Aware Refactoring of Parallel Scientific Codes

2025-05-04 · Matthew T. Dearing, Yiheng Tao, Xingfu Wu, Zhiling Lan 외

While large language models (LLMs) are increasingly used for generating parallel scientific code, most current efforts emphasize functional correctness, often overlooking performance and energy considerations. In this wo…

Generating Energy-efficient code with LLMs

2024-11-15 · Tom Cappendijk, Pepijn de Reus, Ana Oprescu

The increasing electricity demands of personal computers, communication networks, and data centers contribute to higher atmospheric greenhouse gas emissions, which in turn lead to global warming and climate change. There…

Sentence

Inducing High Energy-Latency of Large Vision-Language Models with Verbose Images

2024-01-20 · Kuofeng Gao, Yang Bai, Jindong Gu, Shu-Tao Xia 외

Large vision-language models (VLMs) such as GPT-4 have achieved exceptional performance across various multi-modal tasks. However, the deployment of VLMs necessitates substantial energy consumption and computational reso…

Diversity

Green My LLM: Studying the key factors affecting the energy consumption of code assistants

2024-11-07 · Tristan Coignion, Clément Quinton, Romain Rouvoy

In recent years,Large Language Models (LLMs) have significantly improved in generating high-quality code, enabling their integration into developers' Integrated Development Environments (IDEs) as code assistants. These a…

Quantization

Efficacy of Various Large Language Models in Generating Smart Contracts

2024-06-28 · Siddhartha Chatterjee, Bina Ramamurthy

This study analyzes the application of code-generating Large Language Models in the creation of immutable Solidity smart contracts on the Ethereum Blockchain. Other works have previously analyzed Artificial Intelligence …

Code Generation