BRepCLIP

Contrastive Multimodal Pretraining on BRep Primitives for CAD Understanding

DFKI Kaiserslautern · RPTU Kaiserslautern-Landau · MindGarage

* Equal contributing supervisors

Overview

Native CAD structure as the substrate for multimodal understanding.

Point clouds discard analytic surface types, curve primitives, and topology. BRepCLIP keeps faces and edges as first-class CAD entities, tokenizes them with separate face and edge vocabularies, and trains a transformer encoder for open-vocabulary CAD retrieval and evaluation.

400KABC training CAD models
3retrieval benchmarks
39FabWave zero-shot classes
15Kgeneration-evaluation samples

Core Contributions

What BRepCLIP Brings

Native BRep contrastive pretraining for CAD retrieval, classification, and generation evaluation.

BRep-native pretraining

The first contrastive framework operating directly on BRep primitives, aligning CAD geometry with language and image modalities.

State-of-the-art results

Improves text-to-CAD retrieval and zero-shot CAD classification over point-based and multimodal baselines.

BRepCLIP-Score

A CAD-aware similarity metric for generation evaluation, validated against human and GPT judgments.

Architecture

BRepCLIP Architecture

Stage 1

Hybrid dual-dVAE tokenization

Face and edge point sets are encoded independently with separate discrete VAEs, producing compact primitive tokens for surfaces and curves.

Hybrid dual-dVAE tokenization for face and edge primitives
Stage 2

BRepCLIP contrastive alignment

Frozen tokenizers feed a transformer BRep encoder, then the global CAD embedding is aligned with CLIP text and image embeddings through contrastive training.

BRepCLIP architecture aligning BRep, text, and image embeddings

Applications

One embedding space, three CAD workflows.

BRepCLIP is trained as a representation model, but its embedding can be used directly in practical CAD workflows: retrieval, classification, and generation evaluation.

01

Text-to-CAD Retrieval

Engineers describe a target part in natural language. BRepCLIP embeds the text query and ranks native CAD models by cosine similarity in the shared embedding space.

  • Preserves hole count, fillets, chamfers, and surface type cues.
  • Works on unseen galleries such as CADParser and Automate.
  • Improves Top-1 retrieval over OpenShape on all evaluated datasets.
Experiment

Train on 400K ABC samples from CADCap-1M, then evaluate text queries against full CAD galleries: 91K ABC, 40K CADParser, and 65K Automate models.

8.59 ABC Top-1 5.00 CADParser Top-1 9.42 Automate Top-1
02

Zero-Shot CAD Classification

Without fine-tuning, BRepCLIP matches each CAD embedding against class-level text descriptors, making category prediction possible for new engineering repositories.

  • Transfers from ABC training to FabWave classes.
  • Uses text labels as the classifier, not a task-specific head.
  • Reaches 38.62 Top-1 and 86.71 Top-10 on FabWave.
Experiment

Evaluate on FabWave after filtering invalid assets, using 4,378 CAD models across 39 engineering categories. No FabWave samples are used during training.

38.62 Top-1 70.28 Top-5 86.71 Top-10
03

CAD Generation Evaluation

BRepCLIP-Score compares a generated CAD model with its input prompt using the learned geometry-language space, so small but important engineering mistakes are penalized.

  • Detects wrong hole counts, wrong primitive type, and mismatched topology.
  • Correlates better with human and GPT judgments than CLIP score.
  • Provides a CAD-aware alternative to image-only and point-distance metrics.
Benchmark

15K ABC generations

Ground Truth 0.61
CADFusion 0.35
Text2CQ (Q3B) 0.31

Higher BRepCLIP-Score indicates stronger prompt-to-BRep alignment.

Experiment

Quantitative results

BRepCLIP is evaluated across text-to-CAD retrieval, zero-shot CAD classification, and CAD generation evaluation. Retrieval CD is scaled by 103.

Text-to-CAD Retrieval

Given a text query, models retrieve the matching CAD object from a full gallery using cosine similarity in the shared embedding space.

