GIFT: Bootstrapping Image-to-CAD Program Synthesis via Geometric Feedback

TL;DR

GIFT uses geometric feedback for self-bootstrapping, boosting IoU by 12% and reducing inference costs by 80% in image-to-CAD synthesis.

cs.LG 🔴 Advanced 2026-03-29 69 views
Giorgio Giannone Anna Clare Doris Amin Heyrani Nobari Kai Xu Akash Srivastava Faez Ahmed
Image-to-Program Geometric Feedback Data Augmentation Generative Models Engineering Design

Key Findings

Methodology

GIFT employs geometric verification to convert inference-time candidate programs into high-quality training data. It combines Soft-Rejection Sampling (GIFT-REJECT) to diversify outputs and Failure-Driven Augmentation (GIFT-FAIL) to enhance robustness. During inference, multiple candidate programs are generated and verified with a CAD kernel, filtering out valid solutions and near-misses. These verified samples are then used to augment the training set offline, effectively turning test-time search into a self-supervised learning process. This approach improves model accuracy by 12% IoU, reduces inference computation by 80%, and does not require additional annotations or complex architectures.

Key Results

  • On the GenCAD dataset, GIFT achieves a mean IoU of 0.781, a 12% improvement over the supervised baseline, while reducing inference costs by 80%.
  • The training set expands from 160k to 370k samples through geometric validation, leading to significant robustness gains, especially on complex geometries.
  • In challenging scenarios with out-of-distribution samples, GIFT outperforms traditional fine-tuning and multimodal systems, solving 53% more problems and maintaining competitive performance.

Significance

This work addresses the core challenge of data scarcity in image-to-program synthesis for engineering design. By leveraging geometric verification as a self-supervisory signal, GIFT enhances the diversity and robustness of generated programs without extra annotation costs. It paves the way for scalable, reliable, and high-quality CAD program generation, which can significantly impact automated engineering workflows, reduce manual effort, and accelerate design cycles. The approach also demonstrates how test-time feedback can be effectively integrated into training, setting a new paradigm for data-efficient model improvement.

Technical Contribution

GIFT introduces a novel framework that integrates geometric verification into the training pipeline, transforming inference-time search into offline data augmentation. It innovatively combines Soft-Rejection Sampling and Failure-Driven Augmentation to generate diverse, high-fidelity training samples. This method alleviates the data bottleneck, improves model generalization, and reduces inference complexity. It also offers theoretical insights into how geometric feedback can be used as a deterministic, label-free supervision signal, enabling scalable self-supervised learning in structured program synthesis.

Novelty

This is the first systematic use of geometric verification as a self-supervision mechanism for image-to-program generation. Unlike prior works relying solely on supervised fine-tuning or reinforcement learning, GIFT leverages geometric feedback to diversify training data and improve robustness without additional labels. Its dual augmentation strategy, combining output diversity and input robustness, sets a new standard for scalable, geometry-aware data augmentation in generative modeling.

Limitations

  • Dependence on geometric kernels like OpenCASCADE incurs computational overhead, limiting real-time deployment at scale.
  • Performance may degrade under highly complex or ambiguous images where geometric verification becomes unreliable.
  • Current focus is on 2D images to parametric programs; extending to 3D scenes and more complex geometries remains challenging and computationally intensive.

Future Work

Future research will explore integrating multi-modal cues, such as depth and point clouds, to improve understanding of complex scenes. Efforts will focus on optimizing geometric verification for faster inference, possibly through learned approximations. Extending the framework to 3D data and more diverse engineering tasks, like assembly and structural analysis, will broaden its industrial impact. Combining reinforcement learning with geometric feedback could further enhance robustness and efficiency.

AI Executive Summary

GIFT introduces a groundbreaking approach to image-to-CAD program synthesis by harnessing geometric verification as a self-supervisory signal. Traditional methods struggle with limited data and poor generalization, especially as design complexity grows. GIFT addresses this by integrating geometric feedback into the training process, transforming inference-time candidate programs into high-quality training samples. This is achieved through two key mechanisms: Soft-Rejection Sampling (SRS), which diversifies outputs by retaining multiple valid programs, and Failure-Driven Augmentation (FDA), which converts near-miss failures into synthetic training pairs. These strategies significantly expand the effective training set, leading to a 12% increase in IoU and an 80% reduction in inference computation on the GenCAD dataset, all without additional human annotation or complex architectures. The approach demonstrates robustness across complex geometries and out-of-distribution samples, outperforming traditional supervised fine-tuning and matching more elaborate multimodal systems. By amortizing inference-time search into training, GIFT offers a scalable, data-efficient solution that advances the state of the art in engineering design automation. Looking ahead, integrating multi-modal cues and optimizing geometric verification promise further improvements, making GIFT a promising foundation for industrial automation and intelligent design systems.

Deep Analysis

Background

The evolution of CAD from rule-based systems to deep generative models has revolutionized engineering design. Early methods relied on explicit rules and templates, limiting flexibility. Recent advances include point cloud and image-to-3D models like PointNet and ShapeNet, but these often suffer from limited diversity and robustness. Symbolic programs as intermediate representations gained popularity due to their compactness and editability, exemplified by systems like CadQuery and OpenCASCADE. However, training data scarcity and verification challenges hinder their widespread adoption. Existing datasets like GenCAD provide some progress, but the diversity and verification quality remain insufficient for robust real-world applications.

Core Problem

Current image-to-program methods face significant bottlenecks: limited training data, poor generalization to complex geometries, and high inference costs. Supervised fine-tuning (SFT) relies on scarce, low-diversity datasets, leading to brittle models. Reinforcement learning (RL) improves alignment but is computationally expensive and unstable due to CAD kernel reliance. Moreover, existing models struggle with diverse design variations and complex geometries, especially in out-of-distribution scenarios. Overcoming these issues requires scalable data augmentation strategies that can leverage test-time feedback without additional annotation burdens.

Innovation

GIFT introduces a geometric verification-based self-augmentation framework, transforming inference search into training data. It combines two novel mechanisms: Soft-Rejection Sampling (SRS), which captures multiple valid programs beyond the ground truth, and Failure-Driven Augmentation (FDA), which converts near-miss failures into synthetic input-output pairs. This dual approach significantly enhances data diversity and robustness, enabling the model to learn from its own geometric feedback. Unlike traditional methods, GIFT does not depend on extra labels or complex architectures, instead leveraging deterministic geometric kernels for high-quality supervision. This paradigm shift allows scalable, data-efficient training that improves generalization and reduces inference costs.

Methodology

  • �� Generate multiple candidate programs per image using a pretrained model. • Verify each candidate with a CAD kernel (OpenCASCADE), calculating IoU with ground truth. • Filter candidates based on IoU thresholds: high-fidelity (≥0.9), near-misses (0.5-0.9). • Use SRS to retain diverse high-quality programs, expanding the output distribution. • Render near-miss programs into synthetic images, pairing them with ground-truth programs for input augmentation. • Incorporate verified high-quality and challenging samples into training, optimizing model parameters. • Repeat across multiple compute budgets (8-128) to balance exploration and precision, ensuring diverse, robust training data.

Experiments

The evaluation used the GenCAD dataset with 163k training pairs and 8k test pairs, plus 400 out-of-distribution samples. Models trained with standard SFT, GIFT with SRS, and GIFT with both SRS and FDA were compared. The training set expanded from 160k to 370k samples through geometric verification. Performance metrics included mean IoU, problem-solving ratio, and robustness on complex geometries. Ablation studies confirmed the effectiveness of each augmentation component. The experiments demonstrated that GIFT consistently outperformed baseline models, especially on challenging and OOD samples, validating the robustness and scalability of the approach.

Results

