TL;DR
NURBGen is the first framework to generate high-fidelity, editable 3D CAD models directly from natural language prompts using industry-standard Non-Uniform Rational B-Splines (NURBS). By fine-tuning a large language model (LLM) to output a novel hybrid symbolic representation (combining NURBS with analytic primitives), NURBGen bypasses the need for scarce design-history data while maintaining flawless geometric validity. The authors also introduce partABC, a new dataset of 300k annotated CAD parts to fuel future research in text-to-CAD generation.
What Problem Does This Paper Address?
In the world of 3D engineering and manufacturing, Computer-Aided Design (CAD) models are the gold standard. Unlike standard 3D meshes (which are just collections of flat triangles), CAD models use Boundary Representation (BRep) to define shapes using precise mathematical surface patches. This makes them highly editable and production-ready.
However, automating CAD generation from text prompts is notoriously difficult. Prior deep learning approaches typically fell into two traps:
- Mesh Generation: Producing non-editable polygonal meshes that are useless for actual engineering workflows.
- Design-History Models: Predicting a sequence of sketch-and-extrude operations. While editable, these models rely on proprietary design history data and are trained on small datasets (like DeepCAD), limiting them to very simple shapes (e.g., basic blocks and cylinders).
The massive ABC dataset contains over a million production-grade CAD models, but it lacks design history and text descriptions. Furthermore, deep learning models struggle with NURBS due to high parameter variability, non-differentiability, and the mathematical complexity of "trimmed" surfaces (where holes are cut out of a surface). NURBGen bridges this gap by turning BRep generation into a text-to-text language modeling problem.
Methods
NURBGen conceptualizes text-to-CAD generation as a sequence-to-sequence translation task. The core pipeline consists of three main components:
- LLM Fine-Tuning: The authors fine-tune a Qwen3-4B model to map free-form text prompts directly into a structured JSON format that explicitly defines the mathematical parameters of a CAD model (control points, knot vectors, degrees, and weights). This JSON can be instantly parsed into a standard BRep format using Python tools like
pythonOCC. - Hybrid Symbolic Representation: To handle the complexity of trimmed surfaces and thin regions without blowing up the LLM's token count, the authors introduce a hybrid approach. If a face can be cleanly represented as an untrimmed NURBS surface, it uses NURBS parameters (~70% of faces). If the NURBS approximation fails or introduces artifacts (measured via Chamfer Distance), the system falls back to exact analytic primitives like lines, circles, arcs, or B-splines (~30% of faces).
- Automated Annotation Pipeline: To create text descriptions for the unlabeled CAD models, the authors use a Vision-Language Model (VLM), InternVL3-13B. Crucially, they inject exact geometric metadata (dimensions, volume, surface area, and topological hole count) into the VLM prompt to ensure the generated captions are highly accurate and free of hallucinations.
Datasets
The authors introduce partABC, a curated multi-modal dataset derived from the ABC dataset.
- Composition: ~300k high-quality, part-level CAD components.
- Filtering: The authors programmatically broke down massive assembly-level CAD models into individual parts and applied a complexity-aware scoring function. This prevented the dataset from being flooded with trivial shapes like flat plates or simple pins, resulting in a balanced mix of simple (10%), moderate (50%), and complex (40%) geometries.
- Annotations: Each part is paired with its hybrid JSON CAD representation and a high-quality, metadata-grounded text caption.
Key Insights and Ideas
- CAD as a Language: By serializing complex 3D mathematical surfaces into structured JSON text, the authors successfully leverage the powerful spatial priors and reasoning capabilities of modern LLMs for exact geometric synthesis.
- The Power of Primitives: Pure NURBS approaches (like NeuroNURBS) struggle with holes and boundaries. Mixing NURBS with classic analytic primitives (like circles and lines) acts as a regularizer, drastically reducing the token length required to describe a shape while eliminating geometric artifacts.
- Metadata-Grounded Vision Training: Standard VLMs are terrible at guessing the exact dimensions or internal hole counts of a 3D object from images alone. Forcing the VLM to use exact calculated metadata during the captioning phase yields highly descriptive, reliable training data.
Key Results
NURBGen was evaluated against strong baselines, including Text2CAD, DeepCAD, and GPT-4o (via few-shot prompting).
- Geometric Fidelity: NURBGen achieved a Chamfer Distance (CD) of 4.43, significantly outperforming Text2CAD (9.66) and DeepCAD (10.28).
- Invalidity Ratio (IR): A major issue with generative CAD is producing "broken" geometry that professional software can't open. DeepCAD suffered from a 0.32 invalidity ratio, whereas NURBGen achieved a near-flawless 0.018, proving its structural robustness.
- Human Evaluation: In a blind study with professional CAD designers, NURBGen's generations were preferred 64.1% of the time.
Limitations and Future Work
While NURBGen marks a massive leap forward for text-to-CAD, the authors note a few limitations:
- Complex Prompts: The model struggles with highly complex, multi-object prompts (e.g., attempting to generate a "Two-story house with a gabled roof").
- Text Engraving: It cannot reliably generate fine-grained text engraved onto surfaces.
- Context Window Constraints: The current model is limited by an 8192 token context window, which restricts its ability to generate massive, multi-part mechanical assemblies.
Future work will focus on long-context training and multimodal extensions to handle full mechanical assemblies.
Summary updated