GenCAD: Image-Conditioned Computer-Aided Design Generation with Transformer-Based Contrastive Representation and Diffusion Priors
Md Ferdous Alam, Faez Ahmed
TL;DR
GenCAD tackles the challenge of generating editable, manufacturable CAD shapes by treating CAD as a language with parametric command sequences and conditioning generation on images. It introduces a four-part framework—Command Sequence Reconstruction (CSR), Contrastive CAD–Image Pre-training (CCIP), CAD Diffusion Prior (CDP), and a CAD Decoder—that jointly learn a latent space for CAD commands and their visual counterparts, then synthesize complete CAD programs from image latents. Empirical results show superior CAD sequence reconstruction versus prior autoencoders, strong image-based CAD retrieval performance, and competitive unconditional and conditional CAD generation across standard metrics, highlighting the practical potential for image-to-CAD design workflows. While promising, the approach currently uses a limited CAD vocabulary and lacks guaranteed validity of generated CADs, suggesting future directions in richer tokens, CAD-verification feedback, and deployment with real-world, noisy imagery in commercial CAD environments.
Abstract
The creation of manufacturable and editable 3D shapes through Computer-Aided Design (CAD) remains a highly manual and time-consuming task, hampered by the complex topology of boundary representations of 3D solids and unintuitive design tools. While most work in the 3D shape generation literature focuses on representations like meshes, voxels, or point clouds, practical engineering applications demand the modifiability and manufacturability of CAD models and the ability for multi-modal conditional CAD model generation. This paper introduces GenCAD, a generative model that employs autoregressive transformers with a contrastive learning framework and latent diffusion models to transform image inputs into parametric CAD command sequences, resulting in editable 3D shape representations. Extensive evaluations demonstrate that GenCAD significantly outperforms existing state-of-the-art methods in terms of the unconditional and conditional generations of CAD models. Additionally, the contrastive learning framework of GenCAD facilitates the retrieval of CAD models using image queries from large CAD databases, which is a critical challenge within the CAD community. Our results provide a significant step forward in highlighting the potential of generative models to expedite the entire design-to-production pipeline and seamlessly integrate different design modalities.
