[논문 리뷰] Language Models for Code Optimization: Survey, Challenges and Future Directions
이 논문은 LM 기반 코드 최적화에 대한 체계적 문헌 고찰을 수행하여 53건의 연구를 분석하고, 코드 성능 향상의 추세, 도전과제 및 향후 방향을 식별합니다.
Language models (LMs) built upon deep neural networks (DNNs) have recently demonstrated breakthrough effectiveness in software engineering tasks such as code generation, completion, and repair. This has paved the way for the emergence of LM-based code optimization techniques, which are crucial for enhancing the performance of existing programs, such as accelerating program execution time. However, a comprehensive survey dedicated to this specific application has been lacking. To fill this gap, we present a systematic literature review of over 50 primary studies, identifying emerging trends and addressing 11 specialized questions. Our findings reveal five critical open challenges, such as balancing model complexity with practical usability, cross-language/performance generalizability, and building trust in AI-driven solutions. Furthermore, we provide eight future research directions to facilitate more efficient, robust, and reliable LM-based code optimization. Thereby, this study aims to provide actionable insights and foundational references for both researchers and practitioners in this rapidly evolving field.
연구 동기 및 목표
- 53개의 주요 연구에 걸친 최첨단 LM 기반 코드 최적화 기술에 대한 조사.
- 코드 최적화를 위한 LM의 특성 및 범주를 식별합니다(일반 목적, 코드 특화, 트랜스포머).
- 향후 연구를 안내하기 위한 학습 체계, 모델 규모 및 통합 접근 방식을 검토합니다.
- 일반화성, 사용 편의성, 견고성 향상을 위한 실용적인 방향 제안 및 도전 과제 종합.
제안 방법
- Kitchenham and Charters 가이드라인에 따른 체계적 문헌 고찰 수행.
- 여섯 개의 학술 색인 검색 및 포함/배제 기준 적용으로 53개의 주요 연구를 선정.
- 네 가지 연구 질문 및 11개의 하위 질문을 다루도록 데이터 추출.
- LM 유형, 크기 및 사용 시나리오별 연구 분류; 발견 및 권고 사항 요약.
- 합성된 증거를 바탕으로 한 한계점, 도전 과제 및 향후 방향 논의.

실험 결과
연구 질문
- RQ1RQ1: 코드 최적화를 위해 사용되는 LM의 특성은 무엇인가(유형, 크기 및 범주)?
- RQ2RQ2: LM은 어떻게 학습되고 구성되는가(사전 학습 대 미세 조정, 데이터 소스, 프롬프트)?
- RQ3RQ3: 코드 최적화에서 LM은 어떤 방식으로 활용되는가(생성, 평가, 변환, 도구화)?
- RQ4RQ4: LM 기반 코드 최적화의 주요 도전 과제와 향후 방향은 무엇인가?
주요 결과
- 일반 목적 LMs are the most widely used for code optimization due to broad understanding and reasoning capabilities.
- 코드 특화 LMs는 대상 작업에 맞춤형 개선을 제공하지만 작업 간 범용성이 부족할 수 있다.
- 크고(대형 및 매우 큰) 모델은 복잡한 최적화 작업을 가능하게 하지만 자원 및 통합 관련 문제를 야기한다.
- 프롬프트 엔지니어링과 전용 모델링 접근법은 데이터 효율성 및 작업 특이성을 다루는 일반적인 전략이다.
- Five key challenges are identified: computational/resource demands, integration and trust, generalizability across languages and metrics, reliance on synthetic datasets, and potential output hallucinations.
- Eight future directions are proposed to enhance efficiency, robustness, and real-world applicability.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.