What drives CAD-Coder's improvement over supervised fine-tuning alone?
CAD-Coder combines multiple training components. This explores which parts—geometric reward optimization, chain-of-thought planning, or supervised learning—contribute most to improving 3D model accuracy.
CAD-Coder's own ablation (Table 2) isolates each training component on the same Chamfer Distance (CD) metric. SFT alone leaves Mean CD at 74.55 (Median 0.33); a model without SFT performs even worse, at Mean CD 76.20, "showing the necessity of using prior knowledge" — but SFT by itself still leaves geometric fidelity essentially unresolved. Adding GRPO without CoT "dramatically boosts performance" to Mean CD 17.34 (Median 0.20), which the authors say confirms "that CAD-Specific reward supervision is essential for improving 3D accuracy." The full method — GRPO plus CoT "for cold-starting" — improves this further to Mean CD 6.54 (Median 0.17), "indicating that structured multi-step reasoning enhances the model's ability to handle complex geometric prompts." The excerpt also reports that the CD distribution shifts toward smaller values with fewer invalid results as each component is added (Fig. 5), and separately notes that after SFT alone, "the model struggles with complex structures that require multi-step or spatial reasoning."
The ordering of gains maps onto the paper's own division of labor: SFT establishes "basic syntax and mapping" between language and CadQuery primitives but "lacks explicit 3D knowledge and reasoning capabilities," so it cannot by itself fix geometric accuracy. The geometric reward is what directly optimizes for 3D correctness, because it scores the executed output against the target shape. CoT is added specifically because "multiple distinct CadQuery scripts can produce geometrically equivalent CAD models — a challenge for SFT to capture," so the model needs to plan a modeling procedure before writing code rather than pattern-match from training examples.
This contrasts, at least on the surface, with Do reasoning traces need to be semantically correct?, which found that CoT content can be semantically unrelated to the actual problem and still preserve or even improve performance — intermediate tokens there function as "computational scaffolding not meaningful reasoning." Here, adding CoT on top of an already-reward-trained model produces a measured gain on a verifiable downstream metric (CD 17.34 → 6.54), in a setting where correct spatial planning plausibly changes what code gets written. But the excerpt does not run the equivalent control — CoT with scrambled or irrelevant planning content — so it cannot show whether this gain specifically requires correct spatial content in the trace, or would survive content-free scaffolding as in that other domain; the two findings sit as an open contrast rather than a resolved one. This note also explains, for Can executing generated code measure CAD generation quality?, which part of that three-stage pipeline the headline 6.54 CD result actually comes from.
The excerpt does not ablate the format reward on its own, and it does not test CoT without GRPO on the full dataset — only "without SFT" and "GRPO alone without CoT" variants are reported — so the specific contribution of the format-reward term is not established. The implication that follows is limited to the CD and code-validity metrics reported; the excerpt gives no basis for a claim about whether the resulting CAD models would be judged correct or usable by a human engineer.
Inquiring lines that read this note 5
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Can visual rendering-based rewards effectively improve code and layout quality? How important is reward engineering relative to pretraining for reasoning?Related concepts in this collection 4
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can executing generated code measure CAD generation quality?
Can an LLM be trained to write executable CAD scripts, and can running those scripts against a target shape yield reliable rewards for improving geometric accuracy?
the sibling note this ablation explains, by isolating which training stage produces the headline result
-
Do reasoning traces need to be semantically correct?
Can models learn to solve problems from deliberately corrupted or irrelevant reasoning traces? This challenges assumptions about what makes intermediate tokens useful for learning.
contrasting case where CoT content mattered little; here CoT content produces a measured gain, though not tested against a scrambled control
-
Can CAD code be syntactically correct yet geometrically wrong?
This explores whether training for executable code and training for accurate geometry require different approaches, and what each training stage contributes to closing that gap.
qualifies A's ablation by showing SFT alone already yields high executability, with CoT and RL each separately closing the IoU gap
-
Can task-specific rewards outperform general pretraining for CAD code?
Does reinforcement learning with hand-designed rewards—executability, geometric accuracy, and external evaluation—help language models generate more precise CAD modeling code than general pretraining alone? This matters because CAD demands both symbolic reasoning and numeric precision beyond typical VLM capabilities.
extends A's finding by adding executability and external-evaluation rewards beyond the geometric reward, outperforming CAD-Coder overall
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- CAD-Coder: Text-to-CAD Generation with Chain-of-Thought and Geometric Reward
- From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation
- WebRenderBench: Enhancing Web Interface Generation through Layout-Style Consistency and Reinforcement Learning
- Online Intrinsic Rewards for Decision Making Agents from Large Language Model Feedback
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation
- Spurious Rewards: Rethinking Training Signals in RLVR
- ChartMaster: Advancing Chart-to-Code Generation with Real-World Charts and Chart Similarity Reinforcement Learning
- Does Math Reasoning Improve General LLM Capabilities? Understanding Transferability of LLM Reasoning
Original note title
GRPO's geometric reward drives most of CAD-Coder's accuracy gain over SFT alone, and chain-of-thought planning adds a further gain on top