atlas

Research map / Large language models / Reasoning and chain of thought

CAD-Coder: Text-to-CAD Generation with Chain-of-Thought and Geometric Reward

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Search and self-correction in reasoning · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Reformulates text-to-CAD as generating CadQuery Python scripts, training Qwen2.5-7B-Instruct with SFT, CoT cold-start, and GRPO using a Chamfer Distance plus format reward.

Problem

Text-to-CAD generation via command sequences suffers from hard-to-verify validity, limited operation sets, and poor interpretability; LLMs prompted directly often produce invalid or geometrically inaccurate CAD code.

Approach

Use CadQuery Python scripts as the target representation so outputs are executable and verifiable, then align the LLM with a geometry-based reward (Chamfer Distance) via GRPO after SFT and CoT cold-start.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add SFT to the GRPO-based training pipeline (ablation)CAD-Coder · Text2CAD test setMean CD (×10^3): 76.20 -> 6.54Helped
Add CoT cold-starting (ablation)CAD-Coder · Text2CAD test setMean CD (×10^3): 17.34 -> 6.54Helped
Add GRPO with CAD-specific rewards to SFT (ablation)CAD-Coder · Text2CAD test setMean CD (×10^3): 74.55 -> 17.34Helped
Use 8K high-quality instead of 70K medium-quality SFT samples (ablation)CAD-Coder · Text2CAD test setMean CD (×10^3): 9.89 -> 6.54Helped
Use only Chamfer Distance as the GRPO reward, removing auxiliary reward components (ablation)CAD-Coder · Text2CAD test setTraining stabilityHurt

Surprising findings

Limitations

Experimental setup

Datasets: Text2CAD CAD-Coder generated CadQuery triplets (110K)

Benchmarks: Text2CAD test set

Metrics: Mean Chamfer Distance Median Chamfer Distance Invalidity Ratio

Baselines: Text2CAD Claude-3.7-sonnet GPT-4o Deepseek-V3 Qwen2.5-72B Qwen2.5-7B

Builds on: GRPO Text2CAD DeepCAD CadQuery

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy