CADReasoner: Iterative Program Editing for CAD Reverse Engineering

Soslan Kabisov, Vsevolod Kirichuk, Andrey Volkov, Marina Barannikov, Gennadiy Savrasov, Anton Konushin, Andrey Kuznetsov, Dmitrii Zhemchuzhnikov† · 2026

Read CADReasoner: Iterative Program Editing for CAD Reverse Engineering by Soslan Kabisov, Vsevolod Kirichuk, Andrey Volkov, Marina Barannikov, Gennadiy Savrasov, Anton Konushin, Andrey Kuznetsov, Dmitrii Zhemchuzhnikov† (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-29847.txt.

Introduction

Kabisov and co-authors present CADReasoner, a model that rebuilds CAD designs through repeated edits. Most AI tools work in one pass and miss fine shape details. Human engineers instead compare drafts with the target and fix gaps. CADReasoner outputs a runnable CadQuery program at each step. Its rendered mesh feeds back for the next round. It fuses multi-view renders with point clouds. A scan-simulation step bridges the realism gap. Benchmarks show state-of-the-art scores.

Catalog record

CREATORSoslan Kabisov, Vsevolod Kirichuk, Andrey Volkov, Marina Barannikov, Gennadiy Savrasov, Anton Konushin, Andrey Kuznetsov, Dmitrii Zhemchuzhnikov†
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE32923
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.29847

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

CADReasoner: Iterative Program Editing for CAD Reverse Engineering Soslan Kabisov, Vsevolod Kirichuk, Andrey Volkov, Marina Barannikov, Gennadiy Savrasov, Anton Konushin, Andrey Kuznetsov, Dmitrii Zhemchuzhnikov† Abstract † † footnotetext: † Corresponding author: [email protected] Computer-Aided Design (CAD) powers modern engineering, yet producing high-quality parts still demands substantial expert effort. Many AI systems tackle CAD reverse engineering, but most are single-pass and miss fine geometric details. In contrast, human engineers compare the input shape with the reconstruction and iteratively make changes in the design based on the remaining differences. Agent-based methods mimic this loop with frozen VLMs, but weak 3D grounding of current foundation models limits reliability and efficiency. We introduce CADReasoner, a model trained to iteratively refine its prediction based on the geometric discrepancy between the input and the predicted shape. The model outputs a runnable CadQuery Python program, feeding its rendered mesh back to the next step. CADReasoner fuses multi-view renders and point clouds as complementary modalities. To bridge the realism gap, we propose a scan-simulation protocol applied during both training and evaluation. Across DeepCAD, Fusion 360, and MCB benchmarks, CADReasoner attains state-of-the-art results on clean and scan-sim tracks. Code and the model are available at GitHub and Hugging Face model . 1 Introduction Figure 1 : CADReasoner: scan-to-CAD self-editing loop. (a–c) From a (simulated) scanned mesh we extract target evidence: multi-view images and a point cloud. (d) CADReasoner consumes this evidence together with the current program C^{t-1} and autoregressively predicts an updated CadQuery script C^{t} . (e–f) The script is executed to render a new mesh, from which modalities are re-extracted, closing the geometry-driven self-correction loop. Recovering precise CAD models from raw 3D scan data is a fundamental yet challenging problem in computer vision and graphics 3 ; 34 ; 29 . Scanned 3D data (e.g., point clouds or meshes obtained via LiDAR or RGB-D sensors) typically capture real-world objects with noise and missing regions, whereas CAD models are clean, parametric representations with exact surfaces and structures. Bridging this gap requires algorithms that can interpret imperfect scan data and produce accurate, realistic CAD models. Existing approaches in AI-based CAD reconstruction often either rely on single-shot predictions or simple alignment techniques that lack the ability to iteratively refine errors. As a result, they may output CAD models that deviate from the true geometry or miss important details, especially when faced with noisy or incomplete scans. A key limitation of many prior methods is the absence of an effective mechanism for iterative inference and self-correction. In contrast, human engineers naturally refine designs by repeatedly comparing the evolving part against the target and correcting discrepancies. Some recent systems mimic this loop with frozen VLM/LLM backbones 1 ; 27 , but their 3D grounding is limited and the backbone does not learn from its own errors. Other works incorporate geometry in the RL fine-tuning stage 21 ; 11 ; 50 , typically as scalar rewards, which provides a coarse signal that departs from how practitioners reason; moreover, emerging analyses suggest RL fine-tuning largely reweights existing behaviors rather than injecting new task knowledge 60 ; 42 . By contrast, we put geometry at the center of SFT: the editor is trained to refine its own prediction from cross-modal discrepancy evidence (multi-view overlays and nearest-surface offsets) together with the previous program, aligning supervision with real-world, iterative reverse-engineering practice. In this view, self-editing becomes a minimal, learnable implementation of the 3D reasoning loop an engineer performs when inspecting and revising a design. A second challenge is realism . Public datasets are synthetic: B-Rep objects come from CAD corpora, and inputs are rendered views or point clouds (PCs) sampled from B-Reps rather than raw scans 51 ; 52 ; 41 ; 7 ; 5 . Real reverse engineering starts from physical parts: scans exhibit noise, occlusions and missing patches, extra or missing holes, and mild mis-registration. We therefore introduce a scan-simulation pipeline and apply it during training and evaluation, so the editor learns on scan-like inputs and is evaluated under the same conditions. To summarize, our contributions are as follows: • We introduce CADReasoner , a novel framework for AI-based CAD reconstruction that performs iterative inference and self-correction , enabling progressively refined alignment between CAD models and the input. • We bring scan realism to CAD reconstruction by applying a scan-simulation regime for both training and evaluation, better reflecting real reverse-engineering pipelines. • We demonstrate through extensive experiments that CADReasoner achieves state-of-the-art results on on DeepCAD , Fusion360 , and MCB outperforming existing methods in terms of reconstruction accuracy and realism. Our approach shows especially strong improvements in challenging scenario with scan defects. 2 Related Work CAD generation. Prior work on CAD generation can be categorized by target representation:: CSG trees , B-reps , and program (sequence) models . CSG composes primitives with boolean ops, but struggles with intricate, real-world geometry and diverges from how designers actually build parts 8 ; 9 ; 10 ; 16 ; 38 ; 39 ; 46 ; 58 ; 57 . B-reps encode faces,edges and vertices with strict topological validity, making generation brittle and subsequent editing cumbersome 12 ; 14 ; 22 ; 26 ; 28 ; 30 ; 31 ; 43 ; 45 ; 47 ; 49 ; 55 . In contrast, program or sequence formulations (sketch–extrude, feature histories, or Python code) align with industrial workflows and preserve editability 52 ; 23 ; 40 ; 56 ; 54 ; 61 ; 4 ; 6 ; 18 ; 19 ; 32 ; 35 ; 25 ; 7 ; 13 ; 59 ; 48 . Among these, recent methods that emit concise, executable CadQuery 2 programs achieve state-of-the-art performance on multiple benchmarks 41 ; 21 ; 50 , so we likewise adopt CadQuery as our target representation. Multi-view and point-cloud conditioning. AI-based CAD reverse engineering has largely been single-modality . Methods conditioned on point clouds —e.g., DeepCAD, CAD-Recode, CAD-SIGNet—predict programs from surfaces sampled on B-Reps 52 ; 41 ; 18 . Image-conditioned approaches—CADCrafter, CADCoder, GACO-CAD—operate on rendered views 5 ; 7 ; 50 . Multimodal models are only now emerging: cadrille accepts either views or clouds, while CAD-MLLM fuses both 21 ; 53 . We regard these as complementary shape representations—views expose global inconsistencies , clouds provide metric nearest-surface distances—and use them as feedback to drive iterative program editing. Table 1 : Image-only, clean surfaces, greedy decoding. Median CD \downarrow ( \times 10^{3} ), mean IoU \uparrow (%), IR \downarrow (%). Best-so-far at t\in\{1,5\} . CADReasoner delivers superior performance : it achieves the best CD/IoU/IR on DeepCAD and Fusion360 already by t{=}5 , and on MCB it markedly improves IoU/IR over cadrille while remaining competitive in CD. DeepCAD Fusion360 MCB Method CD IoU IR CD IoU IR CD IoU IR CADCrafter – – – 0.26 – 3.6 – – – cadrille 0.18 86.1 1.5 0.20 77.6 3.2 1.21 40.2 8.6 CADReasoner ( t{=}1 ) 0.17 88.7 1.4 0.16 81.1 3.5 3.5 39.6 21.9 CADReasoner ( t{=}5 ) 0.16 90.0 0.5 0.15 83.1 0.7 1.67 42.7 4.0 Iterative refinement and code editing. Outside CAD, iterative self-correction for reasoning uses self-feedback or verbal RL without weight updates (Self-Refine; Reflexion) and RL with unit-test signals (CodeRL), but none provides geometric supervision 33 ; 44 ; 24

Read the complete text