arXiv(opens in a new tab)cs.SEOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.28679

VerifierBench: Benchmarking the Generation of Executable Verifiers for LLM Agents

Jianing Yin, Ziyi Chen, Hao Wang, Yiyou Sun, Zijian Jin, Dawn Song, Daoan Zhang

Abstract

Agents need reliable ways to validate their outputs, both when completing tasks and when filtering synthetic training data. We study verifier generation: from the instruction and environment available for solving a task, an agent writes an executable verifier that must accept every valid solution and reject invalid ones. We introduce VerifierBench, a benchmark of 222 tasks from six agent benchmarks spanning tool-call, state-based, and code verification, with 4,993 hidden test cases that include alternative valid solutions and attacks; Verifier4Verifier (V4V), a six-check audit, screens its source verifiers and test suites. Across 19 models in a common agent harness, normalized balanced accuracy ranges from 10.6 to 62.1, with generated verifiers consistently rejecting invalid solutions more reliably than they accept valid ones. This apparent strength can mask overly restrictive verification: most false rejections in the analyzed records come from verifiers that accept no tested solution to a task. Case studies reveal unsupported assumptions about solution formats, tool use, and code changes that exclude valid solutions. These errors survive self-testing because agents test solutions that share the verifier's mistaken assumptions, or submit verifiers without confirming that any correct solution passes. These findings suggest testing both whether a verifier accepts a correct solution and whether it accepts other solutions permitted by the task. The project page 1^{1} and dataset 2^{2} are publicly available.

1 Introduction

In data-oriented recursive self-improvement (RSI) (Yin et al., 2025; Min et al., 2026), agents construct training data for their own subsequent learning and can jointly generate tasks and verification functions that provide reinforcement learning rewards (Zhou et al., 2026). These verifiers judge candidate solutions, determining which receive rewards or enter the training data. An incorrect verifier can therefore repeatedly reward a violation or discard a valid solution, making the reliability of agent-generated verifiers critical to this learning process.

To examine this reliability, we study verifier generation (Zhang et al., 2025; Dinella et al., 2022): given the instruction and environment a solver would receive, an agent writes an executable verifier that returns PASS or FAIL for any candidate solution. Unlike a solver, which needs one valid solution, a verifier must accept all valid solutions while rejecting invalid ones. It must therefore distinguish task requirements from choices that can vary across valid solutions. Figure 2 shows a verifier rejecting a permitted read-only query because the agent omits its tool from an allowlist. The self-tests omit the same query and never establish that a complete valid solution passes.

A verifier that accepts one expected solution may still reject other valid ways to complete a task, while one that catches ordinary mistakes may still accept solutions that exploit gaps in its checks. Evaluating verifier generation therefore requires testing both acceptance of valid alternatives and rejection of invalid solutions, including deliberate attacks. Prior work evaluates generated test assertions (Dinella et al., 2022), unit tests (Jain et al., 2025), issue-reproducing tests (Mündler et al., 2024), and executable specifications (Endres et al., 2024; Chen et al., 2026). We extend this line of evaluation to agent task completion, where correctness can depend on tool interactions, resulting environment states, and code changes. To this end, we build VerifierBench: 222 tasks from six open-source agent benchmarks with 4,993 hidden test cases, comprising reference solutions, valid alternatives, ordinary errors, and attacks on verification. This design tests whether generated verifiers distinguish task success from failure across differ-

1^{1}https://verifierbench.github.io/

2^{2}https://huggingface.co/datasets/Catherine1213/VerifierBench ent ways of carrying out the same task. Reliable measurement also requires trustworthy evaluation labels. Because both the benchmarks' source verifiers and our constructed test cases can contain errors, we audit them with Verifier4Verifier (V4V), six checks that include replay, repeatability, and mutation testing. Source verifiers that pass this audit serve as the reference verifiers.

Evaluating 19 models in a common harness and 17 further model–harness configurations, we report three findings. First, generated verifiers accept valid solutions less reliably than they reject invalid ones: as reported in Section 3.2, true positive rates range from 21.1% to 70.2%, whereas true negative rates range from 79.2% to 96.3%. Second, as analyzed in Section 3.4, these false rejections concentrate in all-reject verifiers, which return FAIL on every test case of their task and produce 87.9–96.0% of false rejections in the analyzed records. Third, in selected cases examined in Section 4, these verifiers impose checks that the task does not require, and the agents’ self-tests either exercise only solutions those checks allow or never confirm that any valid solution passes. We thus contribute a benchmark and screening procedure for verifier generation in Section 2, together with an analysis in Section 5 that motivates testing generated verifiers on permitted variations, not only on a chosen solution.

