CAD-WAM:用于文本到CAD生成的几何预判模型
CAD-WAM: Anticipating Geometry for Text-to-CAD Generation
AI总结:
本研究提出CAD-WAM模型,结合几何条件动作生成与下一状态预测,在DeepCAD数据集上实现更准确的文本到CAD生成,几何监督使平均Chamfer距离降低13.2%。
摘要:
从文本生成可编辑的计算机辅助设计(CAD)模型需要选择能对当前已构建的几何结构产生预期改变的操作,错误的操作会损害后续步骤,使得可靠的多步生成颇具挑战性。现有基于大语言模型(LLM)的方法主要学习预测命令,却未对这些命令应产生的几何状态进行显式监督。受世界-动作模型启发,我们提出CAD-WAM,它将几何条件下的动作生成与下一状态预测相结合。我们将完整的建模操作定义为CAD领域特定语言(DSL)中的动作,并使用预训练的变分自动编码器将中间实体的表面点云编码为紧凑的隐状态。LLM主干从目标描述和当前几何状态生成下一个动作,而同一主干上的辅助头预测下一状态,以在训练期间提供几何监督。我们从DeepCAD数据集中的参数化CAD模型构建分步训练轨迹,将每个轨迹与专家级文本描述配对。推理时,每个生成的动作由CAD内核执行,得到的实体被重新编码以指导下一个决策。在DeepCAD测试集上,CAD-WAM在几何准确性和输出有效性方面优于任务特定基线,在需要更多操作的模型上增益更大,且比用相同DSL提示的通用LLM生成的几何更准确。消融实验进一步表明,与仅训练预测动作的相同模型相比,下一状态监督将平均Chamfer距离降低了13.2%。代码可在该https URL获取。
英文摘要:
Generating editable computer-aided design (CAD) models from text requires selecting operations that produce the intended changes to the geometry constructed so far. An incorrect operation can compromise subsequent steps, making reliable multi-step generation challenging. Existing methods based on large language models (LLMs) primarily learn to predict commands, without explicit supervision of the geometric states those commands should produce. Inspired by world-action models, we introduce CAD-WAM, which couples geometry-conditioned action generation with next-state prediction. We define complete modeling operations as actions in a CAD domain-specific language (DSL) and encode surface point clouds of intermediate solids into compact latent states using a pretrained variational autoencoder. An LLM backbone generates the next action from the target description and current geometric state, while an auxiliary head on the same backbone predicts the next state to provide geometric supervision during training. We construct step-wise training trajectories from parametric CAD models in the DeepCAD dataset, pairing each trajectory with an expert-level textual description. At inference, each generated action is executed by a CAD kernel, and the resulting solid is re-encoded to inform the next decision. On the DeepCAD test set, CAD-WAM outperforms the task-specific baselines in geometric accuracy and output validity, with larger gains on models requiring more operations, and produces more accurate geometry than general-purpose LLMs prompted with the same DSL. Ablations further show that next-state supervision reduces mean Chamfer distance by 13.2\% relative to an otherwise identical model trained only to predict actions. Code is available at https://github.com/Lzy-1037/CAD-WAM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。