COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 46 references that are in the map. First posted on arXiv 5 Aug 2026.
Builds on
33 of 46 references.
References · 33
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 682
- 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 470
- 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 372
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 356
21 more
- 2024LiveBench: A Challenging, Contamination-Limited LLM Benchmarkcited by 262
- 2021SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter Optimizationcited by 230
- 2025ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolutioncited by 174
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 142
- 2025Holistic Agent Leaderboard: The Missing Infrastructure for AI Agent Evaluationcited by 92
- 2023Bias Testing and Mitigation in LLM-based Code Generationcited by 53
- 2025Exploring the Impact of Temperature on Large Language Models:Hot or Cold?cited by 40
- 2018The Impact of Automated Parameter Optimization on Defect Prediction Modelscited by 38
- 2025Optimizing Temperature for Language Models with Multi-Sample Inferencecited by 33
- 2025Revisit Self-Debugging with Self-Generated Tests for Code Generationcited by 22
- 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
- 2025Cost-Aware Contrastive Routing for LLMscited by 16
- 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generationcited by 13
- 2025PromiseTune: Unveiling Causally Promising and Explainable Configuration Tuningcited by 12
- 2025Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspectivecited by 7
- 2025Automated Repair of Ambiguous Problem Descriptions for LLM-Based Code Generationcited by 5
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarkscited by 5
- 2025Evolving Excellence: Automated Optimization of LLM-based Agentscited by 4
- 2025GA4GC: Greener Agent for Greener Code via Multi-Objective Configuration Optimizationcited by 3
- 2026CoSPlay: Cooperative Self-Play at Test-Time with Self-Generated Code and Unit Testcited by 3
- 2025Intention Chain-of-Thought Prompting with Dynamic Routing for Code Generationcited by 2
Built on by
Not cited yet.