BrepLLM: Enabling Large Language Models to Understand Boundary Representations

Liyuan Deng, Hao Guo, Yongkang Dai, Yunpeng Bai, Yifan Zhu, Yuanyuan Gao, Huaxi Huang, Yilei ShiarXiv 2025

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.

Fig. 2: Overview of the BrepLLM architecture. The framework consists of two steps. Step 1 (Left): Cross-modal Alignment Pre-training. BrepEncoder processes the B-rep model to produce a global feature. This feature is then aligned with text embeddings from a frozen CLIP Text Encoder (ViT-L/14) using a contrastive loss. Step 2 (Right): Two-stage LLM Fine-tuning. The frozen BrepEncoder’s node tokens are progressively aligned with LLM. Stage I trains an MLP to map the node tokens; Stage II fine-tunes the Q-Former and LLM using LoRA.

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 PointTransformerV3 module over sampled face attributes.
  • Edge-Conditioned Features ($F_e$): Modeled via an Edge Encoder and an NNConv layer to capture local boundary and neighborhood information.
  • Global Topology Features ($F_t$): Processed via 1D/2D CNNs and two layers of EGATConv to 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}$).

Fig. 3: The overview of BrepEncoder. (a) B-rep parameterization using area-adaptive UV sampling for faces and length-adaptive sampling for edges, producing the face attribute tensor XS and edge attribution tensor XC. (b) Hierarchical BrepEncoder. Face features Ff, edge-conditioned features Fe, and global topology features Ft are extracted from per-node tokens hi. A global graph feature hcls is obtained via global attention pooling.

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.
Fig. 1: We introduce BrepLLM, a multi-modal large language model capable of under- standing B-rep models. By natively perceiving the topology and geometry of B-reps, it enables multi-turn interactions without occlusion or viewpoint dependency.

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

BibTeX
@misc{deng2025brepllm,
  author = {Liyuan Deng and Hao Guo and Yongkang Dai and Yunpeng Bai and Yifan Zhu and Yuanyuan Gao and Huaxi Huang and Yilei Shi},
  title = {{BrepLLM: Enabling Large Language Models to Understand Boundary Representations}},
  year = {2025},
  eprint = {2512.16413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.16413},
}
Figure