Sustainable Code Generation Using Large Language Models: A Systematic Literature Review
Sabiya Banu Masthan Ali, Oussema Kirmani, Aroosa Hameed, Syed Muhammad Danish, Gautam Srivastava

TL;DR
This systematic review investigates how large language models generate sustainable code, highlighting the current lack of standardized evaluation methods and the need for clearer definitions and benchmarks for environmental impact.
Contribution
The paper provides a comprehensive analysis of existing research on LLM-generated code sustainability, identifying gaps and proposing directions for future standardized evaluation frameworks.
Findings
Research on LLM code sustainability is limited and fragmented.
No widely accepted framework exists for measuring sustainability of generated code.
Current studies lack standardized metrics and evaluation strategies.
Abstract
Large Language Models (LLMs) are widely used in software engineering to generate, complete, translate, and fix code, improving developer productivity. While most research focuses on the energy consumption and carbon emissions of model training and inference, far less attention has been given to the sustainability of the code these models produce. The efficiency of generated code affects the long-term environmental impact of software systems. Inefficient code can increase CPU usage, memory consumption, execution time, and overall energy use during deployment and operation. As LLM-generated code becomes more common in real-world projects, even small inefficiencies can lead to high environmental costs over time. This paper examines existing research on the sustainability of code generated by LLMs. We conduct a systematic literature review to analyze selected primary studies and investigate…
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.
