# PrimAsm: A Benchmark and Learning Framework for Primitive Geometric Constraint Prediction in CAD Assembly

> PrimAsm contains 884K part instances and 1.8M native, designer-authored constraints. GeCoNet predicts typed face-pair constraints and alignment from unposed CAD parts, reaching 54.48% TFA CoverAcc on the five-type face-level test track; that metric does not penalize extra predictions.

- arXiv: https://arxiv.org/abs/2612.03120
- Authors: Zhen Xia, Shuai Zhao, Chenyang Du, Lin Luo, Zhaorui Xiang, Ziyue Zhu, Yuli Chen
- Published: 2026-12-03
- Topic: Vision
- Visual carousel: https://instaxiv.com/p/2612.03120
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can GeCoNet predict constraints from two unposed CAD parts?

**54.48%** GeCoNet + AAGNet test TFA CoverAcc vs GT

## Assembly prediction has three different targets

![Figure 2](https://cdn.instaxiv.com/figures/2612.03120/figure2.webp)

Point-cloud methods predict arrangements; some CAD methods predict one joint per pair. PrimAsm targets typed constraints on specific B-Rep faces, which a geometric constraint solver uses to compute a consistent arrangement. (Figure 2)

## What a prediction contains

1. **Two unposed parts**: Inputs are B-Reps (CAD faces, edges and vertices) in separate local frames, without assembled relative pose.
2. **A typed face pair**: Each constrained pair gets one primitive type and a native binary alignment: Aligned or Anti-Aligned.
3. **A set, not one label**: Several face pairs may be constrained; each individual pair has at most one non-null type.

## PrimAsm: native constraints at scale

![Figure 7](https://cdn.instaxiv.com/figures/2612.03120/figure7.webp)

PrimAsm contains 154K subassemblies, 884K part instances and 1.8M native, designer-authored constraints across seven types. SolidWorks parts are exported to STEP; examples split 80/10/10 by source assembly into train/validation/test. (Figure 7)

## The benchmark is broader than the test track

**Seven-type annotations:** Full annotations include both face and edge entities; 98.13% of retained constraints reference two faces.

**Model evaluation:** Tests use five face-face types: Coincident, Concentric, Parallel, Tangent and Perpendicular. Distance/Angle need continuous regression; edge-involving constraints are excluded.

The seven-type dataset is not a seven-type test.

## GeCoNet connects face proposals to a solver

![Figure 4](https://cdn.instaxiv.com/figures/2612.03120/figure4.webp)

A replaceable topology-aware B-Rep encoder, AAGNet by default, feeds type-agnostic per-part Top-K proposals; a type-aware relational decoder uses context and score-guided cross-attention to predict pair types and alignment, then passes a consistent subset to GCS. (Figure 4)

## How GeCoNet narrows the pair search

1. **Sparse pair grid**: The full cross-part face grid is large; only a few pairs are constrained.
2. **Propose per part**: An objectness score ranks likely participating faces; type-agnostic Top-K keeps up to 30 candidates per part.
3. **Refine typed matches**: Score-guided cross-attention refines pairs; type-specific heads score admissible matches, and a shared head predicts alignment.

## GeCoNet leads non-oracle full-set recovery

| Method | TFA CoverAcc | Micro-F1 | Recall |
| --- | --- | --- | --- |
| Dense AAGNet MLP | 35.28% | 22.39% | 59.75% |
| Top-K pairwise classifier | 35.20% | 20.23% | 60.35% |
| **GeCoNet + AAGNet (+19.20 pp)** | **54.48%** | **28.53%** | **73.02%** |

_Main table; test TFA (type, equivalent face pair, alignment). CoverAcc ignores extras; Top-K shares AAGNet/K; delta vs Dense AAGNet._

## Average gains do not reach every type

**GeCoNet + AAGNet:** On TFA F1 at threshold 0.7, its unweighted five-type average is 27.22%; Perpendicular F1 is 24.00%.

**Dense AAGNet MLP:** Its average is 21.54%, but it scores higher on Coincident, Tangent and Parallel; the gain is not universal.

Check per-type results before choosing a model.

## An oracle proposal barely improves coverage

| Method | TFA CoverAcc |
| --- | --- |
| Oracle proposal (diagnostic) | 54.82% |
| **GeCoNet + AAGNet (K=30)** | **54.48%** |

_Main/sensitivity tables; test TFA. At K=30, 99.2% of GT constraints survive; oracle supplies all participating faces, not pairings/types._

## Rotations barely shift metrics; translations lower coverage

**Independent rotations:** In the post-export stress test, independently rotating each input barely changes model metrics without retraining or fine-tuning.

**Random translations:** Independent random translations mainly lower CoverAcc and recall, exposing sensitivity to the origin-aligned local frames used in the data.

## Where the current results stop

- **Five types only**: Distance/Angle and edge-involving constraints are excluded; evaluation covers only five face-level types.
- **Coverage ignores extras**: CoverAcc does not penalize false positives; GeCoNet + AAGNet precision is 17.73% at the reported setting.
- **Complex parts**: Part pairs with a part above 100 faces are excluded; CoverAcc is 68.38% in the lowest and 40.14% in the highest face-count quartile.
- **Data and safety**: Native SolidWorks files cannot be redistributed; safety-critical outputs need validation.

Best used when: For face-level research or reviewed CAD assistance, not unchecked safety-critical assembly.

## Key takeaways

- CAD assembly intent can be represented as typed constraints on specific faces, not only as a final pose.
- Use GeCoNet as a reviewed research aid: check false positives and per-type performance before handing constraints to a solver.
- An open question is whether edge entities and continuous Distance/Angle can be handled on complex, noncanonical inputs.

## Links

- arXiv: https://arxiv.org/abs/2612.03120
- PDF: https://arxiv.org/pdf/2612.03120

## Citation

```bibtex
@article{xia2026primasm,
  title   = {PrimAsm: A Benchmark and Learning Framework for Primitive Geometric Constraint Prediction in CAD Assembly},
  author  = {Xia, Zhen and Zhao, Shuai and Du, Chenyang and Luo, Lin and Xiang, Zhaorui and Zhu, Ziyue and Chen, Yuli},
  journal = {arXiv preprint arXiv:2612.03120},
  year    = {2026},
  url     = {https://arxiv.org/abs/2612.03120}
}
```
