arXiv:2608.24020cs.CVcs.AI2026-08中稿 · the 34th ACM Inter…

通过迭代修复生成可执行的参数化CAD代码,提升几何准确性。

IterCAD: Iterative Program Repair for CAD Code Generation from Orthographic Views

论文配图:IterCAD: Iterative Program Repair for CAD Code Generation from Orthographic Views
图 1 · 摘自论文原文
  • 将生成过程变为逐步修复,先分析再修正代码
  • 在CADExpert数据集上代码可执行率显著提升
  • 适合需要高精度建模的工业设计场景

从带尺寸标注的正交视图生成可执行的参数化CAD代码是一项挑战性任务,需具备几何理解、过程推理和精确数值预测能力。现有视觉-语言方法通常采用单次生成,无法检查中间结果或纠正早期错误,常导致不可执行代码或几何不一致输出。本文提出IterCAD,一种将正交视图到CAD生成重构为渐进式程序修复过程的迭代框架。不同于一次性预测最终代码,IterCAD反复分析当前CAD结果,判断其与目标视图的差异,并明确决定是否修订代码或停止优化。为使迭代修复可学习,我们构建了IterCAD-RS——一个包含可修复中间状态和已正确状态的结构化修正或停止监督数据集,并设计三阶段训练策略:初始生成、修订学习和多轮强化学习优化。通过闭合视觉理解、几何验证与代码修正之间的反馈环,IterCAD逐步纠正结构与参数错误。在CADExpert数据集上的实验表明,IterCAD持续优于强基准的一次性生成方法,在代码可执行性和几何保真度方面均有提升。

原文摘要 · Abstract (English)

Generating executable parametric CAD code from dimension-annotated orthographic drawings is a challenging task requiring geometric understanding, procedural reasoning, and precise numerical prediction. Existing vision-language approaches typically formulate this problem as one-shot generation, preventing the model from inspecting intermediate CAD results and correcting early mistakes, often leading to non-executable code or geometrically inconsistent outputs. In this paper, we propose IterCAD, an iterative framework that reformulates orthographic-view-to-CAD generation as a progressive program repair process. Instead of predicting the final CAD code in a single pass, IterCAD repeatedly analyzes the current CAD result, reasons about its discrepancy with the target views, and explicitly decides whether to REVISE the code or STOP the refinement process. To make iterative repair learnable, we further construct IterCAD-RS, a structured revise-or-stop supervision set containing both repairable intermediate CAD states and already-correct states, and develop a three-stage training strategy for initial generation, revision learning, and multi-turn RL optimization. By closing the loop between visual understanding, geometric verification, and code refinement, IterCAD progressively corrects structural and parametric errors. Experiments on CADExpert show that IterCAD consistently improves code executability and geometric fidelity over strong one-shot baselines.

CAD生成程序修复迭代优化参数化建模

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。