A Three-Layer Runtime Constraint Verification Framework with Self-Correction for AI-Generated Parametric CAD Models
Large language models (LLMs) frequently generate physically impossible parametric specifications in computer-aided design (CAD). This paper presents FMforME, a three-layer runtime constraint verification framework that integrates LLM-based generation with six engineering standard-grounded defect detection predicates (D1–D6) and execution in Autodesk Fusion 360. To address detected violations, a Self-Examine subsystem iteratively provides structured, standard-referenced feedback to the LLM, enabling verifier-guided error correction. We evaluated the framework across 564 test cases using four LLM backends from three model families. The system showed consistent buildability within the evaluated benchmark: across all models, every specification validated by the Monitor successfully built in Fusion 360 (548/548). Across the four evaluated backends, realized seeded defect detection ranged from 95.5% to 95.8%, and three backends showed an observed 100% natural pass rate in this benchmark. Crucially, this runtime safety barrier adds little computational overhead relative to LLM inference, averaging only 0.1 ms per in-memory verification check. These results show that standards-referenced runtime verification with structured self-correction can serve as a practical safeguard for LLM-generated CAD specifications within the tested single-part workflows, while broader validation on complex assemblies remains future work.
Authors
- Timothy H. Lee (ORCID: https://orcid.org/0000-0001-6353-3144)
- Z Q Chen
- Yang Shen (ORCID: https://orcid.org/0000-0003-2776-4169)
- Xiaoyi Yin (ORCID: https://orcid.org/0000-0003-4154-2044)
Institutions
- University of Illinois Urbana-Champaign (US)
- Zhejiang Energy Research Institute (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2026-07-23
- DOI
- https://doi.org/10.3390/app16157396
- Primary Topic
- Manufacturing Process and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China