Hierarchical Neural Coding for Controllable CAD Model Generation
Xiang Xu, Pradeep Kumar Jayaraman, Joseph G. Lambourne, Karl D. D. Willis, Yasutaka Furukawa
TL;DR
The paper introduces a three-level hierarchical neural coding framework for controllable CAD model generation, encoding Loop, Profile, and Solid information into discrete codebooks and utilizing two-stage cascaded transformers to generate or complete CAD models from partial input or a target code tree. By learning design concepts as a code tree and enabling editing, autocompletion, and design-preserving changes, the approach aims to preserve design intent while offering richer control than prior methods. Empirical results on a large sketch-and-extrude CAD dataset show superior generation quality and interactive capabilities, including code-tree editing and partial-input auto-completion, with favorable human judgments. This work advances intelligent, intent-aware CAD tooling by integrating hierarchical neural representations with autoregressive generation.
Abstract
This paper presents a novel generative model for Computer Aided Design (CAD) that 1) represents high-level design concepts of a CAD model as a three-level hierarchical tree of neural codes, from global part arrangement down to local curve geometry; and 2) controls the generation or completion of CAD models by specifying the target design using a code tree. Concretely, a novel variant of a vector quantized VAE with "masked skip connection" extracts design variations as neural codebooks at three levels. Two-stage cascaded auto-regressive transformers learn to generate code trees from incomplete CAD models and then complete CAD models following the intended design. Extensive experiments demonstrate superior performance on conventional tasks such as random generation while enabling novel interaction capabilities on conditional generation tasks. The code is available at https://github.com/samxuxiang/hnc-cad.