GIFT achieved a mean IoU of 0.781, surpassing the supervised baseline by 12%, while reducing inference computation by 80%. The data augmentation strategy expanded training data by over 100%, leading to improved robustness, especially on complex geometries and out-of-distribution samples. The dual mechanisms effectively mitigated model collapse and increased diversity, solving 53% more problems than baseline models. These results highlight the potential of geometric feedback for scalable, high-quality image-to-program synthesis, setting new benchmarks in the field.

Applications

This approach can be directly applied to automated engineering design, CAD generation from images, and structural optimization. It requires only existing datasets and geometric kernels, making it suitable for industrial automation, rapid prototyping, and design validation. Long-term, GIFT could enable fully autonomous design systems, reducing manual effort and accelerating innovation. Its scalability and robustness make it promising for integration into CAD software, robotics, and manufacturing workflows, fostering smarter, faster engineering processes.

Limitations & Outlook

Dependence on geometric kernels like OpenCASCADE introduces computational overhead, limiting real-time deployment. Performance may decline with highly complex or ambiguous inputs where verification becomes unreliable. The current focus on 2D images and parametric programs restricts extension to 3D scenes and more intricate geometries. Further research is needed to optimize verification speed, handle diverse data modalities, and improve robustness in extreme cases. Addressing these limitations will be crucial for industrial-scale adoption and broader application.

Plain Language Accessible to non-experts

想象你在厨房里做菜,你有一本菜谱,但每次做菜时,你会用不同的调料或方法。有时候你会觉得味道还差点,就会试着调整。GIFT就像一个聪明的厨师,它不仅按照菜谱做菜,还会用味道检测器尝试不同的做法,看看哪些更好吃。每次尝试后,它会记住哪些做法味道好,哪些需要改进。通过不断试错和检测,它逐渐学会做出更美味的菜肴。这个过程不用请厨师帮忙,只靠自己不断试错和改进。最终,它能在没有人指导的情况下,自己做出美味的菜肴,甚至能应对各种复杂的菜谱和食材。这就像GIFT在工程设计中,自己用几何验证不断改进,从而生成更准确、更丰富的CAD程序。

ELI14 Explained like you're 14

想象你在学校画画,但不确定你的画是不是像老师的样子。每次画完后,老师会用放大镜检查,告诉你哪里画得好,哪里还需要改。你会记住老师的建议,下次画得更像。慢慢地,你的画越来越像老师的作品,还能画出不同风格的画。GIFT就像这个聪明的学生,它会自己检查画的内容,找到哪里画得好,哪里不够好,然后自己改进。它不用别人帮忙,只靠自己不断试错和学习,最后能画出非常漂亮的画。这在工程设计里,就是让电脑自己用几何验证不断改进,从而生成更准确的CAD模型。

Abstract

Generating executable CAD programs from images requires alignment between visual geometry and symbolic program representations, a capability that current methods fail to learn reliably as design complexity increases. Existing fine-tuning approaches rely on either limited supervised datasets or expensive post-training pipelines, resulting in brittle systems that restrict progress in generative CAD design. We argue that the primary bottleneck lies not in model or algorithmic capacity, but in the scarcity of diverse training examples that align visual geometry with program syntax. This limitation is especially acute because the collection of diverse and verified engineering datasets is both expensive and difficult to scale, constraining the development of robust generative CAD models. We introduce Geometric Inference Feedback Tuning (GIFT), a data augmentation framework that leverages geometric feedback to turn test-time compute into a bootstrapped set of high-quality training samples. GIFT combines two mechanisms: Soft-Rejection Sampling (GIFT-REJECT), which retains diverse high-fidelity programs beyond exact ground-truth matches, and Failure-Driven Augmentation (GIFT-FAIL), which converts near-miss predictions into synthetic training examples that improve robustness on challenging geometries. By amortizing inference-time search into the model parameters, GIFT captures the benefits of test-time scaling while reducing inference compute by 80%. It improves mean IoU by 12% over a strong supervised baseline and remains competitive with more complex multimodal systems, without requiring additional human annotation or specialized architectures.

cs.LG cs.AI cs.CE