Prompt engineering and its implications on the energy consumption of Large Language Models
Rubei, Moussaid, di Sipio et al.
Reducing the environmental impact of AI-based software systems has become critical. The intensive use of large language models (LLMs) in software engineering poses severe challenges regarding computational resources, data centers, and carbon emissions. In this paper, we investigate how prompt engineering techniques (PETs) can impact the carbon emission of the Llama 3 model for the code generation task. We experimented with the CodeXGLUE benchmark to evaluate both energy consumption and the accuracy of the generated code using an isolated testing environment. Our initial results show that the energy consumption of LLMs can be reduced by using specific tags that distinguish different prompt parts. Even though a more in-depth evaluation is needed to confirm our findings, this work suggests that prompt engineering can reduce LLMs' energy consumption during the inference phase without compromising performance, paving the way for further investigations.
AI 시스템의 환경 영향이 점점 더 주목받고 있는 가운데, 소프트웨어 공학에서 대규모 언어 모델(LLMs)의 집약적 사용은 계산 자원, 데이터 센터, 탄소 배출에 심각한 과제를 야기하고 있습니다. 본 논문은 프롬프트 엔지니어링 기술(PETs)이 Llama 3 모델의 코드 생성 작업에서 탄소 배출에 미치는 영향을 조사했습니다. 연구는 CodeXGLUE 벤치마크를 사용하여 격리된 테스트 환경에서 에너지 소비와 생성된 코드의 정확성을 평가했습니다. 초기 결과는 특정 레이블을 사용하여 서로 다른 프롬프트 부분을 구분하면 LLMs의 에너지 소비를 줄일 수 있음을 보여줍니다. 연구 결과를 확인하기 위해 더 깊이 있는 평가가 필요하지만, 이 작업은 프롬프트 엔지니어링이 성능에 영향을 주지 않으면서 LLMs 추론 단계의 에너지 소비를 줄일 수 있음을 시사합니다.
본 논문은 42편의 관련 문헌을 인용하고 있으며, 녹색 소프트웨어 공학, LLM 에너지 소비 평가, 프롬프트 엔지니어링 등 여러 연구 분야의 중요한 작업을 포함하고 있어 연구에 견고한 이론적 기초와 비교 참조를 제공합니다.
종합 평가: 이는 프롬프트 엔지니어링이 LLM 에너지 소비에 미치는 영향을 최초로 체계적으로 탐색한 중요한 실용적 가치를 지닌 연구입니다. 일부 한계가 있지만 연구 결과는 고무적이며 지속 가능한 AI 발전을 위한 새로운 사고방식과 방법을 제시합니다. 이 작업은 녹색 AI 및 에너지 절감 최적화에 관한 더 많은 연구를 촉진할 것으로 기대됩니다.