ABC
Method Top-1 Top-5 Top-10 Top-20 CD ↓
Point-BERT2.609.3615.8022.7261.56
PointNet3.3112.0719.3829.6062.27
PointMLP0.903.506.009.5068.43
BRepEncoder4.3016.3024.7033.9061.11
MixCon3D1.202.104.208.1274.18
ULIP2.304.007.4012.2063.48
OpenShape6.1218.1724.8834.3671.63
BRepCLIP8.5924.5235.0847.8958.16

Experiment

Qualitative results

Visual examples from the arXiv paper showing retrieval behavior, zero-shot classification, and BRepCLIP-Score sensitivity.

Figure 11 qualitative text-to-CAD retrieval examples from the BRepCLIP arXiv paper
Figure 11: qualitative text-to-CAD retrieval examples from the arXiv paper.

Evaluation

BRepCLIP-Score

BRepCLIP-Score evaluates whether generated CAD geometry matches a text prompt using the learned BRep embedding, making the metric sensitive to topology, hole counts, surface types, and edge structure.

CD

Geometry distance

Chamfer Distance is computed between point samples from the generated CAD model and the target CAD geometry. Lower values indicate closer global shape reconstruction.

CLIP Score

Image-text similarity

We render multiview images of each generated CAD model and compare them with the prompt using CLIP image and text embeddings. This captures visual alignment, but not native BRep structure.

BRepCLIP Score

Prompt-to-BRep similarity

The prompt embedding is compared directly with the generated CAD model's BRep embedding using cosine similarity, so errors in holes, surfaces, edges, and topology affect the score.

Human / GPT Eval

Semantic faithfulness

Five CAD designers and GPT-based evaluators score multiview renderings from 0 to 10 based on how faithfully each generated CAD model matches the input caption.

BRepCLIP-Score examples comparing correct and incorrect CAD generations
Qualitative score examples. Each generated CAD model is paired with a text prompt. BRepCLIP embeds the prompt and the generated BRep model, then reports cosine similarity. Prompt-faithful generations receive higher scores, while models with wrong hole counts, wrong primitive type, or mismatched topology receive lower scores.
Score analysis comparing CLIP, LongCLIP, and BRepCLIP sensitivity
Prompt-corruption sensitivity test. We sample 10K CAD models and score each model with three captions: the original caption, a mildly corrupted caption, and a fully mismatched caption. BRepCLIP-Score drops much more sharply under semantic corruption, showing stronger sensitivity to CAD-specific geometric errors than image-only CLIP metrics.

Benchmark

BRepCLIP-Score is compared against CD, CLIP score, human ratings, and GPT ratings on generated CAD outputs from recent text-to-CAD methods.

Method CD ↓ CLIP Score ↑ Human Score ↑ GPT Score ↑ BRepCLIP Score ↑
Ground Truth-0.379.79.80.61
DeepCAD86.540.242.22.40.15
Text2CAD86.540.263.63.50.16
CADRille155.800.263.53.70.16
Text2CQ (Q3B)68.150.335.04.90.31
Text2CQ (GL)71.270.324.64.50.25
Text2CQ (CG)77.910.314.13.90.22
CADFusion56.360.295.55.80.35

Citation

BibTeX

If you find BRepCLIP useful, please cite the arXiv paper.

@misc{usama2026brepclipcontrastivemultimodalpretraining,
      title={BRepCLIP: Contrastive Multimodal Pretraining on BRep Primitives for CAD Understanding}, 
      author={Muhammad Usama and Didier Stricker and Mohammad Sadil Khan and Muhammad Zeshan Afzal},
      year={2026},
      eprint={2606.05515},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2606.05515}, 
}

Collaborators

Contact and profiles

Author profile links follow the public project/profile pages used in related CAD generation work.

Didier Stricker

Scientific Director, DFKI Augmented Vision

Muhammad Zeshan Afzal*

Equal contributing supervisor · DFKI / MindGarage