ICAD: Search-based Algorithm for CAD Reconstruction

Albert Garifullin, Nikolay Mayorov, Nikolay Petrov, Dmitrii Zhemchuzhnikov, Soslan Kabisov, Vladimir FrolovarXiv 2026

TL;DR

Think of a triangle mesh as a baked cake, and a CAD model as the actual recipe. For years, researchers assumed that reverse-engineering that recipe from a raw 3D mesh required massive neural networks or costly AI agents—until ICAD proved that a smart combination of classical geometry detection, evolutionary search, and calculus on a standard desktop CPU can beat them all in both accuracy and cost.

What Problem Does This Paper Address?

When engineers design mechanical parts in Computer-Aided Design (CAD) software, they build a procedural "recipe": sketch a 2D profile, extrude it into 3D, revolve another shape, and subtract a hole using Boolean logic. However, because CAD formats are often proprietary, parts are usually shared or archived as "dumb" 3D triangle meshes. Once converted, the construction history is lost, making the part frustratingly difficult to edit.

Recovering this editable program (CAD reverse engineering) is a notorious open problem. Single-pass deep learning models guess the code from the geometry, which makes them fast, but imprecise on exact dimensions. Meanwhile, AI agents that iteratively write and test CAD code achieve better accuracy, but burn through GPU hours and expensive LLM API tokens. Pure, non-learned search algorithms were largely written off years ago as far too slow to handle complex parts. The authors ask: Can we make pure, training-free search fast and accurate enough to beat modern AI?

Methods

ICAD resurrects search-based CAD reconstruction by splitting the problem into discrete structure (what operations to do) and continuous parameters (exact dimensions and angles), running entirely in C++ on a CPU.

Figure 2: Overview of the method. The target mesh is analyzed by a few different primitive detectors, each finding its own set of primitives and contributing them to the pool. Primitive combiner then assembles hypotheses, CSG trees consisting of primitives from the pool. These hypotheses are used as a staring population for genetic algorithm, which evolves them for many generations. On each generation population is first improved via gradient descent, then evaluated against target mesh and new generation is created via crossover and mutation of the best ones. After the target score has been reached or evaluation budget exhausted, a few best scored CSG candidates are post-processed, which includes simplification of tree structure and parameters fine-tuning. After post-processing these candidates are presented to the uses as CAD programs (e.g. via export to CadQuery).
  1. Custom Differentiable Geometry Kernel: Industrial CAD kernels are too slow and rigid for rapid optimization. The authors built a fast stack-machine evaluator based on Constructive Solid Geometry (CSG) and Signed Distance Fields (SDFs)—scalar fields that measure the distance from any point to a shape's surface (using fast "pseudo-SDF" approximations for complex sweeps and lofts). Crucially, this kernel is differentiable, meaning you can compute exact analytic gradients showing how tweaking a sketch dimension shifts the 3D surface.
Figure 1: Example of main solid-creating operation: sketch, full solid, cut and pseudo-SDF visualization on cut plane.
  1. Hypothesis Seeding: Instead of starting from scratch, geometric detectors (using triangle-based RANSAC) scan the input mesh for planes, cylinders, revolves, and sweeps. A combiner uses graph algorithms to assemble conflict-free subsets of these shapes into complete initial candidate programs.
  2. Memetic Search (Evolution + Gradient Descent): A genetic algorithm mutates and crosses over the discrete program trees (adding/removing sketch points, flipping unions to cuts). In every generation, the top half of the candidates undergo Adam gradient descent via the differentiable SDF kernel, snapping their continuous dimensions tightly onto the target mesh.
  3. Post-Processing & Export: Dead features that contribute negligible volume are pruned, jagged polylines are cleanly fitted into geometric arcs and circles, and the tree is exported into clean, human-editable CadQuery Python code.

Datasets