References (71)

  • $τ^2$-Bench: Evaluating Conversational Agents in a Dual-Control Environment
  • Acebench: A comprehensive evaluation of llm tool usage
  • Zaoyu Chen, Jianbo Dai, Boyu Zhu, Jingdong Wang, Huiming Wang, Xin Xu, Haoyang Yuan, Zhijiang Guo, and Xiao-Ming Wu. 2026. Codespecbench: Benchmarking llms for executable behavioral specification generation. arXiv preprint arXiv:2604.12268. (opens arXiv in a new tab)
  • CheckerBench: Can Long-Horizon Agents Synthesize Static-Analysis Checkers?
  • Tracedance: An automated system for building agent behavior benchmarks from real-world agent deployment traces (opens arXiv in a new tab)
  • Original Verifier-Bench scripts and annotations use Apache 2.0; upstream-derived content retains its source terms
  • Table 7 identifies every excluded task
  • D: Default-argument conflict
  • The SWE-bench parser misreads <- in pytest output as a test status, and an empty test-count denominator receives full credit, allowing a no-op test case to pass
  • Table 8 summarizes the recorded outcomes and their supporting evidence
  • A task–operator pair defines one configuration, rather than one test case or one execution
  • Paired analysis compares $V_{b}$ with $V_{a,b}$ , where the same auxiliary mutation b is applied to both; it provides only conditional detection evidence and is not included in the single-target detection rate
  • The second column reports frozen screening statuses
  • These checks support reproducibility for the tested cases, while the 45 exclusions document specific source defects found during screening
  • Table 10 describes the nine construction categories
  • The remaining groups are reference solutions (222), cosmetic variants (840), alternative implementations or paths (504), hacks (796), and process violations (2)
  • Every final harness pair uses the same 222 tasks, with missing results retained in the denominator
  • For Qwen3.7 Plus, Codex raises TNR from 82.6% with the Pi harness to 92.1%, but lowers TPR from 57.6% to 34.0%; BA $_{norm}$ falls from 40.2 to 26.1
  • The global limits are 5,400 seconds per task and 32,768 output tokens per reply
  • Recorded versions include Pi harness 0.84.2, Codex 0.149.0, Claude Code 2.1.263, Gemini CLI 0.60.0, OpenClaw 2026.6.34, and mini-swe-agent 2.4.6
  • Scores are rounded independently to one decimal place
  • All 127 selected state and code traces per condition contain such a write
  • They use the same generated verifiers and judgment rounds as the overall ranking
  • Across the 19 models, mean TPR is 79.2% on tool-call tasks, 27.7% on state tasks, and
  • These are arithmetic means of the models' task-averaged rates
  • Every entry has $P + F + U = N$
  • Valid-output rates across all groups range from 88.2% to 99.9%
  • This observed response pattern on the test suite does not establish that the verifier returns a constant decision on all possible inputs
  • Rows follow the order of the configurations using the Pi harness in Table 2
  • Table 23 separately reports whether each verifier accepts none, some, or all positive cases
  • We then use the Astra trace batch to examine source-file restrictions, tool-call handling, and incomplete testing
  • Outcomes on positive test cases and valid-output rates for all 19 configurations using the Pi harness
  • Within each task, the models are evaluated on identical test-case contents
  • On ACE preference 17, GPT-5.6-sol attempts to parse a supplied profile string as structured data and rejects all six positives when parsing fails
  • Table 4 summarizes cases from the Astra trace batch for which the public requirements support attributing rejection to an unjustified check
  • The LOW verifier's allowed directories omit lib/mpl_toolkits/; the HIGH verifier treats Python files under lib but outside
  • >Tool-call: update a user profile (ACE preference 17)</td></tr><tr><td>GPT-5.6-sol</td><td>0/6</td><td>18/18</td><td>0</td></tr><tr><td>Claude Opus 4.8</td><td>6/6</td><td>6/18</td><td>0</td></tr><tr><td>Kimi K3</td><td>6/6</td><td>16/18</td><td>0</td></tr><tr><td colspan=
  • They respectively require the assistant role, explicitly reject the user-call wrapper, or omit its handling branch
  • Their checks reject legitimate auxiliary reads as unsupported operations, producing 18 positive FAIL decisions
  • Their positive cases contain this item, causing the selected order to fail the generated category/count condition
  • The Claude Code/HIGH verifier recognizes only Mechanical Keyboard and Office Chair, so its count falls below the required three items
  • All eight generation traces acknowledge incomplete positive validation
  • The generated checker compares expected argument values with values obtained using
  • The positive test case vgb-c-e6ede484b58a7c02 omits this parameter in an insertion call and receives FAIL, while the designated fully specified solution receives PASS
  • Negative test case vgb-c-9c2f334fedb91aae preserves those calls and adds another call using the same tool; the generated verifier returns PASS. The default omission is explicitly justified by the tool schema
  • They do not test omission of the default argument
  • Its recorded generation includes a test described as a function call, constructed by placing a JSON dictionary inside the function's parentheses
  • A keyword-argument list is neither a JSON value nor a Python literal expression, so neither operation parses that text
  • This case supports input incompatibility and inadequate self-test coverage, rather than a claim that the model ignored an explicit syntax requirement
  • The task requires sending a movie recommendation
  • The caller returns a negative decision when safe(code) is false (line 23), before reaching vgb_env.run_public (line 28)
  • Its complete-verifier self-tests return:
  • The contrast connects the findings in Sections 4.1 and 4.2: an unnecessary restriction can reject several correct solutions while remaining unchallenged by successful self-tests
  • Each comparison connects the task requirements, generated checks, self-tests, and hidden judgments
  • The tool definition makes mutation_type optional, with default insertion; sequence and reference_sequence are required
  • mutation_type
  • analyze_dna_sequence
  • They repeatedly trigger the same comparison error
  • Because the keyword list omits Headphones, the generated check fails to recognize all three office items and rejects the order
  • The input provides parsed, containing structured calls and arguments, and raw, containing the calls as emitted
  • A raw string that is not JSON causes rejection even when the supplied structured calls are valid
  • It checks the requested bookings and cancellation arguments without making a separate raw JSON parse a prerequisite
  • The shell fails because unshare is unavailable; no successful verifier result is observed
  • This text is not JSON, so it triggers the additional Codex rejection condition
  • Both verifiers check the exchange arguments and compare the candidate’s resulting environment state with an expected state
  • It relies on replaying that transcript to obtain a usable target state for comparison
  • The generated verifier includes both an expected transcript and the observed state as a fallback, then compares candidate execution with the target and checks the required exchange arguments
  • reasoned, since local exec is blocked
  • The correct exchange passes; incorrect, empty, and malformed examples fail
  • The precise internal replay error is not recorded
  • The successful decisions are consistent with the generated checks having access to a target state obtained from actual environment execution