Manuscript Offprint

arXiv:2610.01847

Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning

Zichen Xie, Mrigank Pawagi, Lize Shao, Yang Hu, Wenxi Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

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.

1 INTRODUCTION

Model specifications have become a central interface for describing how LLMs should behave. They state requirements for usefulness, style, safety, security, and legal compliance, and they guide alignment training, inference-time behavior, and evaluation (Bai et al., 2022; Guan et al., 2025; Wolfe, 2026). Some providers publish these requirements for external review: OpenAI provides the Model Spec (OpenAI, 2026c) and Anthropic provides Claude's Constitution (Anthropic, 2026a). We refer to such documents as model specs. As models and deployment expectations change, these documents are frequently updated (OpenAI, 2025a; Anthropic, 2026b), making systematic review increasingly important.

As model specs grow, they become difficult to audit manually. A principle may be clear in isolation yet prescribe incompatible behavior once another applicable principle enters the picture, and the interacting passages may appear in different sections, depend on authority levels, or be mediated by exceptions, examples, and other contextual instructions. Model specs also differ from conventional natural-language requirements: they govern open-ended interactions, so an inconsistency may surface only when several principles are applied to the same concrete situation (Zhang et al., 2025; Buyl et al., 2025).

Figure 1 shows an example inconsistency in the OpenAI Model Spec. One principle asks the model to leave unrequested parts of user-provided text unchanged during transformations; another requires

∗^{*}Equal contribution.

that code intended for execution be runnable. A request for explanatory comments with code-only output triggers both: preserving the code leaves a syntax error, while fixing the syntax changes content the user did not ask to change. Neither principle is defective on its own—the inconsistency appears only when both apply to the same situation.

A natural route to detecting such inconsistencies is to translate the specification into a formal language and apply a formal verifier (Merigoux et al., 2021; Giannakopoulou et al., 2020; Cosler et al., 2023). For model specs, however, translation is precisely where meaning is lost: the text leans on modal distinctions, e.g., may, must, should, and on permissions, defaults, exceptions, and soft obligations that formal languages flatten (Merigoux et al., 2021; Guitton et al., 2025). Automating the translation invites errors on exactly these distinctions, while performing it manually at the scale of a full specification requires substantial expert effort (Yen et al., 2021; Giannakopoulou et al., 2020; Cosler et al., 2023). Our key insight is to invert the approach: keep the specification in natural language and use an LLM as the verifier, so that the distinctions formalization discards become evidence the verifier reasons over.

To realize this insight, we make the text checkable by splitting the specification into rules, still in natural language, each recording a principle's source annotation, authority level, precondition, and postcondition. Two obstacles remain. First, inconsistency is a property of rules in context: worked examples, explicit exceptions, and trade-off guidance elsewhere in the specification routinely dissolve apparent conflicts between bare rule statements, so a verifier shown only the statements reports tensions the document already resolves. Second, verifying rules pairwise is quadratic in the rule inventory, and most pairs govern unrelated behavior, so nearly all verifier calls would be spent confirming that nothing interacts. We therefore attach to each rule the context needed to interpret it, and cluster behaviorally related rules—by the topics of behavior they govern—into compact analysis units at the same authority level (the specification's chain of command already adjudicates conflicts across levels). Each verifier call then reasons over a focused set of potentially interacting rules rather than a long document in which the relevant passages are easily lost (Liu et al., 2024).

We introduce VERISPEC, to our knowledge the first approach to directly detect defects in model specifications—in particular, inconsistencies among their stated principles. VERISPEC realizes the design above in three stages: context-aware rule extraction builds the rule inventory together with each rule's interpretive context; graph-based rule clustering forms same-authority analysis units over a topic-guided rule graph; and LLM-as-verifier detection reasons over each unit, reporting an inconsistency only when it can produce a concrete witness situation, explain why both rules apply, and show that their combined context does not resolve the conflict.

We evaluate VERISPEC on the OpenAI Model Spec (OpenAI, 2026c). VERISPEC extracts 405 rules, constructs 32 analysis units, and reports 13 candidate inconsistencies after five verifier attempts. Manual validation confirms five across legal constraints, code transformations, output-only tasks, fictional portrayals, and sycophantic reassurance. We reported all five to the OpenAI Model Spec developers, who responded positively and have initiated internal discussions. Compared with five baselines, VERISPEC validates the most inconsistencies, achieves the highest precision at 38.5%, and has the lowest cost per validated inconsistency at $11.12.

Figure

Figure 1: A running example of inconsistency in the OpenAI Model Spec.

In summary, this paper makes the following contributions:

• Formulation. We formalize specification inconsistency at the level of concrete situations, accounting for rule authority and surrounding context.

OpenAI Model SpecExtracted Rules
Avoid oversteppingUserThe assistant should help the developer and user by following explicit instructions and reasonably addressing implied intent [...] without overstepping2068^{2068}.Sometimes the assistant is asked to “transform” text: [...] Given such a task, the assistant should not change any aspects of the text that the user or developer didn't ask to be changed92bt^{92bt}.Avoid factual, reasoning, and formatting errorsUserIf parts of the response are in a specific format (e.g., Markdown, code, JSON, LaTeX), the assistant should adhere to the specifications of that formatew53^{ew53}.In particular, generated code for functional use should typically be executable with no syntax errorse9ny^{e9ny}.t: 92bt A: userP: Given a text transformation taskQ: Do not change aspects of the text the user or developer did not ask to be changedC: “...leave the code intact...”T: transformation_fidelityt: e9ny A: userP: Generating code for functional useQ: Ensure the code is executable with no syntax errorsC: “...adhere to...that format”T: output_format_adherence

Figure 2: Illustration of principles (highlighted on the left) and their conversion to rules (on the right). t denotes the annotation on each principle, with annotations we added highlighted in green. A denotes the authority level, P and Q respectively denote the precondition and the postcondition, C denotes the context needed to interpret the rule, and T denotes the topic the rule is assigned.

  • Approach. We introduce VERISPEC, to our knowledge the first approach to directly detect inconsistencies in natural-language model specifications through context-aware rule extraction, graph-based clustering, and LLM-as-verifier reasoning.

  • Evaluation. We identify five validated inconsistencies in the OpenAI Model Spec and report them to its developers. Comparisons against five baselines demonstrate the effectiveness of VERISPEC, which achieves the highest precision and the lowest cost per validated inconsistency.

References (20)