Because ICAD requires zero training data, datasets are used strictly for evaluation (no new benchmarks are introduced):

  • DeepCAD (8,046 parts) and Fusion360 (1,725 parts): Standard sketch-and-extrude CAD benchmarks.
  • MCB (5,000 parts) and CADENA-Bench (3,396 parts): Complex mechanical parts featuring intricate features like gears and brackets.
  • BenchCAD (17,900 parts across 106 families): A broad, tiered benchmark recently used to test frontier LLM agents.
  • InverseCSG (50 parts): A classic benchmark used to compare against prior non-learned search methods.

Key Insights and Ideas

  • Evolutionary search isn't dead; it just needed calculus and good seeds: Prior work (InverseCSG) abandoned genetic algorithms because evolving CAD trees from scratch took hundreds of hours. ICAD proves that seeding the population with RANSAC detectors and letting gradient descent handle continuous coordinates makes evolutionary search roughly 100x faster.
  • Most "standard" benchmarks don't even need evolution: On simpler sketch-and-extrude datasets like DeepCAD and Fusion360, 89%–96% of parts hit the target quality in the very first generation—meaning primitive detection plus one pass of gradient descent is enough. Evolution only flexes its muscles on complex mechanical parts (like bevel gears and twist drills).
  • Plug-and-play extensibility: Because the primitive pool is modular, you can drop outputs from learned AI models (like CADFather) directly into ICAD's pool. ICAD doesn't just copy the AI's answer; it mixes the AI's proposed features with its own geometric detections and refines them to beat both methods standalone.

Key Results

Measured by exact volumetric Intersection over Union (IoU)—where 1.0 is a perfect 3D match—ICAD sets a new state-of-the-art across every major benchmark:

  • Near-perfection on standard CAD: Reaches 0.999 IoU on DeepCAD (10.9s mean single-thread time) and 0.996 IoU on Fusion360 (24.6s), cutting the remaining volumetric error of the previous best method (CADFather) by more than 6x while running faster.
  • Crushing complex mechanical parts: Achieves 0.972 IoU on MCB and 0.975 IoU on CADENA-Bench (compared to ~0.91 for CADFather), cutting volumetric error by over two-thirds.
  • Pennies vs. Dollars on BenchCAD: Scores 0.997 IoU (0.989 voxel IoU) for less than $0.01 in CPU electricity per part, outperforming frontier vision-language agents like Claude Opus 5.5 and GPT-6 Astra (~0.96 voxel IoU at $1.75–$5.94 per part in API costs, though the LLMs solved a harder image-to-CAD task).
  • Speedup over classical search: Matches InverseCSG's accuracy while dropping average multi-threaded wall-clock runtime from 38.3 minutes down to 21.5 seconds per model.

Limitations and Future Work

  • Heavy compute tails on intricate parts: While simple parts finish in ~3–11 seconds, complex mechanical parts with dozens of features (like helical gears or coil springs) drag single-threaded mean times up to ~1,000+ seconds—though running across all 32 threads of a desktop CPU yields a 10–20x speedup.
  • Scaling to full assemblies: ICAD targets single parts or small assemblies (~20 solids). Scaling to massive industrial assemblies with hundreds of primitives and thousands of parameters will require new task-decomposition strategies.
  • Lack of high-level semantic intuition: Purely algorithmic search lacks "common sense" on tricky shapes like complex gears. The authors suggest a hybrid future: using Vision-Language Models (VLMs) to propose high-level primitives or guide mutations on hard edge cases, while letting ICAD's fast C++ engine handle the geometric heavy lifting.

Summary updated

BibTeX
@misc{garifullin2026icad,
  author = {Albert Garifullin and Nikolay Mayorov and Nikolay Petrov and Dmitrii Zhemchuzhnikov and Soslan Kabisov and Vladimir Frolov},
  title = {{ICAD: Search-based Algorithm for CAD Reconstruction}},
  year = {2026},
  eprint = {2611.37246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37246},
}
Figure