[Paper Review] SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks
SkexGen introduces an autoregressive generative model for CAD construction sequences using disentangled codebooks to separately encode topology, geometry, and extrusion variations. By leveraging distinct Transformer encoders and decoders, it enables high-quality, diverse CAD generation with precise user control over design attributes, achieving state-of-the-art performance in controllability and design space exploration.
We present SkexGen, a novel autoregressive generative model for computer-aided design (CAD) construction sequences containing sketch-and-extrude modeling operations. Our model utilizes distinct Transformer architectures to encode topological, geometric, and extrusion variations of construction sequences into disentangled codebooks. Autoregressive Transformer decoders generate CAD construction sequences sharing certain properties specified by the codebook vectors. Extensive experiments demonstrate that our disentangled codebook representation generates diverse and high-quality CAD models, enhances user control, and enables efficient exploration of the design space. The code is available at https://samxuxiang.github.io/skexgen.
Motivation & Objective
- To develop a generative model that produces diverse and high-quality CAD construction sequences with explicit user control over design variations.
- To address the limitations of parametric CAD models, which are brittle under topological changes and require expert input for creation.
- To enable efficient exploration of the design space by decoupling topological, geometric, and extrusion variations through disentangled latent representations.
- To improve upon existing autoregressive models by introducing a codebook-based control mechanism that enhances both diversity and controllability in CAD generation.
- To demonstrate the feasibility of interpolating and mixing codebook vectors for novel design synthesis beyond standard generation.
Proposed method
- SkexGen uses three separate Transformer encoders to learn disentangled latent representations from sketch-and-extrude sequences, each encoding topology, geometry, or extrusion variations into distinct codebooks.
- The model employs a discrete vector-quantized VAE (VQ-VAE) framework to map sequences into discrete tokens, with each codebook storing distinct design attributes.
- Autoregressive Transformer decoders generate construction sequences conditioned on sampled codebook vectors, enabling controlled, step-by-step generation of 2D sketches and 3D extrusions.
- Codebook vectors are quantized and used as conditioning signals during autoregressive decoding, allowing precise manipulation of design attributes.
- The model is trained on a large-scale sketch-and-extrude CAD dataset, with reconstruction and adversarial objectives to improve generation quality.
- Interpolation and code mixing are enabled by linearly interpolating or combining codebook vectors from different source models before decoding.
Experimental results
Research questions
- RQ1Can disentangled codebooks effectively separate and control topology, geometry, and extrusion variations in CAD construction sequences?
- RQ2Can autoregressive generation conditioned on discrete codebook vectors produce diverse, high-quality CAD models with improved controllability?
- RQ3How does disentanglement of design attributes affect the quality and diversity of generated CAD models compared to joint or non-disentangled representations?
- RQ4Can interpolation and code mixing of disentangled codebooks generate novel, plausible CAD designs not seen in the training data?
- RQ5To what extent does the model outperform existing state-of-the-art methods in both qualitative and quantitative benchmarks?
Key findings
- SkexGen achieves a disentanglement classification accuracy of 99.8±0.1%, demonstrating effective separation of topology, geometry, and extrusion factors in the latent codebooks.
- The model generates significantly more diverse and realistic CAD models than baselines such as DeepCAD and CurveGen, with complex multi-step sketch-and-extrude sequences.
- Removing multiple codebooks or using a single codebook reduces generation quality, confirming the benefit of disentanglement.
- Interpolation between codebook vectors produces meaningful, non-smooth morphologies involving discrete topological changes, such as transitions from lines to circles or from solid to hollow forms.
- Code mixing enables hybrid designs—e.g., combining topology from one model with geometry from another—producing novel configurations not present in training data.
- Despite slower inference (90 seconds for 10,000 samples), SkexGen is twice as fast as CurveGen due to a single autoregressive decoder, and outperforms it in quality and controllability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.