AI RESEARCH
An Initial Exploration of Contrastive Prompt Tuning to Generate Energy-Efficient Code
arXiv CS.AI
•
ArXi:2604.02352v1 Announce Type: cross Although LLMs are capable of generating functionally correct code, they also tend to produce less energy-efficient code in comparison to human-written solutions. As these inefficiencies lead to higher computational overhead, they are in direct conflict with Green Software Development (GSD) efforts, which aim to reduce the energy consumption of code. To these efforts, this study aims to investigate whether and how LLMs can be optimized to promote the generation of energy-efficient code. To this end, we employ Contrastive Prompt Tuning.