INQUIRING LINE

Does the reward that just checks 'does this code run' actually help, or does rewarding good 3D shapes do all the work?

Does format reward contribute independently to CAD-Coder's final performance?

This explores whether the 'format' part of CAD-Coder's reward (the signal for producing well-formed, runnable code) adds anything of its own to the final result, separate from the geometric reward that scores how close the 3D shape is to the target.


This explores whether CAD-Coder's format reward earns its place on its own, or whether the geometric reward does the real work. The short answer is that the corpus doesn't isolate it. CAD-Coder's reported ablation steps through SFT alone, then adding GRPO, then adding chain-of-thought. Mean Chamfer Distance (a measure of how far the generated shape is from the target) falls from 74.55 to 17.34 to 6.54 What drives CAD-Coder's improvement over supervised fine-tuning alone?. The GRPO step bundles all of its reward terms together, so the gain is credited to the geometric reward as a whole, and no row removes the format term by itself. The core method is to execute the generated CadQuery script and compare the resulting shape to the target Can executing generated code measure CAD generation quality?. That design already penalizes broken code implicitly, because code that doesn't run produces no shape to score.

Nearby work hints at why a separate format reward might matter less than you'd expect. In a related CAD pipeline, supervised fine-tuning alone already gets code to run 91% of the time while getting the geometry only about half right Can CAD code be syntactically correct yet geometrically wrong?. Running is learned early and cheaply. Getting the shape right is the hard part that reasoning and RL have to push. If that holds for CAD-Coder too, a format reward is working in territory that is already mostly solved by the time RL starts.

A more surprising data point comes from outside CAD. ReTool trained models with only a final-answer correctness reward and no signal at all about whether the code ran. The models still learned to fix their own non-running code without being told to Can outcome-only rewards teach code interpreter timing without executability signals?. Seen this way, a strong outcome reward can make an explicit 'is this valid?' reward partly redundant, because broken outputs simply fail to score.

The opposite view: some systems deliberately keep cheap rule-based checks separate from the expensive quality signal. MSRL uses rule-based text rewards first and adds visual-similarity rewards later Can visual similarity rewards break the chart-to-code learning plateau?. CAD-RL splits its reward into three task-specific terms and beats CAD-Coder Can task-specific rewards outperform general pretraining for CAD code?. DRO goes further and argues that validity checks work better as gates that accept or reject rollouts than as rewards blended into the score, because blending invites reward hacking Can rubrics and dense rewards work together without hacking?. That reframes the question. The useful question may be less 'does format reward add points?' and more 'should format be a reward at all, or a filter?'

The takeaway: nothing in this collection measures the format reward on its own for CAD-Coder. The surrounding evidence suggests format and runnability are the easy, early-saturating part of code generation, while geometric correctness is where the gains are. If you need a definitive answer, it would have to come from an ablation that isn't in the corpus.


Sources 7 notes

What drives CAD-Coder's improvement over supervised fine-tuning alone?

CAD-Coder's ablation shows SFT alone achieves Mean CD 74.55, adding GRPO jumps to 17.34, and including chain-of-thought reasoning reaches 6.54. The geometric reward directly optimizes 3D correctness, while planning helps capture equivalent solutions.

Can executing generated code measure CAD generation quality?

CAD-Coder trains LLMs to write executable CadQuery code, then uses GRPO with Chamfer Distance to the target shape as a geometric reward signal. This approach reduces mean Chamfer Distance to 6.54 and outperforms existing text-to-CAD systems while maintaining low code invalidity rates.

Can CAD code be syntactically correct yet geometrically wrong?

Supervised fine-tuning alone produces 91% executable CAD code but only 50% geometric IoU. Chain-of-thought reasoning raises IoU to 61%, while RL post-training pushes it to 72%, showing the two capabilities decouple during early training.

Can outcome-only rewards teach code interpreter timing without executability signals?

ReTool's RL stage uses only final-answer correctness as a reward signal, with no executability feedback. Under this sparse signal, models learned to invoke code more frequently and earlier in reasoning, and emergently developed self-correction for non-executable code without explicit training data for it.

Can visual similarity rewards break the chart-to-code learning plateau?

MSRL pairs cheap rule-based textual rewards with costly MLLM-judged visual rewards comparing rendered code to ground-truth charts, improving ChartMimic and ReachQA scores by 6–10% beyond supervised-learning baselines. A two-stage curriculum applies textual rewards first, then adds visual feedback.

Show all 7 sources
Can task-specific rewards outperform general pretraining for CAD code?

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.

Can rubrics and dense rewards work together without hacking?

DRO shows that using rubrics to accept or reject rollout groups—rather than converting rubric scores into dense rewards—prevents reward hacking. This separation preserves the categorical strength of rubrics while letting token-level rewards optimize within valid answers.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.