Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Neural Coding for Controllable CAD Model Generation

Xiang Xu, Pradeep Kumar Jayaraman|arXiv (Cornell University)|Jun 30, 2023
Manufacturing Process and OptimizationEngineering7 citations
TL;DR

This paper proposes a hierarchical neural coding framework for controllable CAD model generation using a three-level tree of discrete neural codes—representing global part arrangement, local profile geometry, and fine-grained curve features—combined with a masked skip-connection VQ-VAE and cascaded autoregressive transformers to enable high-fidelity, intent-aware generation and auto-completion. The method achieves state-of-the-art performance in both unconditional and conditional generation, enabling diverse, high-quality CAD outputs with intuitive user control.

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.

Motivation & Objective

  • To address the lack of design intent modeling in existing deep learning-based CAD generation methods.
  • To enable controllable, high-fidelity CAD generation by learning hierarchical design concepts as discrete neural codes.
  • To support novel user interactions such as design auto-completion from partial inputs and intent-preserving editing.
  • To improve generation diversity and fidelity over prior SOTA methods like SkexGen and DeepCAD.
  • To establish a neural code tree representation that captures both geometric and structural relationships in CAD models.

Proposed method

  • A novel variant of vector quantized VAE (VQ-VAE) with masked skip connections is used to learn three-level discrete codebooks from sketch-and-extrude CAD sequences.
  • The codebooks encode hierarchical design concepts: global part arrangement, 2D profile geometry, and local curve-level features.
  • Two-stage cascaded autoregressive transformers generate code trees from incomplete CAD models and then reconstruct full CAD models from the code tree and partial input.
  • The system supports direct code tree input for controlled generation and enables autocompletion from partial extruded profiles or loops.
  • The masked skip connection enhances codebook learning by preserving structural relationships between latent representations and geometry.
  • Generated CAD models are converted to B-Rep format for compatibility with industrial CAD software.
Figure 1 : We propose three-level hierarchical neural coding for controllable CAD model generation. Our system learns high-level design concepts as discrete codes at different levels, enabling more diverse and higher-quality generation (top); novel user controls while specifying design intent (botto
Figure 1 : We propose three-level hierarchical neural coding for controllable CAD model generation. Our system learns high-level design concepts as discrete codes at different levels, enabling more diverse and higher-quality generation (top); novel user controls while specifying design intent (botto

Experimental results

Research questions

  • RQ1Can a hierarchical neural code tree effectively represent high-level design intent across multiple levels of CAD structure?
  • RQ2Can a VQ-VAE with masked skip connections learn more disentangled and interpretable codebooks for CAD generation?
  • RQ3Can autoregressive transformers conditioned on partial CAD input generate diverse and faithful completions?
  • RQ4Can the code tree representation enable fine-grained, intent-preserving editing of CAD models?
  • RQ5How does the proposed method compare in quality and controllability to existing SOTA methods in conditional and unconditional generation tasks?

Key findings

  • The proposed method achieves state-of-the-art performance in unconditional CAD generation, producing more complex and realistic models than prior SOTA methods.
  • In conditional generation, the system demonstrates superior geometry control and diversity, enabled by hierarchical code tree manipulation.
  • Autocompletion from partial extruded profiles or loops yields higher fidelity and diversity than a nearest-neighbor baseline, which suffers from limited diversity and poor alignment.
  • The codebook learning with masked skip connections captures instance-agnostic design patterns (e.g., oscillating loops) while ignoring instance-specific details like curve count or type.
  • Design-preserving editing is achieved by fixing the code tree and updating only model parameters, allowing automatic propagation of edits to maintain structural relationships.
  • The system enables intuitive user interaction through code tree editing, allowing users to specify design intent at different abstraction levels.
Figure 2 : Example failures of parametric CAD, editing a design (a) by shortening or extending (green) the table. Inconsistent areas are highlighted in red.
Figure 2 : Example failures of parametric CAD, editing a design (a) by shortening or extending (green) the table. Inconsistent areas are highlighted in red.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.