Metraipolis › archive › dc_c50ca5d831f0
COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation — arXiv:2608.04336
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.04336
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T11:13:40.821Z
- SHA-256 of the archived text
8ede0fd553aea3280e80b51721f65344a6b967eca727b95794d4a36f62705348- Stable URL of this page
https://metraipolis.com/documento/dc_c50ca5d831f0
How to cite
COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation — arXiv:2608.04336 — arXiv (en), https://arxiv.org/abs/2608.04336 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c50ca5d831f0 (Metraipolis archive dc_c50ca5d831f0, sha256 8ede0fd553aea3280e80b51721f65344a6b967eca727b95794d4a36f62705348)
BibTeX
@misc{dcc50ca5d831f0,
title = {COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation — arXiv:2608.04336},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.04336},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c50ca5d831f0; sha256 8ede0fd553aea3280e80b51721f65344a6b967eca727b95794d4a36f62705348},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.04336. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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 this https URL . Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-06 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2608.04336 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T11:02:13.496Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-06?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).