---
title: "New paper: EnergyBench: Holistic Benchmark for Correct and Energy-Efficient LLM-Generated Code"
description: "Aalborg University publishes \"EnergyBench: Holistic Benchmark for Correct and Energy-Efficient LLM-Generated Code\" in 2025 3rd International Conference on Federated Learning Technologies and Applications (FLTA)."
url: https://greencode.ai/news/paper-energybench-holistic-benchmark-for-correct-and-energy-effici/
---

# New paper: EnergyBench: Holistic Benchmark for Correct and Energy-Efficient LLM-Generated Code

- 14 October, 2025
- GreenCode

### New paper: EnergyBench: Holistic Benchmark for Correct and Energy-Efficient LLM-Generated Code

The increasing use of Large Language Models (LLMs) for automated software development creates a paradox: LLM-generated code can boost energy efficiency across industries through digital transformation but their often unsupervised usage unintentionally generates energy-inefficient code when functional correctness is prioritized. Current benchmarks show that LLMs generate energy-efficient code when prompted with optimized instructions. However, it is unclear for which problems, programming languages, and prompting strategies lead to the best trade-off between correctness and energy efficiency. To address the current gaps in untested prompts, this work uses a systematic approach to analyze which prompt elements lead to LLMs generating correct and energy-efficient code. Results reveal that prompt engineering increases code energy efficiency by up to 91.9% in some cases, but often reduces accuracy. Our novel approach, inspired by Holistic Evaluation of Language Models (HELM), reveals that LLMs are sensitive to prompt contents. One result shows that the energy efficiency increases by more than 4 × when half of the programming problem description is removed, while in other cases accuracy drops to zero.

**Authors:** [Dragoș Ionescu](https://greencode.ai/researchers/dragos-ionescu/), [Søren Kejser Jensen](https://greencode.ai/researchers/s-ren-kejser-jensen/), [Bent Thomsen](https://greencode.ai/researchers/bent-thomsen/)

**Contributing partner:** [Aalborg University](https://greencode.ai/partners/aalborg-universitet/)

[Publication page and citation](https://greencode.ai/publications/energybench-holistic-benchmark-for-correct-and-energy-efficient-llm-generated-co/) [View at the publisher](https://doi.org/10.1109/flta67013.2025.11336593)

#### Categories

- All news **(43)**
- Publications **(25)**
- Project news **(14)**
- Articles **(4)**

#### Recent Post

- #### [greenai.guide: plain-English help for using AI with less energy](https://greencode.ai/news/greenai-guide/)

  [Read more](https://greencode.ai/news/greenai-guide/)
- #### [New paper: IP-Preserving Enterprise System Modernization via LLM-Driven Specification Extraction and Multi-target Code Generation](https://greencode.ai/news/paper-ip-preserving-enterprise-system-modernization-via-llm-driven/)

  [Read more](https://greencode.ai/news/paper-ip-preserving-enterprise-system-modernization-via-llm-driven/)
- #### [New paper: (How) Do Large Language Models Understand High-Level Message Sequence Charts?](https://greencode.ai/news/paper-how-do-large-language-models-understand-high-level-message-s/)

  [Read more](https://greencode.ai/news/paper-how-do-large-language-models-understand-high-level-message-s/)
- #### [GreenCode is now on YouTube and TikTok](https://greencode.ai/news/greencode-on-youtube-and-tiktok/)

  [Read more](https://greencode.ai/news/greencode-on-youtube-and-tiktok/)
