BRepJEPA: Predictive Self-Supervised Learning on Heterogeneous B-Rep Graphs
Organizations: Technical University of Munich (TUM)
Abstract
We introduce BRepJEPA, the first joint-embedding predictive pretraining method for B-Reps. Unlike existing reconstruction-based methods for CAD, BRepJEPA predicts the latent representations of masked boundary loops, oriented edges, region boundaries, and faces from the rest of the solid. Our targets average normalized states across all layers of an exponential-moving-average teacher, while a sketched isotropic-Gaussian regularizer prevents dimensional collapse. We pretrain on 100k ABC solids and evaluate on four tasks against BRepMAE, Brep2Shape, UV-Net, and Graph-JEPA using their official implementations. BRepJEPA is the strongest of the evaluated frozen encoders on every task, with the largest margins when labels are scarce. Ablations show that multi-depth targets contribute most of the gain and that topology-defined targets provide additional improvements. These results establish latent prediction as an effective means of pretraining B-Rep encoders.
Figures & tables
| Segmentation and classification | Edit retrieval | ||||
| Method | Fusion 360 | MFInstSeg | TMCAD | MRR | R@1 |
| Random initialization (reference) | |||||
| UV-Net [ 22 ] | |||||
| Graph-JEPA [ 40 ] | |||||
| Brep2Shape [ 41 ] | |||||
| BRepMAE [ 53 ] | |||||
| Fusion 360 | MFInstSeg | |||||||
| Method | ||||||||
| Random initialization | ||||||||
| UV-Net [ 22 ] | ||||||||
| Graph-JEPA [ 40 ] | ||||||||
| Brep2Shape [ 41 ] | ||||||||
| BRepMAE [ 53 ] | ||||||||
| Fusion 360 | BRepMAE | BRepJEPA | MFInstSeg | BRepMAE | BRepJEPA | MFInstSeg | BRepMAE | BRepJEPA |
|---|---|---|---|---|---|---|---|---|
| ExtrudeSide | Chamfer | Tri. pocket | ||||||
| ExtrudeEnd | Through hole | Rect. pocket | ||||||
| CutSide | Tri. passage | 6-sided pocket | ||||||
| CutEnd | Rect. passage | Circ. end pocket | ||||||
| Fillet | 6-sided passage | Rect. blind slot | ||||||
| Chamfer | Tri. through slot | Vert. circ. end blind slot |
| Variant | Fusion 360 | MFInstSeg | TMCAD |
|---|---|---|---|
| Final teacher layer only | |||
| Half as many targets | |||
| VICReg instead of SIGReg | |||
| No regularizer | |||
| BRepJEPA |
| Family | Sampling and teacher target | Hidden features |
|---|---|---|
| Loop | Draw a recorded loop uniformly from loops of at least three edge entries. Skip loops sharing an edge with an earlier loop draw. Average the teacher latents of the loop edges. | Loop edges, their end vertices and the incident face. |
| Coedge | Draw an oriented face–edge incidence uniformly, using each edge at most once. Apply a fixed orientation-conditioned map to the teacher latents of its edge and face. | The edge, its end vertices, and the sampled incident face. |
| Region boundary | Grow a region from a uniform anchor face by a uniform radius of one to three face-adjacency hops. Accept a proper region of 3–25 faces with at least three recorded boundary edges. Average the teacher latents of those edges. | Recorded boundary edges and their end vertices. |
| Face | Draw uniformly without replacement among faces with at least two adjacent faces. Use the face’s teacher latent. | The sampled face. |
| Training | Parameters (M) | |||||||
|---|---|---|---|---|---|---|---|---|
| Method | Code | Batch | Passes | Updates | Encoder | Total | GPU | Hours |
| BRepJEPA | ours | 16 | 58 | 362.5k | 4.99 | 9.42 | RTX 4090 | 18.1 |
| BRepMAE | official | 256 | 150 | 53k | 3.78 | 8.03 | RTX PRO 6000 | 19.1 |
| Brep2Shape | official | 100 | 61k | 4.13 | 4.19 | RTX 4090 | 31.6 | |
| UV-Net | official | 256 | 350 | 129k | 1.13 | 1.17 | Tesla P100 | 33.6 |
| Fusion 360 | MFInstSeg | TMCAD | |||||
| Seed | Overflow at update | val | test | val | test | val | test |
| 42 | 19,450 | 53.54 | 52.92 | 61.72 | 61.29 | 74.41 | 73.28 |
| 1 | 12,900 | 55.30 | 54.97 | 63.98 | 64.17 | 69.92 | 70.43 |
| 2 | 10,650 | 65.70 | 64.46 | 75.27 | 74.60 | 77.00 | 76.96 |
| Mean std | |||||||
| Task | Metric | same-corr. recon. | Graph-JEPA objective |
|---|---|---|---|
| Fusion 360 | macro-F1 | ||
| F1 † (w/o RevolveEnd) | |||
| MFInstSeg | macro-F1 | ||
| TMCAD | macro-F1 | ||
| BrepEDIT | MRR, geometric | ||
| R@1, geometric |
| Fusion 360 | MFInstSeg | TMCAD | BrepEDIT MRR | BrepEDIT R@1 | |||||||||||
| Method | 42 | 1 | 2 | 42 | 1 | 2 | 42 | 1 | 2 | 42 | 1 | 2 | 42 | 1 | 2 |
| Random initialization (reference) | 77.11 | 76.35 | 74.09 | 80.59 | 79.81 | 78.87 | 76.28 | 77.60 | 78.11 | 65.8 | 65.3 | 65.0 | 45.9 | 45.2 | 44.9 |
| UV-Net | 35.05 | – | – | 21.46 | – | – | 69.48 | – | – | 61.6 | – | – | 39.9 | – | – |
| Graph-JEPA | 52.92 | 54.97 | 64.46 | 61.29 | 64.17 | 74.60 | 73.28 | 70.43 | 76.96 | 62.5 | 60.9 | 61.9 | 41.3 | 39.1 | 40.4 |
| Brep2Shape | 48.72 | – | – | 44.80 | – | – | 70.13 | – | – | 62.5 | – | – | 41.1 | – | – |
| BRepMAE | 75.11 | 75.28 | 74.43 | 79.79 | 80.02 | 80.46 | 77.31 | 75.93 | 76.30 | 66.6 | 66.4 | 66.4 | 46.7 | 46.6 | 46.5 |
| Fusion 360 | MFInstSeg | TMCAD | BrepEDIT MRR | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Acc. | mIoU | F1 † | Eff. rank | Acc. | mIoU | Acc. | mIoU | Detailed | Functional | Concise |
| Random initialization (reference) | 86.28 | 64.47 | 82.30 | 22.5 | 87.20 | 69.43 | 77.84 | 64.30 | 68.3 | 64.7 | 63.8 |
| Same-corruption reconstruction | 85.73 | 65.70 | 81.93 | 37.1 | 88.00 | 69.75 | 79.81 | 66.71 | 71.1 | 66.6 | 65.7 |
| Graph-JEPA objective | 87.71 | 67.80 | 84.03 | 5.4 | 87.88 | 70.99 | 75.79 | 61.21 | 66.8 | 64.1 | 63.1 |
| BRepJEPA | 87.46 | 70.51 | 85.01 | 67.9 | 94.34 | 82.78 | 80.65 | 67.91 | 72.5 | 67.9 | 66.9 |
| BRepJEPA | 1% | 5% | 10% | 25% | 100% | |
|---|---|---|---|---|---|---|
| Fusion 360 | Graph-JEPA objective | |||||
| Same-corruption recon. | ||||||
| Random initialization | ||||||
| MFInstSeg | Graph-JEPA objective | |||||
| Same-corruption recon. | ||||||
| Random initialization |
| Benchmark | Method | Seeds | |||||
|---|---|---|---|---|---|---|---|
| Fusion 360 | BRepJEPA | 3 | |||||
| BRepMAE | 3 | ||||||
| Graph-JEPA | 3 | ||||||
| Brep2Shape | 1 | 48.62 | |||||
| UV-Net | 1 | 35.05 | |||||
| MFInstSeg | BRepJEPA | 3 |
| Method | lr | Seed 42 | Seed 1 | Seed 2 | Mean std | F1 † | Best epoch | BRepJEPA X | |
|---|---|---|---|---|---|---|---|---|---|
| MFInstSeg | Random init. (ref.) | 98.27 | 98.11 | 98.29 | – | 33 / 26 / 45 | – | ||
| Same-corr. recon. | 98.35 | 98.28 | 97.95 | – | 40 / 35 / 20 | ||||
| Graph-JEPA objective | 98.27 | 98.26 | 98.24 | – | 38 / 46 / 40 | ||||
| BRepJEPA | 98.01 | 98.53 | 98.53 | – | 12 / 46 / 44 | – | |||
| Fusion 360 | Random init. (ref.) | 90.27 | 91.11 | 91.42 | 30 / 32 / 31 | – | |||
| Same-corr. recon. | 91.16 | 91.48 | 90.70 | 34 / 31 / 23 |
| Benchmark | BRepJEPA X | |||
|---|---|---|---|---|
| MFInstSeg | Same-corr. recon. | |||
| Graph-JEPA objective | ||||
| Fusion 360 | Same-corr. recon. | |||
| Graph-JEPA objective | ||||
| Fusion 360, F1 † | Same-corr. recon. | |||
| Graph-JEPA objective |
| Fusion 360 | MFInstSeg | |||||||
|---|---|---|---|---|---|---|---|---|
| Initialization | ||||||||
| BRepMAE † (3 seeds) | ||||||||
| BRepMAE, random init. (1 seed) | – | – | – | |||||
| BRepJEPA (3 seeds) | ||||||||
| Validation | Test | |||||||
| Variant | Fusion 360 | MFInstSeg | TMCAD | Mean | Fusion 360 | MFInstSeg | TMCAD | |
| BRepJEPA | 80.82 | 89.60 | 79.87 | – | ||||
| Teacher targets | ||||||||
| Final teacher layer only | 76.97 | 84.15 | 78.66 | |||||
| Target design | ||||||||
| Random local targets of matched size | 78.59 | 88.75 | 80.00 | |||||
| Teacher target | Mean val. | Fusion 360 | MFInstSeg | TMCAD |
|---|---|---|---|---|
| Final layer | 79.87 | 77.64 | 84.03 | 78.81 |
| Layers | 81.66 | 80.11 | 87.68 | 79.75 |
| Layers | 82.67 | 80.62 | 89.06 | 79.62 |
| Layers | 83.36 | 80.44 | 89.63 | 80.08 |
| Concatenated depths | 83.41 | 81.20 | 89.58 | 80.21 |
| Mean of layers | 83.26 | 81.50 | 89.48 | 80.63 |
| BRepJEPA random local | 1% | 5% | 10% | 25% | 100% |
|---|---|---|---|---|---|
| Fusion 360 | |||||
| MFInstSeg | |||||
| TMCAD | |||||
| Same part | Pooled | ||||
| Model | Reads | MRR | R@1 | MRR | R@1 |
| Full head | S, I, C | ||||
| another part’s instruction at test | S, I other , C | – | – | ||
| Full head, seed-42 encoder | S, I, C | ||||
| Trained without the instruction | S, C | ||||
| Trained without the source | I, C | ||||
| MRR by part size | ||||||||||
| Method | MRR | – | nMRR | MRR | R@1 | |||||
| Raw face features, no encoder | ||||||||||
| Random initialization | ||||||||||
| Same-corruption reconstruction | ||||||||||
| Graph-JEPA objective | ||||||||||
| BRepJEPA | ||||||||||
| Macro-F1 (%) | BRepJEPA method | |||
|---|---|---|---|---|
| Method | Deployed | Pretraining | Deployed | Pretraining |
| Random initialization (reference) | – | – | ||
| Same-corruption reconstruction | ||||
| Graph-JEPA objective | ||||
| BRepJEPA | – | – | ||
| Validation | Test | ||||||
|---|---|---|---|---|---|---|---|
| Protocol | Fusion 360 | MFInstSeg | TMCAD | Mean | Fusion 360 | MFInstSeg | TMCAD |
| original recipe, full-solid targets † | 78.16 | 80.22 | 74.34 | ||||
| original recipe, patch-local targets | 75.07 | 74.44 | 72.24 | ||||
| official configuration (2,370 updates) | 78.55 | 80.59 | 76.14 | ||||
| BRepJEPA’s optimization (362.5k updates) | 65.19 | 67.42 | 73.05 | ||||
| plateau schedule per ABC pass | 66.73 | 66.26 | 67.57 | ||||
Self-Supervised Pre-Training
Self-supervised pre-training learns transferable representations from unlabeled data to reduce the labels needed for downstream tasks.
See all 274 papers