ReCAD: Reinforcement Learning Enhanced Parametric CAD Model Generation with Vision-Language Models
Jiahao Li, Yusheng Luo, Yunzhong Lou, Xiangdong Zhou
TL;DR
ReCAD tackles precise parametric CAD generation from multimodal inputs by combining supervised fine-tuning of vision-language models with reinforcement learning guided by parameterized CAD code. It represents CAD as a hierarchy of primitives and trains through a two-stage process: SFT to convert hardcoded CAD scripts into parameterized code, followed by GRPO-based RL with off-policy guidance and a hierarchical primitive learning curriculum that enforces geometric and semantic fidelity. The approach achieves state-of-the-art performance on text-to-CAD and image-to-CAD tasks and demonstrates strong generalization, including zero-shot editing capabilities, suggesting practical, editable CAD generation with preserved design intent. These results indicate that exploiting PLMs’ generative priors, via parameterized code and guided RL, can significantly enhance precise, reusable CAD generation in real-world workflows.
Abstract
We present ReCAD, a reinforcement learning (RL) framework that bootstraps pretrained large models (PLMs) to generate precise parametric computer-aided design (CAD) models from multimodal inputs by leveraging their inherent generative capabilities. With just access to simple functional interfaces (e.g., point coordinates), our approach enables the emergence of complex CAD operations (e.g., pattern replication and mirror). This stands in contrast to previous methods, which typically rely on knowledge injected through supervised fine-tuning (SFT), offer limited support for editability, and fail to exploit the strong generative priors of PLMs. Specifically, the ReCAD framework begins by fine-tuning vision-language models (VLMs) to equip them with basic CAD model generation capabilities, where we rewrite CAD scripts into parameterized code that is leveraged to generate accurate textual descriptions for supervision. Then, we propose a novel RL strategy that incorporates parameterized code as guidance to enhance the model's reasoning on challenging questions. Furthermore, we employ a hierarchical primitive learning process to progressively teach structured and compositional skills under a unified reward function that ensures both geometric accuracy and semantic fidelity. ReCAD sets a new state-of-the-art in both text-to-CAD and image-to-CAD tasks, significantly improving geometric accuracy across in-distribution and out-of-distribution settings. In the image-to-CAD task, for instance, it reduces the mean Chamfer Distance from 73.47 to 29.61 (in-distribution) and from 272.06 to 80.23 (out-of-distribution), outperforming existing baselines by a substantial margin.
