potentialpaper

SpecAlign: Test-Driven Specification Refinement for Coding Agents

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:12 UTC · 7202ef01421e ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "rPqJplyOA7"
- }
- ],
- "title": "SpecAlign: Test-Driven Specification Refinement for Coding Agents",
- "authors": [],
- "abstract": "Software specifications, such as issue descriptions, are usually informal and often vague. Nevertheless, users insist that code written or generated based on a specification must align with it. This may require clarifying the specification itself. Prior work attempted to improve code+spec alignment by automatically rewriting the specification in a standardized way. Unfortunately, doing so just shifts the problem: now it is burdensome for users to tell whether the standardized spec aligns with the original. Instead, we propose SPECALIGN, which takes a different approach: it pinpoints parts of the spec to improve and surgically rewrites only those parts. That makes it is easier to compare the original and rewritten spec. To align a spec with generated code, SPECALIGN generates both code and tests, and then optimizes how well they agree. We demonstrate that this leads to better spec+code alignment, and ultimately, better issue resolution rates on SWE-Bench Pro and SWE-rebench. Even without a human, just pinpointing the gap already yields 2.4-3.6% improvement while only touching 35% of words. To understand the remaining gap, we introduce a simulated user into the SPECALIGN loop. Thanks to SPECALIGN pinpointing the gap, a simulated human can get 13.8-34.4% improvement. We quantify how often it requires information missing from the spec and available only in the ground truth. Overall, we hope that this paper contributes to better aligning AI-generated code with human intentions.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "b51234fa-4ebe-4296-8345-181606cf4ac2"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "SpecAlign: Test-Driven Specification Refinement for Coding Agents",
+ "authors": [],
+ "abstract": "Software specifications, such as issue descriptions, are usually informal and often vague. Nevertheless, users insist that code written or generated based on a specification must align with it. This may require clarifying the specification itself. Prior work attempted to improve code+spec alignment by automatically rewriting the specification in a standardized way. Unfortunately, doing so just shifts the problem: now it is burdensome for users to tell whether the standardized spec aligns with the original. Instead, we propose SPECALIGN, which takes a different approach: it pinpoints parts of the spec to improve and surgically rewrites only those parts. That makes it is easier to compare the original and rewritten spec. To align a spec with generated code, SPECALIGN generates both code and tests, and then optimizes how well they agree. We demonstrate that this leads to better spec+code alignment, and ultimately, better issue resolution rates on SWE-Bench Pro and SWE-rebench. Even without a human, just pinpointing the gap already yields 2.4-3.6% improvement while only touching 35% of words. To understand the remaining gap, we introduce a simulated user into the SPECALIGN loop. Thanks to SPECALIGN pinpointing the gap, a simulated human can get 13.8-34.4% improvement. We quantify how often it requires information missing from the spec and available only in the ground truth. Overall, we hope that this paper contributes to better aligning AI-generated code with human intentions.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}