cs.CVNov 17, 2026

BRepA: Graph-Based B-Rep Pretraining for Unified CAD Understanding and Generation

Authors: Dekai Zhu, Zhaiyu Chen, Stefan Gavranovic, Slobodan Ilic

Organizations: Technical University of Munich · Siemens AG · Munich Center for Machine Learning

Abstract

Boundary representation (B-Rep) of CAD models encodes geometric primitives and their relations as a graph structure, enabling efficient shape modeling within CAD software. Learning on B-Reps for downstream tasks, such as segmentation and novel shape generation, requires specialized neural network designs. Moreover, performance improvements and accelerated training can be achieved with effective pretraining strategies, which is particularly important for tasks with limited labeled B-Rep data. In this paper, we introduce BRepA, a unified self-supervised pretraining framework that explicitly reconstructs both the geometry and topology of B-Rep objects via graph-based modeling. By learning from large-scale unlabeled CAD data only once, BRepA produces representations that generalize across tasks and significantly enhance both discriminative and generative learning. On segmentation tasks, BRepA demonstrates remarkable data efficiency. For instance, with only 1% labeled samples, BRepA pretraining improves mIoU by 32.52% compared to models trained from scratch. On generative tasks, aligning diffusion model representations with pretrained BRepA features substantially accelerates convergence, achieving nearly 2 times faster training while improving generation quality under the same computational budget, despite the diffusion model being roughly 20 times larger than BRepA. Overall, our results show that geometry- and topology-aware B-Rep pretraining provides a powerful foundation for both understanding and generating CAD structures, serving as a versatile representation backbone for diverse downstream applications. We will release the code to facilitate future research.

Figures & tables

Explore similar work

CardsList
  1. Masked BRep Autoencoder via Hierarchical Graph Transformer

    Mar 16, 2026Yifei Li, Kang Wu, Wenming Wu +13D Representation LearningGraph SSL

  2. BRepCLIP: Contrastive Multimodal Pretraining on BRep Primitives for CAD Understanding

    Jun 3, 2026Muhammad Usama, Didier Stricker, Mohammad Sadil Khan +13D Shape RetrievalMultimodal Pretraining

  3. UniBRep: Learning Unified Geometry and Topology for Image-conditioned B-Rep Generation

    Oct 2, 2026Haiyang Ying, Allen Tu, Jiaye Wu +2Parametric CAD ModelingSingle-View 3D Reconstruction