arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.03045cs.LG
收藏

先澄清再绘制:面向鲁棒文本到CAD生成的主动式智能体

Clarify Before You Draw: Proactive Agents for Robust Text-to-CAD Generation

Georgia Institute of Technology(佐治亚理工学院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Bo Yuan, Zelin Zhao, Petr Molodyk, Bin Hu, Yongxin Chen

AI总结:

提出主动式智能体框架ProCAD,通过澄清代理在代码生成前解决用户提示中的歧义,再通过CAD编码代理生成可执行程序,显著提升鲁棒性,平均Chamfer距离降低79.9%。

摘要:

大型语言模型最近使得文本到CAD系统能够从自然语言提示中合成参数化CAD程序(例如CadQuery)。然而在实践中,几何描述可能是不明确或内部不一致的:关键尺寸可能缺失,约束可能冲突。然而,现有的微调模型倾向于被动地遵循用户指令,并在文本模糊时产生幻觉尺寸。为了解决这个问题,我们提出了一个用于文本到CadQuery生成的主动式智能体框架,名为ProCAD,它在代码合成之前解决规范问题。我们的框架将主动式澄清代理(该代理审计提示并仅在必要时提出有针对性的澄清问题以生成自洽的规范)与CAD编码代理(将规范转换为可执行的CadQuery程序)配对。我们基于精心策划的高质量文本到CadQuery数据集微调编码代理,并通过在澄清轨迹上进行智能体SFT来训练澄清代理。实验表明,主动式澄清显著提高了对模糊提示的鲁棒性,同时保持较低的交互开销。ProCAD优于前沿闭源模型,包括Claude Sonnet 4.5,将平均Chamfer距离降低了79.9%,并将无效比率从4.8%降至0.9%。我们的代码和数据集在此https URL上公开。

英文摘要:

Large language models have recently enabled text-to-CAD systems that synthesize parametric CAD programs (e.g., CadQuery) from natural-language prompts. In practice, however, geometric descriptions can be under-specified or internally inconsistent: critical dimensions may be missing and constraints may conflict. However, existing fine-tuned models tend to reactively follow the user instructions and hallucinate dimensions when the text is ambiguous. To address this, we propose a proactive agentic framework for text-to-CadQuery generation, named as ProCAD, that resolves specification issues before code synthesis. Our framework pairs a proactive clarifying agent, which audits the prompt and asks targeted clarification questions only when necessary to produce a self-consistent specification, with a CAD coding agent that translates the specification into an executable CadQuery program. We fine-tune the coding agent based on a curated high-quality text-to-CadQuery dataset and train the clarifying agent via agentic SFT on clarification trajectories. Experiments show that proactive clarification significantly improves robustness to ambiguous prompts while keeping interaction overhead low. ProCAD outperforms frontier closed-source models, including Claude Sonnet 4.5, reducing the mean Chamfer distance by 79.9% and lowering the invalidity ratio from 4.8% to 0.9%. Our code and datasets are made publicly available on https://github.com/BoYuanVisionary/Pro-CAD.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