mlsanityData to 7 Oct 2026

VERINA: Benchmarking Verifiable Code Generation

arXiv 2505.23135 ↗First posted 29 May 2025cs.LG cs.AI cs.LOcited by 30

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) are increasingly integrated in software development, but ensuring correctness in LLM-generated code remains challenging and often requires costly manual review. Verifiable code generation -- jointly generating code, specifications, and proofs of code-specification alignment -- offers a promising path to address this limitation and further unleash LLMs' benefits in coding. Yet, there exists a significant gap in evaluation: current benchmarks often focus on only individual components rather than providing a holistic evaluation framework of all tasks. In this paper, we introduce VERINA (Verifiable Code Generation Arena), a high-quality benchmark enabling a comprehensive and modular evaluation of code, specification, and proof generation as well as their compositions. VERINA consists of 189 manually curated coding tasks in Lean, with detailed problem descriptions, reference implementations, formal specifications, and extensive test suites. Our extensive evaluation of state-of-the-art LLMs reveals significant challenges in verifiable code generation, especially in proof generation, underscoring the need for improving LLM-based theorem provers in verification domains. The best model, OpenAI o3, achieves a 72.6% code correctness rate, 52.3% for specification soundness and completeness, and a mere 4.9% proof success rate (based on one trial per task). We hope VERINA will catalyze progress in verifiable code generation by providing a rigorous and comprehensive benchmark. We release our dataset on https://huggingface.co/datasets/sunblaze-ucb/verina and our evaluation code on https://github.com/sunblaze-ucb/verina.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 39 of its 68 references that are in the map. First posted on arXiv 29 May 2025.

Builds on

39 of 68 references.

References · 39

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,151
  7. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  8. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  9. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  10. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 270
  11. 2019The Lean mathematical librarycited by 127
  12. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
27 more
  1. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  2. 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
  3. 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 78
  4. 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
  5. 2024Towards AI-Assisted Synthesis of Verified Dafny Methodscited by 58
  6. 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 55
  7. 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 54
  8. 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 53
  9. 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 51
  10. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
  11. 2024AutoVerus: Automated Proof Generation for Rust Codecited by 46
  12. 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
  13. 2024Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization (Extended Version)cited by 31
  14. 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
  15. 2024Towards Understanding the Characteristics of Code Generation Errors Made by Large Language Modelscited by 28
  16. 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
  17. 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verificationcited by 25
  18. 2024Proof Automation with Large Language Modelscited by 20
  19. 2024miniCodeProps: a Minimal Benchmark for Proving Code Propertiescited by 18
  20. 2025Proving the Coding Interview: A Benchmark for Formally Verified Code Generationcited by 18
  21. 2024Selene: Pioneering Automated Proof in Software Verificationcited by 12
  22. 2024Laurel: Unblocking Automated Verification with Large Language Modelscited by 10
  23. 2025Lean-SMT: An SMT tactic for discharging proof goals in Leancited by 9
  24. 2022Aeneas: Rust Verification by Functional Translationcited by 7
  25. 2024Evaluating the Ability of Large Language Models to Generate Verifiable Specifications in VeriFastcited by 5
  26. 2020Tabled Typeclass Resolutioncited by 3
  27. 2024Verified Foundations for Differential Privacycited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 25.

30 papers.

Sort:

By area:

  1. 2026Code as Agent Harnesscited by 40
  2. 2026Large Language Model Reasoning Failurescited by 20
  3. 2025A benchmark for vericoding: formally verified program synthesiscited by 16
  4. 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithmscited by 11
  5. 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
  6. 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 7
  7. 2026Agentic Code Reasoningcited by 4
  8. 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
  9. 2025A Case Study on the Effectiveness of LLMs in Verification with Proof Assistantscited by 3
  10. 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 3
  11. 2026Agentic Proving for Program Verificationcited by 3
  12. 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
18 more
  1. 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
  2. 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
  3. 2026Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalizationcited by 2
  4. 2025Making LLMs Reliable When It Matters Most: A Five-Layer Architecture for High-Stakes Decisionscited by 1
  5. 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMscited by 1
  6. 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 1
  7. 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generationcited by 1
  8. 2026Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectorycited by 1
  9. 2026P3: Joint Program-and-Proof Planning for Verified Code Generationcited by 1
  10. 2026Vero: Can AI Agents Build Formally Verified Software Repositories?cited by 1
  11. 2026Toward an Agentic Infused Software Ecosystemcited by 0
  12. 2026Automating Formal Verification with Agent-Guided Tree Searchcited by 0
  13. 2026Projectional Decoding: Towards Semantic-Aware LLM Generationcited by 0
  14. 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
  15. 2026An AI Approach to Verified Production Cryptographic Librariescited by 0
  16. 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMscited by 0
  17. 2026From Verification Failures to Reusable Guidance for Coding Agentscited by 0
  18. 2026Self-Spec Verifiable Code Generationcited by 0