Masked BRep Autoencoder via Hierarchical Graph Transformer
Organizations: University of Science and Technology of China · Hefei University of Technology
Abstract
We introduce a novel self-supervised learning framework that automatically learns representations from input computer-aided design (CAD) models for downstream tasks, including part classification, modeling segmentation, and machining feature recognition. To train our network, we construct a large-scale, unlabeled dataset of boundary representation (BRep) models. The success of our algorithm relies on two keycomponents. The first is a masked graph autoencoder that reconstructs randomly masked geometries and attributes of BReps for representation learning to enhance the generalization. The second is a hierarchical graph Transformer architecture that elegantly fuses global and local learning by a cross-scale mutual attention block to model long-range geometric dependencies and a graph neural network block to aggregate local topological information. After training the autoencoder, we replace its decoder with a task-specific network trained on a small amount of labeled data for downstream tasks. We conduct experiments on various tasks and achieve high performance, even with a small amount of labeled data, demonstrating the practicality and generalizability of our model. Compared to other methods, our model performs significantly better on downstream tasks with the same amount of training data, particularly when the training data is very limited.
Figures & tables
| Method | 0.1% | 0.5% | 1% | 1.5% | 2% | 3% | 100% | ||
| MFInstSeg | Acc | AAGNet | 46.49 | 76.62 | 85.19 | 90.30 | 92.31 | 92.37 | 99.13 |
| BRepFormer | 33.43 | 86.14 | 91.23 | 95.77 | 96.51 | 97.64 | 99.62 | ||
| BRepMAE | 88.81 | 94.75 | 96.99 | 97.44 | 97.66 | 98.20 | 99.57 | ||
| Ours | 88.75 | 96.19 | 97.31 | 97.67 | 97.92 | 98.26 | 99.53 | ||
| mIoU | AAGNet | 34.01 | 67.51 | 77.50 | 84.64 | 86.76 | 87.32 | 98.36 | |
| BRepFormer | 7.47 | 62.66 | 73.89 | 86.17 | 88.25 | 91.85 | 98.75 |
| Model | 10-shot | 20-shot | Full | |||
| Acc | mIoU | Acc | mIoU | Acc | mIoU | |
| BRep-BERT | 59.26 | 19.02 | 62.30 | 24.20 | 95.14 | 82.88 |
| BRT | 54.98 | 13.54 | 56.69 | 14.99 | 94.48 | 79.23 |
| BRepFormer | 50.24 | 12.31 | 51.75 | 13.38 | 94.02 | 78.73 |
| Ours | 72.33 | 34.63 | 74.31 | 38.22 | 97.02 | 86.75 |
| Model | 10-shot Acc | 20-shot Acc | Full Acc |
| BRep-BERT | 68.71 | 75.92 | 97.76 |
| BRT | 54.84 | 62.69 | 97.35 |
| BRepFormer | 76.53 | 84.25 | 97.59 |
| Ours* | 81.83 | 88.47 | 97.78 |
| Ours | 82.51 | 89.58 | 97.91 |
| Configuration | 0.1% | 0.5% | 1% | 1.5% | 2% | 3% | 100% |
| Single Res. ( only) | 85.83 | 93.14 | 95.19 | 95.88 | 97.16 | 97.42 | 99.27 |
| Triple Res. (w/ ) | 86.41 | 94.46 | 96.40 | 97.04 | 97.38 | 97.78 | 99.42 |
| w/o Masking (0% Mask) | 66.41 | 84.19 | 92.99 | 94.20 | 95.33 | 95.96 | 99.43 |
| MPNN first | 76.39 | 92.10 | 94.95 | 95.62 | 96.12 | 96.41 | 99.06 |
| Mask gAAG | 78.63 | 92.98 | 94.36 | 95.11 | 95.75 | 96.48 | 99.16 |
| Frozen encoder | 82.01 | 92.71 | 94.70 | 95.74 | 96.15 | 96.56 | 98.64 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Operator | Input Shape | Output Shape |
| Conv2D, | ||
| GroupNorm, | ||
| ReLU | ||
| Conv2D, | ||
| GroupNorm, | ||
| ReLU |
| Operator | Input Shape | Output Shape |
| Conv1D, | ||
| GroupNorm, | ||
| ReLU | ||
| Conv1D, | ||
| GroupNorm, | ||
| ReLU |
| Operator | Input Shape | Output Shape |
| Linear | 16 | 128 |
| LayerNorm | 128 | 128 |
| GELU | 128 | 128 |
| Linear | 128 | 128 |
| Operator | Input Shape | Output Shape |
| Linear | 9 | 128 |
| LayerNorm | 128 | 128 |
| GELU | 128 | 128 |
| Linear | 128 | 128 |
| Operator | Input Shape | Output Shape |
| Linear | 384 | 256 |
| LayerNorm | 256 | 256 |
| GELU | 256 | 256 |
| Linear | 256 | 256 |
| Hyperparameter | Value |
| Embedding Dimension | 256 |
| Number of Attention Heads | 8 |
| FFN Hidden Dimension | 1024 |
| FFN Activation | GELU |
| Dropout Rate | 0.3 |
| Operator | Input Shape | Output Shape |
| Linear | 512 | |
| ReLU | 512 | 512 |
| Linear | 512 | 512 |
| ReLU | 512 | 512 |
| Linear | 512 | 64 |
| Linear | 512 |
| Operator | Input Shape | Output Shape |
| Linear | 256 | 256 |
| LayerNorm | 256 | 256 |
| GELU | 256 | 256 |
| Linear | 256 | 16 |
| Operator | Input Shape | Output Shape |
| Linear | 512 | |
| ReLU | 512 | 512 |
| Linear | 512 | 512 |
| ReLU | 512 | 512 |
| Linear | 512 | 64 |
| Linear | 512 |
| Operator | Input Shape | Output Shape |
| Linear | 256 | 256 |
| LayerNorm | 256 | 256 |
| GELU | 256 | 256 |
| Linear | 256 | 9 |
| Operator | Input Shape | Output Shape |
| Linear | 256 | 1024 |
| GELU | 1024 | 1024 |
| Dropout | 1024 | 1024 |
| Linear | 1024 | 256 |
| GELU | 256 | 256 |
| Dropout | 256 | 256 |
| Stage | Parameters (M) | FLOPs (G) | Latency (ms) | Throughput (models/s) |
| Pre-training | 8.15 | 20.98 | 25.99 | 38.47 |
| Downstream | 6.09 | 5.26 | 10.42 | 96.01 |
| Configuration | 0.1% | 0.5% | 1% | 1.5% | 2% | 3% | 100% |
| w/o Mask attr | 84.48 | 94.15 | 95.42 | 96.34 | 96.60 | 97.20 | 99.41 |
| Feature all | 76.77 | 90.86 | 93.79 | 94.67 | 95.72 | 96.56 | 99.33 |
| Geometry masked | 78.03 | 91.14 | 93.91 | 95.23 | 95.81 | 96.71 | 99.37 |
| Mask ratio(50%) | 86.99 | 96.02 | 97.18 | 97.43 | 97.60 | 98.02 | 99.49 |
| Mask ratio(60%) | 87.41 | 96.12 | 97.19 | 97.46 | 97.73 | 98.05 | 99.51 |
| Mask ratio(80%) | 87.01 | 95.66 | 96.86 | 97.37 | 97.62 | 97.96 | 99.46 |
3D Representation Learning
3D representation learning builds geometric features for recognizing, reconstructing, generating, and reasoning about objects and scenes.
See all 191 papers