CADEvolve: Creating Realistic CAD via Program Evolution

Maksim Elistratov, Marina Barannikov, Gregory Ivanov, Valentin Khrulkov, Anton Konushin, Andrey Kuznetsov, Dmitrii ZhemchuzhnikovarXiv 2026

TL;DR

CADEvolve introduces an offline evolutionary pipeline that leverages vision-language models (VLMs) to automatically synthesize complex, multi-operation CAD programs from simple primitives. By generating a massive dataset of over 1.3 million canonicalized scripts paired with 3D geometry, it breaks the data bottleneck for AI in engineering, achieving state-of-the-art performance on 3D CAD reconstruction tasks.

What Problem Does This Paper Address?

Automation in Computer-Aided Design (CAD) is severely bottlenecked by data. Existing public CAD datasets are overwhelmingly simple, consisting almost entirely of basic "sketch and extrude" sequences. They lack the complex, multi-operation compositions used by real-world engineers—such as revolves, lofts, sweeps, fillets, chamfers, and local patterns.

While modern VLMs are capable of generating code, they lack the precise 3D grounding required to write valid, complex CAD programs in a single pass. Prompting a frozen VLM typically yields simple or geometrically broken shapes. This paper tackles the challenge of automatically generating a massive, diverse, and physically valid dataset of complex CAD construction histories without relying on scarce human-authored data.

Methods

The authors propose CADEvolve, an offline evolutionary framework that shifts the heavy lifting of program search from inference time to the data-generation stage.

Figure 1. CADEvolve overview. (a) Representation of a shape tuple; (b) seed pool of 46 hand-written generators; (c) VLM pro- posals conditioned on sampled parents; (d) retrieval-augmented code synthesis; (e) staged validation (execution check, geometry validity, visual–text agreement) with targeted repair; (f) selection and growth of the accepted pool.

The pipeline operates in an evolutionary loop:

  1. Seed Pool: Starts with 46 hand-written CadQuery primitives (cubes, cylinders, tori).
  2. Evolutionary Loop: A VLM (GPT-5-mini) acts as the "mutator," proposing code edits and combining parent programs to create more complex "children."
  3. Staged Validation & Repair: Each candidate program undergoes strict multi-stage filtering: an execution check (does it compile?), a CAD geometric integrity check (is it a single watertight solid?), and a visual-text agreement check where a VLM confirms the rendered 3D shape matches its textual description. If a check fails, the model attempts a targeted self-repair.

To turn these parametric generators into a robust training set, the authors use black-box optimization (CMA-ES) to sample diverse parameters, followed by a rigorous canonicalization process (unifying formatting, centering shapes, and quantizing dimensions to a grid). Finally, they train a Qwen2-VL-2B model using Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (specifically a GRPO/CPPO variant called Dr. CPPO) to map multi-view images back to CAD code.

Image2CAD training pipeline

Datasets

The paper introduces CADEvolve-3L, a three-tier dataset:

  • CADEvolve-G: 7,945 validated parametric generators.
  • CADEvolve-P: ~800,000 executable CadQuery scripts sampled from the generators.
  • CADEvolve-C: A highly regularized, canonicalized, and binarized version of the scripts, scaled up via code rewrites and augmentations to a final training set of 2,720,481 scripts.

For evaluation and reinforcement learning grounding, the authors benchmark against three public corpora: DeepCAD, Fusion 360 Gallery, and MCB (Multi-Class B-rep).

Key Insights and Ideas

  • Evolution Belongs in Data Prep, Not Inference: Unlike prior methods that use evolutionary search at test time (which is slow and computationally expensive), CADEvolve uses evolution offline to build a pristine training dataset. At inference, the final model performs a fast, single-pass decode.
  • Code Regularization is Vital: Raw VLM-generated code suffers from "template collapse" and stylistic noise. The authors found that canonicalizing the code—standardizing variable names, centering shapes, and quantizing dimensions to a consistent grid—was absolutely vital for the model to learn actual geometric logic rather than superficial syntax.
  • The Complexity Wall: As the evolutionary loop progresses, the rate of invalid proposals from the VLM skyrockets to ~85%. This highlights a clear wall where current LLMs struggle to chain highly complex CAD operations without specialized tool feedback, justifying the need for automated validation loops.

Key Results

Fine-tuning on CADEvolve-C yields a policy model (CADEvolve-M) that achieves state-of-the-art performance on the Image2CAD task.

As detailed in the quantitative results table:

Table 1. CAD sequence generation conditioned on multi-view images. When CADEvolve-M (RL1) is trained on the same RL set as cadrille , it achieves lower CD and higher IoU than cadrille on all three datasets, at the cost of higher IR, reflecting more frequent use of complex operations that are more collision-prone than sketch–extrude pipelines. Adding MCB to the RL training pool trades a small drop in CD/IoU on DeepCAD and Fusion360—bringing them close to cadrille’s levels—for a substantial improvement on MCB.
  • DeepCAD & Fusion 360: CADEvolve-M achieves a Chamfer Distance (CD) of 0.15 and a volumetric IoU of 92.6% on DeepCAD, outperforming the previous state-of-the-art (cadrille).
  • MCB Dataset: On this highly complex dataset, CADEvolve-M boosts volumetric IoU from cadrille's 47.6% up to 55.2%, while drastically reducing the invalid rate (IR) from 2.5% to 0.4%.

Qualitative visualizations show that while baselines fail on complex features like lofts, sweeps, and intricate hole patterns, CADEvolve-M accurately reconstructs them:

Figure 5. Qualitative comparisons across datasets. Columns: DeepCAD, Fusion360, MCB. Rows (top→bottom): the cadrille baseline, our CADEvolve–C big (RL2) prediction, and the target render. This panel best illustrates the advantages of the CADEvolve dataset: targets include parts built via revolve, sweep, loft, face selectors, and complex hole patterns that cannot be well approximated by the sketch- extrude-boolean schemes used in CAD-Recode and many other datasets, where cadrille typically fails but CADEvolve-M closely reconstructs the input shape.

Limitations and Future Work

  • Synthetic Distribution Mismatch: Because the data is synthetically evolved, the frequency of specific operations and shapes might not perfectly mirror real-world, human-engineered industrial distributions.
  • Dialect Constraints: The dataset is strictly built around CadQuery (Python). Translating these histories into other commercial CAD formats (like STEP or Parasolid feature trees) remains non-trivial due to differences in geometric kernels and constraint solvers.
  • Future Directions: The authors suggest this data foundation can be extended beyond image-to-CAD to boost point-cloud-to-CAD (PC2CAD) and text-to-CAD pipelines.

Summary updated

BibTeX
@misc{elistratov2026cadevolve,
  author = {Maksim Elistratov and Marina Barannikov and Gregory Ivanov and Valentin Khrulkov and Anton Konushin and Andrey Kuznetsov and Dmitrii Zhemchuzhnikov},
  title = {{CADEvolve: Creating Realistic CAD via Program Evolution}},
  year = {2026},
  eprint = {2602.16317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.16317},
}
Figure