| dc.contributor.author | Xia, Yi | |
| dc.contributor.author | Aragón Jurado, José Miguel | |
| dc.contributor.author | Thawonmas, Ruck | |
| dc.contributor.other | Ingeniería Informática | es_ES |
| dc.date.accessioned | 2025-10-31T16:52:19Z | |
| dc.date.available | 2025-10-31T16:52:19Z | |
| dc.date.issued | 2025-10-22 | |
| dc.identifier.uri | http://hdl.handle.net/10498/37744 | |
| dc.description.abstract | The carbon footprint of computing is increasingly shaped by software, yet existing programming tools and large language models (LLMs) remain largely energy-blind. We propose energy-guided code generation, a method that reranks LLM-generated programs based on direct energy measurements using CodeCarbon while ensuring functional correctness. Evaluating a benchmark of algorithmic and data-processing tasks, we show that energy-guided selection yields statistically significant energy reductions. It reduces consumption by an average of 44.69% compared to unguided Top-1 candidates and by an additional 1.86% compared to the fastest (Best-Time) implementations, all without runtime penalties or loss of accuracy. These results provide the first conclusive evidence that LLMs produce diverse implementations with substantial variation in energy use, and that energy-aware reranking can consistently surface verifiably greener solutions. By embedding energy as a first-class optimization signal in the act of code generation, this work establishes a foundation for green-by-design software generation systems, where sustainability is not an afterthought but a default property of programming tools. | es_ES |
| dc.format | application/pdf | es_ES |
| dc.language.iso | eng | es_ES |
| dc.source | Open Conference of AI Agents for Science 2025 | es_ES |
| dc.title | Green by Design: Energy-Guided Reranking of LLM-Generated Programs | es_ES |
| dc.type | conference output | es_ES |
| dc.identifier.url | https://openreview.net/forum?id=BxscqmB9Rs#discussion | |
| dc.rights.accessRights | open access | es_ES |
| dc.type.hasVersion | VoR | es_ES |