Graph based pretraining improves CAD model understanding and creation
BRepA: Graph-Based B-Rep Pretraining for Unified CAD Understanding and Generation
Computer Vision and Pattern RecognitionGraphics
Summary
CAD models describe shapes using their surfaces and how these surfaces connect, which can be seen as a graph. The authors created a method called BRepA that teaches a computer model to learn about both the shape details and connections in these graphs by looking at many unlabeled CAD designs. This pretraining helps the computer perform better when asked to identify parts of objects and to create new shapes, even with very little labeled data. It also speeds up training of generative models that make new designs. BRepA provides a useful way for computers to understand and generate CAD shapes more effectively.
What this means in practice
- •For cad software developers: Improve CAD tools’ ability to segment and generate parts by integrating BRepA pretrained representations.
- •For product design teams: Accelerate generative design workflows using pretrained BRepA features aligned with diffusion models to create novel CAD parts faster.
Authors
Dekai Zhu, Zhaiyu Chen, Stefan Gavranovic, Slobodan Ilic
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.