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.
CAD-RL's ablation study separates two capabilities that are often conflated: whether generated CAD code runs, and whether it describes the right geometry. With only "cold-start supervised fine-tuning (SFT) without any reasoning or visual guidance, the model already achieves high code executability—90.64% and 91.86% under natural and structured text, respectively. However, the IOU remains low (around 50%)." The authors read this as the model learning "to produce syntactically valid CADQuery code" while failing "to accurately capture geometric dimensions and constraints."
Each later stage pulls IoU up by a different amount, reported for natural-language input. Adding chain-of-thought reasoning raises IoU "from 49.5% to 60.8%," which the authors attribute to CoT enabling the model to "reason through construction logic more effectively." Reference images on top of CoT add a further, smaller gain, to 63.9% IoU, a combination the authors say helps "especially when the model already possesses strong planning capabilities via CoT." RL post-training then produces the largest single jump, "from 63.9% to 72.3%" IoU — the point at which the paper describes the model as moving "beyond imitation learning" to optimize the reward directly.
This is the sibling finding to Can task-specific rewards outperform general pretraining for CAD code?, which reports CAD-RL's final, combined numbers; this note isolates which training stage is doing the work behind them. It also bears on Do base models already contain hidden reasoning ability?: CoT's outsized IoU gain over an already syntax-competent SFT baseline is consistent with reasoning being elicited from a capable base model rather than taught from scratch, though CAD-RL's excerpt frames this only as an empirical ablation result, not as evidence about pretraining-time latent capacity.
The excerpt reports this stage-by-stage breakdown only for the natural-language input condition; it does not give the equivalent walkthrough under structured design language, so whether RL contributes the same proportional gain there is unstated. It also does not explain why executability saturates early (already ~91% at the SFT stage) while geometric precision keeps improving through every later stage — only that the two metrics move independently once syntax is learned.
Inquiring lines that read this note 37
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.
How should design principles adapt for AI-generated interfaces?- Does Claude Design's human-in-loop slider refinement outperform autonomous design evaluation?
- Does the expert-lay design gap vary across different tool categories?
- What filtering and verification steps ensure automatically generated CAD training data remain valid?
- Can Chamfer Distance and code validity capture whether designs match an engineer's intent?
- Why does general VLM pretraining fail at numeric constraint understanding in CAD?
- How do executability and geometric accuracy rewards interact during training?
- How do format rewards and geometric rewards split the work of training CAD models?
- What is Chamfer Distance and why measure it for CAD models?
- Does format reward contribute independently to CAD-Coder's final performance?
- Why do multiple CadQuery scripts produce geometrically equivalent CAD models?
- Can an independent VLM judge prevent design quality from regressing during refinement?
- Can render-and-judge mechanisms generalize beyond chart-to-code to other executable outputs?
- Why does generating spatial summaries before object placement improve layout quality?
- What structural flaws appear most often in synthesized room layouts?
- Should layout evaluation capture rendering artifacts like element overlap?
- Can bounding-box signals prevent visual flaws better than code APIs?
- Why is verifying rendered output easier than generating code from scratch?
- What makes code-matching training brittle compared to image-matching training?
- What domain knowledge do layout planning systems need that general-purpose models lack?
- How does the Slide Complexity Metric measure difficulty across layout types?
- Do static and build checks catch structural failures before aesthetic scoring?
- What filtering and correction steps best catch structural flaws in synthetic layouts?
- How often would Compatibility-optimal plans fail real building code checks?
- What proportion of architectural quality criteria can be made automatically verifiable?
- What accuracy rates do Claude-generated spreadsheets and slides actually achieve?
- How much do vision capabilities matter when evaluating and fixing slide layouts?
- Does block-level code regeneration reduce errors compared to file-level generation?
- What causes code executability to saturate while geometric precision keeps improving?
- How much time do product teams spend debugging versus generating code?
Related concepts in this collection 3
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 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.
sibling note: reports the combined, final numbers this ablation decomposes
-
Do base models already contain hidden reasoning ability?
Explores whether reasoning capability emerges during pre-training as a latent feature rather than being created by post-training methods like reinforcement learning or fine-tuning.
CoT's gain over a syntax-competent base is consistent with eliciting rather than teaching reasoning
-
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.
Evidence for A: CAD-Coder's own ablation shows the same pattern — SFT alone underperforms, RL's geometric reward and CoT raise accuracy
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation
- CAD-Coder: Text-to-CAD Generation with Chain-of-Thought and Geometric Reward
- Generative Floor Plan Design with LLMs via Reinforcement Learning with Verifiable Rewards
- ReTool: Reinforcement Learning for Strategic Tool Use in LLMs
- Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
- Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
- AutoPresent: Designing Structured Visuals from Scratch
- Scaling Reasoning, Losing Control: Evaluating Instruction Following in Large Reasoning Models
Original note title
cold-start SFT alone yields high CAD code executability but low geometric IoU — CoT and RL post-training close the precision gap