Manuscript Offprint

arXiv:2610.18760

Beyond the Verdict: Agentic Code Judging with Verifiable Feedback

Zheye Deng, Sha Li, Changlong Yu, Xin Liu, Qin Lu, Priyanka Nigam, Yangqiu Song

ABSTRACT

Test-time scaling for large language models (LLMs) can involve generating multiple candidate solutions for selection or revising an earlier attempt. To guide selection and revision, we need a verifier that can estimate candidate correctness and provide evidence of failure. In competitive programming, however, official judging systems provide authoritative verdicts under finite submission budgets, without revealing failure explanations or failing inputs. To provide informative feedback without consuming official submissions, we formulate a task in which a model judges and diagnoses a candidate program using only the problem statement and source code, with generated counterexamples serving as checkable evidence. To evaluate this task, we build USACO-JUDGE from the USACO 2026 contests, using accepted and unaccepted programs written by human experts and multiple LLMs. We then train ARBITER, a 35B mixture-of-experts (MoE) agentic verifier, with reinforcement learning in a generic execution sandbox. Training raises counterexample success on incorrect programs from 40.61% to 62.67% and mean binary verdict accuracy on USACO-JUDGE from 71.41% to 87.41%, approaching frontier verification performance. Beyond verification, ARBITER outperforms baselines in both code selection and refinement. In an IOI 2026 case study, ARBITER-guided refinement raises GPT-OSS-120B's expected score above the gold-medal threshold under the official submission limit.

1 INTRODUCTION

Figure

Figure

Figure 1: Comparison of ARBITER with an online judge (left) and the IOI 2026 case study (right). Under the same 50-submission cap per problem, the expected ARBITER score crosses the gold threshold in round 4; the expected online-judge-feedback score remains below it.

Test-time methods allow language models to continue working after an initial answer. They can generate several candidates for selection or revise an earlier attempt (Snell et al., 2025; Shinn et al., 2023; Venkatraman et al., 2025). Each use of additional computation depends on feedback about a candidate already produced. Selection requires a judgment about which candidate to keep; revision requires information about a particular failure. Learned verifiers and reward models have supported candidate selection and guided search across reasoning tasks (Cobbe et al., 2021; Lightman et al., 2024; Zhang et al., 2025). We ask how verification feedback can support both uses while grounding suspected failures in evidence that can be checked independently.

Competitive programming makes this question concrete. A problem statement specifies intended behavior, and an official judge tests candidate programs against hidden inputs and resource limits (Maggiolo & Mascellani, 2012; Mareš,

2021). The setting has driven work on code generation and inference-time computation (Shi et al., 2024; El-Kishky et al., 2025; Samadi et al., 2026). When a solver compares several candidates or revises an earlier attempt, it needs feedback before another official submission. Public examples and generated tests can help with either decision (Chen et al., 2023; Fu et al., 2026), but passing them does not establish acceptance on hidden tests. The official judge determines acceptance under its test suite, but usually provides only a verdict or score, without a failing input or explanation (Xu et al., 2026). In settings with a finite submission budget, that feedback cannot be requested freely. A code judge can estimate correctness and describe a suspected fault for one candidate (Tong & Zhang, 2024), but its explanation need not contain a replayable failing input. Test generators can target known-faulty submissions or supply tests for debugging and selection (Sinha et al., 2025; Prasad et al., 2025; Li et al., 2025; Shi et al., 2026). The joint task remains underexplored: given a single candidate of unknown quality, predict whether it should be accepted and, if a fault is suspected, produce a candidate-specific counterexample whose legality and effect can be checked. We formulate this as single-candidate verification with counterexample-grounded diagnosis.

Given a problem statement and candidate program, ARBITER uses a generic execution sandbox to return a verdict and diagnosis, plus a candidate-specific counterexample generator for suspected failures other than compile errors (Figure 1, left). It sees neither hidden tests nor a reference solution. During training and evaluation, judge infrastructure checks whether generated inputs are legal and break the candidate, providing executable evidence for suspected failures. We build USACO-JUDGE to evaluate acceptance judgments alongside failure discovery, and train ARBITER with reinforcement learning. On the same Qwen3.6-35B-A3B backbone, overall counterexample success rises from 16.10% without tools to 40.61% with the agentic scaffold and 62.67% after training. On USACO-JUDGE, mean binary verdict accuracy also rises from 71.41% with the agentic scaffold to 87.41% after training. The verdict helps rank completed programs. For a rejected candidate, the diagnosis gives the solver a suspected failure to investigate in its next attempt. In an IOI 2026 case study, ARBITER-guided refinement brings GPT-OSS-120B to 385.46 expected points under the official submission limit, above the gold threshold. It reaches 334.6 expected points with online-judge feedback (Figure 1, right). To conclude, our contributions are:

• We formulate a task for judging a single candidate program and explaining any unaccepted verdict, and use counterexamples that break the program as a verifiable proxy for diagnosis quality.

• We release USACO-JUDGE, which evaluates correct and incorrect programs from human experts and multiple LLMs against official test sets from the USACO 2026 contests.

• We introduce ARBITER, a 35B MoE agentic verifier trained with reinforcement learning, and show substantial gains over its base model and strong results on USACO-JUDGE, code selection, and refinement.

References (89)