Skip to content

Two Programs From One Sentence, Only One Is Easy to Resize

THE ARGUMENT

Whether a generated CAD program is any good is not settled by shape alone: how the training code is written decides whether the result can still be edited.

On this page

Li leads the design group at a shop that makes custom fixtures. This week he has to sign off on one decision: whether to bring in a tool that turns a single sentence into a 3D part. In the demo, both vendors take the same prompt and hand back a part that opens cleanly and matches the drawing, so his comparison sheet has just two columns, seconds to generate and how far the shape sits from the reference. By that sheet the two are tied and either vendor will do. But what actually makes his team work late is never the first picture; it is the customer email the next morning asking to shift a group of holes by five millimetres. In one program those dimensions are hard-coded numbers scattered through the file, so someone has to hunt them down; in the other they are named quantities that move together, so a single change suffices. His sheet, precisely, cannot see that difference. Paper [1] sets out to measure the two things separately.

The Default Sheet Measures Shape, Not Editability

What these tools do is called text-to-CAD in the paper: feed in a natural-language description and get back an executable modelling program rather than just a finished picture. In plain terms, the computer writes out the part from a sentence, and what it writes is still a set of steps you can change. Most acceptance sheets today check only two things about those steps, whether they run at all and how close the resulting shape is to a reference. Both matter, but they cover just the first leg of the handoff.

Paper [1] points out that a practical workflow needs more than valid geometry, meaning a shape that is not broken and commands that run cleanly: the generated program should expose reusable structure that supports later modification. It calls this design intent, meaning why the part was drawn this way, which dimensions should move together, and which features came from a single operation. A part can be geometrically perfect and still be painful to edit if its feature structure, dimensions and relations are gone. Put plainly, an openable file is not the same as an editable one, and editability lives in whether the code still remembers the thinking behind it.

So the default judgment does not hold. If being easy to change later is not on the sheet, a tool picked by that sheet may get the shape right while pushing all the rework downstream. Paper [1] does not touch the model architecture or the decoding procedure. It changes something further upstream: what the standard-answer code the model is trained on actually looks like.

Design Intent as Three Recoverable Signals in Code

The paper sets a goal it calls intent-oriented text-to-CAD generation, where design intent is not a vague requirement but a recoverable signal you can find again in the code. There are three kinds. Semantic features collapse a long run of low-level line, arc and extrusion commands into one meaningful modelling action, such as cutting a through-hole. Reusable parameters pull repeated dimensions into named values instead of digits scattered across the file. Lightweight parametric relations spell out whether two dimensions should be equal, concentric, mirrored or held at a ratio. In plain words, the last two make the code itself remember that certain numbers belong together.

For this, paper [1] opens only a small, checkable set of relation signals: EQUAL, CONCENTRIC, MIRROR, DISTANCE, and common RATIO relations between dimensional parameters. These are not invented geometry constraints; they are the few that can be verified against the original construction record. Keeping the set small is deliberate, because the fancier a relation gets, the harder it is to prove the rewritten code still matches the real part.

Here is the key term: supervision representation granularity. The supervision representation is the standard answer the model is shown during training; granularity is how coarse or fine that answer is written. The same raw construction record can be kept as low-level primitives, or organised into semantic features, or further organised into parameters and relations. All three may describe the same part geometrically, yet the model learns different things from them. Paper [1] asks exactly this: with the model and the decoder fixed, what happens to generation and later editing when only that standard answer is written more finely?

A Two-Stage Lifting Pipeline: Features First, Then Relations, With Checks

Rewriting a crude record into intent-bearing code is what the paper calls lifting, which in plain terms means giving the same construction steps a clearer, more editable spelling without changing what the part looks like. It uses a conservative two-stage pipeline. Semantic lifting rewrites reliable groups of primitives into feature-level operations; parametric lifting then makes the repeated dimensions and relations in those features explicit. Conservative is the important word: the pipeline would rather leave something untouched than guess.

The mechanism is lift-and-validate. A rule-based reconstructor first rebuilds an executable low-level program from the command sequence and tags each primitive with a unique identifier, a step the paper calls tag-preserving reconstruction. Then deterministic geometric checks, recovered constraint evidence, constrained local rewriting by a language model, and a final executable run of the code decide whether a rewrite is allowed. The paper's acceptance rule is blunt: a candidate lift is accepted only when it both matches the geometry and is supported by constraint evidence; otherwise the original low-level implementation is kept. Nothing needs a human to label which parts are semantic features or which are parameter relations, which is why the pipeline scales to a hundred thousand samples [1].

The second stage is restricted relation induction by local parameter rewriting. Paper [1] writes a formal condition for whether a group of primitives may be lifted into a feature: geometric match and constraint support must both hold, and neither alone is enough. Writing relations into the code means that changing one dimension downstream can carry the tied values with it. The cost is that only the few listed relation types are covered; more elaborate couplings are not manufactured out of nothing.

One more point before the numbers. The paper evaluates later modification in a zero-shot setting, meaning the generator was never trained specifically on these edits and is used as-is. Its edit benchmark has three kinds of change: Feature Edit (FE), Consistency-preserving Edit (CE) and Derived-Relation Edit (DE). The last two depend especially on whether relations survived in the code. In short, the question is whether a finer standard answer helps when there has been no extra coaching [1].

