arXiv:2608.30617cs.CVAug 2026

Manuscript Offprint

arXiv:2608.30617

RealCAD: Towards Real-World Image-to-CAD Reconstruction under Domain Shift and Parameter Bias

Yihe Sun, Ziyu Lu, Kaihua Tang, Xian-Sheng Hua

Abstract

Reconstructing editable Computer-Aided Design (CAD) models from images is essential for downstream modification, manufacturing, and design reuse. However, existing image-to-CAD methods are developed predominantly on synthetic renderings and face two coupled obstacles: a substantial appearance domain gap between synthetic and real images, and a previously overlooked parameter bias in widely used CAD data. We show that the local normalization adopted by DeepCAD concentrates several geometric parameters around a few discrete values while encoding substantial information in a single scale factor. Consequently, a model can achieve deceptively high parameter accuracy by exploiting these frequent values rather than inferring geometry from the input image. In this paper, we propose RealCAD, a unified framework that addresses these limitations at the representation, image, and feature levels. At the representation level, we redistribute scale information to the corresponding geometric parameters, producing less concentrated parameter distributions in a shared scale space. At the image level, geometry-constrained translation converts synthetic renderings toward the real-image domain while conditioning on object contours. At the feature level, a multi-positive contrastive objective aligns representations of the same CAD model across viewpoints and image domains, enabling CAD sequence prediction from each individual view. We further introduce OpenRealCAD, comprising four-view photographs of 392 3D-printed objects paired with ground-truth command sequences. Experiments show that the revised representation substantially reduces the accuracy attainable from parameter-frequency priors, making parameter accuracy a more reliable measure of image-conditioned geometric inference. RealCAD further improves real-domain command and parameter accuracy, while retaining competitive synthetic-domain performance. The code 1^{1} and dataset 2^{2} are publicly available.

Introduction

Image-to-CAD reconstruction aims to recover editable computer-aided design (CAD) models from images, enabling downstream modification, manufacturing, and design reuse. Unlike surface-based representations such as meshes (Groueix et al. 2018; Nash et al. 2020; Wang et al. 2018) or point-based representations (Achlioptas et al. 2018;

Figure

(a) Domain Shift

(b) Parameter Bias

Figure 1: Key challenges in image-to-CAD reconstruction. (a) Domain shift: a model trained on synthetic renderings reconstructs synthetic inputs accurately but degrades substantially on real-world images (e.g., 3D printed CAD models). (b) Parameter bias: the DeepCAD representation produces highly concentrated geometric-parameter distributions, encouraging reliance on dataset-specific shortcuts.

Cai et al. 2020; Mo et al. 2019; Yang et al. 2018), CAD models explicitly encode parametric construction histories as sequences of modeling operations. Recent studies have explored reconstructing parametric CAD models from text, point clouds, and images. However, textual descriptions are often insufficient to specify fine-grained geometry and spatial relationships, while point-cloud-based methods typically require dense and relatively complete 3D observations. Images, by contrast, are easier to acquire and therefore provide a more practical input modality for CAD reconstruction.

However, a key challenge to practical deployment is the simulation-to-reality (Sim2Real) gap (Ju et al. 2022): models trained on synthetically rendered images often exhibit substantial performance degradation when applied to real-world photographs, as illustrated in Figure 1(a). Nevertheless, systematic Sim2Real adaptation remains underexplored in image-to-CAD reconstruction. CADCrafter (Chen et al. 2025) provides preliminary evidence that models trained on synthetic images can generalize to captured photographs. Yet, its real-image evaluation set is not publicly available, and the model is trained primarily on synthetic renderings without an explicit mechanism for Sim2Real adaptation. Beyond the visual domain gap, the underlying CAD representation itself may also hinder reliable geometric inference. We identify a previously overlooked limitation in the normalization

1^{1}Code: www.github.com/sunyh39/RealCAD.

2^{2}Dataset: www.modelscope.cn/datasets/yeguomao/RealCAD.

*Corresponding author.

scheme of DeepCAD (Wu, Xiao, and Zheng 2021), a widely used benchmark and representation in sequence-based CAD modeling. Specifically, DeepCAD's local normalization assigns a substantial portion of geometric scale information to a separate scale factor S, resulting in highly concentrated distributions for several normalized geometric parameters, as illustrated in Figure 1(b). This imbalance may encourage models to exploit dataset-specific statistical shortcuts rather than infer the underlying geometry from visual evidence. These observations suggest that reliable robust image-to-CAD reconstruction requires addressing both visual domain discrepancy and representation-induced parameter bias.

Collecting large-scale real-image datasets with paired CAD command-sequence annotations is expensive and difficult to scale, whereas synthetic images can be automatically rendered from existing CAD models with accurate annotations and controllable acquisition conditions. A practical strategy is therefore to leverage abundant synthetic data together with limited real data. To address the representation bias and domain gaps, we revise the DeepCAD parameter representation, construct the real-image benchmark OpenRealCAD, and propose the Sim2Real reconstruction framework RealCAD. Specifically, we redistribute the scale information encoded by DeepCAD's local normalization factor S to the corresponding geometric parameters, thereby alleviating parameter concentration and reducing reliance on dataset-specific statistical shortcuts. We further construct OpenRealCAD, comprising real images of 392 3D-printed physical CAD objects captured from four fixed viewpoints under controlled conditions.

Building on the revised DeepCAD representation and OpenRealCAD, RealCAD leverages large-scale synthetic data together with limited real images to mitigate the synthetic-to-real gap at both the image and feature levels. At the image level, geometry-constrained synthetic-to-real translation adapts synthetic renderings toward the real domain while preserving geometric structure. At the feature level, multi-positive contrastive learning aligns representations of the same CAD model across viewpoints and image domains. The resulting representations are decoded into CAD command sequences and their associated parameters. Experiments show that RealCAD substantially improves reconstruction performance on real images while maintaining competitive performance in the synthetic domain.

The main contributions are summarized as follows:

• We identify an overlooked distributional limitation in the DeepCAD command-sequence representation and revise its parameterization by redistributing the scale information encoded by S to the corresponding geometric parameters, thereby mitigating parameter concentration and frequency-based shortcut learning.

• We construct OpenRealCAD, a real-image benchmark comprising 392 CAD models, four-view images of their 3D-printed physical objects, and paired ground-truth command sequences, enabling quantitative and reproducible evaluation of Sim2Real reconstruction.

• We propose RealCAD, a Sim2Real image-to-CAD reconstruction framework that combines geometry-constrained synthetic-to-real translation with multi-positive contrastive learning to reduce synthetic-to-real discrepancies at both the image and feature levels.

References (41)