INQUIRING LINE

Train an AI to write 3D-design code, and it learns to avoid crashing long before it learns to build the right shape.

How do executability and geometric accuracy rewards interact during training?

This explores what happens when a model trained to write CAD code gets two goals at once: code that runs without errors (executability) and code that produces the right 3D shape (geometric accuracy). Do the two goals help each other, compete, or get learned at different times?


This explores how two rewards behave together when a model learns to write CAD code: one for code that runs, one for code that builds the right shape. The short answer from the corpus is that they come apart. A model can get very good at the first while staying mediocre at the second. Supervised fine-tuning alone gets CAD code to about 91% executable, but the shapes overlap the target only about 50% of the time (measured by IoU, a score for how closely two shapes coincide). Adding chain-of-thought reasoning raises that to 61%, and RL post-training pushes it to 72% Can CAD code be syntactically correct yet geometrically wrong?. Code that runs is not the same as code that builds the right object, and the two skills improve on different timelines.

RL with rewards written for this task closes much of the gap. CAD-RL uses three task-specific rewards plus chain-of-thought guidance and reaches 99.63% executability with 78.7% geometric IoU Can task-specific rewards outperform general pretraining for CAD code?. Executability is almost maxed out, but geometry still has room to grow. The easy goal saturates first, and the hard goal is where the remaining training signal does its work.

The same order shows up well beyond CAD. Across eight models, RL training runs in two phases. First the model masters execution correctness. Then strategic planning becomes the bottleneck, and planning tokens become more varied while execution tokens settle down Does RL training follow a predictable two-phase learning sequence?. Mapped onto CAD: executability is the procedural phase, and geometric accuracy is the planning phase. That suggests the executability reward does most of its teaching early and mostly stops producing signal once nearly everything runs. Tool-use work shows a similar split, where a simple format check paired with a separate correctness reward beats supervised learning Can reward decomposition beat supervised learning for tool use?.

There's a twist: you may not need an executability reward at all. ReTool rewarded only correct final answers and gave no feedback on whether the code ran. Its models still learned when to call code and taught themselves to fix code that failed Can outcome-only rewards teach code interpreter timing without executability signals?. If the outcome depends on the code running, rewarding the outcome teaches executability as a side effect. The risk runs the other way. An executability reward that is too heavy or too easy to satisfy invites reward hacking, where the model learns to produce safe, runnable code that doesn't attempt the hard geometry Does reward hacking always stem from the same failure?. Work on calibration makes a related point: when rewards are designed carefully, two objectives can be optimized together without a trade-off Does binary reward training hurt model calibration?.

A gap in the corpus: none of these notes ablates the two CAD rewards against each other, for example by training with geometry alone or by changing their weights. The interaction described here is inferred from staged results and from parallels in other domains, not measured directly.


Sources 7 notes

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 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.

Does RL training follow a predictable two-phase learning sequence?

Across eight models, RL training consistently shows a first phase where execution correctness drives learning, followed by a second phase where strategic planning becomes the bottleneck. Planning token entropy increases while execution entropy stabilizes, and concentration of optimization on planning tokens yields significant performance gains.

Can reward decomposition beat supervised learning for tool use?

ToolRL decomposes rewards into binary format checking and correctness evaluation, achieving 17% improvement over base models and 15% over SFT on tool-use benchmarks. GRPO training outperformed PPO with the same reward design and generalized to unseen multi-hop QA.

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.

Show all 7 sources
Does reward hacking always stem from the same failure?

Reward hacking arises during weight training, output selection, and prompt revision through a shared failure: optimization against signals that incompletely represent the actual task. The substrate matters less than the misalignment between the scoring function and ground truth.

Does binary reward training hurt model calibration?

Binary correctness rewards incentivize high-confidence guessing because they don't penalize confident wrong answers. Adding the Brier score as a second reward term mathematically guarantees joint optimization of accuracy and calibration without trade-off.

Papers this line draws on 8

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