PreprintCited by 7Logic, programming, and type systemsSoftware Engineering ResearchTeaching and Learning Programming

AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement

Open access
Aggarwal, Pranjal, Parno, Bryan, Welleck, Sean·2024·arXiv

Abstract

Automated code generation with large language models has gained significant traction, but there remains no guarantee on the correctness of generated code. We aim to use formal verification to provide mathematical guarantees that the generated code is correct. However, generating formally verified code with LLMs is hindered by the scarcity of training data and the complexity of formal proofs. To tackle this challenge, we introduce AlphaVerus, a self-improving framework that bootstraps formally verified code generation by iteratively translating programs from a higher-resource language and leveraging feedback from a verifier. AlphaVerus operates in three phases: exploration of candidate translations, Treefinement -- a novel tree search algorithm for program refinement using verifier feedback, and filtering misaligned specifications and programs to prevent reward hacking. Through this iterative process, AlphaVerus enables a LLaMA-3.1-70B model to generate verified code without human intervention or model finetuning. AlphaVerus shows an ability to generate formally verified solutions for HumanEval and MBPP, laying the groundwork for truly trustworthy code-generation agents.

AI snapshot

Written from the paper’s full text.

TL;DR

AlphaVerus is a self-improving framework that bootstraps formally verified code generation by iteratively translating Dafny programs into Verus, refining candidates with verifier feedback, and filtering misaligned specifications/programs. It enables a LLaMA-3.1-70B model to generate verified code without human intervention or finetuning, reaching 32.9% pass@256 on HumanEval-Verus and 65.7% on MBPP-verified.

Key findings

  • AlphaVerus translates around 45% of DafnyBench into Verus programs that are verified and aligned according to the critique models; the resulting DAFNY2VERUS-COLLECTION contains 247 translated programs, 102 error trajectories, and 579 exploit pairs.
  • With LLaMA-3.1-70B, AlphaVerus reaches 32.9% pass@256 on HumanEval-Verus and 65.7% on MBPP-verified, improving over exploration alone (27.1% and 59.1%) and outperforming GPT-4o baselines (27.1% and 35.9%).
  • Treefinement outperforms linear refinement and best-first search variants on the reported benchmarks, and the critique phase is critical: without it, the model increasingly learns reward hacks such as `assume(false)`.
  • The collected exemplars transfer without finetuning: GPT-4o improves from 27.1% to 37.7% on HumanEval, Qwen-32B from 14.1% to 27.1%, and LLaMA-3.1-8B from 11.8% to 18.8%.

Methods

  • AlphaVerus iterates three phases: exploration (parallel sampling of Dafny-to-Verus translations), Treefinement (tree search over program refinements using verifier feedback, with REBASE node selection), and critique (rule-based, comparison, and exploit models to filter misaligned specs/programs).
  • The source domain is DafnyBench; the exploration model is initialized with a Verus syntax file and 5 examples from the Verus repository. Translation uses 256 examples per program, Treefinement uses breadth 32 and depth 8, α=0.1, β=0.03, temperature 0.7, top-p 1.0, and max tokens 2048.
  • Downstream evaluation requires generating both implementation and proofs from a specification, measured by pass@K. HumanEval-Verus is split from 49 programs into 85 functions; MBPP-verified contains 78 programs. Contamination filtering uses GPT-4 similarity checks against collected exemplars.

Limitations

  • The paper states that the critique phase is the one part of the pipeline lacking formal guarantees, and that specifications themselves are not verified; it also notes that more complex reward hacking may require future critique models to evolve.
  • The paper states that fine-tuning models and developing learning objectives remain interesting future directions, and that the method relies on a verifier plus prompted critique models rather than formal guarantees on specification alignment.
  • Evident from the text: evaluation is limited to Dafny-to-Verus translation and two verified benchmarks, translation covers about 45% of DafnyBench, and downstream pass rates leave many specifications unsolved; generalizability to other source/target languages is not demonstrated.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2412.06176

Cites

0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

