Skip to main content
QUICK REVIEW

[논문 리뷰] Sustainable Code Generation Using Large Language Models: A Systematic Literature Review

Sabiya Banu Masthan Ali, Oussema Kirmani|arXiv (Cornell University)|2026. 03. 01.
Green IT and SustainabilityEngineering인용 수 0
한 줄 요약

이 연구는 대형 언어 모델이 생성한 코드의 지속 가능성에 대한 체계적 문헌 고찰을 수행했으며, 표준 벤치마크나 평가 방법이 부족하고 연구가 제한적이며 단편적임을 발견하고, 프롬프팅/미세 조정 접근법 및 에너지 중심 평가의 격차를 강조한다.

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 the extent to which LLMs are capable of producing sustainable code. In addition, we examine how sustainability is defined and measured in this context, including the metrics and evaluation strategies used to assess energy efficiency and resource usage. We also explore whether techniques such as fine-tuning and prompt engineering influence the sustainability of generated code. Through a structured analysis of the selected studies, we categorize research efforts based on their methodological approaches, evaluation practices, and experimental settings. The findings indicate that research in this area remains relatively limited and fragmented, with no widely accepted framework for measuring or benchmarking the sustainability of LLM-generated code. These observations highlight the need for clearer definitions, standardized evaluation methods, and systematic research to support environmentally friendly AI-assisted software engineering.

연구 동기 및 목표

  • LLM-생성 코드의 지속 가능성을 평가한 연구를 식별하고 범주화한다.
  • 에너지 효율성 및 자원 사용에 대한 지표와 평가 전략을 검토한다.
  • 지속 가능성 평가에 사용된 벤치마크, 데이터 세트 및 도구를 식별한다.
  • 프롬프팅 전략이나 미세 조정이 생성 코드의 지속 가능성에 어떤 영향을 미치는지 평가한다.

제안 방법

  • Kitchenham가이드 SLR 프로토콜을 따랐다.
  • 구조화된 탐색 문자열을 사용하여 IEEE Xplore, Compendex, Inspec, Scopus, ACM Digital Library를 검색했다.
  • 실험적 평가가 포함된 LLM, 코드 생성, 지속 가능성에 초점을 맞춘 명시적 포함/배제 기준을 적용했다.
  • 연구 특성과 결과를 포착하기 위해 데이터 추출 양식을 사용했다.
  • 주요 연구를 보완하기 위해 스노볼링(역방향 및 순방향)을 적용하여 최종 집합을 19까지 늘렸다.
  • 모델, 언어, 평가 관행 및 한계에 대한 구조화된 분석과 함께 결과를 보고했다.

실험 결과

연구 질문

  • RQ1RQ1: LLM이 실제로 지속 가능성 원칙에 부합하는 코드를 얼마나 효과적으로 생성하는가?
  • RQ2RQ2: 지속 가능성을 평가하는 데 어떤 지표나 매개변수가 사용되는가?
  • RQ3RQ3: LLM-생성 코드의 지속 가능성을 평가하기 위해 어떤 벤치마크, 데이터 세트 및 도구가 사용되는가?
  • RQ4RQ4: 프롬프팅 전략이나 미세 조정 방법이 생성 코드의 지속 가능성에 어떤 영향을 미치는가?

주요 결과

  • 이 영역의 연구는 전반적으로 상대적으로 제한적이고 단편적이다.
  • 평가된 모델의 다양성이 좁고, 대형 언어 모델에 초점을 두며 소형 언어 모델에는 덜 주목된다.
  • 에너지 측정은 주로 소프트웨어 수준에서 수행되며 외부 하드웨어 도구를 사용하는 연구는 드물다.
  • 대부분의 연구는 소수의 프로그래밍 언어와 일반-purpose 소프트웨어 개발에 초점을 두고 있으며 다른 도메인은 거의 다뤄지지 않는다.
  • LLM생성 코드 평가를 위한 지속 가능성 중심 벤치마크의 부재가 있다.
  • 지속 가능성 인식 미세 조정은 연구 방향으로 아직 대부분 탐구되지 않았다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.