arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.20607cs.HC
收藏

LLM4CAD-Editor:一种面向多层级计算机辅助设计编辑的意图感知大语言模型框架

LLM4CAD-Editor: An Intent-Aware Large Language Model Framework for Multi-Level Computer-Aided Design Editing

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yuewan Sun, Zhenghui Sha

AI总结:

提出LLM4CAD-Editor框架,通过结构化领域特定语言LLM4CAD-DSL实现自然语言驱动的CAD编辑,支持功能、操作和参数三级编辑,在参数级编辑上达到96.3%解析准确率和0.935 IoU。

摘要:

大语言模型(LLM)最近实现了从自然语言自动生成参数化计算机辅助设计(CAD)程序。然而,实际CAD工作流本质上是迭代的,需要可靠的编辑而非一次性模型合成。本文提出LLM4CAD-Editor,一个基于LLM的意图感知框架,用于基于结构化领域特定语言(LLM4CAD-DSL)的指令引导CAD编辑。LLM4CAD-DSL的符号表示通过特征级实体选择机制实现稳健的几何修改,允许模型通过特征名称而非坐标引用几何体,从而将脆弱的基于坐标的推理转化为许多LLM能够处理的基于自然语言的推理。我们通过基于DSL的数据增强和视觉-语言指令合成构建了一个包含超过35,139个指令-程序对的多模态CAD编辑数据集,涵盖功能级、操作级和参数级编辑意图。为验证工作,我们微调了一个32B参数的语言模型用于DSL编辑生成。实验结果显示,参数级编辑的解析准确率高达96.3%,功能指令的意图满足率达到82%。模型在参数级、操作级和功能级编辑上的平均交并比(IoU)分别为0.935、0.871和0.708,对应的平均编辑距离分别为0.176、0.579和2.859。对比研究进一步表明,与基于Python的CAD脚本方法相比,编辑鲁棒性提升了1.4倍。这些结果证实LLM4CAD-Editor能够可靠地执行从低级参数修改到高级功能编辑的多种任务,在不同编辑任务中保持高准确率和低结构错误。

英文摘要:

Large language models (LLMs) have recently enabled automatic generation of parametric computer-aided design (CAD) programs from natural language. However, real-world CAD workflows are inherently iterative and require reliable editing rather than one-shot model synthesis. In this work, we propose LLM4CAD-Editor, an LLM-based intent-aware framework for instruction-guided CAD editing based on a structured domain-specific language (LLM4CAD-DSL). The symbolic representation of LLM4CAD-DSL enables robust geometric modification through a feature-level entity selection mechanism, allowing models to reference geometry via feature names instead of coordinates, thus transforming fragile coordinate-based reasoning into natural language-based reasoning that many LLMs can handle. We construct a multimodal CAD editing dataset with over 35,139 instruction-program pairs via DSL-based augmentation and vision-language instruction synthesis, covering functional-, operation-, and parameter-level editing intents. To validate the work, we fine-tuned a 32B-parameter language model for DSL editing generation. Experimental results show high parsing accuracy for parameter-level edits (96.3%) and strong intent satisfaction rates of 82% for functional instructions. The model also achieves an average Intersection-over-Union (IoU) of 0.935 for parameter-level edits, 0.871 for operation-level edits, and 0.708 for functional-level edits, while the corresponding average editing distances are 0.176, 0.579, and 2.859, respectively. Comparative studies further demonstrate a significant improvement in editing robustness by 1.4x over Python-based CAD scripting approaches. These results confirm that LLM4CAD-Editor can reliably perform both low-level parameter modifications and high-level functional edits, maintaining high accuracy and low structural errors across diverse editing tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