VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation
Zichen Xie, Mrigank Pawagi, Yuxin Liu, Aaditi Rai, Lize Shao, John Berberian, Sicong Che, Wenxi Wang
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: benchmark or dataset · Keywords: verifiable code generation, formal specifications, proof generation, benchmark, competitive programming, software verification
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
VeriContest is a large-scale benchmark of 946 competitive-programming problems for verifiable code generation in Rust, providing expert-validated formal specifications, proofs, and test suites to measure correctness guarantees.
Explained to a 5-year-old
VeriContest is a big collection of puzzle problems. It asks computers to write code and also write down exact rules and proof steps. This helps check that the code is always correct. It is used to test new AI models that write code. It helps make sure the code works before we use it.
Explained to a 5-year-old, longer
VeriContest is a huge set of coding puzzles taken from websites like LeetCode and Codeforces. Each puzzle has a description in plain language. For each puzzle, there are exact rules written in a special language that computers can understand. There is also a piece of code that solves the puzzle and has been checked to be correct. On top of that, there are step-by-step proof explanations that show why the code always works. All of these pieces are put together so that a computer can verify that the code follows the rules and the proof is valid. This makes it possible to test AI programs that write code, not just for whether they run, but for whether they are truly correct. The benchmark is built by first checking a few puzzles by hand, then expanding them automatically while humans review the results, and finally using extra tests to ensure the rules are complete. It supports testing different parts of the pipeline separately, like just generating specifications, just generating proofs, or doing everything together. This helps researchers see where current AI models are strong and where they need improvement.
For a technical reader
VeriContest provides a comprehensive benchmark for verifiable code generation, offering formal specifications, proofs, and test suites for 946 competitive-programming problems. It uses a three-phase construction pipeline with human review and quality-assurance testing to ensure correctness. The benchmark enables isolated and compositional evaluation of specification, code, proof, and end-to-end synthesis. Empirical results show a significant gap between standard code generation and verifiable generation, highlighting proof and specification generation as key challenges.
Problem
Generating code that includes formal specifications and machine-checkable proofs is challenging, and existing benchmarks are insufficient to evaluate progress in verifiable code generation.
Method
The benchmark is built via a three-phase pipeline that starts with manually verified seed problems, expands semi-automatically with human-in-the-loop review, and uses testing as a quality-assurance layer to validate postcondition completeness. It includes expert-validated formal specifications, judge-accepted Rust code, Verus-checked proofs, and positive and negative test suites for each problem.
Results
Evaluations of ten state-of-the-art models reveal a large gap: the best model reaches 92.18% on natural-language-to-code generation but only 48.31% on specification generation, 13.95% on proof generation, and 5.29% end-to-end verification.
Contributions
The paper introduces a large-scale benchmark for verifiable code generation that supplies formal specifications, proofs, and test suites for 946 competitive-programming problems, and proposes a three-phase construction pipeline with quality-assurance testing.
Practical relevance
It provides a rigorous platform for evaluating and training code generation systems that produce machine-checkable correctness, advancing reliable software development.
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