Manuscript Offprint

arXiv:2609.02067

ToolGate: An Executable Acceptance Pipeline for Tool-Dependent Scientific Benchmark Construction

Ke Zhang, Yankang Liu, Roya Zandi, Maziar Raissi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Scientific benchmarks are commonly built by domain experts who write tasks and cross-check one another's work, or who adapt existing material from textbooks, published papers, and online resources. These routes can produce strong evaluations, but they require substantial per-item labor. Language models can reduce this repeated work by proposing candidates quickly. The remaining problem is acceptance. We target scientific questions whose answers require computations with specialist software rather than unaided reasoning alone. A candidate is invalid if its script fails or returns a different answer, or trivial if a model answers it without the software. We present ToolGate, which treats every generated item as a proposal and keeps it only if three gates pass. First, an executable solution script must reproduce the proposed answer when run with the scientific software. Second, randomized no-tool screening rejects candidates that models can already solve from the prompt alone. Third, a tool-using agent must solve each survivor within a fixed time limit. We instantiate ToolGate in FEniCSx with 500 generation attempts. The local-verification gate retains 478 candidates. For final reporting, we rescreen this pool after generation: two randomized no-tool screens exclude 222 from the reported pool, and direct GPT-5.5 API calls at medium reasoning (the API default) exclude another 121. Of the remaining 135, a GPT-5.5 Codex CLI agent with access to FEniCSx solves 130; exact deduplication leaves 128 unique protocol survivors. ToolGate turns repeated answer checking and difficulty screening into an auditable process while leaving domain design and final review to experts.

Introduction

Scientific benchmarks are commonly built by domain experts who write tasks and cross-check one another's work, or who adapt existing material. GPQA asks domain experts to write questions and other experts to solve and validate them (Rein et al. 2024). Scientific-agent benchmarks including ScienceAgentBench, SciCode, and CORE-Bench adapt tasks, data, and code from published research, followed by expert curation and review (Chen et al. 2025; Tian et al. 2024; Siegel et al. 2024). These approaches can produce strong evaluations, but they repeat expensive work for every item: writing or extracting a task, solving it, and independently checking the result.

Language models can reduce this labor by quickly proposing a question, an answer, and an attempted solution. These outputs still need to be checked. The attempted solution may fail or return a different answer. The question may also be too easy: a model may answer it from wording, prior knowledge, or reasoning alone. Such a question is not useful for evaluating whether a model can use scientific software. Prior work addresses related problems in other settings. APIGen and AutoCodeBench execute and filter generated data to check correctness, while AutoBencher measures and optimizes question difficulty (Liu et al. 2024; Chou et al. 2025; Li et al. 2025). Generating candidates quickly therefore does not solve the main problem: we still need to check each one and decide whether to keep it.

We present ToolGate, a pipeline that checks each generated candidate before accepting it. In our study, each candidate contains a question, four answer options, a proposed answer, and a solution script that calls scientific software. The multiple-choice format lets every stage compare its result with the same proposed answer automatically. ToolGate uses three gates (Figure 1). First, it runs the script and requires its result to agree with the proposed answer. Second, it asks models to answer using only the question and options, without access to the scientific software, and rejects candidates those models can solve. Third, it gives the remaining candidates to an agent that can write and run code with the software, and keeps those it solves. A candidate passes only if it meets all three conditions.

ToolGate can be used when scientific software can be called from code and produces outputs that can be checked automatically. We test it with the FEniCSx finite-element software stack (Baratta et al. 2023). FEniCSx is a widely used open-source platform for solving partial differential equations with the finite-element method. A user describes meshes, function spaces, and variational forms in Python, and FEniCSx assembles and solves the resulting numerical systems. Our questions ask for exact outputs from multistep FEniCSx computations, so the intended solution is to write and run code.

Of 500 generated candidates, 478 have scripts that reproduce their proposed answers. For final reporting, we rescreen these candidates after generation. Two randomized no-tool screens exclude 222 from the reported pool, leaving 256. Direct GPT-5.5 API calls at medium reasoning (the API default), without access to FEniCSx, exclude another 121. Of the remaining 135, a GPT-5.5 Codex CLI agent with access to FEniCSx solves 130 under the reported test settings. These results show that asking an LLM to generate a tool-dependent question is not enough. We must test whether the specified models fail without the software and whether a tool-enabled agent succeeds with it.

These measurements are reliable only if the screening protocol is sound. We show that a fixed option order lets a model's letter preferences masquerade as question difficulty, and that unconstrained generation repeatedly produces a few templates that often pass; the reported screens therefore randomize option order and grade by answer value, and exact duplicate questions are removed before release.

Our contributions are:

  • ToolGate, which accepts a generated candidate only if its script reproduces the proposed answer, none of the specified no-tool screens answers it by majority, and the specified tool-enabled agent succeeds;

  • a 500-attempt FEniCSx study in which 478 candidates pass local verification, followed by post-generation re-screening in which two randomized no-tool screens exclude 222 from the reported pool, a GPT-5.5 no-tool API screen at medium reasoning excludes another 121, and a GPT-5.5 Codex CLI agent with access to FEniCSx solves 130 of the remaining 135, leaving 128 unique protocol survivors after exact deduplication; and

  • an analysis showing how the screening model and answer presentation change which candidates survive, together with randomized value grading and exact deduplication as practical safeguards.

References (18)