TL;DR
BrepLLM is the first multimodal large language model framework designed to directly parse, understand, and reason over raw 3D Boundary Representation (B-rep) CAD data. By natively encoding the exact parametric geometry and topology of CAD models, BrepLLM achieves state-of-the-art performance on 3D object classification and captioning tasks without relying on intermediate command sequences or simplified point clouds.
What Problem Does This Paper Address?
In industrial manufacturing, aerospace, and architecture, Computer-Aided Design (CAD) models are precisely defined using Boundary Representations (B-reps). Unlike discrete point clouds or triangle meshes, B-reps encode exact parametric surfaces (faces), curves (edges), and their explicit topological connectivity (adjacency).
While Large Language Models (LLMs) have excelled at understanding text, images, and even 3D point clouds, they struggle with native B-rep data due to its highly structured, continuous, and non-sequential nature. Existing CAD-LLM frameworks bypass this by converting CAD models into intermediate representations like command sequences or code. However, these methods operate procedurally rather than on the underlying geometry, and they rely heavily on scarce construction history data.
BrepLLM bridges this gap, allowing LLMs to directly "see" and reason about native B-rep entities and topology.
Methods
BrepLLM introduces a two-stage training pipeline consisting of Cross-modal Alignment Pre-training and Two-stage LLM Fine-tuning.
1. B-rep Parameterization & Adaptive UV Sampling
To feed B-rep data into a neural network, the authors propose a multi-scale adaptive UV sampling strategy. It constructs a face-edge topological graph where:
- Faces undergo area-driven grid sampling to capture geometric details.
- Edges use length-adaptive point sampling to preserve boundary details.
2. Hierarchical BrepEncoder
The sampled data is processed by a novel hierarchical encoder that disentangles B-rep features into three fine-to-coarse representations:
- Face Features ($F_f$): Extracted using a
PointTransformerV3module over sampled face attributes. - Edge-Conditioned Features ($F_e$): Modeled via an
Edge Encoderand anNNConvlayer to capture local boundary and neighborhood information. - Global Topology Features ($F_t$): Processed via 1D/2D CNNs and two layers of
EGATConvto propagate multi-hop attention across the entire topology.
These features are concatenated into per-node tokens ($h_i$) and a global graph feature ($h_{cls}$).
3. Alignment and Fine-Tuning
- Pre-training: The global feature ($h_{cls}$) is aligned with text embeddings from a frozen CLIP text encoder using a symmetric InfoNCE contrastive loss.
- LLM Fine-tuning: The pre-trained encoder is integrated with a Qwen3-8B backbone. An MLP maps the node tokens to the Q-Former input space (Stage I), followed by parameter-efficient fine-tuning of the Q-Former and LLM using LoRA (Stage II).
Datasets
The authors introduce Brep2Text, the first large-scale instruction-tuning dataset specifically designed for B-rep data.
- Size: 269,444 high-quality question-answer pairs derived from 134,722 unique B-rep models (built upon the Text2CAD corpus).
- Structure: Features a dual-tier design:
- Abstract Level: Focuses on high-level semantic descriptions (e.g., "What does this CAD model represent?").
- Beginner Level: Focuses on procedural construction steps and dimensions (e.g., "Outline the basic CAD steps to create this Brep structure.").
Key Insights and Ideas
- Native B-rep over Point Clouds: Direct B-rep modeling preserves exact parametric boundaries and topology, which are often lost or occluded in point cloud conversions or 2D multi-view renderings.
- Disentangled Hierarchical Encoding: Separating face geometry, edge boundaries, and global topology allows the model to handle local details and global structures simultaneously, mirroring how human engineers interpret CAD models.
- Progressive Alignment Prioritizes Stability: Mapping geometric tokens first to a 2D visual semantic space (using VLM priors) before full language alignment provides a more stable training bridge for highly structured geometric data.
Key Results
BrepLLM achieves state-of-the-art performance across both automatic and human evaluations, comprehensively outperforming larger 13B-parameter baselines.
3D Object Captioning
Evaluated using Qwen3-30B as an automated judge alongside traditional metrics (Sentence-BERT, SimCSE) and human blind assessments:
- LLM Judge Score: Achieved 61.36, outperforming the strongest baseline (MiniGPT-3D) by 4.78 points.
- Human Evaluation: Achieved a precision of 83.62 and the lowest hallucination rate (0.83), proving its capability to generate structurally faithful descriptions.
Generative 3D Object Classification
- Achieved an average accuracy of 60.0% across different prompt styles, outperforming point cloud and image-based baselines by up to 3.75 percentage points. It also demonstrated high robustness to variations in prompt formatting.
Limitations and Future Work
While BrepLLM marks a significant milestone, the authors note a few areas for development:
- Data Scaling: Future work will focus on scaling up high-quality multimodal B-rep data to further improve model generalization.
- Downstream Tasks: The authors plan to extend the framework beyond understanding into generative tasks, including native B-rep generation, editing, and assembly understanding for industrial CAD workflows.
Summary updated