[论文解读] Pointer-CAD: Unifying B-Rep and Command Sequences via Pointer-based Edges & Faces Selection
Pointer-CAD 引入基于指针的命令序列,直接引用 B-rep 的边和面, enabling 复杂编辑(如倒角、圆角)并降低量化误差,且具有以 LLM 为基础的多步 CAD 生成框架,条件依赖于先前的 B-rep 几何。
Constructing computer-aided design (CAD) models is labor-intensive but essential for engineering and manufacturing. Recent advances in Large Language Models (LLMs) have inspired the LLM-based CAD generation by representing CAD as command sequences. But these methods struggle in practical scenarios because command sequence representation does not support entity selection (e.g. faces or edges), limiting its ability to support complex editing operations such as chamfer or fillet. Further, the discretization of a continuous variable during sketch and extrude operations may result in topological errors. To address these limitations, we present Pointer-CAD, a novel LLM-based CAD generation framework that leverages a pointer-based command sequence representation to explicitly incorporate the geometric information of B-rep models into sequential modeling. In particular, Pointer-CAD decomposes CAD model generation into steps, conditioning the generation of each subsequent step on both the textual description and the B-rep generated from previous steps. Whenever an operation requires the selection of a specific geometric entity, the LLM predicts a Pointer that selects the most feature-consistent candidate from the available set. Such a selection operation also reduces the quantization error in the command sequence-based representation. To support the training of Pointer-CAD, we develop a data annotation pipeline that produces expert-level natural language descriptions and apply it to build a dataset of approximately 575K CAD models. Extensive experimental results demonstrate that Pointer-CAD effectively supports the generation of complex geometric structures and reduces segmentation error to an extremely low level, achieving a significant improvement over prior command sequence methods, thereby significantly mitigating the topological inaccuracies introduced by quantization error.
研究动机与目标
- 动机:说明命令序列 CAD 生成在实体选择和前期工作中的拓扑错误的挑战。
- 提出一种基于指针的表示,在生成过程中显式引用 B-rep 元素。
- 将 Pointer-CAD 发展为一个多步、文本到 CAD 的框架,条件依赖于累积的 B-rep 几何。
- 构建一个专家标注的数据集(≈57.5 万模型)用于训练和评估该方法。
- 展示在几何保真度和拓扑方面相对于先前的命令序列方法的改进。
提出的方法
- 在基于指针的表示中引入三种令牌类型:标签令牌、数值令牌以及指向 B-rep 元素的指针。
- 将 CAD 模型构建分解为顺序步骤(草图-拉伸、倒角、圆角),条件依赖于文本和先前的 B-rep。
- 从 B-rep 构建面相邻图,并使用图神经网络传递局部特征以供 LLM 输入。
- 使用基于 Qwen2.5 的 LLM,并进行 LoRA 微调,预测每一步的令牌和指针,随后转化为可执行的 CAD 指令。
- 实现一个指针机制,通过预测嵌入与候选嵌入之间的余弦相似度来选择目标面/边。
- 采用联合目标函数训练,结合标签/数值令牌预测(带标签平滑的交叉熵)与指针预测(对比式损失)。

实验结果
研究问题
- RQ1基于指针的命令表示是否能够实现对复杂 CAD 编辑的显式实体选择?
- RQ2在多步生成框架中对不断演化的 B-rep 条件化,是否能够提升拓扑保真度和几何精度?
- RQ3将基于图的 B-rep 编码与 LLM 相结合,如何影响命令序列质量和下游 CAD 有效性?
- RQ4与传统命令序列相比,在倒角/圆角支持和整体拓扑质量方面有哪些提升?
- RQ5与现有文本到 CAD 的基线及通用型大语言模型相比,该方法在生成可执行 CAD 脚本方面的表现如何?
主要发现
- Pointer-CAD 在命令准确性和几何保真度上优于先前的命令序列方法。
- 指针机制实现了对面/边的显式选择,支持倒角和圆角操作。
- 在累积的 B-rep 条件下进行的多步生成,减少了量化和拓扑错误。
- 带 GNN 的 B-rep 表征显著提升了弧线相关几何的重建。
- 该框架在拓扑质量和水密性指标方面优于基线。
- 实验表明 Pointer-CAD 相较于某些基线,在较小的 LLM 主体下也能表现良好。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。