Boundary Representation-Driven Graph Transformer Modeling for Machining Operation Sequencing
Authors: Fatemeh Elhambakhsh, Gaurav Ameta, Aditi Roy, Hyunwoong Ko
Organizations: School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA · Siemens Foundational Technologies, Princeton, NJ 08540, USA · School of Manufacturing Systems and Networks, Arizona State University, Mesa, AZ 85212, USA
Machining process planning is inherently complex due to the interdependence between part geometry, machining operations, and evolving manufacturable states. Traditional approaches rely heavily on expert knowledge and rule-based systems, limiting scalability and automation. While recent machine learning methods have shown promise, most operate on simplified geometric representations, such as voxels or hand-crafted features, which fail to fully exploit the rich geometric and topological information encoded in Boundary Representation (B-Rep) models. In this work, we propose a graph transformer-based framework for geometry-to-sequence learning that directly predicts machining operation sequences from B-Rep design geometry. The proposed method constructs topology-aware graphs from B-Rep entities, where faces and their adjacencies are encoded as node and edge features capturing both geometric and relational information. A graph neural network encoder learns geometry-aware embeddings, which are then used to condition a dual-decoder transformer that autoregressively generates machining operation sequences. This formulation enables the model to capture both operation-type prediction and process-level ordering constraints directly from design geometry, without requiring intermediate feature extraction or machining-state representations. Experiments on a dataset of 2,991 synthetic machined parts demonstrate strong performance, achieving 95% accuracy for main operation prediction, 64% accuracy for sub-operation prediction, and 93% accuracy for sequence length prediction. Further analysis shows that the model effectively captures precedence relationships and geometry-dependent constraints inherent in machining processes. These results highlight the potential of B-Rep-driven graph learning for scalable and automated machining process planning.
Figures & tables
Figure 1: Overview of the proposed method. CAD models are converted to graphs by capturing surface and curve features from B-Rep. The graph is fed into a GNN encoder to learn the dependencies between faces and edges of the part geometry. The learned features are then passed to a transformer decoder to autoregressively predict a sequence of machining operations directly from the design geometry graph.
Figure 2: Illustration of the representation pipeline. (a) CAD rendering with manufacturing-relevant faces highlighted. (b) Corresponding B-Rep view where faces fi , fj , and shared edges eij are shown. (c) Constructed geometric–topological graph G=(V,E) : faces map to nodes with node attributes hiB-Rep , and adjacencies map to edges with relational descriptors xijB-Rep . Arrows indicate the transformation steps from CAD geometry to B-Rep and then to the graph representation used by the encoder. The red and purple colors indicate the transformation of surfaces and their features as well as curves and their features from CAD to graph, respectively.
Figure 3: Parts geometries used for synthesized data generation: (1) simple geometry (top row) and (2) complex geometry (bottom row). The contrast between these two classes is intentional, enabling evaluation of model generalization across varying levels of topological and geometric complexity.
Figure 4: The distribution of unique main and sub-operation labels across the dataset. The moderate class imbalance, with dominant operation types such as hole making accounting for the majority of instances, is an important characteristic of real-world machining operation planning.
Figure 5: The distribution of main and sub-operations across sequence timesteps. The consistent ordering patterns, with coarse operations concentrated at early timesteps and finishing operations at later ones, reflecting real-world precedence constraints of machining operation planning.
Figure 6Figure 7Figure 8
Figure 6: Training and validation loss curves for different hyperparameter configurations. The best performance is achieved with (b) LR=0.01, Epoch=80, Batch=128.
Figure 7: Loss curves of the best hyperparameter values.
Figure 8: Training and testing accuracy curves for main operations and sub-operations.
Figure 9: Sample predicted machining operations for one part with 100% and 90% accuracies for main operation and sub-operation, respectively.
Learning to generate machining process plans and toolpaths from B-rep CAD requires coupling discrete operation decisions with continuous tool motion as the workpiece evolves. Correctly predicting an operation sequence does not by itself ensure correct material removal, because each toolpath acts on the stock left by preceding cuts. We formulate this problem around persistent manufacturing objects: object identity determines the target of an operation, while the evolving stock state conditions the generation of its toolpath. Based on this formulation, we propose CNCGEN, a dataset and learning framework for three-axis machining. CNCGEN-Dataset contains approximately 50k geometrically verified synthetic machining flows and 800 held-out real CNC records. Each flow aligns B-rep geometry with object-referenced operations, parameterized toolpaths, intermediate stock states, and verification outcomes, enabling supervision of the correspondence between planning decisions and their geometric effects. CNCGEN generates operations and toolpaths for selected objects step by step, updating a compact machining state to guide subsequent predictions. During training, a learned surrogate verifier provides material-removal feedback that links local predictions to their geometric consequences. Experiments on synthetic and held-out real CNC records show that CNCGEN improves the resulting workpiece geometry and reduces residual material and overcut compared with adapted CNC generation baselines.
We introduce a novel self-supervised learning framework that automatically learns representations from input computer-aided design (CAD) models for downstream tasks, including part classification, modeling segmentation, and machining feature recognition. To train our network, we construct a large-scale, unlabeled dataset of boundary representation (BRep) models. The success of our algorithm relies on two keycomponents. The first is a masked graph autoencoder that reconstructs randomly masked geometries and attributes of BReps for representation learning to enhance the generalization. The second is a hierarchical graph Transformer architecture that elegantly fuses global and local learning by a cross-scale mutual attention block to model long-range geometric dependencies and a graph neural network block to aggregate local topological information. After training the autoencoder, we replace its decoder with a task-specific network trained on a small amount of labeled data for downstream tasks. We conduct experiments on various tasks and achieve high performance, even with a small amount of labeled data, demonstrating the practicality and generalizability of our model. Compared to other methods, our model performs significantly better on downstream tasks with the same amount of training data, particularly when the training data is very limited.
Yifei Li, Kang Wu, Wenming Wu +1
University of Science and Technology of China · Hefei University of Technology
Graph-based machine learning has emerged as a promising approach for manufacturability analysis by learning directly from CAD models represented as Boundary Representations (B-reps), exploiting both surface geometry and topological connectivity. However, purely geometric representations often lack the process-specific semantics required for accurate manufacturability prediction: many manufacturing factors, such as surface roles or bend intent, are not explicitly encoded in shape alone and are difficult for data-driven models to infer reliably. We propose a hybrid approach that addresses this challenge by enriching B-rep attributed adjacency graphs with manufacturing features recognized through a rule-based module. Applied to sheet metal bending, recognized features, such as bend characteristics, flange lengths, and surface roles are integrated as node attributes, concentrating the learning signal on process-relevant geometric patterns. Experiments on both a large-scale synthetic manufacturability benchmark and a real-world industrial dataset with measured bending times, one of the first such validations on genuine production data, demonstrate that combining domain knowledge with graph-based learning improves prediction accuracy across both tasks. The results demonstrate that hybrid modeling offers a feasible and effective path toward deployable tools for manufacturability assessment and effort estimation in industrial CAD environments.
Matteo Ballegeer, Toon Van Camp, Willem Jaspers +6