NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

NURBGen: High-Fidelity Text-to-CAD Generation Through LLM-Driven NURBS Modeling

Muhammad Usama, Mohammad Haziq Khan, Didier Stricker, Muhammad Zeshan Afzal

TL;DR

This paper introduces NURBGen, a novel framework for generating high-fidelity, editable 3D CAD models directly from natural language descriptions. By leveraging Large Language Models (LLMs) to output NURBS surface parameters, NURBGen overcomes limitations of existing text-to-CAD methods that produce meshes or rely on scarce design history data, offering a more robust and precise approach to CAD generation.

What Problem Does This Paper Address?

Creating detailed 3D CAD models is a fundamental but labor-intensive task in engineering and design. While text-to-CAD systems aim to simplify this by allowing users to describe objects in natural language, current approaches face significant challenges. Many systems generate mesh-based models, which lack the precision and editability of CAD. Others rely on "design-history" representations (sequences of operations like extrusions), which are editable but often limited to simple geometries and require proprietary data for training. Furthermore, existing large-scale CAD datasets like ABC, which use precise Boundary Representation (BRep) formats (often based on NURBS), are underutilized in text-to-CAD research due to the complexity of NURBS representation and the lack of high-quality text descriptions. This gap hinders the development of systems that can generate complex, editable CAD models from natural language.

Methods

NURBGen tackles this problem by framing text-to-CAD generation as a language modeling task. The core innovation lies in representing 3D CAD geometry using Non-Uniform Rational B-Splines (NURBS) parameters.

  • LLM-Driven NURBS Generation: The authors fine-tune a Large Language Model (LLM), specifically Qwen3-4B, to translate natural language prompts into a structured JSON format containing NURBS surface parameters. These parameters include control points, knot vectors, degrees, and rational weights, which can be directly converted into BRep format.
  • Hybrid Representation: To address the limitations of untrimmed NURBS in representing complex geometries like trimmed surfaces or thin regions, NURBGen employs a hybrid representation. It combines untrimmed NURBS surfaces with analytic primitives (lines, circles, B-splines) for faces where NURBS fitting is imprecise. This approach improves robustness and reduces token complexity for LLM processing.
  • Automated Annotation Pipeline: To create a suitable dataset, an automated pipeline was developed. This pipeline uses a Vision-Language Model (VLM) called InternVL3-13B, fed with multi-view renderings of CAD models and guided by geometric metadata (dimensions, hole counts), to generate high-quality, descriptive captions.

Datasets

The primary dataset introduced and used in this work is partABC.

  • partABC: This is a curated subset of the large-scale ABC dataset, comprising approximately 300,000 individual CAD components. It was created by extracting part-level models from assemblies within the ABC dataset. The dataset features:
  • NURBS Annotations: Each part is represented using the proposed hybrid NURBS and analytic primitive format, serialized into JSON.
  • High-Quality Captions: Detailed, geometry-aware captions were generated using an automated annotation pipeline, incorporating metadata like dimensions and hole counts.
  • Complexity-Based Filtering: To ensure a balanced dataset, parts were filtered and categorized into "simple," "moderate," and "complex" tiers based on a scoring function that considers token count, number of through-holes, and bounding box diagonal relative to volume.

Key Insights and Ideas

  • NURBS as a Language Modeling Target: Representing CAD geometry directly as NURBS parameters (rather than design history) allows for a more direct mapping from natural language to a precise, editable format, enabling LLMs to be effectively used for this task.
  • Hybrid Representation is Crucial: The inability of untrimmed NURBS to perfectly capture all real-world CAD geometries (especially thin or trimmed regions) necessitates a fallback to simpler analytic primitives. This hybrid approach significantly improves the robustness and fidelity of the generated models.
  • Metadata is Key for Informative Captions: Using geometric metadata (dimensions, hole counts) in the caption generation process leads to significantly more precise and descriptive text prompts, which in turn results in better CAD generation. This highlights the importance of structured information for grounding VLM outputs.
  • LLMs Can Handle Complex Geometric Structures: By fine-tuning LLMs on a well-structured, large-scale dataset like partABC, it's possible to generate complex CAD geometries that go beyond simple primitives, pushing the boundaries of what's achievable with text-to-CAD.

Key Results

NURBGen demonstrated strong performance across various evaluations:

  • Geometric Fidelity and Visual Alignment: In quantitative comparisons against baselines like GPT-40, DeepCAD, and Text2CAD, NURBGen achieved significantly higher scores in geometric fidelity (lower CD, JSD, MMD) and visual alignment.
  • Human and GPT-40 Evaluation: NURBGen achieved 60.8% top-1 preference in human evaluations and 63.7% in GPT-40 evaluations, indicating superior performance in matching generated models to input prompts.
  • Low Invalidity Ratio: NURBGen achieved the lowest invalidity ratio (0.01), meaning its generated models are highly likely to be convertible into valid B-Rep structures, a significant improvement over methods like DeepCAD (0.3).
  • Qualitative Improvements: Figures and examples show NURBGen generating more detailed and structurally coherent models with fewer geometric artifacts compared to baselines. The hybrid representation was shown to be crucial for handling complex shapes, with the NURBS-only model exhibiting artifacts near holes and thin regions.

Limitations and Future Work

  • Handling Complex Architectural Structures: For highly complex prompts, such as multi-story buildings, NURBGen struggles to capture fine-grained architectural details.
  • Self-Intersections and Topological Inconsistencies: In rare cases, the generated models may exhibit self-intersections or topological issues.
  • Text Engraving: Reconstructing prompts involving text engraving remains a challenge.
  • Context Window Limitations: The current model is limited by an 8192 token context window, which restricts the complexity of assemblies it can handle.

Future work will focus on exploring long-context training and multimodal extensions to address these limitations and enable the generation of more complex assemblies. The authors believe that NURBS-based representations offer a compelling alternative to design-history-based methods for future text-to-CAD research.

Summary updated

BibTeX
@inproceedings{usama2026nurbgen,
  author = {MUHAMMAD USAMA and Mohammad Haziq Khan and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{NURBGen: High-Fidelity Text-to-CAD Generation Through LLM-Driven NURBS Modeling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i12.37922},
}
Figure