NeurIPS 2026QuestionsPapersAreasAboutMarkdown

VerifyThisBench: Joint Evaluation of Code, Specifications, and Proof

Xun Deng, Barış Bayazıt, Si Cheng Zhong, Andreas Veneris, Fan Long, Xujie Si

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: benchmark or dataset · Keywords: code verification, benchmark, program synthesis, LLM evaluation, formal correctness, test filtering

Areas: Code & Coding Agents › Code Verification › Verification benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Formal Verification Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Formal Verification Benchmarks

Summary

VerifyThisBench is a new benchmark that jointly evaluates code generation, specifications, and proofs, revealing a gap between verification and true correctness and providing a filtering methodology and a relaxed variant to aid research.

Explained to a 5-year-old

We made a new test that checks if computer code does what it is supposed to do. The test looks at the code, the rules, and the proof that the code follows the rules. We found that many code programs pass the test but still do the wrong thing. To help, we added a second check that compares the code to examples, and we only ask people to look when the two checks disagree. We also made a simpler version of the test that can be used by many tools.

Explained to a 5-year-old, longer

Large language models can write computer code, but we need to make sure the code works correctly. Existing tests for code often only check if the code follows the written rules. Sometimes a program follows the rules but still does something the person wanted it not to do. The new benchmark looks at three things: the code itself, the rules it must follow, and a proof that the code matches the rules. It runs many tasks and finds that most models get very few of them right when a person checks. To improve things, the authors added a second check that uses examples to see if the code behaves as expected. This second check works like a judge that compares the code's output to what we think it should do. When the two checks disagree, a person looks at the problem and decides which answer is correct. The authors also released a simpler version of the benchmark that can be used with partial information. This helps researchers test different parts of the verification process separately. The unified environment supports seven different verification tools, making it easier to compare results across systems.

For a technical reader

The paper introduces a benchmark that evaluates code generation end-to-end, requiring models to extract specifications, write verification-aware code, and produce machine-checkable proofs. It shows that many models pass verification but are still incorrect, because verification only checks against generated specs. To mitigate this, the authors propose a filtering pipeline that runs generated tests and an LLM-based semantic judge, escalating only when they conflict. They also release a relaxed variant of the benchmark and a unified evaluation suite covering seven verification tools, enabling broader research on trustworthy program synthesis.

Problem

Existing code generation benchmarks lack guarantees of trustworthiness, and formal verification may not ensure that programs align with the original intent.

Method

The approach introduces a filtering methodology that combines automatically generated test cases with an LLM-based semantic judge, and releases a relaxed benchmark variant where partial specifications, implementations, or proofs are provided to isolate sources of difficulty.

Results

Across 1,078 tasks, six SOTA models collectively produced only 36 human-verified correct solutions, with the best model achieving 20, highlighting a gap between verification and true correctness.

Contributions

A filtering methodology combining test cases and an LLM judge, a relaxed benchmark variant with partial specifications to isolate difficulties, and a unified evaluation environment spanning seven verification tools.

Limitations and assumptions

Verification only guarantees correctness with respect to the generated specification, not the original intent.

Practical relevance

It provides a unified evaluation environment for developing trustworthy program synthesis systems.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction