potentialpaper

SpecForge: Recursive Self-Improvement for Coding Agents via Behavioral Specifications

Update NeurIPS 2026 submission yMLqe1DovZ: 11 notes

@openreview[bot] · 2026-11-24 16:03 UTC · 07f52c2e3967 ·

Evidence

reviews/openreview/ymlqe1dovz/notes/55qiqazdul.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/55qiqazdul.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "55QIQazDul",
+ "replyTo": "Y6u4sX8XjQ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for the precise question. SCC contraction was not part of the implementation that produced the reported evaluations. We also note that the original DevEval+ benchmark does not involve such structures: we verified programmatically that the call graphs of all 20 DevEval+ modules are acyclic, so the 247 entities contain **zero SCCs**, and every reported number is identical with or without the mechanism. It is now implemented, and we validate it on cyclic modules below.\n \n**New experiment on modules that do contain SCCs.** Since DevEval+ cannot exercise this mechanism, we programmatically analyzed an external benchmark, TestGenEvalLite, and identified 9 modules whose call graphs contain cycles (114 entities, 167 tests, 10 SCCs, mean SCC size 2.9), as a testbed for how SpecForge performs with and without SCC contraction on cyclic structures; 10 sampled acyclic modules (115 entities, 131 tests) serve as a control. We run SpecForge with and without SCC contraction under the identical protocol.\n \n**Table: SCC contraction on cyclic modules (GPT-4o, B = 50).**\n \n| Setting | $\\lvert S\\rvert$ (%) | $\\\\bar{\\\\phi}$ (%) |\n| :---- | :---- | :---- |\n| SpecForge w/o SCC handling | 66.4 | 76.5 |\n| **SpecForge + SCC contraction** | **73.8** | **82.4** |\n| *SpecForge (acyclic control modules)* | *74.2* | *83.0* |\n \n**(i) SCC contraction recovers the refinement channel on cycles:** +7.4% $\\\\lvert S\\\\rvert$ and +5.9% $\\\\bar{\\\\phi}$ over the no-SCC variant. **(ii) With the mechanism, cyclic modules are no longer a hard case:** 73.8 / 82.4 on cyclic modules versus 74.2 / 83.0 on the acyclic control, which is comparable performance among samples drawn from the same dataset. The 7.8% $\\\\lvert S\\\\rvert$ gap between the no-SCC variant and the acyclic control is consistent with cycle handling being the bottleneck, and SCC contraction closes it\n \nWe will include the implementation and this experiment in the revision, and we thank the reviewer for prompting a validation that strengthens the paper."
+ },
+ "createdAt": "2026-08-01T02:44:41.470Z",
+ "modifiedAt": "2026-11-19T16:42:08.665Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=55QIQazDul",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/787agvxjqr.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/787agvxjqr.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "787aGVXJqr",
+ "replyTo": "Axk2Fy4cyy",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Follow-up on our rebuttal",
+ "comment": "Dear Reviewer Ricw,\n\nWe hope this message finds you well. As the discussion period is coming to a close, we would like to kindly follow up on our rebuttal posted on July 28. We understand that you may be busy, and we truly appreciate the time and effort you have already dedicated to reviewing our work.\n\nOur response includes new experiments and measurements addressing each of your questions, including the matched-size comparison and the external benchmark you requested. If any concerns remain or any point would benefit from further clarification, we would be more than happy to continue the discussion before the window closes.\n\nThank you again for your thorough and constructive review.\n\nBest regards,\nThe Authors"
+ },
+ "createdAt": "2026-08-02T12:18:53.257Z",
+ "modifiedAt": "2026-11-19T16:42:08.578Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=787aGVXJqr",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/cfgnutycaq.json modified

+++ b/reviews/openreview/ymlqe1dovz/notes/cfgnutycaq.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair gbSi",
"content": {
- "metareview": "The manuscript considers the problem of generating documentation for coding agents that is meant for consumption by the agents, as against the standard notion of documentation for human interpretation of what the code does. The authors argue that existing approaches tend to produce suboptimal documentation for functions with prior dependencies, and propose techniques to overcome the challenges in this setting. The proposed method SpecForge is a tree-search based algorithm for optimizing code documentation directly for the LLM-based coding agents; it expands its search based on execution feedback and is robust to noisy feedback. \n\n**Strengths:**\n- The authors formulate an important problem of what it means to maintain a natural language version of the code functionality, i.e., the specification, with a direct goal of concrete downstream utility rather than standard and admittedly vague notion of human readability. \n- The paper shows improved performance and token-efficiency benefits over baseline documentation agents and iterative refinement methods. Multiple experiments are presented that support the claims of the paper.\n\n**Weaknesses and concerns to address in the rebuttal:**\nI agree with some of the key weaknesses called out by the reviewers. I encourage the authors to convincingly address the points raised by the reviewers as well as the pointed questions. In particular:\n\n*[Methodology]*\n- \"documentation size is never measured or constrained.\" -- I would like to see a convincing argument, experiment/analysis for this criticism. \n- Address \"the paper does not distinguish documentation errors from code-generation errors, and the refinement prompts largely attribute failed tests as evidence of missing or ambiguous documentation.\"\n- \"could the authors clarify how commercial +Test baselines like Claude Code propose tests or do they use the same pseudo-test suite as SpecForge? And how comparable are those tests in coverage?\"\n\n*[Experiments]*\n- The criticisms by two different reviewers \"Having another dataset like SciCode with other multi-functional dependencies may help show the generalizability of SpecForge.\" and \"Can you report results on an unmodified benchmark you did not construct\" can be tackled with one additional benchmark.\n- \"the headline gap is inflated by a ~3× evaluation-budget asymmetry\" \n- \"It's uncertain that other baselines will share the same test suite during the iteration process in the evaluation part. \""
+ "metareview": "The manuscript considers the problem of generating documentation for coding agents that is meant for consumption by the agents, as against the standard notion of documentation for human interpretation of what the code does. The authors argue that existing approaches tend to produce suboptimal documentation for functions with prior dependencies, and propose techniques to overcome the challenges in this setting. The proposed method SpecForge is a tree-search based algorithm for optimizing code documentation directly for the LLM-based coding agents; it expands its search based on execution feedback and is robust to noisy feedback. \n\n**Strengths:**\n- The authors formulate an important problem of what it means to maintain a natural language version of the code functionality, i.e., the specification, with a direct goal of concrete downstream utility rather than standard and admittedly vague notion of human readability. \n- The paper shows improved performance and token-efficiency benefits over baseline documentation agents and iterative refinement methods. Multiple experiments are presented that support the claims of the paper.\n\n**Weaknesses and concerns to address in the rebuttal:**\nI agree with some of the key weaknesses called out by the reviewers. I encourage the authors to convincingly address the points raised by the reviewers as well as the pointed questions. In particular:\n\n*[Methodology]*\n- \"documentation size is never measured or constrained.\" -- I would like to see a convincing argument, experiment/analysis for this criticism. \n- Address \"the paper does not distinguish documentation errors from code-generation errors, and the refinement prompts largely attribute failed tests as evidence of missing or ambiguous documentation.\"\n- \"could the authors clarify how commercial +Test baselines like Claude Code propose tests or do they use the same pseudo-test suite as SpecForge? And how comparable are those tests in coverage?\"\n\n*[Experiments]*\n- The criticisms by two different reviewers \"Having another dataset like SciCode with other multi-functional dependencies may help show the generalizability of SpecForge.\" and \"Can you report results on an unmodified benchmark you did not construct\" can be tackled with one additional benchmark.\n- \"the headline gap is inflated by a ~3× evaluation-budget asymmetry\" \n- \"It's uncertain that other baselines will share the same test suite during the iteration process in the evaluation part. \"",
+ "final_justification": "The authors have addressed the concerns in the rebuttal, and there's unanimous agreement on the technical contributions of the work. All the reviewers have responded to the rebuttals, and favor acceptance of the paper. My own reading of the work is the contributions are strong, and therefore I recommend acceptance.\n\nSuggestion to authors: Referenuce number 10, Docagent: A multi-agent system for automated code documentation generation, has wrong set of authors and publication venue. Please fix this in the final version."
},
"createdAt": "2026-07-19T12:34:49.955Z",
- "modifiedAt": "2026-11-18T15:19:19.050Z",
+ "modifiedAt": "2026-11-19T04:59:37.426Z",
"url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=CfGNuTYcAq",
"license": "CC-BY-4.0"
}

