GA4GC: Greener Agent for Greener Code via Multi-Objective Configuration Optimization
Authors:
- Jingzhi GongJGJingzhi Gong
- Yixin BianYBYixin Bian
- Luis de la CalLCLuis de la Cal
- Giovanni PinnaGPGiovanni Pinna
- Anisha UteemAUAnisha Uteem
- David WilliamsDWDavid Williams
- Mar ZamoranoMZMar Zamorano
- Karine Even-MendozaKEKarine Even-Mendoza
- W. B. LangdonWLW. B. Langdon
- Hector MenendezHMHector Menendez
- Federica SarroFSFederica Sarro
Preprint
Abstract
Coding agents powered by LLMs face critical sustainability and scalability challenges in industrial deployment, with single runs consuming over 100k tokens and incurring environmental costs that may exceed optimization benefits. This paper introduces GA4GC, the first framework to systematically optimize coding agent runtime (greener agent) and code performance (greener code) trade-offs by discovering Pareto-optimal agent hyperparameters and prompt templates. Evaluation on the SWE-Perf benchmark demonstrates up to 135x hypervolume improvement, reducing agent runtime by 37.7% while improving correctness. Our findings establish temperature as the most critical hyperparameter, and provide actionable strategies to balance agent sustainability with code optimization effectiveness in industrial deployment.Keywords
All Related Versions
This publication has 4 references indexed in Scilit:
- When Faster Isn’t Greener: The Hidden Costs of LLM-Based Code Optimization2025
- Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspective2025
- Investigating the Role of LLMs Hyperparameter Tuning and Prompt Engineering to Support Domain Modeling2025
- GreenStableYolo: Optimizing Inference Time and Image Quality of Text-to-Image Generation2024