Can you automatically tell if AI-generated 3D design code actually builds the shape it was supposed to?
What filtering and verification steps ensure automatically generated CAD training data remain valid?
This explores how researchers check that machine-generated CAD training examples (code that is supposed to build a 3D shape) are actually correct, and what can still slip past those checks. The corpus doesn't describe a dedicated CAD data-cleaning pipeline, so this answer pieces one together from how CAD models are scored and from how verified synthetic data is built in neighboring areas.
This explores how you keep automatically generated CAD training data honest, meaning code meant to build a 3D part that may or may not build the right part. The corpus has no paper that lays out a CAD dataset-filtering pipeline step by step, so treat this as a synthesis rather than a recipe. What it does show clearly is the two checks that matter and the gap between them. The first check is easy: does the code run? The second is harder: does the shape it builds match the intended shape? Supervised fine-tuning alone gets CAD code to run 91% of the time, yet the resulting geometry overlaps the target only about 50% of the time Can CAD code be syntactically correct yet geometrically wrong?. A filter that only keeps code that runs would let through a large share of examples that are well-formed but build the wrong shape.
The working fix is to run every script and measure the solid it produces. CAD-Coder runs generated CadQuery scripts and computes Chamfer Distance, a point-by-point measure of how far the built shape sits from the target Can executing generated code measure CAD generation quality?. CAD-RL splits this into three task-specific rewards and reaches 99.6% executability with 78.7% geometric overlap Can task-specific rewards outperform general pretraining for CAD code?. These papers use the measurements as training rewards, but the same tools can serve as data filters: run the code, discard anything that crashes, then discard anything whose geometry falls outside a distance or overlap threshold. The geometry kernel acts as a judge that can't be talked into a wrong answer.
Other fields that build verified synthetic data show what else a full pipeline needs. Spreadsheet-RL pairs strong coding agents with rule-based filters to build checked "oracle" answers without human experts Can coding agents replace human experts in building training data?. ToolFlow found that synthetic data can pass every format check and still be unrealistic when its parts are combined at random Why does random tool sampling produce unrealistic synthetic training data?. The CAD version of that problem would be parts that are geometrically valid but implausible as designs. Spark-to-Paper's principle carries over directly: keep model judgment separate from deterministic checks, and decide what counts as passing before you see the outputs Can separating judgment from verification improve research paper reliability?.
The part you may not have expected to want to know is that filtering has a long-run cost. Retraining on verifier-filtered synthetic data helps at first, but over generations it pulls the model toward whatever the verifier favors, and the early gains level off Does verifier filtering actually prevent model collapse long term?. For CAD, a single Chamfer threshold could quietly reward shapes that score well on point distance while losing small features like holes or fillets. Passing each local check is also not the same as being correct overall: steps that each pass their own test can still add up to a failure Can individual components pass safety checks if the system still fails?. The practical answer is to make the verifier itself stronger. Verification improves on its own when you use finer-grained scores, repeat the evaluation and break the criteria into parts Can verification accuracy scale without training models?. For CAD, that could mean checking topology, dimensions and point distance separately instead of relying on one number.
Sources 9 notes
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.
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.
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.
Spreadsheet-RL's data agent mines ExcelForum posts and uses strong coding agents plus rule-based filtering to generate RL training pairs automatically. This approach scales dataset creation from 912 pairs to larger volumes without expert involvement.
Random tool sampling fails because unrelated tools cannot credibly compose, and Q&A framing ignores multi-turn dialogue coherence. ToolFlow shows that sampling tools from relevance graphs and generating with dialogue plans closes this gap.
Show all 9 sources
Spark-to-Paper architects paper generation as composable skills that isolate model judgment from executable, verifiable operations and require evidence specification before results are observed, reducing dependence on model correctness for consistency.
Verifier-filtered synthetic retraining reduces variance and improves performance initially, but pulls model parameters toward the verifier's own knowledge center over time. Without perfect verifier reliability, early gains plateau and degrade as bias accumulates.
Three mechanisms across SafeFlow, ChannelGuard, and Honest Quorum show that passing local checks (plausibility, alignment, protocol compliance) does not prevent system failures. The gap persists because local checks verify different properties than those that determine safe end-to-end behavior.
Research shows verification accuracy improves independently via score granularity, repeated evaluation, and criteria decomposition—all deployable at inference without retraining. This reframes weak verifiers as under-scaled rather than fundamentally limited.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation
- CAD-Coder: Text-to-CAD Generation with Chain-of-Thought and Geometric Reward
- Escaping Model Collapse via Synthetic Data Verification: Near-term Improvements and Long-term Convergence
- Generative Floor Plan Design with LLMs via Reinforcement Learning with Verifiable Rewards
- Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generation
- AutoPresent: Designing Structured Visuals from Scratch
- ReTool: Reinforcement Learning for Strategic Tool Use in LLMs
- Local Coherence or Global Validity? Investigating RLVR Traces in Math Domains