Two Datasets: 100K Paired Samples and 1K Edit Tasks

To treat granularity as a variable, the authors build IntentCAD-100K, a hundred thousand paired text-and-code samples made by converting low-level CAD construction traces into executable CadQuery programs. CadQuery is a way of describing a part in code that runs directly into geometry, or in plain terms the write-it-instead-of-drag-it family of tools. The raw records come from DeepCAD construction sequences. For one and the same part, the pipeline produces three training targets: primitive-only, semantic, and semantic-parametric. That is what makes a controlled comparison possible under the same fine-tuning setup [1].

The 100K samples are randomly split into training, validation and test sets at a ratio of 80/10/10. Note what is and is not given: the paper reports a split ratio, not per-split counts for each of the three spellings, and I will not divide the total to invent them. The three granularities are three writings of the same parts, not three piles of parts, so the comparison is spelling against spelling, not more data against less [1].

The second dataset is IntentCAD-Edit-1K: one thousand aligned samples built to measure zero-shot intent-preserving editing, covering feature edits, consistency-preserving edits and derived-relation edits, with no edit-specific training. Together the two datasets give the question a measurable footing: does writing the standard answer more finely actually make later changes easier? The authors release the data and code at the repository address given in the paper [1].

Results: Invalid Rate Down to 0.22%, Relation Edits Up to 88.73%

Under controlled fine-tuning, semantic lifting mainly improves generation reliability and feature recovery. Paper [1] reports IR falling from 2.39% to 0.22%, mean CD from 1.44 to 0.46 with the paper recording this quantity at a scale of ten to the third, and API Recovery reaching 99.96%. In plain terms, IR is the share of generated programs that fail to run or produce invalid geometry, so lower is more reliable; CD is a geometric distance between the generated shape and the reference, so lower is closer; API Recovery is the share of modelling commands that are correctly reproduced. All three point the same way: merely folding low-level actions into features makes the model write fewer mistakes and fewer omissions.

Parametric lifting does not pile further reliability gains on top. The paper says reliability and typical geometry stay comparable to semantic supervision, and what it buys instead is explicit relation structure, with ERS at 93.35% and PRS at 95.25%. These two scores measure how completely parameter relations are recovered, or plainly, how many of the dimensions that should move together actually do. The word is comparable, not worse and not better, and no difference is given to subtract [1].

The real gap opens in zero-shot editing. Adding semantic and parametric supervision raises consistency-preserving edit success CE@ES from 91.00% to 95.82% and derived-relation edit success DE@ES from 77.09% to 88.73%. CE covers changes that must not drag other parts out of line; DE covers changes that have to propagate along a written relation. The larger move in DE lines up with the layer that leaves relations in the code. These are the paper's stated before-and-after figures, not a ratio I computed [1].

MetricStarting valueEnd valueWhat the two ends compare
IR2.39%0.22%primitive-only to semantic lifting
Mean CD (x10^3)1.440.46primitive-only to semantic lifting
API Recoveryno control value given99.96%absolute value after semantic lifting
ERSno control value given93.35%relation recovery after parametric lifting
PRSno control value given95.25%relation recovery after parametric lifting
CE@ES91.00%95.82%semantic to semantic-parametric supervision
DE@ES77.09%88.73%semantic to semantic-parametric supervision

Where It Stops: Same Parts, Different Spellings, One Controlled Setup

Start with what the paper does not claim. It does not say any one spelling is the single correct standard answer, it does not rank generators, and it does not say a low invalid rate means design intent was fully captured. What it shows is narrower: with the architecture and decoding procedure unchanged, the same raw construction records, and one fine-tuning setup, rewriting the training target from low-level actions to semantic features and then to parameters and relations moves generation reliability and zero-shot editing in specific ways [1].

  • Relation coverage: the pipeline opens only EQUAL, CONCENTRIC, MIRROR, DISTANCE and common RATIO signals, so complex couplings are out of scope and do not appear in generated code by magic;
  • Data origin: IntentCAD-100K is converted from DeepCAD construction sequences, so the conclusions are tied to this kind of command-style record and need rechecking for other histories;
  • Nature of the comparison: the three granularities are three writings of the same parts, not three data piles, so the finding is about spelling granularity, not data volume or model size;
  • Editing setup: IntentCAD-Edit-1K is zero-shot with no edit-specific training and three edit types, so it does not answer what happens after dedicated edit training;
  • Meaning of the scores: ERS, PRS, CE@ES and DE@ES use the paper's own definitions, so the percentages are not directly comparable under a different evaluation protocol.

In one line: this applies when you already have a batch of low-level construction records and are willing to rewrite the standard answers at several granularities. If you have no convertible construction history, or the real question is whether the model still behaves sensibly on part categories it never saw, then changing the evaluation framework matters more than tuning supervision granularity [1].

References

  1. Intent2CAD: How Semantic-Parametric Supervision Shapes Text-to-CAD Generation

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…