# PhyCAD: Physics-Aware Text-to-CAD Generation via Hierarchical Reinforcement Learning

DevFeed: [PhyCAD: Physics-Aware Text-to-CAD Generation via Hierarchical Reinforcement Learning](<https://devfeed.tech/articles/phycad-physics-aware-text-to-cad-generation-via-hierarchical-reinforcement-learning-124674.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09401>)

Author: Yuxin Cui, Weijie Zheng, Zhengyang Li, Han Wang, Wenjie Feng, Qiyu Kang

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [grpo](<https://devfeed.tech/topics/grpo.md>), [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [CadQuery](<https://devfeed.tech/topics/cadquery.md>), [3D modeling](<https://devfeed.tech/topics/3d-modeling.md>), [rlvr](<https://devfeed.tech/topics/rlvr.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [aggregation](<https://devfeed.tech/tags/aggregation.md>), [automated](<https://devfeed.tech/tags/automated.md>), [cad](<https://devfeed.tech/tags/cad.md>), [cadquery](<https://devfeed.tech/tags/cadquery.md>), [cae](<https://devfeed.tech/tags/cae.md>), [computer-aided-design](<https://devfeed.tech/tags/computer-aided-design.md>), [constraint-satisfaction](<https://devfeed.tech/tags/constraint-satisfaction.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [framework](<https://devfeed.tech/tags/framework.md>), [generation](<https://devfeed.tech/tags/generation.md>), [group-relative-policy-optimization](<https://devfeed.tech/tags/group-relative-policy-optimization.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [learning](<https://devfeed.tech/tags/learning.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [physics](<https://devfeed.tech/tags/physics.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [text](<https://devfeed.tech/tags/text.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

PhyCAD trains language models to generate executable CadQuery programs that satisfy geometric and physical constraints, addressing the fact that geometric correctness alone does not ensure physical feasibility. Its dataset links parametric models with geometric specifications, loading conditions, and physical constraints; an automated CAD-CAE verifier combines program execution, geometric checks, and finite element analysis to provide training feedback. To keep unmet requirements from being offset by gains on other criteria, its Hierarchical Balanced Advantage for Group Relative Policy Optimization ranks candidates by verification status, then provides objective-wise peer feedback within each level. Experiments across multiple language models report improved joint geometric and physical constraint satisfaction. The supplied text is an abstract and does not provide quantitative results or implementation details.

## Source excerpt

arXiv:2611.09401v1 Announce Type: new Abstract: Language-driven computer-aided design (CAD) generation enables the creation of editable parametric models from text, yet geometric correctness alone does not ensure physical feasibility. We present PhyCAD, a framework for physics-aware Text-to-CAD generation that trains language models to produce executable CadQuery programs under geometric and physical constraints. To support this setting, we construct a Text-to-CAD dataset that links parametric CAD models with geometric specifications, loading conditions, and physical constraints. We further develop an automated CAD--CAE verifier that combines program execution, geometric checks, and finite element analysis to provide feedback for model training. A key learning challenge is to prioritize joint satisfaction of geometric and physical constraints while retaining informative feedback on partial progress. A flat aggregation of heterogeneous rewards can obscure this priority, allowing improvements in individual criteria to compensate for unmet design requirements. We therefore introduce a Hierarchical Balanced Advantage for Group Relative Policy Optimization, grouping candidates into levels according to their verification status and combining between-level progress with objective-wise peer ranking within each level. This formulation preserves cross-level priority in the training signal while providing fine-grained feedback for satisfying constraints and improving feasible designs. Experiments across multiple language models show that PhyCAD consistently improves joint geometric and physical constraint satisfaction. These results demonstrate the value of verifiable engineering feedback for advancing language-driven CAD generation beyond geometric reconstruction toward physics-aware design.