HNC-CAD
A generator of sketch-and-extrude CAD models that is controlled by a three-level tree of learned codes.
3D and point clouds · 3,177 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- 3D and point clouds
- Parameters
- 57.4M
- Operations
- 3,177
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2023
- Cited by
- 11 (as of 29 October 2026)
- Authors
- Xiang Xu, Pradeep Kumar Jayaraman, Joseph G. Lambourne and others
- Source
- GitHub: samxuxiang/hnc-cad
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17258
- Graph hash
- 1a53c8c835209658da7076bb6031d2296948c65fb1b336bf3e161e0caccd2a53
- Skeleton hash
- d416e9a40d936b6f985333d2606e030994821882c2a008c60122d1145ce8d922
- Architecture hash
- c530e1f8023740617ce51e5067e3204494684cb0caeda4bc3344de7ff72e5280
- Diagram SHA-256
- 4c62314148b9f46e922515cd1c37d3cb7c5b1c3593d1783e3b1eb5e52e9cdabd
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
HNC-CAD is a generative model for Computer Aided Design (CAD). It produces CAD models as sequences of modeling operations in the sketch-and-extrude style, the workflow in which a designer draws loops of 2D curves to form profiles and then extrudes the profiles into 3D shapes. The central idea is to represent the high-level design of a model as a three-level tree of neural codes, from global part arrangement down to local curve geometry, and to let a user control generation or completion by specifying that code tree.
The codes come from three codebooks, for loops, profiles and solids, which are learned independently by a variant of the vector quantized VAE with a Transformer encoder and decoder. The variant applies masking on a skip connection from the encoder input to the decoder input. An unmasked skip connection would let the decoder copy the input directly, so the mask forces the decoder to fill in the missing elements from the unmasked ones.
Generation uses two cascaded auto-regressive transformers. The first generates a three-level code tree from an incomplete CAD model, and the second completes the CAD model given the code tree and the incomplete data. A designer can also provide a code tree directly. The paper compares the system with SkexGen and DeepCAD on random generation and on user-controlled conditional generation.
Key idea. The paper represents CAD design intent as a three-level tree of neural codes, learned by a VQ-VAE with a masked skip connection, and uses it to control auto-regressive CAD generation.
- HNC-CAD
- Hierarchical Neural Coding
- controllable CAD generation
- CAD model generation
- sketch and extrude
- code tree
- neural codebook
- CAD auto-completion
- parametric CAD
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{xu2023hierarchicalneuralcodingcontrollable,
title={Hierarchical Neural Coding for Controllable CAD Model Generation},
author={Xiang Xu and Pradeep Kumar Jayaraman and Joseph G. Lambourne and Karl D. D. Willis and Yasutaka Furukawa},
year={2023},
eprint={2307.00149},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2307.00149},
}