Does reinforcement learning teach an AI to write CAD code better from exact specs, or from plain-English descriptions, equally well?
Does reinforcement learning contribute equally to structured and natural language CAD inputs?
This explores whether reinforcement learning helps a model write CAD code equally well whether it gets a precise, structured spec (exact dimensions and parameters) or a looser plain-English description of the part.
This explores whether reinforcement learning helps a model write CAD code equally well whether it gets a precise, structured spec or a looser plain-English description of the part. The short answer is that the corpus doesn't settle it. The one CAD-specific note, Can task-specific rewards outperform general pretraining for CAD code?, reports its headline numbers under structured input: 99.63% of generated programs run, and 78.7% geometric overlap with the target shape, beating CAD-Coder. Those results come from three hand-built rewards plus chain-of-thought guidance. The note gives no matching numbers for natural-language input, so the head-to-head comparison you're asking about isn't in the collection.
Other notes do suggest why you shouldn't expect the gains to be equal. RL learns from differences in reward. When a model's attempts at the same prompt all score about the same, the learning signal fades and the model drifts toward generic, one-size-fits-all outputs (Why do language models collapse into generic templates?). A structured spec pins down what 'correct' means, so a geometric check can sharply separate good programs from bad ones. A vague request like 'a bracket with a few mounting holes' allows many acceptable answers. Similarity to one reference shape then becomes a noisier reward, and noisy rewards are exactly the conditions that produce template collapse.
The same pattern shows up in other domains. RL works best when the output can be checked mechanically: floor plans scored on room connectivity, area, and feasibility (Can LLMs generate valid floor plans with verifiable structural rewards?), and spreadsheet tasks checked against a known-correct answer file inside real Excel (Can reinforcement learning in real Excel beat general-purpose LLMs?). ReTool's speedup with a code interpreter (Can tool use make reinforcement learning more sample efficient?) is put down partly to reduced ambiguity. That points the same way: the less ambiguous the task, the faster RL finds the right behavior.
The corpus does suggest ways to close the gap for natural-language input. One is to break a fuzzy request into a checklist of sub-requirements that can each be verified, such as 'has four holes' or 'wall thickness is about 2 mm'. That turns a judgment call into something RL can score (Can breaking down instructions into checklists improve AI reward signals?). Another is written critique: feedback explaining why an attempt failed can get a model past a plateau that a single score can't break (Can natural language feedback overcome numerical reward plateaus?).
The takeaway you might not have expected: how much RL helps may depend less on the model than on how precisely the input defines success. Structured CAD input is close to an ideal RL setting. Natural-language input probably needs extra reward design before RL pays off as much. That last point is an inference from the general RL notes, not a measured CAD result.
Sources 7 notes
CAD-RL, trained with three domain-specific rewards and chain-of-thought guidance, achieves 99.63% executability and 78.7% geometric IoU under structured input, outperforming CAD-Coder by +8.3% IoU and +3.39% executability. This suggests hand-specified rewards can unlock latent reasoning in pretrained models for precise code generation.
When within-prompt reward variance is low, task gradients weaken and regularization dominates, pushing policies toward generic outputs. SNR-Aware Filtering—selecting high-variance prompts before updates—recovers performance across tasks and scales.
Fine-tuning Llama-3.3-70B with supervised learning then GRPO using automatically computed connectivity, area, and feasibility rewards reduced Compatibility error 94% versus HouseDiffusion. The approach generates valid JSON floor plans by deriving reward signals directly from geometric and graph properties rather than training a separate reward model.
Spreadsheet-RL raised Pass@1 accuracy from 12.0% to 23.4% on SpreadsheetBench by fine-tuning a 4B model with on-policy RL inside Microsoft Excel, using outcome-verified rewards checked against oracle spreadsheets rather than general LLM prompting.
ReTool achieves 67% accuracy in 400 RL steps with code-interpreter access, while text-only RL needs 1080 steps for 40% on the same model. The gap arises because tools reduce ambiguity and enable programmable search, letting RL find correct solutions faster.
Show all 7 sources
RLCF and RaR methods decompose instruction quality into verifiable sub-criteria, improving performance on benchmarks like FollowBench and HealthBench. This decomposition principle reduces overfitting to superficial artifacts that plague holistic reward models.
Critique-GRPO shows that models stuck on performance plateaus can generate correct solutions when given chain-of-thought critiques, revealing that numerical rewards lack critical information about why failures occur and how to improve.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- 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
- A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?
- Reward Reasoning Model
- The Surprising Effectiveness of Negative Reinforcement in LLM Reasoning
- LSR: Reinforcement Learning with Supervised Reward Outperforms SFT in Instruction Following
- Teaching Large Language Models to Reason with Reinforcement Learning
- ToolRL: Reward is All Tool Learning Needs