potentialpaper

Curriculum proof repair with learned counterexamples

Update NeurIPS 2026 submission 0Np4tgb57w: 5 notes

@openreview[bot] · 2026-11-24 15:44 UTC · 68b5983a646c ·

Evidence

reviews/openreview/0np4tgb57w/notes/1rk4eqsaja.json added

+++ b/reviews/openreview/0np4tgb57w/notes/1rk4eqsaja.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "1RK4EqsajA",
+ "replyTo": "k7UpDBbaoi",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Dear Area Chairs, Senior Area Chairs, and Program Chairs,\n\nWe really appreciate your efforts in overseeing the review process for our submission. We understand you have limited time to review each submission, so we summarize our work, rebuttals, and discussions briefly as follows:\n\nTopoVerus trains counterexample generation as a diagnostic objective for Verus proof repair. Given a failed proof and verifier error, TopoVerus generates a structured source-level counterexample, a repair reasoning, and a repaired proof in one trajectory, and learns from whether the proof is verified by Verus. To improve credit assignment for dependent loop invariants, the Topological Graph Reward derives invariant dependencies from inductiveness tests and rewards the model to generate prerequisite invariants first. Across seven Verus benchmarks, TopoVerus outperforms the strongest baselines, Sonnet 4.5, and its learned counterexamples can also improve existing LM-based proof repair methods.\n\nIn response to the reviewers' questions and feedback, we have added the following clarifications and new experiments:\n\n- We provided a detailed description of the training data: 1,210 SFT repair examples derived from 249 source programs, with the same 249 programs used for RL. We also clarified that the split is made at the source problem level, so no evaluation problem or artifact derived from it is used in SFT or RL (reviewer `aRG8`).\n\n- We clarified that the reported weighted average is a average over all 471 evaluation problems, with each problem contributing equally. With each benchmark suite given equal weight, our model still achieves the highest Safe-Pass@1/@3, exceeding Claude Sonnet 4.5 by 2.4/3.7 points (reviewer `tRAx`, `vvBk`).\n\n- We added the baseline trained only with binary verifier feedback (CTX-Binary) to the iteration scaling experiment under the same evaluation setting. (reviewer `vvBk`).\n\n- We clarified that our Topological Graph Reward derives loop invariants and dependencies from a verified reference proof. This requirement does not incur additional annotation cost, as all benchmark programs already include verified versions. Without a verified version, it would be difficult to determine whether verification fails because of an incorrect specification or an incomplete proof, making the program unreliable for proof repair training (reviewers `tRAx`, `vvBk`).\n\n- We examined whether correct repairs, particularly those using invariant structures different from the reference proof, may receive lower dependency rewards during training. We found that 64.1% of Verus-accepted rollouts receive the maximum score (reviewer `vvBk`).\n\n- We examined whether training with a reward derived from a reference proof reduces the diversity of generated proofs. Across all benchmark groups, the model trained with the dependency reward shows proof diversity comparable to the baseline trained only with verifier feedback. We also clarified that the model has no access to the reference proof or its dependency graph at inference time (reviewers `tRAx`, `vvBk`).\n\n- We showed that, compared with the binary verifier reward baseline (CTX-Binary), the dependency reward model (CTX-Dep) generates a similarly broad set of invariants while improving their alignment with the topological order induced by the invariant dependency graph (mean edge satisfaction: 43.8% vs. 95.8%) (reviewer `vvBk`).\n\n- We analyzed the remaining gap to Sonnet 4.5 on VeruSAGE and showed that many tasks require long-context reasoning and lemma retrieval beyond both the capabilities of our 32B base model and the loop-invariant dependencies modeled by the current reward (reviewer `tRAx`).\n\nWe are grateful for the constructive feedback, careful consideration and coordination throughout the review process. Please let us know if any additional clarification would be helpful. We would be glad to provide further details."
+ },
+ "createdAt": "2026-08-04T08:47:15.419Z",
+ "modifiedAt": "2026-11-19T17:20:38.065Z",
+ "url": "https://openreview.net/forum?id=0Np4tgb57w&noteId=1RK4EqsajA",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0np4tgb57w/notes/6utleboyh3.json added

+++ b/reviews/openreview/0np4tgb57w/notes/6utleboyh3.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "6UtlebOYh3",
+ "replyTo": "gck9m0WAXQ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Rebuttal by Authors 3/3",
+ "comment": "**W4 and Q3 (Part 2/2): Please evaluate how sensitive the dependency reward is to the choice of reference proof and whether correct repairs using alternative invariant structures outside $V$ are under-credited.**\n\nContinuing our response to W4 and Q3, we further examine whether the dependency reward changes the order in which matched invariants are generated. The following metrics correspond directly to the definition of $R_{\\mathrm{dep}}$ in Section 3.3, Equation (6). Mean invariant coverage is the mean value of $\\alpha=|V'|/|V|$, where $V'$ is the set of canonical invariants matched in the generated proof. Mean edge satisfaction is the mean value of $\\beta$, namely the fraction of considered inter-SCC dependency edges for which the prerequisite invariant appears before the invariant that depends on it. \n\n**Table 2. Invariant coverage and dependency ordering on paired tasks accepted by Verus.**\n\n| Metric | CTX-Binary | CTX-Dep | Difference |\n| --- | ---: | ---: | ---: |\n| Mean invariant coverage, $\\alpha$ | 98.6% | 98.5% | $-0.1$ points |\n| Mean edge satisfaction, $\\beta$ | 43.8% | 95.8% | $+52.1$ points |\n| Tasks with full edge satisfaction, $\\beta=1$ | 41.7% | 95.8% | $+54.2$ points |\n| Mean $R_{\\mathrm{dep}}=\\alpha\\beta$ | 0.424 | 0.943 | $+0.519$ |\n\nCTX-Binary and CTX-Dep have nearly identical mean invariant coverage, 98.6% and 98.5%, respectively. The main difference is therefore not the number of canonical invariants matched in the generated proofs. Instead, CTX-Dep increases mean edge satisfaction from 43.8% to 95.8%, and increases the number of tasks with $\\beta=1$ from 41.7% to 95.8%. This means that, among the matched invariants and considered dependency edges, CTX-Dep is substantially more likely to generate the prerequisite invariant before the invariant that depends on it, which shows the effectiveness of our dependency reward.\n\nOverall, the two analyses suggest that the dependency reward increases the fraction of considered dependency edges for which the prerequisite invariant appears before the invariant that depends on it. At the same time, CTX-Dep preserves nearly the same invariant coverage as CTX-Binary and continues to generate multiple distinct proof forms across all benchmark groups. However, the reward remains dependent on the selected reference proof, and verified correct repairs with different invariant decompositions may still be under-credited. We will add all of the analysis in the next version of our paper.\n\n\n**W5 and Q4: Figure 2 may over-attribute the dependency-unaware model’s fabricated `mid = 0` and invalid instantiation at `i = 1` to missing prerequisite invariants, even though these errors can also be identified from the program execution and the faulty invariant’s quantifier range; please clarify which failures are genuinely caused or exacerbated by the absence of prerequisite invariants.**\n\nFigure 2 shows a real model output selected from our qualitative case studies. We agree that the fabricated `mid=0` and the invalid instantiation at `i=1` are not necessarily implied by the missing prerequisite invariants. Our claim is not that each individual reasoning error is directly caused by the absence of $I_1$–$I_3$.\n\nRather, our qualitative analysis suggests that missing prerequisite invariants can make the target failure harder to isolate; e.g., the diagnostic in Figure 2 combines the local boundary error in $I_5$ with postcondition obligations at the function return and introduces details that are not supported by the program semantics or the invariant’s quantifier range, such as `mid = 0` and `i = 1`.\n\nWe attribute this difficulty to an under-constrained proof state in which upstream obligations remain unresolved and fewer prerequisite facts are available for isolating the failure in $I_5$. The topological reward encourages the model to establish prerequisite invariants before diagnosing a dependent invariant, so that the diagnosis can focus on the remaining proof obligation. It does not guarantee that every generated state or trace is consistent with program execution. We will clarify this distinction in the discussion of Figure 2.\n\n[1] Chen, Tianyu, et al. \"Automated proof generation for rust code via self-evolution.\" International Conference on Learning Representations. Vol. 2025. 2025.\n\n[2] Yang, Chenyuan, et al. \"Autoverus: Automated proof generation for rust code.\" arXiv preprint arXiv:2409.13082 (2024).\n\n[3] Yang, Jun, et al. \"ExVerus: Verus Proof Repair via Counterexample Reasoning.\" arXiv preprint arXiv:2603.25810 (2026)."
+ },
+ "createdAt": "2026-07-29T06:35:15.359Z",
+ "modifiedAt": "2026-11-19T17:20:38.063Z",
+ "url": "https://openreview.net/forum?id=0Np4tgb57w&noteId=6UtlebOYh3",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0np4tgb57w/notes/k7updbbaoi.json modified

+++ b/reviews/openreview/0np4tgb57w/notes/k7updbbaoi.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair BgWv",
"content": {
- "metareview": "This paper introduces TopoVerus, an LM powered approach to Verus proof repair. There is consensus amongst reviewers that this is an important problem and the proposed Topological Graph Reward is well motivated. \n\nThat said, reviewers have also raised several important questions; clarifications regarding these would be helpful."
+ "metareview": "This paper introduces TopoVerus, an LM powered approach to Verus proof repair. There is consensus amongst reviewers that this is an important problem and the proposed Topological Graph Reward is well motivated. \n\nThat said, reviewers have also raised several important questions; clarifications regarding these would be helpful.",
+ "final_justification": "The authors have responded robustly to reviews, offering new empirical results and clarifications where requested. This strengthens an already positive consensus."
},
"createdAt": "2026-07-20T22:39:07.445Z",
- "modifiedAt": "2026-11-18T15:20:25.682Z",
+ "modifiedAt": "2026-11-19T05:00:15.992Z",
"url": "https://openreview.net/forum?id=0Np4tgb57w&noteId=k7UpDBbaoi",
"license": "CC-BY-4.0"
}

reviews/openreview/0np4tgb57w/notes/nfb3oet22w.json added

+++ b/reviews/openreview/0np4tgb57w/notes/nfb3oet22w.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "nfB3oeT22w",
+ "replyTo": "gck9m0WAXQ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Rebuttal by Authors 1/3",
+ "comment": "We are grateful for your time, effort, and leaving encouraging comments. We address your comments and questions in the following.\n\n**W1: The reported aggregate may be affected by dataset weighting, and the macro-average comparison should be clarified.**\n\nWe clarify that the reported “weighted average” does not use manually selected dataset weights. It is a micro-average over all 471 evaluation problems, so each problem contributes equally. We agree that this definition was not stated explicitly and will clarify it in the revision.\n\nWe also computed the unweighted macro-average across the seven benchmark suites. The macro-average first computes the performance on each benchmark suite and then averages the seven suite-level results, giving each suite equal weight regardless of its size.\n\nAs shown in the table below, CTX-Dep remains the best under macro averaging. It outperforms Sonnet-4.5 by 2.4/3.7 percentage points and CTX-Binary by 3.0/0.1 points in Safe-Pass@1/@3. Therefore, CTX-Dep does not underperform CTX-Binary at $k=3$ under the macro-average calculation. We will report both micro- and macro-averages in the next version of the paper.\n\n| Method | Micro Safe-Pass@1 | Micro Safe-Pass@3 | Macro Safe-Pass@1 | Macro Safe-Pass@3 |\n| ---------- | ----------------: | ----------------: | ----------------: | ----------------: |\n| Sonnet-4.5 | 55.9% | 65.9% | 51.6% | 57.8% |\n| CTX-Binary | 53.7% | 67.9% | 51.0% | 61.4% |\n| CTX-Dep | 61.6% | 72.2% | 54.0% | 61.5% |\n\n \n**W2 and Q1: Please include CTX-Binary in the test-time-scaling comparisons and isolate the effect of the dependency reward.**\n\nWe added CTX-Binary to the iteration-scaling experiment under the same setup as CTX-Dep, including the 63-task subset, prompts, inference budgets, and etc.\n\nIn iteration scaling, CTX-Dep remains ahead at every iteration budget beyond the first, reaching 69.8% Safe-Pass@1 at 32 iterations compared with 68.3% for CTX-Binary. The largest gap appears at two iterations (55.6% vs. 49.2%), suggesting that CTX-Dep improves more rapidly during the early repair iterations.\n\nWe will add CTX-Binary to the iteration-scaling panel of Figure 3. CTX-Dep shows faster improvement across repair iterations.\n\n| $T$ | CTX-Binary Safe | CTX-Dep Safe | $\\Delta$ Dep−Binary |\n| ---: | --------------: | -----------: | ------------------: |\n| 1 | 47.6% | 47.6% | 0.0 |\n| 2 | 49.2% | 55.6% | +6.4 |\n| 4 | 57.1% | 60.3% | +3.2 |\n| 8 | 61.9% | 63.5% | +1.6 |\n| 16 | 68.3% | 69.8% | +1.5 |\n| 32 | 68.3% | 69.8% | +1.5 |\n\n**W3 and Q2: The annotation cost is the method's main practical constraint relative to plain GRPO. Please separate the value of the dependency reward from the cost of reference-proof supervision by comparing against verifier-only GRPO trained on a larger pool of unverified programs.**\n\nWe argue that training on verified programs does not incur additional annotation cost compared with unverified programs. Whenever we want to include an unverified program for training, there must be a verified program coming with it[1][2]. Otherwise, the program could be buggy and not verifiable, and potentially noisy for training. The unverified and verified programs come in pairs [2][3], thus there's no additional cost using verified programs. Moreover, we included the CTX-Binary baseline, which trains on the same number of unverified programs, and it underperforms CTX-Dep.\n\n[1] Chen, Tianyu, et al. \"Automated proof generation for rust code via self-evolution.\" International Conference on Learning Representations. Vol. 2025. 2025.\n\n[2] Yang, Chenyuan, et al. \"Autoverus: Automated proof generation for rust code.\" arXiv preprint arXiv:2409.13082 (2024).\n\n[3] Yang, Jun, et al. \"ExVerus: Verus Proof Repair via Counterexample Reasoning.\" arXiv preprint arXiv:2603.25810 (2026)."
+ },
+ "createdAt": "2026-07-28T17:57:31.988Z",
+ "modifiedAt": "2026-11-19T17:20:38.072Z",
+ "url": "https://openreview.net/forum?id=0Np4tgb57w&noteId=nfB3oeT22w",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0np4tgb57w/notes/z5czlh7vuo.json added