reviews/openreview/ymlqe1dovz/notes/dvi4zoiyik.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/dvi4zoiyik.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "dvi4ZoIYIk",
+ "replyTo": "CfGNuTYcAq",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for the thoughtful metareview. Every concern listed under [Methodology] and [Experiments] has been addressed with new experiments in our posted rebuttals. We summarize each below.\n\n**[Methodology]**\n\n**1. Documentation size is never measured or constrained.** We measured size and leakage for all 16 methods: SpecForge's maximum common token sequence with the source (16.2) is lower than every agentic and iterative baseline, and a span audit finds zero implementation lines in any optimized document. Under a matched size budget (L = 1.0x source tokens), SpecForge attains 88.9% \\\\(\\\\bar{\\\\phi}\\\\), still exceeding the strongest baselines' unconstrained results by over 24%. The refinement prompt also explicitly forbids implementation content by construction.\n\n**2. Documentation errors vs. code-generation errors.** We measured this decomposition directly via self-consistency sampling (k = 5 regenerations per document, any-k and majority-k re-scoring). Only 9.1% / 4.5% of SpecForge's unsolved entities flip to correct, and filtering generator-error entities changes any method's score by at most 2.3%, lifting baselines more than SpecForge. All conclusions hold under both rules.\n\n**3. How commercial +Test baselines propose tests.** They self-propose tests by default. To isolate the feedback-quality confound, we additionally ran Claude Code+Topo+Test with SpecForge's validated suite: coverage rises from 62.0% to 91.2% and \\\\(\\\\bar{\\\\phi}\\\\) by +5.0% (71.5 to 76.5), yet a 19.6% gap to SpecForge persists under identical tests and harness. Feedback quality accounts for a modest part of the gap; the search design accounts for the rest. This same experiment resolves the last [Experiments] bullet.\n\n**[Experiments]**\n\n**4. External benchmarks.** We added two external benchmarks: (i) **SciCode**: SpecForge reaches 90.3% solve / 92.6% \\\\(\\\\bar{\\\\phi}\\\\), vs. 69.1 / 76.8 for the strongest baseline, and notably vs. 36.6 / 52.1 for the benchmark's own expert-written specifications; (ii) **TestGenEvalLite**, unmodified with developer-authored oracles: +20.0% \\\\(\\\\bar{\\\\phi}\\\\) / +15.4% solve over the strongest baseline.\n\n**5. The ~3x evaluation-budget asymmetry.** We are glad to clarify that this asymmetry does not arise in the implementation: the budget counter increments once per generated child (expansion.py, lines 92-98, Supplementary), so B = 50 caps total child doc-to-code-to-test evaluations and all baselines receive exactly the same 50 cycles. We further verified the comparison at matched output tokens: at every matched token budget SpecForge leads by 19.7% to 55.7%, and its 20k-token performance already exceeds every baseline's final 200k-token performance. We also added GEPA/ACE to the cost-matched comparison.\n\n**6. Whether baselines share the same test suite.** Resolved by the controlled experiment in point 3 above.\n\n**All reviewer concerns resolved.** All three reviewers have read our responses and raised their scores, confirming that their concerns have been fully addressed. \n\nAll new results and clarifications will be incorporated into the revision. \n\nWe thank the AC again for the careful reading and for facilitating a constructive discussion."
+ },
+ "createdAt": "2026-08-03T11:25:06.647Z",
+ "modifiedAt": "2026-11-19T16:42:08.944Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=dvi4ZoIYIk",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/iu7mh2sazt.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/iu7mh2sazt.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "Iu7mH2saZt",
+ "replyTo": "u1gMPiGaIt",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer oRJb",
+ "content": {
+ "comment": "Thank you for the clarifications and extra results. I will raise my score accordingly."
+ },
+ "createdAt": "2026-07-30T18:27:35.075Z",
+ "modifiedAt": "2026-11-19T16:42:08.735Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=Iu7mH2saZt",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/kckwsugzps.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/kckwsugzps.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "KcKwsugZps",
+ "replyTo": "Iu7mH2saZt",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Thank you!",
+ "comment": "We sincerely thank the reviewer for the thoughtful and constructive feedback, and for the updated score. The suggestion of SciCode in particular helped strengthen the paper, and we will incorporate the new results and clarifications into the final version."
+ },
+ "createdAt": "2026-07-30T18:57:50.613Z",
+ "modifiedAt": "2026-11-19T16:42:08.696Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=KcKwsugZps",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/kimc4y8deh.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/kimc4y8deh.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "Kimc4y8DEh",
+ "replyTo": "ZJX1D1jQGF",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Thank you!",
+ "comment": "We sincerely thank the reviewer for the constructive discussion and for raising the score. We will incorporate the SCC contraction implementation and the new experiment into the final version."
+ },
+ "createdAt": "2026-08-01T19:43:38.864Z",
+ "modifiedAt": "2026-11-19T16:42:08.577Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=Kimc4y8DEh",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/nz1ywx8sxo.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/nz1ywx8sxo.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "nz1ywx8sxo",
+ "replyTo": "787aGVXJqr",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer Ricw",
+ "content": {
+ "comment": "Thank you very much for your detailed and constructive response. Your thorough explanations have addressed all of my questions and concerns, and I now have a much clearer understanding of the issues raised. I greatly appreciate your time and effort in providing such a helpful clarification. Based on your response, I will update my score to 4."
+ },
+ "createdAt": "2026-08-02T15:21:30.585Z",
+ "modifiedAt": "2026-11-19T16:42:08.715Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=nz1ywx8sxo",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/xgry6slckm.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/xgry6slckm.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "xgrY6slCKm",
+ "replyTo": "nz1ywx8sxo",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Thank you!",
+ "comment": "We sincerely thank the reviewer for the thoughtful and constructive feedback, and for the updated score. The suggested size and budget analyses in particular helped strengthen the paper, and we will incorporate the new results and clarifications into the final version."
+ },
+ "createdAt": "2026-08-02T17:16:07.480Z",
+ "modifiedAt": "2026-11-19T16:42:08.519Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=xgrY6slCKm",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/y6u4sx8xjq.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/y6u4sx8xjq.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "Y6u4sX8XjQ",
+ "replyTo": "AMJ60RD8dS",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer nbJC",
+ "content": {
+ "comment": "For cyclic dependencies, the authors metion SCC contraction into meta-entities to solve this. Was this SCC-based handling already implemented and used in the reported evaluations, or is it a proposed extension to be added in a future revision?"
+ },
+ "createdAt": "2026-07-31T20:09:54.897Z",
+ "modifiedAt": "2026-11-19T16:42:08.691Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=Y6u4sX8XjQ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/ymlqe1dovz/notes/zjx1d1jqgf.json added

+++ b/reviews/openreview/ymlqe1dovz/notes/zjx1d1jqgf.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "ZJX1D1jQGF",
+ "replyTo": "55QIQazDul",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer nbJC",
+ "content": {
+ "comment": "Thank you for the detailed response, I have raised my score accordingly."
+ },
+ "createdAt": "2026-08-01T19:17:25.379Z",
+ "modifiedAt": "2026-11-19T16:42:08.640Z",
+ "url": "https://openreview.net/forum?id=yMLqe1DovZ&noteId=ZJX1D1jQGF",
+ "license": "CC-BY-4.0"
+}