Yin Xiaolong, Liu Yu, Shen Jiahang, Lu Xingyu, Ni Jingzhe, Fan Fengxiao, Sang Fan
Automatic generation of computer-aided design (CAD) models is a core technology for enabling intelligence in advanced manufacturing. Existing generation methods based on large language models (LLMs) often fall short when handling complex CAD models characterized by long operation sequences, diverse operation types, and strong geometric constraints, primarily because reasoning chains break and effective error-correction mechanisms are lacking. To address this problem, this paper proposes a memory-augmented reinforcement learning framework for CAD generation agents. The framework encapsulates the underlying geometric kernel into a structured toolchain callable by the agent and builds a closed-loop mechanism of design intent understanding, global planning, execution, and multi-dimensional verification. It also designs a dual-track memory module consisting of a case library and a skill library, and proposes a dynamic utility retrieval algorithm. By introducing reinforcement learning into retrieval and policy optimization, the agent can effectively avoid retrieval traps in which examples are semantically similar but geometrically infeasible, enabling online self-correction and continual evolution without additional large-scale annotated data. Experiments show that the proposed method significantly improves both the success rate and geometric consistency on complex CAD model generation tasks.
This paper proposes a memory-augmented reinforcement learning framework for CAD generation agents that addresses three key limitations of existing LLM-based CAD generation: (1) inability to track geometric execution states in open-loop generation, (2) mismatch between semantic retrieval and engineering utility, and (3) insufficient skill abstraction for reusable modeling patterns.
The framework's novelty lies in three interconnected components: a closed-loop planning-execution-verification-correction cycle using the FreeCAD geometric kernel as an interactive environment via MCP protocol; a dual-track memory system (case library + skill library) that accumulates reusable experience; and a dynamic utility retrieval algorithm that uses reinforcement learning signals to shift retrieval from pure semantic similarity toward context-dependent geometric feasibility. Importantly, the learnable component is restricted to the memory retrieval policy—the base LLM remains frozen, which is a pragmatic design choice that avoids expensive fine-tuning.
Strengths in formalization: The paper formalizes the CAD generation process as a memory-augmented MDP (M-MDP), providing a principled framework for integrating retrieval decisions with modeling execution. The value network design for case retrieval—using concatenated query-case features with difference and elementwise product—is well-motivated. The linear annealing schedule for blending semantic similarity and learned value estimates (α from 0.9 to 0.35 over 400 episodes) is a sensible cold-start strategy.
Weaknesses in experimental design: The evaluation has several notable gaps:
The work addresses a genuine engineering bottleneck: translating design intent to executable, geometrically valid CAD models. The framework's key practical advantages include:
However, the reliance on GPT-5.2-codex (a proprietary, presumably expensive model) limits immediate practical deployment. The paper does not discuss computational costs, latency, or API costs per model generation—critical factors for industrial adoption.
The paper is well-positioned at the intersection of two rapidly evolving areas: LLM-based agents and CAD automation. The shift from open-loop generation to closed-loop agent frameworks with tool use reflects a broader trend in AI systems. The memory-augmented approach aligns with recent work on external memory for LLM agents (Memento, Memento-Skills) and addresses the recognized limitation that pure semantic retrieval can be misleading in engineering domains.
The timing is relevant given the manufacturing industry's increasing interest in AI-driven design automation, though the gap between academic demonstrations and industrial deployment remains substantial.
The paper's absolute geometric similarity numbers are modest (IoU of 0.2972), suggesting the problem remains far from solved even with the proposed improvements. The high success rates (0.995) but relatively low geometric fidelity indicate that "success" as defined by the binary reward may not capture the quality needed for real manufacturing applications.
Generated May 20, 2026
Paper 1 addresses the challenging problem of automatic CAD generation by combining memory-augmented reinforcement learning with LLM-based agents, introducing novel components (dual-track memory, dynamic utility retrieval, closed-loop verification) for a high-value manufacturing application. Its interdisciplinary nature (AI + CAD/manufacturing), methodological depth, and practical relevance to advanced manufacturing give it broader and deeper impact potential. Paper 2, while solid in LLM routing optimization, addresses a narrower operational efficiency problem with more incremental contributions to the existing routing literature.
Paper 2 is likely higher impact: it targets a broadly applicable bottleneck in agent improvement—sparse, high-variance feedback in long-horizon settings—using demonstration-bootstrapped “harness evolution,” a timely alternative to weight updates. The method generalizes beyond specific domains (games) to many agentic workflows and offers auditable, localizable edits, improving practical adoption. Paper 1 is strong and application-relevant for CAD/manufacturing, but its impact is more domain-specific and depends on integration with proprietary geometric kernels. Both seem rigorous, but Paper 2’s cross-field breadth and relevance are higher.
Paper 1 addresses a more fundamental and technically challenging problem—automatic CAD generation with reinforcement learning and memory augmentation. It combines multiple novel contributions (dual-track memory, dynamic utility retrieval, RL-based optimization for geometric feasibility) targeting a high-impact domain (advanced manufacturing). Paper 2, while practical and well-motivated, primarily offers an engineering optimization (distilling ReAct agents into RPA scripts for efficiency), which is more incremental. Paper 1's framework has broader potential impact across manufacturing, design automation, and AI-assisted engineering, with stronger methodological novelty.
Paper 2 introduces a reproducible measurement framework for mechanistic interpretability in spatial reasoning models. While Paper 1 offers strong industrial applications for CAD generation, Paper 2 provides fundamental scientific tools and insights to understand recursive reasoning dynamics across diverse, foundational AI domains like ARC-AGI and embodied 3D AI, yielding broader theoretical and scientific impact across the machine learning community.
Paper 1 addresses a broader and more fundamental problem in AI-driven CAD generation with a novel memory-augmented reinforcement learning framework that combines dual-track memory, dynamic utility retrieval, and online self-correction. Its contributions—closing the loop between planning, execution, and verification while avoiding semantic-geometric mismatches—represent significant methodological innovation applicable across manufacturing and generative design. Paper 2, while practically valuable for EV battery diagnostics, is more domain-specific and primarily applies existing LLM agent paradigms (RAG, structured prompting) to a narrower application without comparable methodological novelty.
PlanningBench addresses a fundamental capability of LLMs (planning) with a comprehensive, scalable framework that serves both evaluation and training purposes. Its broad taxonomy of 30+ task types, controllable generation pipeline, and demonstrated improvements via reinforcement learning on verified data have wider applicability across the LLM research community. The finding that well-specified optimal solutions provide clearer reward signals contributes general insights for RL-based LLM training. Paper 2, while innovative in combining memory-augmented RL for CAD generation, targets a narrower application domain with more limited cross-field impact.
Paper 1 presents a more fundamental methodological innovation by integrating reinforcement learning, a dual-track memory module, and verifiable geometric constraints into an LLM agent framework. This approach tackles the complex problem of long-horizon reasoning and error correction in constrained environments. While Paper 2 offers high practical value for EV maintenance, its methodology relies more on standard RAG and LLM applications. Paper 1's framework has broader theoretical implications for improving agentic reasoning and self-correction across various constrained generation tasks.
Paper 1 has broader and more timely impact: it introduces a controllable, verifiable planning data generation framework applicable to many LLM planning/evaluation/training settings, with a taxonomy, scalable synthesis, and instance-level verification. Its contributions generalize across domains (benchmarking, RLHF/RL training stability, planning research) and can become infrastructure used by many groups. Paper 2 targets an important but narrower application (CAD generation) and appears more system-specific; impact depends on adoption and reproducibility of the toolchain/kernel integration.
Paper 2 likely has higher scientific impact due to its broader, more general contribution: a reproducible measurement framework (“interaction locality”) for analyzing information flow in hierarchical/recursive spatial reasoning, validated across multiple benchmarks (mazes, Sudoku, ARC-AGI) and extended to an embodied 3D model. This offers methodological tools usable across architectures and fields (interpretability, reasoning, robotics). Paper 1 is timely and application-relevant for CAD, but is more domain-specific and engineering-oriented, with impact largely concentrated in manufacturing/CAD generation rather than cross-model scientific understanding.
Paper 1 likely has higher impact due to stronger timeliness and broader applicability: mitigating hallucinations in vision-language models is a central, cross-domain problem affecting robotics, safety-critical perception, and multimodal AI reliability. Its modular pseudocode library plus difficulty-aware strategy selection is a clear, generalizable framework with strong benchmark evidence (SOTA on POPE/MMStar, surpassing GPT-4V), suggesting methodological rigor and immediate uptake. Paper 2 targets an important but narrower CAD-manufacturing domain; impact depends more on task-specific benchmarks and engineering integration, with less clearly demonstrated generality.