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

学习层次化和几何感知的图表示以实现文本到CAD

Learning Hierarchical and Geometry-Aware Graph Representations for Text-to-CAD

South China University of Technology(华南理工大学);Zhuzhou CRRC Times Electric Co., Ltd.(株洲中车时代电气股份有限公司);Guangdong University of Technology(广东工业大学)

Shengjie Gong, Wenjie Peng, Hongyuan Chen, Gangyu Zhang, Yunqing Hu, Huiyuan Zhang, Shuangping Huang, Tianshui Chen

AI总结:

本文提出层次化和几何感知的图表示,通过结构预测和约束建模提升CAD代码生成的几何精度和约束满足能力,同时引入渐进课程学习策略和12K数据集进行实验验证。

摘要:

文本到CAD代码生成是一个长周期任务,将文本指令转换为长序列的相互依赖操作。现有方法通常直接将文本解码为可执行代码(如bpy),而未显式建模装配层次或几何约束,导致搜索空间扩大、局部错误积累,复杂装配中常引发级联故障。为解决此问题,我们提出层次化和几何感知的图作为中间表示。图将多级部件和组件作为节点,编码显式几何约束作为边。不同于直接将文本映射到代码,我们的框架首先预测结构和约束,然后条件化动作序列和代码生成,从而提升几何保真度和约束满足度。我们进一步引入结构感知的渐进课程学习策略,通过受控的结构编辑构建分级任务,探索模型能力边界,并合成边界示例用于迭代训练。此外,我们构建了一个包含指令、分解图、动作序列和bpy代码的12K数据集,以及面向图和约束的评估指标。大量实验表明,我们的方法在几何保真度和准确满足几何约束方面均优于现有方法。

英文摘要:

Text-to-CAD code generation is a long-horizon task that translates textual instructions into long sequences of interdependent operations. Existing methods typically decode text directly into executable code (e.g., bpy) without explicitly modeling assembly hierarchy or geometric constraints, which enlarges the search space, accumulates local errors, and often causes cascading failures in complex assemblies. To address this issue, we propose a hierarchical and geometry-aware graph as an intermediate representation. The graph models multi-level parts and components as nodes and encodes explicit geometric constraints as edges. Instead of mapping text directly to code, our framework first predicts structure and constraints, then conditions action sequencing and code generation, thereby improving geometric fidelity and constraint satisfaction. We further introduce a structure-aware progressive curriculum learning strategy that constructs graded tasks through controlled structural edits, explores the model's capability boundary, and synthesizes boundary examples for iterative training. In addition, we build a 12K dataset with instructions, decomposition graphs, action sequences, and bpy code, together with graph- and constraint-oriented evaluation metrics. Extensive experiments show that our method consistently outperforms existing approaches in both geometric fidelity and accurate satisfaction of geometric constraints.

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

↑