Computer-Aided Process Planning-Generative Pretrained Transformer (CAPP-GPT) Framework

CAPP-GPT

CAPP-GPT is the lab’s generative framework for computer-aided process planning in hybrid manufacturing. It takes CAD data for a part and produces a process plan: which geometric features to make, in what order, in which setups, and with which operations. Exact optimization and logical analysis of data build a training corpus of high-quality plans. Transformer architectures then learn to write comparable plans from the part model in a single forward pass.

The short name is deliberate. CAPP names the planning function. GPT names the generative pretrained transformer family of architectures used inside the framework. CAPP-GPT is not a commercial software product. It is a research framework that can sit beside existing product-lifecycle systems as an independent planning module.

Why this matters

Process planning for hybrid additive and subtractive work is still largely done by experienced engineers. The option space grows quickly once a part can be built up, cut down, or mixed. Exact models give strong plans, but they do not scale well when every new part must be solved from scratch. CAPP-GPT keeps the optimization and pattern-mining stage for building knowledge, then trains generative models so that a later part can be planned without another full solver run.

How the framework is organized

Three layers sit under the CAPP-GPT name.

  1. Corpus. Public CAD sets and parts generated through NX Open are sequenced and grouped with mathematical programming. For larger instances, logical analysis of data mines promising sequencing and setup patterns. Stock design, treated as constrained clustering of geometric features into cuboid envelopes, feeds accessibility and precedence into the same pipeline.
  2. Architectures. Encoder–decoder transformers read the part and write the plan. Published work uses a hybrid convolutional and graph-transformer encoder with an autoregressive plan decoder. A second encoder line, cross-modal contrastive alignment (CMCA), places CAD geometry and manufacturing-feature labels in one embedding space so that new feature classes can be added through the label side rather than a fixed classifier.
    Architectures of the CAPP-GPT Framework
    Published hybrid convolutional and graph-transformer encoder with an autoregressive plan decoder architecture: Mohamed, H., AlNammi, M., & Azab, A. (2026). Hybrid CNN–Graph Transformer Encoder with Autoregressive Decoding for CAPP-GPT. Manufacturing Letters, 49, 153-164, https://doi.org/10.1016/j.mfglet.2026.07.025.
  3. Plan. The decoder emits the operation sequence token by token, conditioned on the encoded manufacturing features and on precedence that the corpus and the stock-design stage make available.

Macro-CAPP is the core of the public line. Related lab work on micro-level process parameters, self-healing from process signatures, and digital-twin scheduling sits beside CAPP-GPT and is interfaced with it in the broader planning picture, but those modules have their own papers.

Architectures in the public record

Founding framework (NAMRC 52)

Azab, Osman, and Baki introduced CAPP-GPT as a generative pretrained transformer framework for smart manufacturing, linking macro process planning to digital twinning and to micro-level adaptation of process parameters. The paper sets the scope of the framework and the hybrid optimization–machine-learning route to the corpus.

Azab, A., Osman, H., & Baki, F. (2024). CAPP-GPT: A computer-aided process planning-generative pretrained transformer framework for smart manufacturing. Manufacturing Letters, 41, 51–62. https://doi.org/10.1016/j.mfglet.2024.09.009

Encoder–decoder for macro-CAPP

A detailed encoder–decoder layout processes CAD inputs (including constructive-solid-geometry and boundary-representation data), recognizes geometric and processing features, and autoregressively writes the plan. A TechRxiv preprint describes that architecture while a journal revision is under way.

Azab, A., Alnammi, M., Osman, H., & Baki, F. (2025). CAPP-GPT: A large multimodal model via a custom encoder-decoder architecture for macro-computer aided process planning. TechRxiv. https://doi.org/10.36227/techrxiv.174831482.26940243/v1

Hybrid CNN–graph transformer with autoregressive decoding (NAMRC 54)

Mohamed, AlNammi, and Azab validated a proof-of-concept encoder that samples NURBS faces and edges with convolutional networks, fuses them with a graph transformer on the face-adjacency structure, and feeds manufacturing-feature encodings to a plan decoder. Case studies on interacting prismatic features compare the generated sequences with plans from mathematical programming.

Mohamed, H., Alnammi, M., & Azab, A. (2026). Hybrid CNN–Graph Transformer Encoder with Autoregressive Decoding for CAPP-GPT. Manufacturing Letters. https://doi.org/10.1016/j.mfglet.2026.07.025

Cross-modal contrastive alignment (CMCA)

CMCA is a second encoder architecture under the same framework. Instead of closing the feature set with a fixed multi-class head, it aligns B-rep geometry embeddings with manufacturing-feature prototypes in a shared space. New feature types can later be introduced as new prototypes. A paper on this architecture has been submitted for NAMRC 55.

Related building blocks

These published results feed the corpus and the hybrid-manufacturing setting. Full citations are on the Publications page.
  • Osman, H., Azab, A., & Baki, M. F. Optimal process planning for hybrid manufacturing (setup, sequencing, and grouping).
  • Matengele, E., Osman, H., Azab, A., & Baki, F. (2026). Assessment of proximity metrics for clustering geometric features toward optimal stock design for hybrid-manufacturing CAPP. Manufacturing Letters. https://doi.org/10.1016/j.mfglet.2026.07.034
  • Osman, H., Azab, A., Hasan, R., & Baki, M. F. (2024). Mass customization using hybrid manufacturing and smart assembly: platform design. Manufacturing Letters. https://doi.org/10.1016/j.mfglet.2024.09.016

Status

CAPP-GPT is early-stage research. Published case studies so far test architecture feasibility and agreement with optimized plans on controlled parts. Larger CAD corpora and industrial parts remain active work. The lab does not release software downloads or training weights from this line.

Contact

Questions about collaboration or graduate work on CAPP-GPT: azab@uwindsor.ca. See also People, Publications, and Conferences and symposia.