Learn to Code Sustainably: An Empirical Study on LLM-based Green Code Generation
Tina Vartziotis, Ippolyti Dellatolas, George Dasoulas, Maximilian, Schmidt, Florian Schneider, Tim Hoffmann, Sotirios Kotsopoulos, Michael, Keckeisen

TL;DR
This paper empirically evaluates the sustainability of AI-generated code using new metrics, comparing it to human code to understand AI's role in promoting green software development.
Contribution
It introduces the concept of 'green capacity' for AI models and assesses their sustainability awareness in code generation tasks.
Findings
AI models show varying green capacity depending on problem difficulty
AI-generated code's sustainability metrics are comparable to human code in some cases
The study highlights current limitations and potential of AI in sustainable coding practices
Abstract
The increasing use of information technology has led to a significant share of energy consumption and carbon emissions from data centers. These contributions are expected to rise with the growing demand for big data analytics, increasing digitization, and the development of large artificial intelligence (AI) models. The need to address the environmental impact of software development has led to increased interest in green (sustainable) coding and claims that the use of AI models can lead to energy efficiency gains. Here, we provide an empirical study on green code and an overview of green coding practices, as well as metrics used to quantify the sustainability awareness of AI models. In this framework, we evaluate the sustainability of auto-generated code. The auto-generate codes considered in this study are produced by generative commercial AI language models, GitHub Copilot, OpenAI…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDigital Rights Management and Security