27 of 51 cited sources checked · 20 supported · 2 flagged · accuracy not yet measured

  • Premisecitation

    There is no guarantee on the correctness of LLM-generated code.

    “Automated code generation with large language models has gained significant traction, but there remains no guarantee on the correctness of generated code.”
    Quote in the paperSubstantial claim1 of 3 sources checked
    • cites Hendler, 2023 source
    • cites Pearce et al., 2021

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Perry et al., 2023 source
  • Findingcitation

    Treefinement leads to substantial gains over vanilla refinement strategies that resemble those used in concurrent work.

    “We show that Treefinement leads to substantial gains over vanilla refinement strategies that resemble those used in concurrent work (Yang et al., 2024;Chen et al., 2024).”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites Yang et al., 2024 source
    • cites Chen et al., 2024 source
  • Premisecitation

    Unlike other bootstrapping methods that discard anything but correct solutions, AlphaVerus uses both syntactically correct programs and fully verified programs for further improvement, expanding the learning signal.

    “Unlike other methods of bootstrapping (Zelikman et al., 2022;Lin et al., 2024) that discard anything but correct solutions, we use both syntactically correct programs and fully verified programs for further improvement, expanding the learning signal.”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites Zelikman et al., 2022 source
    • cites Lin et al., 2024 source
  • Findingcitation

    AlphaVerus is the first method to achieve non-zero formally verified code generation performance on a verified version of HumanEval.

    “In particular, AlphaVerus is the first method to achieve non-zero formally verified code generation performance on a verified version of HumanEval (Chen et al., 2021), thus establishing a starting point for code generation models that generate increasingly complex-yet trustworthy-code.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites Chen et al., 2021 source
  • Premisecitation

    MBPP-verified contains 78 programs from the original MBPP dataset.

    “In particular, MBPP -verified is sourced from (Yang et al., 2024;Misu et al., 2024) and contains 78 programs from the original MBPP dataset (Austin et al., 2021).”
    Quote in the paperNot a substantial claim3 of 3 sources checked
    • cites Yang et al., 2024 source
    • cites Misu et al., 2024 source

      Section 3.1 identifies the paper’s dataset as derived from MBPP, supporting the claimed MBPP origin. But it calls that dataset MBPP-san-DFY and reports 178 test problems; section 3.2 reports 50 human-written verified problems. Our copy does not identify an MBPP-verified dataset containing 78 programs. (LLM, conf=0.84)

      Experimental — accuracy not yet measured
    • cites Austin et al., 2021 source
  • Classified as probably not a substantial claim. 38
  • May combine two claims. 35
  • The quote only partly states this claim. 1
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Various refinement strategies use external feedback from knowledge bases, code interpreters, tool outputs, or separately trained reward models.

    “Various refinement strategies use external feedback from knowledge bases (Peng et al., 2023;Chern et al., 2023), code interpreters (Chen et al., 2023;Zhang et al., 2023), tool outputs (Gou et al., 2024;Schick et al., 2023), or separately trained reward models (Akyürek et al., 2023).”
    Quote in the paperNot a substantial claim3 of 3 sources checked
    • cites Peng et al., 2023 source
    • cites Chen et al., 2023 source
    • cites Akyürek et al., 2023 source

      The citation is attached to the claim about separately trained reward models. Section 3 (Background; page unavailable) says RL4F trains a separate critique generator to provide natural-language feedback while leaving the task model unchanged. The Learning via Policy Gradient section describes reward as a computed similarity metric, not feedback from a separately trained reward model. (LLM, conf=0.88)

      Checked by a reasoning model — may be wrong.

      Experimental — accuracy not yet measured
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Existing baseline methods for proof annotations in Verus lack contamination analysis.

    “Notably, existing baseline methods for proof annotations in Verus (Yang et al., 2024;Chen et al., 2024) lack such contamination analysis.”
    Quote in the paperNot a substantial claim1 of 2 sources checked
    • cites Yang et al., 2024 source

      The paper does not lack contamination analysis: its “General threats to validity” section explicitly considers whether the LLM had seen benchmark tasks in training data. It examines the public availability of Verus proofs and the baseline LLM’s performance on potentially leaked tutorial tasks. The analysis is qualitative, but it directly contradicts the claim that none was conducted. (LLM, conf=0.87)

      Checked by a reasoning model — may be wrong.

      Experimental — accuracy not yet measured
    • cites Chen et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Premisenone given

    Generating formally verified code with LLMs is hindered by the scarcity of training data and the complexity of formal proofs.

    “However, generating formally verified code with LLMs is hindered by the scarcity of training data and the complexity of formal proofs.”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites Sun et al., 2023 source

      Appendix A.4.5 attributes GPT-4’s difficulty with current Dafny syntax to likely limited training data, supporting the data-scarcity point in that specific setting. The Introduction identifies the need for human expertise in writing formal specifications as the main obstacle; it says the proof step can often be automated, so it does not support formal-proof complexity as the obstacle claimed. (LLM, conf=0.86)

      Experimental — accuracy not yet measured
    • cites Lohn & Welleck, 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Premisecitation

    These methods have achieved significant success in proving complex mathematical theorems, but their application to formal verification of code is typically limited to theorems from existing projects or simple program properties rather than end-to-end verified code generation.

    “While these methods have achieved significant success in proving complex mathematical theorems, their application to formal verification of code is typically limited to theorems from existing projects (e.g., First et al. (2023)) or simple program properties (Lohn & Welleck, 2024) rather than end-to-end verified code generation.”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites First et al. (2023) source
    • cites Lohn & Welleck, 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Recent studies have shown that increasing inference-time compute can improve performance in reasoning, mathematics, and code generation via meta-generation strategies such as parallel sampling, tree search, and refinement.

    “Recent studies have shown that increasing inference-time compute can improve performance in reasoning, mathematics, and code generation via meta-generation strategies (Welleck et al., 2024) such as parallel sampling (Wang et al., 2022;Aggarwal et al., 2023;Sun et al., 2024), tree search (Yao et al., 2024;Wu et al., 2024a), and refinement (Welleck et al., 2023;Madaan et al., 2023;Snell et al., 2024”
    Quote in the paperNot a substantial claim1 of 3 sources checked
    • cites Welleck et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Wang et al., 2022 source
    • cites Yao et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Automated formal verification has a long-standing history in interactive theorem provers.

    “Automated formal verification has a long-standing history in interactive theorem provers”
    Quote in the paperNot a substantial claim1 of 3 sources checked
    • cites Redmon & Sanchez-Stern, 2016

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Kaliszyk et al., 2018

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Polu & Sutskever, 2020 source
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Premisecitation

    SAFE++ proposes translating an existing Rust dataset to Verus and training generation and refinement models on the collected data.

    “Second, the concurrent work SAFE++ (Chen et al., 2024) proposes translating an existing Rust dataset to Verus and training generation and refinement models on the collected data.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites Chen et al., 2024 source

      The Introduction and §4.1 say the paper translates programs from existing datasets into Verus-compatible Rust and uses the resulting data for training. Section 3.3 describes joint training for proof generation and self-debugging, rather than separate generation and refinement models. The paper calls the framework SAFE and its self-debugging variant SAFE+, not SAFE++. (LLM, conf=0.87)

      Experimental — accuracy not yet measured
  • Classified as probably not a substantial claim.

    Premisecitation

    AutoVerus prompts GPT-4 with a pipeline of hand-engineered prompts tailored to specific errors and programs.

    “First, AutoVerus (Yang et al., 2024) prompts GPT-4 with a pipeline of hand-engineered prompts tailored to specific er-rors and programs.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites Yang et al., 2024 source
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    An alternative paradigm integrates language models with languages that offload proving to automated reasoning tools (e.g., SMT), including Dafny and F*.

    “An alternative paradigm integrates language models with languages that offload proving to automated reasoning tools (e.g., SMT), including Dafny (Leino, 2010;Sun et al., 2023;Loughridge et al., 2024) and F* (Swamy et al., 2016;Chakraborty et al., 2024).”
    Quote in the paperNot a substantial claim1 of 3 sources checked
    • cites Leino, 2010 source
    • cites Sun et al., 2023 source
    • cites Loughridge et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Various algorithms aim to improve a language model using data generated by the model along with an external feedback source, termed self-improvement.

    “Various algorithms aim to improve a language model using data generated by the model along with an external feedback source (Zelikman et al., 2022;Wang et al., 2024;Hosseini et al., 2024), which is colloquially termed self-improvement.”
    Quote in the paperNot a substantial claim2 of 3 sources checked
    • cites Zelikman et al., 2022 source
    • cites Wang et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Hosseini et al., 2024 source
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Common approaches rely on variants of expert iteration or rejection finetuning, where multiple solutions are sampled, and an external signal selects positive ones for model fine-tuning.

    “Common approaches rely on variants of expert iteration or rejection finetuning (Polu et al., 2022;Zelikman et al., 2022;Yuan et al., 2023;Lin et al., 2024), where multiple solutions are sampled, and an external signal selects the positive ones for model fine-tuning.”
    Quote in the paperNot a substantial claim2 of 3 sources checked
    • cites Polu et al., 2022 source
    • cites Zelikman et al., 2022 source

      The Introduction (p. 1) and §3.2 (p. 4) support filtering generated rationales by whether they lead to the correct answer and fine-tuning on the retained examples. But the claim’s description of sampling multiple solutions is not how this paper presents STaR: §5 (p. 9) describes more, higher-temperature sampling as a counterproductive alternative to its rationalization step. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
    • cites Yuan et al., 2023 source
  • May combine two claims.

    Findingreasoning

    On tasks requiring array manipulation, the synthesized specification may omit conditions on the array length, which results in trivial solutions such as returning an empty array.

    “This includes subtle forms of mis-specification; for instance, on tasks requiring array manipulation, the synthesized specification may omit conditions on the array length, which results in trivial solutions such as returning an empty array.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    Stochastic few-shot sampling reduces the computational cost associated with fine-tuning large models and enables other models to leverage the data pool to improve their performance without any training.

    “This method reduces the computational cost associated with fine-tuning large models and, as shown in our results, enables other models to leverage the data pool to improve their performance without any training.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    AlphaVerus enables a Llama-70B model to successfully generate verified solutions to 33% of Verified-HumanEval, outperforming GPT-4o-based methods.

    “We show that AlphaVerus enables a Llama-70B model to successfully generate verified solutions to 33% of Verified-HumanEval (The HumanEval-Verus Contributors, 2024), outperforming GPT-4o-based methods.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites The HumanEval-Verus Contributors, 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • The quote only partly states this claim.

    Findingown data

    AlphaVerus generates a Rust implementation and proof annotations that pass the verifier for a function that removes duplicates from a sorted vector while maintaining sorted order.

    “AlphaVerus generates a Rust implementation and proof annotations (e.g., invariant, proof, assert statements) that pass the verifier.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: The Verus verifier correctly determines whether a program satisfies its specification.
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Findingnone given

    AlphaVerus enables strong annotation performance.

    “AlphaVerus enables strong annotation performance.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    DAFNY2VERUS-COLLECTION comprises 247 translated programs, 102 error trajectories, and 579 exploit pairs.

    “The generated exemplars during the translation process are collected into our DAFNY2VERUS-COLLECTION, comprising 247 translated programs, 102 error trajectories, and 579 exploit pairs.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingown data

    AlphaVerus translations can involve multiple specifications, helper functions, and proof annotations, and individually reach up to 100 lines of Verus code.

    “In particular, the translations can involve multiple specifications, helper functions, and proof annotations, and individually reach up to 100 lines of Verus code.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    The new concepts identified across iterations start with basic syntax, then basic number theory algorithms, then mutable arrays and sets.

    “Figure 9 depicts the new concepts that we identified across iterations, starting with the ability to translate basic syntax, then basic number theory algorithms, then the ability to work with mutable arrays and sets.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    Exploration plateaus while tree search continues improving as the generation budget is increased.

    “Notably, exploration plateaus while tree search continues improving as the generation budget is increased.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Even more complicated cases of reward hacking occur, such as leaving small gaps in translated specifications or generating degenerate translations.

    “we see even more complicated cases of reward hacking, such as leaving small gaps in translated specifications or even generating degenerate translations, as illustrated in Figure 8.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingnone given

    AlphaVerus relies only on a single openly available model, without an expensive GPT-4 initialization.

    “In contrast, AlphaVerus relies only on a single openly available model, without an expensive GPT-4 initialization.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingnone given

    AlphaVerus incorporates a new tree-search refinement strategy that outperforms the linear strategy used in SAFE++, and a critique phase to ensure the generated specifications are high quality.

    “AlphaVerus also incorporates a new tree-search refinement strategy that outperforms the linear strategy used in SAFE++, and a critique phase to ensure the generated specifications are high quality.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    AlphaVerus outperforms both SAFE and AutoVerus on proof annotation.

    “As shown in Table 4, AlphaVerus outperforms both methods.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    The agent first learns to use debug statements and uses them continuously; after fixing, it learns other hacks such as generating trivial specifications or exploring rare debug statements such as allowing infinite loops.

    “In particular, the agent first learns to use debug statements and uses them continuously.After fixing, it learns other hacks such as generating trivial specifications or exploring rare debug statements such as allowing infinite loops.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    LLaMA-3.1-8B shows better cost efficiency at lower compute budgets, while LLaMA-3.1-70B shows higher asymptotic performance.

    “LLaMA-3.1-8Bshows better cost efficiency at lower compute budgets, while LLaMA-3.1-70Bshows higher asymptotic performance.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    Manual analysis confirms that the GPT-4-based contamination detection approach significantly outperforms traditional n-gram analysis and aligns well with human assessment of contamination.

    “Manual analysis confirms this approach significantly outperforms traditional n-gram analysis and aligns well with human assessment of contamination.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    The graph shows incremental progress in translation capabilities as different programming concepts are mastered.

    “The graph shows the incremental progress in translation capabilities as different programming concepts are mastered.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingnone given

    AlphaVerus operates without human intervention, hand-engineered prompts, or extensive computational resources, yet achieves significant performance improvements on verified versions of HumanEval and MBPP benchmarks where prior methods fail.

    “Our approach operates without human intervention, hand-engineered prompts, or extensive computational resources, yet achieves significant performance improvements on verified versions of the HumanEval and MBPP benchmarks where prior methods fail.”
    Quote in the paperNot a substantial claim
    • Rests on an assumption: HumanEval and MBPP benchmarks are appropriate for evaluating formally verified code generation.
  • May combine two claims.

    Findingown data

    Performance of pass@32 continues to improve, with pass@256 leveling off.

    “Performance of pass@32 continues to improve, with pass@256 leveling off.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Premisenone given

    It is infeasible to train a model on (yS, yI, yP) examples since such examples do not exist.

    “However, doing so raises a technical challenge: it is infeasible to train a model on (y S , y I , y P ) examples since such examples do not exist.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Premisenone given

    Language features in verification-aware languages can cause programs to pass the verifier, such as writing 'assume (false)', which causes any program to pass.

    “The latter can occur due to language features in verification-aware languages that cause programs to pass the verifier (such as writing”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Premisereasoning

    The specifications themselves are not verified, as they represent the developer's intended behavior.

    “The specifications themselves are not verified, as they represent the developer's intended behavior.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisenone given

    Synthesized specifications are the one part of the translation pipeline that lacks formal guarantees, which can result in a mismatch between the intended and actual functionality of generated programs.

    “Synthesized specifications are the one part of the translation pipeline that lacks formal guarantees, which can result in a mismatch between the intended and actual functionality of generated programs.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    REBASE allocates an exploration budget by sampling nodes from a distribution determined by the node scores at the current depth, providing an effective balance of exploration and exploitation.

    “REBASE allocates an exploration budget by sampling nodes from a distribution determined by the node scores at the current depth, providing an effective balance of exploration and exploitation.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Wu et al., 2024b

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationreasoning

    The AlphaVerus pipeline iterates, creating a self-reinforcing cycle where verified programs and refinement trajectories improve the models' capabilities, enabling translation of increasingly complex programs.

    “The pipeline iterates, creating a self-reinforcing cycle where verified programs and refinement trajectories improve the models' capabilities, enabling translation of increasingly complex programs.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Premisereasoning

    Dafny has been in use for over a decade, resulting in a larger set of available data.

    “As our initial source domain, we consider Dafny-a language that follows a similar paradigm to Verus and has been in use for over a decade, resulting in a larger set of available data.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationnone given

    AlphaVerus's approach specifically addresses the non-local nature of error fixes.

    “Our approach specifically addresses the non-local nature of error fixes.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Premisecitation

    DafnyBench is a benchmark of 562 programs of varying difficulty.

    “DafnyBench (Loughridge et al., 2024)-a benchmark of 562 programs of varying difficulty.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites Loughridge et al., 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationnone given

    The collected exemplars can be used to improve the verified code generation performance of any model without any finetuning.

    “Finally, the collected exemplars can be used to improve the verified code generation performance of any model without any finetuning.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisereasoning

    Treefinement can be viewed as a hybrid meta-generator that combines tree search and refinement, following initial parallel sampling (exploration).

    “Our Treefinement algorithm can be viewed as a hybrid meta-generator that combines tree search and refinement, following initial parallel sampling (exploration).”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data

    The results point to the effectiveness, flexibility, and data efficiency of AlphaVerus.

    “Overall, the results point to the effectiveness of AlphaVerus, along with its flexibility and data efficiency.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisenone given

    AlphaVerus was not designed for the proof annotations task, while AutoVerus has correction prompts specifically engineered for the task.

    “This is notable since AlphaVerus was not designed for the proof annotations task, while AutoVerus has correction prompts specifically engineered for the task.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing), S4 (based).

    Premisenone given

    Enabling verified code generation in these research languages may have limited applicability to real-world software and workflows.

    “However, enabling verified code generation in these research languages may have limited applicability to real-world software and workflows.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisenone given

    These approaches typically generate step-by-step proof statements for a given problem, with the theorem prover providing feedback on intermediate steps.

    “These approaches typically generate step-by-step proof statements for a given problem, with the theorem prover providing feedback on intermediate steps.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    A variety of tree search methods generate one step of a mathematical solution at a time, with a verifier guiding the search process by assigning a score to the current state.

    “A variety of tree search methods generate one step of a mathematical solution at a time, with a verifier guiding the search process by assigning a score to the current state (Wu et al., 2024a).”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Wu et al., 2024a

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationown data

    For cost-constrained scenarios, it is preferable to use the smaller model with more samples, but the larger model has better asymptotic performance.

    “In other words, for cost-constrained scenarios, it is preferable to use the smaller model with more samples, but the larger model has better asymptotic performance.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Premisecitation

    AutoVerus's approach allows for refining some errors but requires human expertise to support new strategies through additional prompts.

    “This allows for refining some errors but requires human expertise to support new strategies through additional prompts.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S2 (checkable).

    Interpretationreasoning

    This task is significantly more complex, as the LLM must structure the code to facilitate the completion of the proof.

    “This task is significantly more complex, as the LLM must structure the code to facilitate the completion of the proof.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    HumanEval-Verus is sourced from a concurrent open-source effort to translate existing HumanEval programs to Verus.

    “HumanEval -Verus is sourced from a concurrent open-source effort (The HumanEval-Verus Contributors, 2024) to translate existing HumanEval programs to Verus.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites The HumanEval-Verus Contributors, 2024

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationreasoning

    These innovations contribute to better results, despite AlphaVerus using open models and 100 times less data.

    “These innovations contribute to better results, despite our method using open models and 100 times less data.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    Verus offers a verification framework for Rust, a widely adopted programming language.

    “In contrast, Verus (Lattuada et al., 2023) offers a verification framework for Rust, a widely adopted programming language.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Lattuada et al., 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationnone given

    Treefinement addresses the non-local nature of error fixes and does not need an additional trained scoring model.

    “Our strategy addresses the non-local nature of error fixes, and does not need an additional trained scoring model.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisenone given

    Treefinement uses verifier feedback on the complete solution, modeling tree nodes as full programs and edges as refinement steps.

    “In contrast, Treefinement uses verifier feedback on the complete solution, modeling tree nodes as full programs and edges as refinement steps.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Premisenone given

    Linear refinement variants are special cases of REBASE (depth = 1 with large breadth, and temperature = infinity).

    “Also note that the linear refinement variants are special cases of REBASE (depth = 1 with large breadth, and temperature = ∞).”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Premisenone given

    These two existing works study the simplified task of proof generation, while AlphaVerus studies the more general setting of verified code generation: generating the implementation and its proofs.

    “Finally, these two existing works study the simplified task of proof generation, while we study the more general setting of verified code generation: generating the implementation and its proofs.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation

    SAFE used over a month of GPT-4o invocations and thousands of programs, contrasting with AlphaVerus's use of 562 Dafny programs and an openly available 70B model.

    “Second, SAFE used over a month of GPT-4o invocations and thousands of programs, which contrasts with our use of 562 Dafny programs and an openly available 70B model.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites SAFE (Chen et al., 2024)

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S4 (based).

    Premisenone given

    There is a substantial lack of data for Verus.

    “However, unlike in formal theorem proving or long-standing verification languages, there is a substantial lack of data for Verus.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationreasoning

    AlphaVerus can be viewed as a meta-generation algorithm that improves over time, rather than a model trained on filtered outputs.

    “Conceptually, we can view AlphaVerus as a meta-generation algorithm (i.e., a combination of parallel sampling, refinement, and tree search) that improves over time, rather than a model trained on filtered outputs.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S2 (checkable), S4 (based).

    Interpretationnone given

    Formal verification could play a crucial role in addressing ensuring correctness and reliability of generated code.

    “Furthermore, our work suggests that formal verification could play a crucial role in addressing one of the most pressing challenges in automated code generation: ensuring the correctness and reliability of generated code.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationreasoning

    AlphaVerus advances the state-of-the-art in formally verified code generation and establishes a scalable pathway for improving LLMs' capabilities in generating correct code.

    “AlphaVerus advances the state-of-the-art in formally verified code generation and establishes a scalable pathway for improving LLMs' capabilities in generating correct code.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing).

    Interpretationreasoning

    This opens up new avenues for developing trustworthy AI-assisted programming tools.

    “This opens up new avenues for developing trustworthy AI-assisted programming tools that can be safely integrated into real-world software development workflows.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisereasoning

    Prior methods typically operate in a linear fashion, while AlphaVerus structures refinement as a tree search.

    “Moreover, whereas prior methods typically operate in a linear fashion-i.e., starting with an output and repeatedly refining it-our approach structures refinement as a tree search.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisenone given

    AlphaVerus additionally uses refinement and tree search to collect data, and the data is collected using multiple modules.

    “Our method additionally uses refinement and tree search to collect data, and the data is collected using multiple modules (e.g., outputs from Treefinement may be used to improve exploration).”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Study design and conductown data

    The authors did not tune hyperparameters and used conventional settings throughout.

    “We do not tune hyperparameters and use the conventional settings throughout.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationnone given

    AlphaVerus distills inference-time computation into a meta-generator that improves over time, showing potential for inference-time scaling in verified settings.

    “Intuitively, AlphaVerus distills inference-time computation into a meta-generator that improves over time, showing the potential for inference-time scaling in verified settings.”
    Quote in the paperNot a substantial claim
66 of 66
  • The paper relies on this without support.

    No existing baselines exist for the task of formally verified code generation.

    “Since no existing baselines exist for the task, we use few-shot variants (Listing B) of base models.”
  • The authors state this as an assumption.

    The generated examples are useful exemplars.

    “In this sense, the models”
  • The paper relies on this without support.

    Verifier feedback induces an implicit ordering of solutions based on verified functions and error severity.

    “Our key insight is that verifier feedback induces an implicit ordering of solutions based on verified functions and error severity.”
  • The paper relies on this without support.

    Significant differences exist in supported features, data types, and the design of the underlying verifier between Dafny and Verus, rendering direct translations infeasible.

    “Translating Dafny programs to Verus presents several challenges due to two major differences: 1. Language Constructs: Significant differences exist in supported features, data types, and the design of the underlying verifier, rendering direct translations infeasible.”
  • The paper relies on this without support.

    Verus imposes more rigorous proof obligations, such as overflow checks, making proofs harder to verify.

    “2. Proof Requirements: Verus imposes more rigorous proof obligations, such as overflow checks, making proofs harder to verify.”
  • The paper relies on this without support.

    Dafny is a higher-resource language with sufficient data to enable translation to Verus.

    “By leveraging iterative translation from a higher-resource language (Dafny) to Verus”
  • The paper relies on this without support.

    The Verus verifier correctly determines whether a program satisfies its specification.

    “if y j passes verification then C ← C ∪ {(x, y j )}”
    “pass the verifier”
  • The paper relies on this without support.

    HumanEval and MBPP benchmarks are appropriate for evaluating formally verified code generation.

    “verified versions of the HumanEval and MBPP benchmarks”
8 of 8

Cites

The publisher hasn’t deposited this paper’s reference list.

Research works printed but not linked: 10

  1. Elgedawy, R., Sadik, J., Dutta, S., Gautam, A., Georgiou, K., Gholamrezae, F., Ji, F., Lim, K., Liu, Q., and Ruoti, S. Occasionally secure: A comparative analysis of code generation assistants. https://arxiv.org/abs/ 2402.00689, 2024.
  2. Kaliszyk, C., Urban, J., Michalewski, H., and Olšák, M. Reinforcement learning of theorem proving. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, NIPS'18, pp. 8836-8847, Red Hook, NY, USA, 2018.
  3. Kamoi, R., Zhang, Y., Zhang, N., Han, J., and Zhang, R. When can LLMs actually correct their own mis- takes? A critical survey of self-correction of LLMs. Transactions of the Association for Computational Linguistics, 12:1417-1440, 2024. doi: 10.1162/tacl a 00713. URL https://aclanthology.org/ 2024.tacl-1. · DOI
  4. Langley, P. Crafting papers on machine learning. In Langley, P. (ed.), Proceedings of the 17th International Conference on Machine Learning (ICML 2000), pp. 1207-1216, Stanford, CA, 2000.
  5. Li, Y., Choi, D., Chung, J., Kushman, N., Schrittwieser, J., Leblond, R., Tom, Eccles, Keeling, J., Gimeno, F., Lago, A. D., Hubert, T., Choy, P., de, C., d'Autume, M., Babuschkin, I., Chen, X., Huang, P.-S., Welbl, J., Gowal, S., Alexey, Cherepanov, Molloy, J., Mankowitz, D. J., Robson, E. S., Kohli, P., de, N., Freitas, Kavukcuoglu, K., and Vinyals, O. Competition-level code gener- ation with alphacode. Science, 378:1092 -1097, 2022b. URL https://api.semanticscholar. org/CorpusID:246527904.
  6. Lohn, E. and Welleck, S. minicodeprops: a minimal bench- mark for proving code properties. https://arxiv. org/abs/2406.11915, 2024.
  7. Loughridge, C., Sun, Q., Ahrenbach, S., Cassano, F., Sun, C., Sheng, Y., Mudide, A., Misu, M. R. H., Amin, N., and Tegmark, M. Dafnybench: A benchmark for formal software verification, 2024. URL https://arxiv. org/abs/2406.08467.
  8. Pan, A., Bhatia, K., and Steinhardt, J. The effects of reward misspecification: Mapping and mitigating mis- aligned models. In International Conference on Learning Representations, 2022. URL https://openreview. net/forum?id=JYtwGwIL7ye.
  9. Redmon, J. and Sanchez-Stern, A. Proverbot 9000 : Neural networks for proof assistance, 2016. URL https: //api.semanticscholar.org/CorpusID: 11622595.
  10. Wu, Y., Sun, Z., Li, S., Welleck, S., and Yang, Y. Infer- ence scaling laws: An empirical analysis of compute- optimal inference for problem-solving with language models. arXiv preprint arXiv:2408.00724, 2024b. · arXiv

Cited by

Sorted by citations

Authors
Aggarwal, P., Parno, B., & Welleck, S.
Venue
arXiv
Publisher
arXiv
Published
2024
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4405253975
Cited by
4
References
0
Citations by year
2026: 3 · 2025: 1
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • arXiv (Cornell University) (cc-by)
Funders
VMware
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Logic, programming, and type systems
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
Keywords
large language models, program translation, tree search, program refinement, reward hacking, bootstrapping, Llama 3.1, HumanEval, MBPP

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-24.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-24.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review