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.
CAD-RL is a multimodal chain-of-thought-guided reinforcement-learning post-training framework for generating CAD modeling code (executable CadQuery scripts) from natural-language or structured design-language input, optionally with reference images. The authors report it "reaches a code executability of 99.63% and an IoU of 78.7% under Structured Design Language input, surpassing CAD-Coder by +8.3% in IoU and +3.39% in executability." Under natural-language input, the best pretrained VLM baseline tested (GPT-4o) reached only "a 72.72% executability and 47.7% IoU," which the authors attribute to CAD modeling demanding "both symbolic reasoning over operations ... and precise understanding of numeric constraints" beyond what general VLM pretraining provides.
Training proceeds in two stages: a "CoT-based Cold Start" that fine-tunes on a small set of multimodal examples with expert chain-of-thought annotations, followed by RL post-training optimized against three named rewards — "executability reward, geometric accuracy reward, and external evaluation reward." Because the reward signal is sparse and high-variance, the authors add three stabilizers: "Trust Region Stretch for improved exploration, Precision Token Loss for enhanced dimensions parameter accuracy, and Overlong Filtering to reduce noisy supervision."
This echoes Do base models already contain hidden reasoning ability?: the authors frame folding CoT into the RL loop explicitly as a way to "activate pretrained vision-language models' latent capacity for long-horizon symbolic reasoning," treating reasoning as elicited rather than newly taught. It also sits in contrast with Can language models design better reward functions than humans?: where EUREKA has an LLM write and evolve its own reward-function code, CAD-RL instead hand-specifies three fixed, domain-specific rewards rather than searching reward-function space. Can CAD code be syntactically correct yet geometrically wrong? unpacks which of CAD-RL's training stages is doing the work behind these headline numbers.
The excerpt names the three rewards but does not spell out how each is computed — in particular, whether the geometric-accuracy reward scores the rendered 3D output, raw parameters, or something else, and who or what performs the "external evaluation reward" (a learned judge, a rule-based checker, or human raters) is left unstated. Nor does it report how CAD-RL performs on CAD tasks outside the ExeCAD benchmark the authors built alongside it, leaving open how far the reported gains generalize beyond this one dataset and domain.
Inquiring lines that read this note 27
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? Can visual rendering-based rewards effectively improve code and layout quality?- Does the rendering reward generalize beyond chart editing to other code generation tasks?
- How does the rendering reward weight code executability against visual fidelity failures?
- What filtering and verification steps ensure automatically generated CAD training data remain valid?
- 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 structural features replace learned reward models in design generation tasks?
- What breaks when floor plan rewards ignore architectural style or program type?
- Can visual rendering rewards work for tasks beyond code reconstruction?
- How does render-and-compare training differ from expert-judged rewards in visual tasks?
- Can preference-based training replace hand-coded metrics for design evaluation?
- Why does geometric reward alone drive most of the accuracy gain over supervised learning?
- How does reward supervision improve 3D geometric accuracy in code generation?
- How much of MSRL's improvement comes from visual rewards versus rule rewards?
- Should reward functions be hand-designed or evolved by the learning system?
- Why do outcome-based and process-based rewards differ from rendering-based rewards?
- What structural flaws do geometric-aware rewards catch that existing models skip?
- Which reward term drives most improvement in floor plan generation?
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 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.
sibling note: isolates which training stage drives these headline numbers
-
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.
CAD-RL frames its CoT+RL loop as activating latent reasoning capacity, not teaching it from scratch
-
Can language models design better reward functions than humans?
Can GPT-4 write and automatically refine reward code to outperform manual reward engineering? This explores whether LLMs can solve a core bottleneck in reinforcement learning—specifying what an agent should optimize for.
contrasting reward-design strategy: evolved reward code vs. three hand-specified task rewards
-
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?
Qualifies A's comparison: CAD-Coder's own reward already optimizes executability and geometric accuracy via Chamfer Distance
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
- Online Intrinsic Rewards for Decision Making Agents from Large Language Model Feedback
- Spurious Rewards: Rethinking Training Signals in RLVR
- Learning to Reason without External Rewards
- Eureka: Human-Level Reward Design via Coding Large Language Models
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation
- Rendering-Aware Reinforcement Learning for Vector Graphics Generation
Original note title
CAD-RL's three task-specific rewards push CAD code generation past CAD-Coder in executability and geometric accuracy