합성 벤치마크를 넘어서: 실제 환경의 클래스 수준 코드 생성에서 LLM 성능 평가
Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
한국어 초록
대규모 언어 모델(LLM)은 잘 연구된 함수 수준 코드 생성에서 부상하는 저장소 수준 접근법으로 빠르게 발전해 왔지만, 이러한 진행은 중대한 공백을 드러낸다. 개별 함수를 완전한 저장소로 연결하는 근본적인 구성 요소인 클래스 수준 코드 생성이 체계적으로 충분히 탐구되지 않은 채로 남아 있다는 점이다. 현재의 접근법은 실패가 기본적인 구현 결함에서 비롯되는지 정교한 맥락 관리 문제에서 비롯되는지 구분할 수 없으므로, 클래스 수준 능력을 이해하는 것은 저장소 수준 성공의 전제 조건이다. 우리는 실제 오픈소스 저장소에서 도출한 벤치마크인 RealClassEval을 소개하며, 이는 모델 학습 시점 기준에 따라 본 파티션과 보지 않은 파티션으로 나뉜 400개의 클래스로 구성된다. 최신 LLM 7종에 대한 체계적 평가는 합성 벤치마크가 가리고 있던 근본적 한계를 드러낸다. LLM은 합성 과제에서 84~89%의 정확도를 달성하지만 실제 클래스에서는 25~34%에 그치며, 본 코드베이스와 보지 않은 코드베이스 간 차이는 미미하다. 특히 이 성능 범위는 풍부한 자연어 설명과 저장소 맥락을 사용한 동시기 연구와 수렴하며, 이는 명세의 복잡성이 핵심적인 구현 병목을 극복할 수 없음을 시사한다. 문서화는 미미한 개선(1~3%)을 제공하는 반면, 검색 증강은 특히 불완전한 명세에서 더 큰 이득(4~7%)을 가져온다. 오류 분석 결과 AttributeError, TypeError, AssertionError가 실패의 84%를 차지하며, 합성(논리 중심) 시나리오와 실제(객체지향) 시나리오 간에 뚜렷한 패턴 차이가 나타난다. 이러한 발견은 LLM의 근본 능력과 정교한 저장소 수준 접근법 모두를 발전시키는 데 필요한 진단적 토대를 마련하며, 실제 배포 전략을 위한 실행 가능한 지침도 제공한다.
원문 초록
Large language models (LLMs) have advanced rapidly from well-studied function-level code generation to emerging repository-level approaches, yet this progression reveals a critical gap: class-level code generation, which is the fundamental building block connecting individual functions to complete repositories, remains systematically underexplored. Understanding class-level capabilities is a prerequisite to repository-level success, as current approaches cannot distinguish whether failures stem from basic implementation deficiencies or sophisticated context management issues. We introduce RealClassEval, a benchmark derived from real-world open-source repositories, comprising 400 classes divided into seen and unseen partitions based on model training cutoffs. Our systematic evaluation across seven state-of-the-art LLMs reveals fundamental limitations masked by synthetic benchmarks: while LLMs achieve 84 to 89% correctness on synthetic tasks, they attain only 25 to 34% on real-world classes, with minimal distinction between seen and unseen codebases. Notably, this performance range converges with concurrent work using rich natural language descriptions and repository context, suggesting that specification complexity cannot overcome core implementation bottlenecks. Documentation provides marginal improvements (1 to 3%), while retrieval augmentation yields greater gains (4 to7%), specifically with incomplete specifications. Error analysis reveals AttributeError, TypeError, and AssertionError dominate 84% of failures, with distinct patterns between synthetic (logic-focused) and real-world (object-oriented) scenarios. These findings establish the diagnostic foundation necessary for advancing both fundamental LLM capabilities and sophisticated repository-level approaches, while providing actionable guidance for production deployment strategies.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2510.26130v3제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.