CADFS: A Big CAD Program Dataset and Framework for Computer-Aided Design with Large Language Models

  • 1Applied AI Institute
  • 2AI Foundation and Algorithm Lab
  • 3AXXX
  • 4KAUST

CVPR 2026

Abstract

We introduce CADFS, a data-centric framework that enables large vision-language models to generate complex CAD design histories. Existing generative CAD systems are restricted to sketch-extrude operations due to simplified representations and limited datasets. We address this by introducing a FeatureScript-based representation and constructing a dataset of 450k real-world CAD models spanning 15 modeling operations. We obtain the dataset via a new pipeline that reconstructs clean, executable FeatureScript programs and provides multimodal annotations. Fine-tuning a VLM on this representation yields state-of-the-art results in text-conditioned CAD generation and image-based reconstruction, producing more accurate, diverse, and feature-rich designs than prior frameworks. Ablations show that each individual component of our framework, i.e., the FeatureScript representation, the extended operation set, and representation-aligned textual descriptions, significantly improves performance. Our framework substantially broadens the complexity and realism achievable in generative CAD.

Play CADFS video overview

Method

1. Reconstruct executable CAD programs

FeatureScript reconstruction pipeline

We recover compact FeatureScript programs from Onshape models by making sketch parameters explicit, standardizing units, and simplifying queries, identifiers, and operation definitions. Each program is executed and checked against its source model, and only successful reconstructions are retained.

2. Annotate the design history

Design-history annotation pipeline

An LLM annotator describes the construction process from the recovered code. A second LLM reviews the draft against the code and FeatureScript documentation, correcting terminology, operation order, and references to geometric entities.

3. Train for text and image inputs

Text- and image-conditioned CAD training pipeline

We fine-tune Qwen2-VL to generate FeatureScript from textual descriptions or multi-view images with dimensional information. The generated program compiles into CAD geometry while preserving an editable sequence of modeling operations.

Text-conditioned generation

We evaluate text-conditioned generation on the CADFS test set across a broad range of modeling operations, and on the DeepCAD test set for designs built using sketch-and-extrude operations.

Bevel selected edges.

Drag any model to rotate both views together. Use + / − to zoom, or Reset view to return to the starting angle.

CADFS input text
Step 1 - Sketch Create a new sketch on the default Top plane. Sketch the rectangular outline consisting of five line segments: (0 mm, -50 mm) to (10 mm, -50 mm), up to (10 mm, -10 mm), across to (50 mm, -10 mm), up to (50 mm, 10 mm), and back to (0 mm, 10 mm). Mirror this outline to the left side producing matching segments from (0 mm, -50 mm) to (-10 mm, -50 mm), up to (-10 mm, -10 mm), across to (-50 mm, -10 mm), up to (-50 mm, 10 mm), and back to (0 mm, 10 mm). Add two vertical lines at x = -30 mm and x = 30 mm spanning y = -10 mm to y = 10 mm, and place circles of radius 2.25 mm at (0,0), (20,0), (40,0), (0,-20), (0,-40), (-40,0) and (-20,0). Solve the sketch. Step 2 - Extrude NEW Select the imprint face on the positive side of the bottom edge (the face adjacent to edge from (0, -50) to (10, -50)). Extrude this face a blind depth of 4 mm to create a solid plate following the outer contour of the sketch. Step 3 - Chamfer EQUAL_OFFSETS Apply a 2 mm equal-offset chamfer with tangent propagation to all cap edges of the extruded plate: the outer rectangular edges on both sides and the two central vertical edges at x = -30 mm and x = 30 mm. Step 4 - Chamfer EQUAL_OFFSETS Apply a 1.45 mm equal-offset chamfer with tangent propagation to the cap edges of all seven circles created in the sketch (circles at (0,0), (20,0), (40,0), (-40,0), (-20,0), (0,-20) and (0,-40)), rounding the edges of the resulting holes.

Image-conditioned reconstruction

We also evaluate our method on image-conditioned reconstruction of CAD models featuring complex modeling operations from the CADFS test set.

Bevel selected edges.

Drag any model to rotate all four views together. Use + / − to zoom, or Reset view to return to the starting angle.

Input views for model 00751514

Input views

The source image contains multiple views of the same object.

Acknowledgments

We are grateful to Onshape for providing public access to a vast library of CAD designs.

BibTeX

@InProceedings{pyatov2026cadfs,
    author    = {Pyatov, Vladislav and Bobrovskikh, Gleb and Galochkin, Saveliy and Boldyrev, Nikita and Voynov, Oleg and Filippov, Alexander and Ferrer, Gonzalo and Wonka, Peter and Burnaev, Evgeny},
    title     = {CADFS: A Big CAD Program Dataset and Framework for Computer-Aided Design with Large Language Models},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2026},
    pages     = {10176-10186}
}