BRepJEPA: Predictive Self-Supervised Learning on Heterogeneous B-Rep Graphs

Konstantinos Gkrispanis, Stavros Nousias, André BorrmannarXiv 2026

TL;DR

Teaching AI to understand 3D CAD models usually involves hiding parts of a shape and forcing the network to reconstruct the exact missing geometry—a bit like memorizing pixels instead of understanding objects. BRepJEPA flips the script by predicting abstract latent representations of missing CAD structures rather than raw coordinates. The result is a frozen 3D encoder that understands manufacturing geometry remarkably well, especially when labeled training data is scarce.

What Problem Does This Paper Address?

Every manufactured object around you—from your laptop chassis to a coffee mug—started life in Computer-Aided Design (CAD) software as a Boundary Representation (B-Rep). Unlike 3D meshes made of tiny triangles, B-Reps define solids using exact, continuous mathematical surfaces (faces), curves (edges), and points (vertices), stitched together in a topological graph.

Training neural networks directly on B-Reps is powerful, but getting engineers to manually label thousands of 3D parts (e.g., marking "this face is a drilled hole" or "that edge is a chamfer") is painfully expensive. Meanwhile, hundreds of thousands of unlabeled CAD files sit idle online.

To tap into this unlabeled data, researchers typically use masked autoencoding: hide a piece of the CAD model and train the network to reconstruct its raw geometric attributes. However, reconstructing raw inputs forces the network to obsess over low-level mathematical details rather than organizing its internal "mental space" around high-level manufacturing concepts. The authors ask: What if we predict hidden CAD structures in abstract latent space instead?

Methods

Enter BRepJEPA, the first Joint-Embedding Predictive Architecture (JEPA) tailored for B-Rep graphs.

Figure 1. BRepJEPA architecture. The context encoder fθ processes a masked B-Rep graph (x), while the EMA teacher f¯θ encodes the complete graph (y). Conditioned on a target query z, the predictor qψ predicts multi-depth teacher representations from the online embeddings sx. SIGReg regularizes the online embeddings toward an isotropic Gaussian.

First, using an established heterogeneous graph neural network (TopoGNN), each CAD solid is converted into a graph of faces, edges, and vertices connected by eight relationship types (like face adjacency or edge ordering in a loop).

BRepJEPA then introduces three clever mechanisms on top of a standard student-teacher JEPA setup:

  1. Topology-Defined Targets (New): Instead of masking random nodes, the online "student" encoder sees a graph where meaningful CAD structures are masked out: entire boundary loops, oriented edges-in-context (coedges), enclosing boundaries of connected face regions, and individual faces. A transformer predictor then guesses the missing representations using target-identifying queries.
  2. Multi-Depth Teacher Targets (Adapted): An Exponential Moving Average (EMA) "teacher" processes the complete, unmasked solid to generate the ground-truth targets. Crucially, instead of just using the teacher's final layer, BRepJEPA averages normalized states across all layers—from initial geometric encodings to deep message-passing layers.
  3. Collapse Prevention via SIGReg (Adapted): When a network predicts its own representations, it can cheat by outputting a constant vector for everything (dimensional collapse). To prevent this without clunky heuristics, BRepJEPA applies a Sketched Isotropic-Gaussian Regularizer (SIGReg), nudging the online embeddings toward a clean, spread-out bell curve along random 1D projections.
The B-Rep encoder pipeline showing geometric input encoders, four heterogeneous GATv2 message-passing layers, and how multi-depth layer outputs are averaged for the teacher.

Datasets

  • Pretraining: 100,000 unlabeled 3D solids from the ABC dataset, scrubbed of near-duplicates and any test-set overlaps.
  • Downstream Evaluation: Four diverse benchmarks—Fusion 360 Gallery (segmenting faces into 8 modeling operations like extrude or revolve), MFInstSeg (segmenting 25 industrial machining features like slots and pockets), TMCAD (10-class whole-part classification, e.g., gears vs. brackets), and BrepEDIT, where the authors build a leakage-free edit-outcome retrieval task (ranking candidate 3D edits given a source part and a natural-language instruction).

Key Insights and Ideas

  • Layer averaging saves local geometry: Relying only on the teacher's final layer causes a steep drop in performance (-5.5 points on MFInstSeg). Why? Deep graph layers emphasize broad neighborhood context, letting the encoder forget local shapes. Averaging early geometric layers with deep contextual layers forces the latent space to retain both—for zero extra cost at inference time.
  • Predicting latents beats reconstructing coordinates: When tested on the exact same encoder with the exact same masks, predicting latent representations beats reconstructing raw attributes by up to +9.19 macro-F1 points. How you supervise matters much more than how you mask.
  • Domain topology gives an extra edge: Masking true CAD structures (like loops and coedges) consistently beats masking random local graph patches of the exact same size by 0.6 to 1.5 points.

Key Results

When freezing the pretrained encoders and training lightweight linear probes, BRepJEPA outperforms all evaluated baselines—including BRepMAE, Brep2Shape, UV-Net, and Graph-JEPA—across every task:

  • Stronger Frozen Features: Against BRepMAE (the strongest published baseline), BRepJEPA jumps ahead by +9.5 macro-F1 points on MFInstSeg (reaching 89.61%), +6.3 on Fusion 360 (81.29%), and +3.6 on TMCAD (80.08%), improving across every single object and feature class. It also leads on BrepEDIT retrieval (69.1 MRR vs. 66.5).
  • Extreme Label Efficiency: When labeled data is scarce, the gap widens dramatically. Using just 1% of labeled training solids (only 80 parts on MFInstSeg!), BRepJEPA beats same-corruption reconstruction by +18.8 points on MFInstSeg and +7.0 on TMCAD.

Limitations and Future Work

The authors are refreshingly candid about the boundaries of their study:

  • Scope: Experiments are restricted to single-solid models with 4 to 200 faces (no multi-part assemblies) and evaluated on a single backbone architecture across three random seeds.
  • Geometric Sensitivities: Because the input encoders rely on absolute 3D coordinates, the network remains sensitive to how a CAD part is rotated in space or arbitrarily split into faces.
  • Diminishing Returns at Full Scale: If you have abundant labels and fine-tune the entire network end-to-end on 100% of the data, the performance gap between pretraining methods largely vanishes (saturating around ~98% on MFInstSeg). Pretraining shines brightest when labels or compute for fine-tuning are limited. Future work is not explicitly discussed in the paper.

Summary updated

BibTeX
@misc{gkrispanis2026brepjepa,
  author = {Konstantinos Gkrispanis and Stavros Nousias and André Borrmann},
  title = {{BRepJEPA: Predictive Self-Supervised Learning on Heterogeneous B-Rep Graphs}},
  year = {2026},
  eprint = {2611.35067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35067},
}
Figure