+++ b/reviews/openreview/0np4tgb57w/notes/z5czlh7vuo.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "Z5CZlH7VuO",
+ "replyTo": "gck9m0WAXQ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Rebuttal by Authors 2/3",
+ "comment": "**W4 and Q3 (Part 1/2): Please evaluate how sensitive the dependency reward is to the choice of reference proof and whether correct repairs using alternative invariant structures outside $V$ are under-credited.**\n\nWe appreciate this question, which allows us to further explain this aspect of our dependency reward. By construction, $R_{\\mathrm{dep}}$ does not require an exact textual match to the reference invariants. As described in Section 3.3, the generated invariants are matched to nodes in $V$ using either exact substring matching or token-set Jaccard similarity with a threshold of 0.6. The reward then assigns graded credit through invariant coverage and dependency-edge satisfaction. Therefore, an invariant whose wording differs locally from the corresponding reference invariant can still be matched, which shows the robustness of our metrics. However, because $V$ is extracted from a particular reference proof, a verified correct repair that uses a substantially different invariant decomposition may still be under-credited.\n\nTo obtain a conservative empirical estimate of under-crediting during training, we analyze 1,920 detailed rollout logs collected from the training run. We define an under-credited case as a rollout that is accepted by Verus but receives a non-maximal dependency reward, i.e., $R_{\\mathrm{dep}}<1$. Among the 596 rollouts accepted by Verus, 214 cases (35.9%) satisfy this definition, while the remaining 382 cases (64.1%) receive the maximum dependency reward. \n\nThis definition is conservative because it counts every accepted rollout with a non-maximal reward as under-credited, including cases whose reward is close to 1 because of a small difference from the reference proof. It therefore provides an upper-bound estimate under our operational definition, rather than isolating only correct proofs with substantially different invariant decompositions.\n\nWe next compare the diversity of the proofs generated by CTX-Binary and CTX-Dep at evaluation time. This analysis examines whether training with the dependency reward causes CTX-Dep to generate only a narrow set of proof forms. To focus on proof annotations, we define each repaired program's proof-only signature as the whitespace-normalized concatenation of all ghost-code spans extracted by Lynette, excluding executable and other non-proof text. Each task is evaluated with three independent repair chains, and the comparison includes tasks for which both models produce at least two safe verified repairs. We report three metrics: Ghost unique is the mean number of distinct proof-only signatures per task; Ghost rate divides this count by the number of available safe verified repairs; and Ghost distance is the mean pairwise token-Jaccard distance between signatures. Higher values indicate greater proof diversity.\n\n**Table 1. Diversity of proof-only signatures among paired safe verified repairs. Each cell reports CTX-Binary / CTX-Dep.**\n\n| Benchmark | Ghost unique | Ghost rate | Ghost distance |\n| --- | ---: | ---: | ---: |\n| Four in-distribution benchmarks | 2.524 / 2.357 | 84.9% / 79.4% | 0.058 / 0.040 |\n| VeriCogen | 2.522 / 2.217 | 94.2% / 88.4% | 0.388 / 0.316 |\n| ObfsBench | 2.618 / 2.640 | 96.9% / 93.9% | 0.072 / 0.067 |\n| VeruSAGE | 1.667 / 1.667 | 72.2% / 66.7% | 0.220 / 0.202 |\n\nThe four in-distribution benchmarks comprise VerusBench, DafnyBench, HumanEval, and LeetCode. CTX-Dep continues to generate multiple distinct proof-only signatures across all benchmark groups. Its Ghost unique, Ghost rate, and Ghost distance are lower than those of CTX-Binary on most groups, while its Ghost-unique score is slightly higher on ObfsBench and equal on VeruSAGE. Taken together with the overall results, these findings indicate a favorable diversity–performance tradeoff: CTX-Dep is slightly less diverse by these measures, but it continues to generate multiple proof forms across all benchmark groups while improving micro-averaged Safe-Pass@1/@3 over CTX-Binary by 7.9/4.3 percentage points."
+ },
+ "createdAt": "2026-07-29T06:34:39.536Z",
+ "modifiedAt": "2026-11-19T17:20:38.062Z",
+ "url": "https://openreview.net/forum?id=0Np4tgb57w&noteId=Z5CZlH7VuO",
+ "license": "CC-BY-4.0"
+}