CAD-Editor: A Locate-then-Infill Framework with Automated Training Data Synthesis for Text-Based CAD Editing
Yu Yuan, Shizhao Sun, Qi Liu, Jiang Bian
TL;DR
This work tackles text-based CAD editing by introducing CAD-Editor, which combines an automated data synthesis pipeline with a locate-then-infill framework powered by LLMs and LVLMs. It constructs triplet training data (editing instruction, original SE sequence, edited SE sequence) by pairing design variations with difference summarization, and then decomposes editing into locating regions to modify and infilling precise edits. Empirical results on the DeepCAD dataset show CAD-Editor achieves superior validity and text-CAD alignment, outperforming baselines and ablations across multiple metrics and scenarios. The approach offers a practical path to editable, instruction-driven CAD models while highlighting opportunities for cost-efficient data generation and broader benchmarking.
Abstract
Computer Aided Design (CAD) is indispensable across various industries. \emph{Text-based CAD editing}, which automates the modification of CAD models based on textual instructions, holds great potential but remains underexplored. Existing methods primarily focus on design variation generation or text-based CAD generation, either lacking support for text-based control or neglecting existing CAD models as constraints. We introduce \emph{CAD-Editor}, the first framework for text-based CAD editing. To address the challenge of demanding triplet data with accurate correspondence for training, we propose an automated data synthesis pipeline. This pipeline utilizes design variation models to generate pairs of original and edited CAD models and employs Large Vision-Language Models (LVLMs) to summarize their differences into editing instructions. To tackle the composite nature of text-based CAD editing, we propose a locate-then-infill framework that decomposes the task into two focused sub-tasks: locating regions requiring modification and infilling these regions with appropriate edits. Large Language Models (LLMs) serve as the backbone for both sub-tasks, leveraging their capabilities in natural language understanding and CAD knowledge. Experiments show that CAD-Editor achieves superior performance both quantitatively and qualitatively. The code is available at \url {https://github.com/microsoft/CAD-Editor}.
