GREEN-CODE: Learning to Optimize Energy Efficiency in LLM-based Code Generation
원문 초록
Large Language Models (LLMs) are becoming integral to daily life, showcasing their vast potential across various Natural Language Processing (NLP) tasks. Beyond NLP, LLMs are increasingly used in software development tasks, such as code completion, modification, bug fixing, and code translation. Software engineers widely use tools like GitHub Copilot and Amazon Q, streamlining workflows and automating tasks with high accuracy. While the resource and energy intensity of LLM training is often highlighted, inference can be even more resource-intensive over time, as it's a continuous process with a high number of invocations. Therefore, developing resource-efficient alternatives for LLM inference is crucial for sustainability. This work proposes GREEN-CODE, a framework for energy-aware code generation in LLMs. GREEN-CODE performs dynamic early exit during LLM inference. We train a Reinforcement Learning (RL) agent that learns to balance the trade-offs between accuracy, latency, and energy consumption. Our approach is evaluated on two open-source LLMs, Llama 3.2 3B and OPT 2.7B, using the JavaCorpus and PY150 datasets. Results show that our method reduces the energy consumption between 23-50 % on average for code generation tasks without significantly affecting accuracy.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
CoreCodeBench: A Configurable Multi-Scenario Repository-Level Benchmark
DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generation
ViCrit: A Verifiable Reinforcement Learning Proxy Task for Visual Perception in VLMs
Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training
A Technical Study into Small Reasoning Language Models
ReVeal: Self-Evolving Code Agents via Iterative Generation-Verification
토론
이 논문과 연결된 포럼 글이 아직 없습니다.