CAD-WAM: Anticipating Geometry for Text-to-CAD Generation
Zhengyang Li, Weijie Zheng, Yuxin Cui, Sijie Wang, Wenjie Feng, Qiyu Kang
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.CV, cs.GR
Related papers
GeoMVGen: Joint Appearance-Geometry Modeling for Multi-View Video Generation in Robotic Manipulation
Shared title terminologycs.CVQiaoqiao Jia, Guile Wu, Dongfeng Bai
CrownFusion: 3D Dental Crown Generation Using Geometry Images and Latent Diffusion
Shared title terminologycs.CVJohan Ziruo Ye, Xingguang Yan, Søren Hauberg et al.
Graph2Scene: Relation-Aware Text-to-Image Generation with Graph-Guided Diffusion Model
Shared title terminologycs.CVPeizheng Li, Xin Ai, Guanghui Cheng et al.
SAVIER: Source-Anchored Visual Inspection and Evidence-Guided Repair for Vietnamese Cultural Text-to-Image Generation
Shared title terminologycs.CVGia-Huy Thai, Duc-Tien Khong, Trung-Nghia Le
GeoFlip Preview: Benchmarking Geometry-Sensitive Physics in Video Generation
Shared title terminologycs.CVYuqi Li, Junming Liu, Bowen Hu et al.
RoMo Hands: A Large Scale Richly Organized Text to Hand Motion Dataset
Shared title terminologycs.CVYizhak Ben-Shabat, Jiahao Zhang, Joseph Liu et al.