← Latest papers
🤖 machine learning

Clarify Before You Draw: Proactive Agents for Robust Text-to-CAD Generation

The paper introduces ProCAD, a proactive agentic framework that resolves ambiguous or inconsistent text prompts through targeted clarification before code synthesis, significantly outperforming existing models in generating robust and valid CadQuery programs.

Original authors: Bo Yuan, Zelin Zhao, Petr Molodyk, Bin Hu, Yongxin Chen

Published 2026-06-17
📖 3 min read☕ Coffee break read

Original authors: Bo Yuan, Zelin Zhao, Petr Molodyk, Bin Hu, Yongxin Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are an architect who wants to build a custom piece of furniture, but instead of drawing blueprints yourself, you just talk to a very smart, but slightly literal, robot builder.

The Problem: The "Guessing Game" of Building
In the past, if you told the robot, "Make me a table with a round top and four legs," it would try to build it immediately. But here's the catch: you didn't say how big the table is, how thick the legs are, or if the top should be wood or metal.

Because the robot is eager to please, it would guess the missing details. Sometimes it guesses right, but often it builds a wobbly, tiny, or impossible table. If the instructions were slightly contradictory (e.g., "a square top that is also perfectly round"), the robot would get confused and crash, or build something that falls apart.

The Solution: The "Clarifying Agent" (ProCAD)
The authors of this paper, Bo Yuan and his team, realized that the best way to fix this isn't to make the robot smarter at guessing, but to make it ask questions first.

They built a system called ProCAD that works like a two-person construction crew:

  1. The Detective (Clarifying Agent): Before the robot starts building, this agent acts like a careful project manager. It reads your request and says, "Wait a minute. You said 'round top,' but you didn't say the size. Is it 2 feet or 20 feet? Also, you said 'square' and 'round'—which one do you mean?"

    • It only asks questions when it's truly necessary, so it doesn't annoy you with a million questions.
    • It waits for your answer to create a perfect, complete blueprint.
  2. The Builder (Coding Agent): Once the Detective has a clear, contradiction-free blueprint, it hands it to the Builder. This agent is a specialist who knows exactly how to translate those clear instructions into the computer code (CadQuery) that actually builds the 3D model.

How They Trained the Team
To teach this team how to work, the researchers didn't just give them random instructions. They created a special training library:

  • For the Builder: They used 1,600 perfect examples where the instructions were clear and the resulting 3D models were flawless. This taught the Builder how to write perfect code when the instructions are good.
  • For the Detective: They created a "simulation game." They took perfect instructions and deliberately messed them up (removing sizes, adding contradictions) to create "broken" requests. They then taught the Detective how to spot these errors and ask the right questions to fix them, all while keeping the conversation short and sweet.

The Results: Why It Matters
When they tested ProCAD against other top-tier AI models (including very expensive, closed-source ones like Claude Sonnet 4.5), the results were impressive:

  • Fewer Mistakes: The "Invalidity Ratio" (how often the robot crashes or builds garbage) dropped from nearly 5% down to less than 1%.
  • Better Accuracy: The final 3D models were much closer to what the user actually wanted. The "Chamfer distance" (a math way of measuring how close the shape is to the target) improved by nearly 80%.
  • Less Frustration: The system asked fewer questions and got the job done faster than the other models.

In a Nutshell
Instead of forcing an AI to guess your mind and hope for the best, ProCAD acts like a helpful human assistant who double-checks the details before starting the work. By "clarifying before you draw," it ensures that the final 3D design is exactly what you imagined, without the trial-and-error of broken models.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →