Introduction
In modern industrial manufacturing, design reuse is a critical factor for efficiency. Research indicates that approximately 80% of new parts are variations of existing designs. Consequently, the ability to retrieve specific CAD models from massive databases is essential. However, traditional deep learning approaches for 3D retrieval face two significant hurdles: a heavy reliance on expensive manual labeling and the loss of precise geometric information when converting models into point clouds or meshes.
To address these challenges, we present CADGCL (CAD Graph Contrastive Learning), an unsupervised framework that leverages the industry-standard Boundary Representation (B-rep) format. By treating CAD models as attributed graphs, CADGCL preserves topological integrity and achieves high-precision retrieval without requiring human-provided labels.
Methodology
B-rep Attributed Graphs
The foundation of CADGCL lies in its representation of CAD data. Unlike point clouds, which treat shapes as unstructured coordinates, CADGCL extracts faces and edges directly from STEP files. Faces are mapped to graph nodes containing geometric attributes (e.g., area, type), while the physical connections between faces form the graph edges.
Contrastive Learning Framework
CADGCL employs a Graph Contrastive Learning (GCL) strategy. The model is trained to minimize the distance between "positive" pairs (augmented views of the same model) and maximize the distance between "negative" pairs (different models) in a latent embedding space.
The framework introduces two primary innovations to adapt GCL for engineering data:
- EBC-based Edge Perturbation: Instead of random edge dropping, which can destroy critical engineering features, CADGCL uses Edge Betweenness Centrality (EBC). This metric identifies "bridge" edges between geometric communities, allowing the model to perturb edges strategically and focus on the core structural clusters of the part.
- BMM-based Negative Sampling: Unsupervised learning often suffers from "false negatives"—similar parts being incorrectly pushed apart. CADGCL utilizes a Beta Mixture Model (BMM) to statistically analyze similarity distributions within a batch, identifying and down-weighting potential false negatives to refine the training signal.
Experimental Results
The performance of CADGCL was evaluated on two datasets: BRepCAD30, a new dataset of 10,365 industrial parts, and Fabwave, a standard benchmark for B-rep models.
CADGCL achieved state-of-the-art results, often surpassing supervised models:
- BRepCAD30: Achieved a mean Average Precision (mAP) of 94.67% and an F1 score of 94.67%, outperforming supervised point-cloud methods like Point-MAE.
- Fabwave: Reached an mAP of 98.58% and an F1 score of 98.84%.
Ablation studies confirmed the importance of the EBC and BMM components; removing either led to a performance drop of approximately 4-6% in mAP, underscoring the value of engineering-specific architectural choices.
Conclusion
CADGCL demonstrates that unsupervised methods can outperform supervised point-cloud models by respecting the underlying topology of engineering data. By combining B-rep attributed graphs with sophisticated statistical filtering and structural-aware perturbation, CADGCL provides a robust solution for large-scale CAD retrieval. Future work will explore multimodal integration—combining graphs with 2D views—to further enhance the model's geometric understanding.
Summary updated