TRANSMISSION // 2612.03120v1

Teaching CAD AI to Predict How Parts Fit Together

Source published

PrimAsm is a benchmark for predicting the geometric constraints that connect two CAD parts. Its proposed model performs promisingly, but misses many constraints and does not yet cover all constraint types.

AI-generated conceptual illustration for Teaching CAD AI to Predict How Parts Fit Together
AI-generated conceptual illustration; not documentary evidence.

A CAD assembly is more than parts placed in the right positions: it also records which faces should line up, touch or share an axis. A new benchmark and model aim to predict those relationships directly from two unassembled parts.

The question: can software infer assembly intent?

In computer-aided design (CAD), engineers often tell a program how two parts relate by adding geometric constraints between their surfaces. For example, two cylindrical faces can be made concentric, or two planar faces coincident. A geometric constraint solver then uses those instructions to determine a compatible arrangement.

Many learning systems for assembly instead predict where parts should go or assign a broad joint label to a pair of parts. Those answers do not necessarily identify the particular faces and geometric relationships that a CAD solver needs. In the preprint PrimAsm: A Benchmark and Learning Framework for Primitive Geometric Constraint Prediction in CAD Assembly, researchers define a task aimed at that more detailed step: given two CAD parts in separate local coordinate systems, predict which face pairs are constrained, what kind of constraint applies, and the alignment state.

The input deliberately excludes the parts’ assembled relative pose. The intended prediction is therefore not simply to read off how the parts already sit together.

A benchmark drawn from designer-made assemblies

The researchers built PrimAsm from native SolidWorks assemblies collected from public CAD repositories. They extracted designer-authored constraints and the referenced geometric entities, exported parts as STEP files, and processed large assemblies into smaller examples. The resulting benchmark contains 884,000 part instances and 1.8 million constraints spanning seven types. The data were divided into training, validation and test sets by source assembly, so subassemblies from one source do not appear across different splits.

The main model evaluation is narrower than the full benchmark. GeCoNet predicts five face-level constraint types: coincident, concentric, parallel, perpendicular and tangent. Distance and angle constraints are left out of these experiments because they require predicting continuous values as well as a relationship. Constraints involving edges are also outside this face-level task. The authors report that the face-level track retains 98.13% of constraint instances with two face references, but that figure does not mean every benchmark constraint is included in the model’s evaluation.

GeCoNet has three main stages. A topology-aware encoder represents each face using geometric and structural information about the part. A proposal stage selects a limited set of potentially relevant faces on each part. A relational decoder considers pairs among those candidates and predicts constraint type and alignment. The proposed constraints can be passed to a geometric constraint solver after a further selection step to retain a geometrically consistent subset.

What the results show

On the face-level test track, GeCoNet using the AAGNet encoder reached 73.02% recall and 54.48% CoverAcc. Recall measures how many reference constraints were recovered. CoverAcc measures the average fraction recovered per evaluated part pair; unlike precision or F1, it does not directly penalize extra predictions. The model’s reported micro-F1 was 28.53%, so the coverage figure should not be read as a general measure of prediction correctness.

Against the study’s strongest non-learning baseline, a geometric nearest-neighbor method, GeCoNet with AAGNet had higher CoverAcc: 54.48% versus 14.33%. The researchers also compared the framework with learned baselines. Their analysis suggests that the relational decoder contributes substantially: with the same encoder and face-proposal setup, it improved CoverAcc from 35.20% to 54.48% compared with a simpler pairwise classifier.

Performance varied by constraint type and task difficulty. The model was stronger on some types than others, and results worsened for part pairs with more faces. In particular, CoverAcc fell from 68.38% in the lowest face-count group to 40.14% in the highest. The authors’ analysis indicates that distinguishing among candidate face pairs—not merely finding faces that might participate—is an important challenge. The data also have a pronounced class imbalance: coincident and concentric constraints are common, while several other types are rare.

The researchers tested changes to the parts’ local coordinates. Independent rotations had little effect, while additional random translations caused a more noticeable, though described as modest, decline in coverage and recall. This test is relevant because the model does not receive the assembled relative pose. It does not establish reliability across every CAD system, dataset or real-world workflow.

What remains uncertain

These results suggest a useful direction for automating a specific, labor-intensive part of CAD assembly, not a finished replacement for engineering judgment. The evaluated model covers five non-parametric face-level types; predicting distance and angle values and handling edge-based constraints remain future work. Extra predicted constraints can also be problematic, and the paper recommends validating outputs before use in safety-critical applications.

The authors describe the work as a preprint, so its findings should be treated as preliminary rather than as independently established results. The benchmark is based on filtered public SolidWorks assemblies, and the native files are not being redistributed; the authors say they plan to release construction code and a processed example subset. The reported scores therefore describe performance on the study’s defined data and evaluation protocol, not every kind of mechanical assembly.

Source: Xia and colleagues, “PrimAsm: A Benchmark and Learning Framework for Primitive Geometric Constraint Prediction in CAD Assembly,” arXiv:2612.03120v1.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.