arXiv:2608.04336v2 cs.SE

COMPAS: 코드 생성을 최적화하기 위한 난이도 인지 공동 탐색

COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation

Jingzhi Gong, Jie M. Zhang, Gunel Jahangirova, Dong Huang, Mohammad Reza Mousavi, Mark Harman

제출 2026-08-05

한국어 초록

코드 생성 시스템은 모델, 프롬프트, 디코딩 설정을 조합하여 각 대규모 언어 모델(LLM) 호출을 수행합니다. 그러나 기존의 최적화 방법들은 대개 이러한 선택 사항 중 일부만을 튜닝하거나 모든 작업에 대해 하나의 고정된 구성을 사용합니다. 즉, 글로벌 옵티마이저는 모든 작업에 대해 단일 구성을 탐색하고, 라우터는 모델만을 선택하며, 프롬프트 옵티마이저는 모델과 디코딩 설정을 고정한 채 유지합니다. 이로 인해 이들 요소 간의 공동 및 그룹별 상호작용은 불분명한 상태로 남아 있습니다. 따라서 본 연구에서는 이러한 선택 사항들이 어떻게 상호작용하는지 조사하여, 프롬프트와 디코딩 설정이 상호작용하고, 튜닝 효과가 모델에 따라 달라지며, 최적의 구성이 작업 난이도에 따라 달라짐을 관찰했습니다. 이러한 관찰 결과를 바탕으로, 본 논문에서는 저비용 모델 선택과 프롬프트-디코딩 공동 탐색을 통해 그룹별 품질-비용 전선(quality-cost fronts)을 학습한 뒤 추가 탐색 없이 온라인에서 각 테스트 작업을 일치하는 전선으로 라우팅하는 난이도 인지 방법인 COMPAS(Code-generation Optimization over Models, Prompts, And Decoding Settings)를 소개합니다. LiveCodeBench에서 동일한 탐색 예산 조건 하에, COMPAS는 pass@1을 최고 기준선의 45.9%에서 52.8%로 향상시키는 동시에 비용을 36.57달러에서 4.92달러로 절감합니다. 이러한 성능 향상은 SWE-bench의 저장소 수준 코드 생성으로도 이어져 최고 기준선의 70.0% 대비 76.0%의 작업을 해결합니다. 코드 및 재현성 아티팩트는 https://github.com/gjz78910/COMPAS 에서 확인할 수 있습니다.

원문 초록

Code generation systems make each LLM call with a model, a prompt, and decoding settings. However, existing optimization methods usually tune only part of these choices or use one fixed configuration for all tasks: global optimizers search one configuration for all tasks, routers choose only a model, and prompt optimizers keep the model and decoding settings fixed. This leaves their joint, group-specific interactions unclear. We therefore examine how these choices interact and observe that prompts and decoding settings interact, tuning effects vary by model, and the best configuration varies by task difficulty. Guided by these observations, we introduce COMPAS (Code-generation Optimization over Models, Prompts, And Decoding Settings), a difficulty-aware method that learns group-specific quality-cost fronts through low-cost model selection and joint prompt-decoding search, then routes each test task to its matching front online without further search. Under a matched search budget on LiveCodeBench, COMPAS improves pass@1 from 45.9% for the best baseline to 52.8% while reducing cost from $36.57 to $4.92. This also transfers to repository-level code generation on SWE-bench, resolving 76.0% of tasks versus 70.0% for the best baseline. Code and the reproducibility artifact are available at https://github.com/gjz78910/COMPAS.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2608.04336v2제출 시각 미확인
  2. arXiv:2608.04336v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.