# Bayesian control for coding agents

Source: [Bayesian control for coding agents](<https://www.sota2.com/research/paper/6a3b64d4206542251d7c98f2>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-06-25T05:00:34.132Z

Authors: Theodore Papamarkou, Vladislav Smirnov, Viktor Mazanov, Artem Vazhentsev, Preslav Nakov, Timothy Baldwin, Artem Shelmanov

Published: 2026-06-23T11:41:32.000Z

## Abstract

Modern coding agents pair LLM generators with various tools, including cheap diagnostics and expensive verifiers. The tool-use decisions are typically governed by orchestrators that often use fixed rules and ignore uncertainty. We formulate orchestration as cost-sensitive sequential hypothesis testing: a Bayesian controller maintains a belief over candidate correctness and dynamically decides whether to gather more evidence, refine the candidate, verify it, or stop. Across six generators and nine coding benchmarks, Bayesian control proves to be most valuable when verification is costly and critics are informative but imperfect. Beyond control, the belief state yields an interpretable correctness score that outperforms token-probability and raw tool-success baselines for uncertainty quantification.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Uncertainty Quantification on LCB Hard](<https://www.sota2.com/research/sota/uncertainty-quantification-on-lcb-hard.md>): Uncertainty Quantification; LCB Hard; PRR: 91.1.

- [Bug-fixing on HumanEvalFix (held-out 25% eval)](<https://www.sota2.com/research/sota/bug-fixing-on-humanevalfix-held-out-25-percent-eval.md>): Bug Fixing; HumanEvalFix held-out 25% (eval); Utility Difference (Δπ): 5.2.

- [Repository-level patch generation on SWE-Bench Lite (held-out 25% eval)](<https://www.sota2.com/research/sota/repository-level-patch-generation-on-swe-bench-lite-held-out-25-percent-eval.md>): Repository-level patch generation; SWE-Bench Lite (held-out 25% eval); Utility Difference (Δπ): 62.

- [Uncertainty Quantification on LCB Medium](<https://www.sota2.com/research/sota/uncertainty-quantification-on-lcb-medium.md>): Uncertainty Quantification; LCB Medium; PRR: 82.

- [Function-level synthesis on LCB hard (held-out 25% eval)](<https://www.sota2.com/research/sota/function-level-synthesis-on-lcb-hard-held-out-25-percent-eval.md>): Function-level synthesis; LCB hard (held-out 25% eval); Utility Difference (Δπ): 7.6.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2606.24453>)

[PDF](<https://arxiv.org/pdf/2606.24453.pdf>)
