TL;DR
CME-CAD introduces a novel reinforcement learning framework that coordinates multiple heterogeneous AI "experts" to generate precise, fully editable CAD code directly from 2D engineering drawings. By combining multi-expert collaborative learning with a robust geometric reward system, it achieves a massive leap in 3D reconstruction accuracy and code executability, supported by a new industrial-grade dataset called CADExpert.
What Problem Does This Paper Address?
Automating Computer-Aided Design (CAD) is a holy grail for smart manufacturing, yet existing methods fall short of industrial standards. Most current tools attempt to reconstruct 3D models as non-editable meshes or approximate shapes from loose sketches. This lacks the mathematical precision and editability required by real-world engineers who rely on parametric CAD code (like CadQuery).
While generating CAD code from 2D drawings is a promising alternative, standard reinforcement learning approaches get stuck. They suffer from "reward sparsity" and biased reasoning paths—if the model's initial guess is wrong, it struggles to explore better ways to solve the geometric puzzle. CME-CAD addresses this by forcing diverse AI experts to collaborate and learn from each other's unique problem-solving styles.
Methods
The authors propose CME-CAD (Heterogeneous Collaborative Multi-Expert Reinforcement Learning), which breaks the training into two main stages:
- Multi-Expert Fine-Tuning (MEFT): Instead of relying on a single model, the framework uses multiple heterogeneous expert models guided by unique system prompts to generate diverse Chain-of-Thought (CoT) reasoning paths. To make these paths reliable, they use a clever reverse-task approach: feeding the model the target CAD code and 2D projections, and asking it to reason how to derive the code from the drawings.
- Multi-Expert Reinforcement Learning (MERL): Built on top of Group Relative Policy Optimization (GRPO), this stage introduces a multi-expert collaborative learning mechanism. It calculates the performance of each expert on a given prompt, designating a "best" ($E^+$) and "worst" ($E^-$) expert, and uses a KL-divergence penalty to force the weaker expert to learn from the stronger one.
Reward Design & Hard Negatives
The reward function evaluates four dimensions: output format, code executability (via a Python interpreter), geometric accuracy (3D Intersection-over-Union), and a novel Work Plane Reward that penalizes coordinate system misalignments (origin and normal vector deviations). Additionally, a Hard Negative Sample Buffering Mechanism saves samples where all experts failed into a buffer for targeted supervised fine-tuning later, preventing the model from ignoring difficult edge cases.
Datasets
The authors introduce CADExpert, an open-source benchmark containing 17,299 instances. Unlike existing datasets that use simple shapes or unannotated sketches, CADExpert features:
- 2D orthographic projections (three-view drawings) with precise dimension annotations.
- Expert-generated Chain-of-Thought reasoning processes.
- Executable CadQuery Python code.
- Rendered 3D CAD models.
It includes complex industrial operations like chamfering, drilling, set differences, and polyline trajectories.
Key Insights and Ideas
- Learning from the Strengths of Others: Standard reinforcement learning with verifiable rewards (RLVR) is on-policy and refines the model within its existing, potentially biased knowledge base. By forcing different "prompt-engineered" experts to share knowledge via cross-expert KL divergence, CME-CAD breaks out of local minima.
- The Coordinate System Trap: In 3D reconstruction, a model can get the geometry perfectly right but place it on the wrong work plane or orientation, leading to a devastating 0% IoU score. The introduction of the Work Plane Reward explicitly fixes this by measuring origin and normal vector alignment.
- Efficiency via vLLM: Running multiple experts sounds computationally prohibitive. However, by utilizing parallel batch sampling and paged attention via the vLLM inference engine, the total training time only increases by 20-30% compared to a single-expert baseline.
Key Results
- State-of-the-Art Performance: CME-CAD achieves an Intersection-over-Union (IoU) of 80.71%, outperforming the previous state-of-the-art baseline (CAD-RL) by 8.87 percentage points.
- Flawless Execution: It achieves a 98.25% code executability rate, meaning the generated Python code runs successfully almost every time.
- VLM Benchmarking: Standard zero-shot commercial and open-source Vision-Language Models (like GPT-5-Mini, Qwen3-VL, Gemini 2.5 Pro) struggle immensely on this task without fine-tuning, maxing out at around 37% IoU.
Limitations and Future Work
The authors do not explicitly detail limitations in the text. However, based on the dataset characteristics, the framework currently focuses on single-part geometries. Very intricate multi-part assemblies or organic, non-prismatic shapes (like freeform automotive body panels) are likely still beyond the scope of the current CADQuery generation pipeline. Future work will likely expand this multi-expert paradigm to handle larger, multi-component industrial assemblies.
Summary updated