以LLM为验证器推理检测模型规范中的不一致性 Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-01
⬇️ 4 次下载
👁️ 预览文献
💡 AI 中文简介
大语言模型的规范文档定义了模型应如何行为,但规范本身可能包含矛盾:两条单独合理的规则在特定情境下可能要求互不相容的行为。现有方法要么将规范形式化而丢失细节,要么通过行为测试而无法区分规范缺陷与模型行为差异。本文提出VeriSpec,直接审计规范文本,用大语言模型作为验证器,提取结构化规则、构建主题引导图聚类相关规则,并推理检测不一致。在OpenAI模型规范上提取405条规则,人工验证了5处不一致,精度达38.5%,每条验证不一致成本仅11.12美元,优于五个基线。
领域自然语言处理 / AI对齐与安全
适合谁读需要一定专业背景(了解大语言模型对齐、规范与推理)
核心贡献首次提出直接审计模型规范文本以检测不一致性的方法VeriSpec;利用LLM作为验证器,在保留自然语言细节的同时进行结构化推理,实现了高精度、低成本的规范缺陷发现。
关键数据在OpenAI模型规范上提取405条规则,人工验证5处不一致,精度38.5%,每条验证不一致成本11.12美元,优于五个基线。
推荐理由如果你关心AI安全与对齐,这篇工作教你如何在规范源头发现矛盾,避免模型行为出错,方法实用且成本低。
关键词["模型规范", "不一致性检测", "大语言模型验证器", "对齐评估", "规范审计"]

原文摘要

查看英文原文摘要

Model specifications define how large language models (LLMs) should behave, guiding alignment training, inference-time behavior, and evaluation. Yet these specifications may themselves contain defects: two individually reasonable principles may prescribe incompatible behavior when applied to the same situation, leaving no response that satisfies both. Detecting such inconsistencies is challenging. Formalizing natural-language specifications risks losing subtle distinctions, while behavior-based testing cannot reliably distinguish specification defects from differences in model behavior. We introduce VeriSpec, the first approach to directly detect inconsistencies in model specifications by auditing the specification text itself. Our key insight is to preserve the specification in natural language while using an LLM as a verifier. VeriSpec extracts structured, context-aware rules, constructs a topic-guided graph to cluster behaviorally related rules at the same authority level, and applies LLM-as-verifier reasoning to detect inconsistencies. Applying VeriSpec to the OpenAI Model Spec, we extract 405 rules and manually validate five inconsistencies, all reported to its developers, who responded positively and have initiated internal discussions. Compared with five baselines, VeriSpec identifies the most validated inconsistencies, achieves the highest precision (38.5%), and incurs the lowest cost per validated inconsistency ($11.12). These results establish direct specification auditing as a practical complement to behavioral alignment evaluation, catching defects at the source before they shape any model. The code is available at https://github.com/HIPREL-Group/VeriSpec.