Rethinking Human Intent-to-CAD: Parametric CAD Model Generation via Cooperative Multi-Task Alignment and Spatial-Aware Reinforcement Learning

Qingwang Zhang, Jiahao Li, Xiangdong ZhouICML 2026

The Challenge of Conceptual Design

Traditional Computer-Aided Design (CAD) presents a high barrier to entry, requiring specialized knowledge of geometric constraints and complex software interfaces. While recent AI research has made strides in "reconstructing" CAD models from existing 3D scans or photos, these methods assume the object already exists.

In the real-world conceptual design stage, designers start from scratch. They rely on "low-fidelity" inputs: rough hand-drawn sketches to outline layouts and brief textual descriptions to specify dimensions or features. Translating these unstructured, often ambiguous intents into rigorous, executable code (like CadQuery) is incredibly difficult due to three main factors:

  1. Asymmetric Alignment: Sketches are visual and spatial, whereas text is abstract and semantic.
  2. Logical Sensitivity: A single character error in CAD code can lead to a compilation failure or a physically impossible shape.
  3. Sparse Feedback: Standard training losses (like cross-entropy) lack an understanding of 3D space; they only evaluate if the next "word" in the code is correct, not if the resulting 3D shape is functional.

Introducing the HiCAD Framework

To address these challenges, researchers have developed HiCAD, a unified two-stage framework that transforms hand-drawn sketches and natural language descriptions directly into executable parametric CAD code.

1. Cooperative Multi-Task Alignment (CMTA)

Instead of training a Vision-Language Model (VLM) on a single task, the researchers train it on four simultaneously: Sketch-to-CAD, Text-to-CAD, and two multimodal combinations. This "cooperative" approach prevents the model from overfitting to a single input type and encourages "positive transfer"—allowing the model to use its visual knowledge from sketches to fill in the gaps of partial text descriptions.

2. Spatial-Aware Reinforcement Learning (SARL)

To move beyond simple imitation, the model is fine-tuned using Group Sequence Policy Optimization (GSPO). Unlike standard reinforcement learning (RL) that rewards the model for every generated token, GSPO evaluates the entire generated code sequence. The reward function is based on two critical factors:

  • Geometric Consistency: How accurately the 3D volume overlaps with the target shape.
  • Topological Consistency: Using Face Adjacency Graphs to ensure the structure and connections of the parts are logically sound. If the generated code fails to compile, the model receives a heavy penalty.

The HiCAD Dataset

To support this framework, the authors introduced the HiCAD Dataset, the first large-scale benchmark aligning three distinct modalities:

  • Hand-drawn sketches: A mix of algorithmically generated synthetic sketches and real sketches drawn by human volunteers.
  • Textual descriptions: Comprehensive geometry and dimension details generated by a high-level VLM (Qwen3-VL).
  • Parametric CAD code: Executable CadQuery scripts derived from the DeepCAD dataset.

The final dataset contains over 82,000 training samples, providing a robust foundation for mapping messy human intent to clean industrial code.

Key Insights

  • Topology over Geometry: Most previous models only optimized for the final geometric shape. By rewarding topology (how faces connect), HiCAD ensures the underlying logic of the construction is sound, resulting in models that are much easier for human engineers to edit later.
  • Sequence-Level RL is Essential for Code: Token-level RL is notoriously unstable for code generation because a "correct" token in the wrong place is useless. Evaluating the entire script's execution makes the training process significantly more stable.

Performance and Results

HiCAD achieves state-of-the-art results across all four evaluated tasks:

  • Accuracy: In the most complex task (Sketch + Complete Text), HiCAD achieved an Intersection over Union (IoU) of 80.90%, heavily outperforming specialized baselines like Cadrille (72.56%) and general models like GPT-4o (51.52%).
  • Robustness: HiCAD’s Invalid Rate (IR)—the frequency of generating code that fails to compile—dropped to an impressive 0.17% to 0.42%. For comparison, general-purpose VLMs often exhibit invalid rates between 15% and 50%.
  • Real-World Generalization: When tested on actual human-drawn sketches (which are significantly messier than synthetic ones), HiCAD maintained a 43.27% IoU, whereas general VLMs fell below 10%.

Limitations and Future Directions

Despite this significant progress, the authors note a few remaining hurdles. The model still struggles with highly intricate, multi-part assemblies and can misinterpret spatial layouts if a user's sketch is too cluttered or drawn from a non-standard perspective.

Moving forward, the researchers aim to bridge the "human gap" by developing an iterative refinement system. This would enable a conversational agent where a user can provide natural feedback (e.g., "Make that hole a bit larger"), and the model updates the CAD code accordingly. They also plan to further close the domain gap between synthetic training sketches and the diverse, unpredictable styles of real human drawing.

Summary updated

BibTeX
@inproceedings{zhang2026rethinking,
  author = {Qingwang Zhang and Jiahao Li and Xiangdong Zhou},
  title = {{Rethinking Human Intent-to-CAD: Parametric CAD Model Generation via Cooperative Multi-Task Alignment and Spatial-Aware Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=2Ai08VgFp0},
}
Figure