← News

ResearchSources: arXiv · 3 Dec 2026

COMPAS tunes model, prompt and decoding choices together for code generation

The COMPAS paper reports that jointly searching model, prompt and decoding settings per task difficulty beats baselines that tune one choice alone, on LiveCodeBench and SWE-bench.

In plain words

When a large language model writes code, developers must pick which model to call, what prompt to give it, and how it generates text. The COMPAS authors say tuning these together, per difficulty level, works better than tuning one at a time.

What was announced

The authors argue that existing optimizers tune only part of the pipeline: global optimizers fix one configuration for all tasks, routers pick only a model, and prompt optimizers leave model and decoding settings unchanged. From their experiments they report that prompts and decoding settings interact, tuning effects differ by model, and the best configuration varies with task difficulty. COMPAS addresses this by learning group-specific quality-cost fronts through low-cost model selection and a joint prompt-decoding search, then routing each test task to a matching front online without further search.

Under a matched search budget on LiveCodeBench, the paper reports pass@1 rising from 45.9% for the best baseline to 52.8%, while cost falls from $36.57 to $4.92. The authors also say the approach transfers to repository-level generation on SWE-bench, resolving 76.0% of tasks against 70.0% for the best baseline. Code and a reproducibility artifact are hosted on GitHub.

What it does not show

  • These results come from the paper's abstract only; the full article was not reviewed, so experimental details and evaluation conditions are unverified.
  • The reported gains are the authors' own measurements under their matched-budget setup; no independent confirmation is available in the supplied sources.

For security and IT teams

Scope
The method targets LLM-based code generation pipelines, with reported evaluations on LiveCodeBench and repository-level SWE-bench tasks.

Sources

Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 4 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.