arXiv:2611.03449cs.CVNov 2026

Manuscript Offprint

arXiv:2611.03449

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

Jinbo Yang, Mingyue Yuan, Shikai Jing

Abstract

Text-to-CAD generation aims to make CAD modeling more accessible by generating executable CAD programs from natural-language descriptions. However, practical CAD workflows require more than executable geometry: generated programs should also expose reusable structure that supports later modification. We introduce intent-oriented text-to-CAD generation, where design intent is expressed as recoverable code-level signals: semantic features, reusable parameters, and lightweight parametric relations. Rather than changing the model architecture or decoding procedure, we investigate how supervision representation granularity affects both CAD generation and zero-shot intent-preserving editing. To enable this study, we construct IntentCAD-100K, a 100K paired text–code dataset built by converting low-level CAD construction traces into executable CadQuery programs. We further construct IntentCAD-Edit-1K to evaluate zero-shot intent-preserving editing from the same representation perspective. Intent2CAD uses a two-stage conservative lifting pipeline: semantic lifting rewrites reliable primitive groups into feature-level operations, while parametric lifting exposes lightweight parametric relations. Under controlled fine-tuning, semantic lifting mainly improves generation reliability and feature recovery, reducing IR from 2.39% to 0.22% and achieving 99.96% API Recovery, while parametric lifting makes reusable relation structure explicit and further improves relation-aware zero-shot editing. Datasets and code are available at https://github.com/JinboYang94/Intent2CAD.

1 Introduction

Computer-Aided Design (CAD) is a fundamental tool in modern engineering design and manufacturing, where designers create, refine, and iterate product designs throughout the development process [1–3]. Because traditional CAD workflows remain time-consuming and expertise-intensive [4], recent text-to-CAD research has explored how Large Language Models (LLMs) can generate CAD scripts from natural language descriptions [5–10]. This direction is promising, but practical CAD modeling is not only about producing a final shape. In parametric CAD modeling, a generated CAD program should support later reuse and modification, not just match the final shape.

*Corresponding author (mingyue.yuan@unsw.edu.au) †Corresponding author (jingshikai@bit.edu.cn)

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Most existing text-to-CAD studies therefore leave an important gap. They primarily focus on geometric fidelity and program executability [5–9]. These criteria are necessary, but they do not fully capture the needs of parametric CAD workflows [11–13]. A program that approximates the target geometry with many low-level primitives may pass a shape metric, while still making a simple later edit, such as changing a shared radius or preserving symmetry, difficult to perform consistently. In this paper, we call this broader requirement intent-oriented text-to-CAD generation: the generated program should not only reproduce the requested shape, but also expose recoverable code-level intent signals that support reuse and local refinement.

We use intent in a restricted sense, referring only to recoverable code-level signals such as supported semantic features, reusable parameters, and lightweight parametric relations, rather than full design history or constraint-solving processes [14]. The supervision representation is important to this problem. Most current benchmarks are built from low-level construction traces composed of primitives such as lines, arcs, and circles [5, 6, 15, 16]. While expressive, these traces can hide the semantic and parametric structure that makes CAD programs reusable and editable.

Figure 1 illustrates this representation gap. Both forms can describe same geometry, but they expose different supervision signals: the primitive-only form emphasizes low-level primitives, whereas the semantic–parametric form makes high-level feature and reusable parameters explicit in code. This motivates our main question: when the model, training objective, text descriptions, and inference setup are fixed, how much does the target representation itself affect text-to-CAD generation and intent-preserving editing?

To answer this question, we introduce Intent2CAD, a semantic-parametric supervision representation implemented as executable CadQuery code. Following a conservative “lift when reliable, preserve when uncertain” rule, Intent2CAD rewrites supported primitive groups into high-level CAD features when geometric and constraint evidence agree, while retaining low-level fallbacks for unsupported or ambiguous geometry. It exposes four code-level representation elements: semantic features, explicit parameters, parametric relations, and fallbacks.

Figure

Figure 1: Illustration of the representation gap between primitive-only and semantic-parametric CAD supervision.

We construct this representation through a two-stage lift-and-validate pipeline. Stage I performs tag-preserving reconstruction and constraint-grounded semantic lifting, rewriting reliable primitive groups into feature-level CadQuery operations with explicit parameters. Stage II performs restricted relation induction by local parameter rewriting, exposing shared variables and simple derived expressions when they pass execution, geometric consistency, and locality checks. The pipeline produces three supervision granularities for study: primitive-only, semantic, and semantic–parametric supervision.

Using this pipeline, we build IntentCAD-100K, a 100K paired text–code dataset derived from raw DeepCAD [15] construction sequences. Beyond standard Invalid Ratio (IR) and Chamfer Distance (CD), we evaluate whether generated code recovers semantic features, preserves shared/equal parameters, and preserves derived parametric relations. We further construct IntentCAD-Edit-1K, a zero-shot intent-preserving editing benchmark with 1K aligned Feature Edit (FE), Consistency-preserving Edit (CE), and Derived-Relation Edit (DE) samples. Unlike prior text-based CAD editing work that trains specialized editors [17–19], we use the same text-to-CAD generation checkpoints to evaluate local refinement while preserving representation-specific intent signals. We also evaluate visually grounded editing to examine target localization capacity with spatial descriptions.

Experiments show that representation granularity has measurable effects. Under the same supervised fine-tuning setup, semantic lifting reduces IR from 2.39% to 0.22%, lowers mean CD from 1.44 to 0.46 (×10−3\times 10^{-3}), and achieves 99.96% API Recovery. Parametric lifting keeps reliability and typical geometry comparable to semantic supervision, while recovering relation structure with 93.35% ERS and 95.25% PRS. In zero-shot editing, semantic-parametric supervision further improves relation-aware edits, raising CE@ES from 91.00% to 95.82% and DE@ES from 77.09% to 88.73%. Our contributions can be summarized as follows:

  • We introduce intent-oriented text-to-CAD generation as a representation-centered formulation that goes beyond executable geometry by focusing on recoverable semantic features, reusable parameters, and lightweight parametric relations.
  • We construct IntentCAD-100K, a large-scale aligned text-code dataset that converts low-level CAD construction traces into primitive-only, semantic, and semantic-parametric executable CadQuery targets through our automated conservative lifting-and-validation pipeline.
  • We construct IntentCAD-Edit-1K as a validation benchmark for studying how representation granularity affects zero-shot intent-preserving editing, covering feature edits, consistency-preserving edits, and derived-relation edits without edit-specific training.
  • Experiments show that semantic lifting improves generation reliability and feature-level editability, while parametric lifting improves relation preservation and relation-aware editing.

References (33)