All models

SkexGen

Autoregressive Transformer that generates CAD sketch-and-extrude sequences from three disentangled codebooks.

3D and point clouds · 1,898 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

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

Parameters
23.9M
Operations
1,898
Framework
PyTorch
Recurrent
No
Published
ICML 2022
Cited by
26 (as of 3 November 2026)
Authors
Xiang Xu, Karl D.D. Willis, Joseph G. Lambourne and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20446
Graph hash
49f67dfe03e27d45d822885e79b8d827a950ecb2facdb5920a2fa9709ac34227
Skeleton hash
340a7f9674e25310d8ceb441962658a5aeec2407080648e08b732508f4c1df8f
Architecture hash
faf16dac6205668e15de145c3a0777d10f91d6d3e49951fd230d9283c4c6d906
Diagram SHA-256
93faa85e26d0616ad6b080422d255314906dd1674600eac45d8af48e73990cfe
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

SkexGen is an autoregressive generative model for computer-aided design (CAD) construction sequences made of sketch-and-extrude modeling operations. A sketch operation creates 2D primitives and an extrude operation lifts and combines them into 3D. The paper's concern is control: earlier generators could produce a diverse range of shapes, but gave the user little control over an existing design.

Its answer is to store what varies between designs in three codebooks of discrete codes, covering topological, geometric and extrusion variations. The sketch branch has two encoders that learn topological and geometric variations of sketches in two codebooks. The extrude branch has an encoder and a decoder for extrude and Boolean operations. In each encoder, the output embedding of a prepended code-token is quantized to the closest code in the codebook. The sketch decoder reads four topology codes and two geometry codes through cross-attention. Sketch coordinates are discretized into 64 × 64 (6 bits) pixels, and the sketch decoder predicts each token as a probability over 4101 classes.

To generate new designs, a further Transformer decoder is trained to select code indexes from each of the three codebooks, and the sketch and extrude decoders then produce the sequences. The paper trains and evaluates on the DeepCAD dataset, which contains 178,238 sequences. On its sketch generation task the paper reports an FID of 18.56 for SkexGen, against 75.47 for DeepCAD and 109.12 for CurveGen.

Key idea. SkexGen encodes topological, geometric and extrusion variations of CAD construction sequences into three disentangled codebooks, from which autoregressive Transformer decoders generate sketch-and-extrude sequences.

  • SkexGen
  • CAD generation
  • sketch-and-extrude
  • CAD construction sequence
  • disentangled codebooks
  • autoregressive transformer
  • computer-aided design
  • sketch generation
  • vector quantization

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{xu2022skexgenautoregressivegenerationcad,
      title={SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks}, 
      author={Xiang Xu and Karl D. D. Willis and Joseph G. Lambourne and Chin-Yi Cheng and Pradeep Kumar Jayaraman and Yasutaka Furukawa},
      year={2022},
      eprint={2207.04632},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2207.04632}, 
}