INQUIRING LINE

Can two cheap automatic scores really tell you an AI-generated engineering design is the one you actually meant?

Can Chamfer Distance and code validity capture whether designs match an engineer's intent?

This explores whether the automatic scores used to train and grade AI design tools (Chamfer Distance, which measures how closely a generated 3D shape matches a target shape, and code validity, which checks whether the generated code runs at all) tell us whether the output is what an engineer actually meant.


This explores whether the cheap, automatic signals used to grade AI-generated designs, such as "does the code run?" and "how close is the shape to the reference?", tell you whether the design is what the engineer wanted. The short answer from the corpus is that they capture part of it, and the part they miss is large. Code validity is the weakest proxy. In text-to-CAD work, supervised fine-tuning alone produces CAD code that executes 91% of the time but matches the intended geometry only about half the time. Chain-of-thought reasoning and RL are needed to push geometric overlap to 72% Can CAD code be syntactically correct yet geometrically wrong?. Getting code to run and getting the right shape are separate skills, and they come apart early in training.

Chamfer Distance does better because it actually compares shapes. CAD-Coder runs the generated CadQuery script, measures how far the resulting shape is from the target, and uses that distance as a reward to train the model, which beats earlier text-to-CAD systems Can executing generated code measure CAD generation quality?. The limitation is that it measures closeness to a reference shape, not to a purpose. Two parts can be geometrically almost identical while one has a misplaced hole that makes it useless. Another part can sit far from the reference yet fit the engineer's need perfectly. Chamfer Distance rewards copying a target. It doesn't judge whether the design works.

The corpus doesn't test CAD intent directly, but similar fields show the same gap. Front-end and chart-generation systems found that "compiles" or "matches the code text" fell short, so they added visual judges that look at the rendered output Can multimodal LLMs judge front-end code quality better than tests? Can visual similarity rewards break the chart-to-code learning plateau?. ReLook gives zero reward to anything that fails to render. That is a sign that validity works best as a gate the output must pass before being scored, not as the score. Even with richer checks, intent still slips. A benchmark of generative UI tools found that about a quarter of stated design rationales never made it into the output, rising to a third for functional requirements Do generative UI tools actually implement their stated design rationales?. GPT-generated room layouts often looked plausible but had structural flaws, such as wrong object counts or orientations, that only a human caught Why do GPT-generated room layouts fail so often?.

One lesson runs across these cases: automated checkers improve what they measure, and domain expertise covers the rest. FeedA11y fed accessibility-checker violations back into code generation and did much better than prompting alone. It still failed on subtle requirements like keyboard navigation, which the checker couldn't fully express Can feeding accessibility violations back into code generation improve results?. The same likely applies to CAD. Tolerances, manufacturability and how parts fit together need their own checks, or a human in the loop.

There is also a deeper issue. Intent is often unclear even to the engineer until they see attempts. Research on prompt refinement describes generation as a back-and-forth in which users steer outputs toward what they already expected How much does the user shape what a model generates?. If that holds, no fixed metric fully captures intent, because intent is partly formed through iteration. The practical takeaway: use code validity as a gate and shape distance as a reward, and keep requirement-level checks plus human review for the judgment of whether the design is right.


Sources 8 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 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 multimodal LLMs judge front-end code quality better than tests?

ReLook trains a reward model on visual screenshots rather than unit tests, using a strict zero-reward rule for invalid renders to prevent reward hacking. It outperformed baselines across three benchmarks by embedding pixel-level visual judgment into the policy training loop.

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.

Do generative UI tools actually implement their stated design rationales?

A benchmark of 24 tasks across five tools found roughly 25% of design rationales go unimplemented, rising to 34% for functional requirements. Tools recognized only half the UX principles embedded in prompts.

Show all 8 sources
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 feeding accessibility violations back into code generation improve results?

FeedA11y's ReAct-based feedback loop significantly outperforms zero-shot, few-shot, and self-criticism prompting by iteratively feeding evaluator results back into generation. However, it still struggles with nuanced ARIA constraints like keyboard navigation and focus management, suggesting evaluator feedback alone cannot substitute for domain expertise.

How much does the user shape what a model generates?

Foundation Priors research shows prompt engineering as divergence minimization between synthetic output and user priors. The refinement process systematically steers generation toward what users already expect, making outputs co-productions of model and user subjectivity.

Papers this line draws on 8

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