完成不等于正确:当LLM智能体执行CAD操作时的静默失败测量与自验证校准
Done Is Not Correct: Measuring Silent Failures and Self-Verification Calibration When LLM Agents Take CAD Actions
AI总结:
该研究针对LLM智能体执行CAD操作时的语法与语义正确性分离问题,构建基准测量静默失败率,验证工具使用循环可降低静默失败率并提升声明精度。
摘要:
当大型语言模型(LLM)智能体根据自然语言规范编写参数化CAD代码时,语法成功与语义正确性相互分离。我们发布了一个基准及工具,可直接测量这一差距:包含13个规范任务,每个任务的需求均映射到生成的B-rep的机器可检查属性,由内核依据已发布的公差带进行测量,同时提供参考解决方案和完整的分级尝试语料库。精确的自审计预言机分离出两个此前CAD基准未报告的量:静默失败率(有效、可渲染实体、明确的完成声明且至少有一项语义检查失败)和完成声明校准。针对来自四个厂商的四个模型(每个架构156次尝试),单次执行智能体在98%的尝试中声明完成,其中14.1%为静默错误;采用“测量后声明”的工具使用循环将静默失败率降至3.2%,并将声明精度从64%提升至96%,四模型消融实验表明该变化源于声明契约而非反馈。规划器-编码器-检查器管道在覆盖范围更低的情况下达到了相同精度,且无成功增益。单次执行的声明置信度校准错误(预期校准误差ECE为0.32),经验证后四个模型中有三个的置信度变得具有参考性。我们的预言机强化后,519个重新评分的判决中有18个从通过翻转为失败,无反向翻转;盲专家审计推翻了18个静默失败中的3个(位于一个规范模糊的任务之外);将所有公差带扩大四倍后,上述对比依然成立。
英文摘要:
When a large language model (LLM) agent writes parametric CAD code from a natural-language specification, syntactic success decouples from semantic correctness. We release a benchmark and harness that measure this gap directly: 13 specification tasks whose every requirement maps to machine-checkable properties of the produced B-rep, measured by the kernel against published tolerance bands, with reference solutions and the full graded attempt corpus. The exact, self-audited oracle isolates two quantities no prior CAD benchmark reports: the silent-failure rate (a valid, renderable solid, an explicit completion claim, and at least one failed semantic check) and completion-claim calibration. Across four models from four vendors (156 attempts per architecture), single-shot agents claimed completion on 98% of attempts and were silently wrong on 14.1%; a tool-use loop that enforces measure-then-claim cut silent failures to 3.2% and raised claim precision from 64% to 96%, and a four-model ablation attributes the change to the claim contract rather than the feedback. A planner-coder-checker pipeline matched that precision at lower coverage with no success gain. Stated confidence was miscalibrated single-shot (ECE 0.32) and became informative under verification for three of four models. Hardening our own oracle flipped 18 of 519 regraded verdicts from pass to fail and none in reverse; a blind expert audit overturned 3 of the 18 silent failures outside the one ambiguously specified task; and fourfold scaling of every tolerance band leaves the contrast intact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。