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.
The pipeline operates in an evolutionary loop:
- Seed Pool: Starts with 46 hand-written CadQuery primitives (cubes, cylinders, tori).
- Evolutionary Loop: A VLM (GPT-5-mini) acts as the "mutator," proposing code edits and combining parent programs to create more complex "children."
- 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.
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:
- 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:
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