INQUIRING LINE

Does an AI benefit from 'thinking out loud' before writing CAD code, even after reinforcement learning has already trained it?

How does chain-of-thought planning improve CAD generation beyond reinforcement learning?

This explores what chain-of-thought planning (having the model write out its reasoning about a part's structure before writing the CAD code) adds to CAD generation, and whether that gain is separate from, or on top of, what reinforcement learning provides.


This explores whether planning in words before writing CAD code does something reinforcement learning can't. The corpus says the question is framed slightly wrong. Chain-of-thought and RL don't compete. They fix different parts of the same problem, in sequence. The clearest evidence is a staged ablation: supervised fine-tuning alone already produces CAD code that runs 91% of the time, but the resulting shapes match the target only about 50% of the time (measured by geometric overlap, or IoU). Adding chain-of-thought raises overlap to 61%, and RL post-training then pushes it to 72% Can CAD code be syntactically correct yet geometrically wrong?. The surprising part is that code that runs and code that's correct separate early in training. A model can master CAD syntax and still put holes in the wrong place.

That split explains each method's job. Chain-of-thought is where the model works out the geometry before writing code: which sketches, which extrusions, in what order, at what dimensions. It closes the first big part of the shape-accuracy gap, which syntax training leaves open. RL then sharpens the result against measurable targets. In CAD-RL, three CAD-specific rewards are layered on top of chain-of-thought guidance. That gets the code running 99.6% of the time and lifts geometric overlap to 78.7%, beating a strong baseline by more than 8 points Can task-specific rewards outperform general pretraining for CAD code?. So the best results come from planning plus rewards, not from either one alone.

The wider corpus suggests why planning helps and where it stops helping. Chain-of-thought tends to copy the shape of reasoning it has seen rather than infer from scratch, so it breaks down predictably on tasks, lengths or formats unlike its training data Why does chain-of-thought reasoning fail in predictable ways? Does chain-of-thought reasoning actually generalize beyond training data?. CAD may suit this well, because CAD workflows are highly regular (sketch, constrain, extrude, fillet), so there is a good structure to copy. Other domains support that reading. In GUI agents, deliberate reasoning actually loses to fast reactive responses on familiar tasks but wins on unfamiliar ones When does deliberate reasoning help or hurt in GUI agents?. And in tool use, rewarding longer reasoning just produces verbosity Do longer reasoning traces always improve tool-use performance?. The value is in the planning structure, not the length.

It also matters that spatial generation fails easily without a plan or a check. About 55% of GPT-generated room layouts had structural flaws, such as wrong object counts, clustering or bad orientations, and needed human correction Why do GPT-generated room layouts fail so often?. CAD is a much stricter version of the same problem. If you want to see where "plan first" could go next, two directions in the corpus are worth a look. One plants future-goal information directly in the training data, so models learn to plan without architectural changes Can embedding future information in training data improve planning?. The other trains models to come up with several high-level approaches before solving, which beats simply sampling more answers Can abstractions guide exploration better than depth alone?. For CAD, that might mean considering several ways to build a part before committing to one.

The corpus has only two CAD-specific notes, so it can't yet say whether chain-of-thought helps more on complex assemblies than on simple parts, or whether RL alone, without chain-of-thought, would eventually catch up.


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

Why does chain-of-thought reasoning fail in predictable ways?

CoT guides models to pattern-match reasoning structure rather than perform genuine inference. This explains distribution-bounded failures, why structural coherence matters more than content correctness, and why performance optimizes against interpretability.

Does chain-of-thought reasoning actually generalize beyond training data?

DataAlchemy experiments show CoT fails systematically under distributional shifts in task, length, and format. Models produce fluent but logically inconsistent reasoning — imitating reasoning form without valid underlying logic.

When does deliberate reasoning help or hurt in GUI agents?

UI-TARS's system-2 reasoning loses to reactive system-1 on trained benchmarks at single-sample inference, but reverses to significantly outperform system-1 on out-of-distribution AndroidWorld tasks. Deliberative depth helps generalization but introduces flawed reasoning steps under single-sample constraints.

Show all 9 sources
Do longer reasoning traces always improve tool-use performance?

ToolRL's ablations show that directly rewarding longer reasoning traces hurts performance by encouraging verbosity over correctness, while letting reward magnitude change during training enables models to transition smoothly from simple to complex behaviors.

Why do GPT-generated room layouts fail so often?

About 55% of Holodeck's GPT-generated layouts contained structural flaws including under-population, clustering, and wrong object counts or orientations. OptiScene required manual filtering and correction before the layouts could train downstream models.

Can embedding future information in training data improve planning?

TRELAWNEY augments training data with special tokens encapsulating future information, allowing models to learn goal-conditioned generation using standard infrastructure. Results show improved planning, algorithmic reasoning, and story generation without modifying architecture or training procedures.

Can abstractions guide exploration better than depth alone?

RLAD jointly trains abstraction and solution generators, showing that allocating test-time compute to diverse abstractions outperforms parallel solution sampling at large budgets. Abstractions create structured breadth-first exploration that prevents the underthinking failure mode of depth-only reasoning chains.

Papers this line draws on 8

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