arXiv:2610.38687cs.AIOct 2026

Manuscript Offprint

arXiv:2610.38687

Deogen: Automatic Benchmark Generation for Reasoning over Policies

Sam Kouteili, William Liang, Keeran Murray, Adriana Zhou, Ramesh Viswanathan, Scott Shapiro, Ruzica Piskac

Abstract

Language models are increasingly being deployed in regulated settings, where a model must apply given rules to the facts of a situation to determine a verdict. Benchmarking this capability, known as deontic reasoning, remains a costly and manual process, with existing datasets largely hand-crafted. In this paper, we present DEOGEN, a scalable, automatic, and parametrizable benchmark generator for deontic reasoning. By autoformalizing policy rules to first-order logic, we can construct decision trees that capture possible outcome trajectories. Each path down a tree becomes a benchmark entry, with each tree producing combinatorially many entries relative to tree depth. Paths ending at a leaf entail a verdict, while non-leaf paths measure a model's ability to abstain when presented with insufficient information. Evaluations show frontier models return the correct verdict 89–92% of the time. Notably, performance degrades (22–40% correct) on entries without sufficient information to claim a verdict, even with explicit instructions to abstain in such cases. In all, DEOGEN presents an automatic, scalable, and parametric method for generating deontic reasoning benchmarks.

1 Introduction

Large Language Models (LLMs) are becoming ever-present, with adoption rising in highly-regulated domains such as financial compliance (Shin, Kim, and Shin 2023), insurance claims processing (Lieberthal et al. 2026), and pharmaceuticals (Thirunavukarasu et al. 2023). While model reasoning has notably improved, hallucinations remain a problem, with errors in such high-stakes domains leading to potentially catastrophic outcomes: OpenAI models deployed to transcribe patient visits in hospitals were shown to fabricate medications and clinical details, corrupting patient records (Koenecke et al. 2024). Moreover, recent rulings in New York have begun holding model users accountable for generated outputs (United States District Court for the Southern District of New York 2023), highlighting the dangers when the models do not properly apply the rules.

To assess and train model capabilities to correctly apply the rules, we need benchmarks. Several datasets exist examining how models apply rules to situational facts (Sun, Cohen, and Salakhutdinov 2022; Zhou et al. 2025; Dou et al. 2026). These datasets broadly fit under the category of deontic reasoning benchmarks. Deontic reasoning concerns reasoning about normative concepts such as obligations, permissions,

and prohibitions. Specifically, it involves applying rules to factual situations to determine a verdict. In these benchmarks, models are typically asked to interpret a collection of rules, combine them with a factual scenario, and determine whether a particular action or outcome is compliant with the governing norms.

Existing benchmarks are typically hand-crafted or aggregated from a pool of cases. This creates two fundamental limitations. First, as models improve and data increasingly appears during training, these benchmarks saturate, with no real scalable means of creating new entries. Recent works demonstrate this trend, with agents achieving 99.2% soundness on ConditionalQA (An et al. 2025). Second, benchmark construction and correctness are difficult to verify. Human annotation is expensive, time-consuming, and error-prone, while LLM-generated samples can also contain incorrect labels or subtle logical inconsistencies (Gema et al. 2025).

To address these limitations, we introduce DEOGEN, an automatic benchmark generator for deontic reasoning. In recent years, we have witnessed several examples of automated benchmark generation, primarily for domains with rich formal structure such as mathematics and code (Liu et al. 2025; Shao et al. 2024). In these settings, benchmarks can often be generated automatically as the problem is formally defined, and thus symbolic methods can enumerate reasoning tasks for both mathematical problem solving and code generation. In contrast, deontic reasoning lacks such a generator because its source material is unstructured, natural language rules, offering no symbolic handle for automatically generating benchmarks. Autoformalization presents a path forward: a growing body of work automatically translates natural-language statements into formal logic (An et al. 2025; Wu et al. 2022; Cosler et al. 2023). Once a policy is autoformalized, we can systematically enumerate fact scenarios and formally deduce the verdict each one entails, so ground-truth labels no longer need to be manually annotated.

Our tool leverages autoformalization to support benchmark enumeration. The example in Figure 1 provides a high-level illustration of the underlying algorithm. Given a simple natural language policy, a car is authorized to park if it displays a valid permit and is registered in the area, we first autoformalize the rules to a symbolic representation: (validPermit∧localRegistered)  ⟹  authPark(validPermit \land localRegistered) \implies authPark. This formalization is then used to construct decision trees.

Figure

(a) Natural language policy

(b) Decision tree with verdict authPark, compiled from the SMT translation of (a),

(c) The benchmarks generated from the tree in (b)

Figure 1: DEOGEN pipeline, illustrating transformation from text to a decision structure and its tabular representation.

Assuming that we are interested in the scenarios under which a car is authorized to park, Figure 1b shows the corresponding decision tree. We efficiently generate benchmark scenarios by enumerating the paths in the decision tree: if validPermit and localRegistered are true, then authPark entails true; if validPermit is false, then authPark must be false. This way we can also consider scenarios where the verdict is not explicitly entailed. For example if we only know that the car has a valid permit (validPermit=true), we cannot assert whether it is authorized to park. This allows us to evaluate a model's ability to correctly abstain under insufficient information.

DEOGEN offers three key advantages over existing deontic reasoning benchmarks. (1) Automatic: Generating new benchmark entries simply requires selecting new paths through the decision tree. (2) Scalable: Because the number of decision tree paths grows combinatorially with tree depth, a single source document can produce benchmark suites orders of magnitude larger than manually constructed counterparts. (3) Parametric: Benchmark instances can be generated by controlling the depth and diversity of the selected decision tree paths.

We run DEOGEN on four policies: sections of the U.S. IRS tax code, an insurance cafeteria plan, a code of coverage, and a faculty hiring handbook, generating 451,047 benchmark entries. We evaluate frontier (Claude Sonnet 5, GPT-5.5) and open-source (Qwen3.6, Gemma 4) models on a sample of 1,639 entries. On questions with determined verdicts, the models score 75.1–92.5% correctness, showing a need to improve model deontic reasoning for high-stakes workflows. When the facts stop short of a verdict, so the correct answer is to abstain, the models collapse to 4.0–40.0%. This is alarming in domains where not enough information is often a real outcome (imagine a layperson asking a chatbot if they are compliant with tax laws). There exists a line of work investigating model abstention (Wen et al. 2025), finding that on regulatory questions, sycophancy and non-abstention co-occur (Dahl et al. 2024). Our finding adds to this literature by not testing epistemic gaps (facts the model never knew), rather isolating logical underdetermination: the policy is fully in context, the facts just don't entail a verdict.

References (27)