Manuscript Offprint
arXiv:2610.38687Deogen: Automatic Benchmark Generation for Reasoning over Policies
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: . This formalization is then used to construct decision trees.

(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.
2.1 Boolean Satisfiability
Boolean satisfiability is the problem of deciding whether a logical formula can be made true. Its basic building blocks
are atomic propositions, variables that are either true or false, each standing for an elementary statement (e.g., the vehicle displays a permit). When solving, each atomic proposition requires an assignment, which fixes a truth value for every variable. A formula is satisfiable if some assignment makes it true, and a set of formulas entails , written , if every assignment satisfying all of also satisfies . We work with quantifier-free formulas built from atomic propositions using the Boolean connectives .
Satisfiability Modulo Theories (SMT) generalizes this by letting atoms be constraints interpreted by theories such as integer arithmetic, e.g., . We write formulas in the SMT-LIB standard (Barrett, Fontaine, and Tinelli 2017) and check them with the Z3 solver (de Moura and Björner 2008).
2.2 Deontic Reasoning as Entailment
We model a policy as a finite set of such formulas, one per clause of the source text. A policy typically governs several determinations, each corresponding to an atom of . Any of them can serve as the verdict atom, written verdict. DEOGEN constructs one decision tree per chosen verdict, so a single policy yields as many trees, and thus benchmark families, as it has determinations. All subsequent definitions are relative to a fixed choice of verdict atom. A fact pattern is a finite set of facts stated over the atoms of (e.g., ). We require to be consistent; the verdict of the policy on the facts is then well defined:
The third case, not enough information (NEI), arises whenever the facts leave relevant clauses undetermined. The task we benchmark presents a model with natural-language renderings of and and asks it to recover . Entries with test a model's ability to abstain.
2.3 Policy Decision Trees
Not to be confused with CART learned classifiers (Krzywnski and Altman 2017), policy decision trees are compiled logical reformulations of a policy.
Definition 1 (Policy decision tree). A policy decision tree for is a finite rooted tree in which (i) each internal node asks about one condition appearing in ; (ii) the node's outgoing edges cover the possible answers to that condition, exactly one of which can hold (Yes/No for a Boolean condition, one edge per value otherwise); and (iii) each leaf is labeled with a verdict, Yes or No.
A path runs from the root to a node (not necessarily a leaf); the answers along its edges form a fact pattern, which we denote . Two properties tie the tree to the policy:
Definition 2 (Soundness and reducedness). is sound for if every root-to-leaf path entails its leaf's label, i.e., equals the label. is reduced for if every non-leaf path satisfies .
In a sound and reduced tree, every path is a fact pattern whose ground-truth label is known. Paths reaching a leaf entail that leaf's verdict, and every shorter path yields NEI.
3 Methodology
DeOGEN runs in three stages: the policy is formalized as SMT formulas (§3.1), the formulas are compiled into a policy decision tree (§3.2), and each tree path is certified and rendered as a benchmark entry (§3.3).
3.1 Autoformalizing Policies
DeOGEN consumes an SMT formalization of the policy, generated by an autoformalizer. The formalization must carry two pieces of metadata for each clause: the source-text fragment it translates and that fragment's section label (e.g., §129(c)(1)). In our experiments, the formalizer is a proprietary translator from policy text to SMT, with each specification additionally reviewed by hand. Everything downstream is automatic once the SMT is confirmed.
3.2 Compiling Policy Decision Trees
Given SMT formula and a verdict atom , we construct a policy decision tree. Z3 first enumerates all assignments of the decision variables consistent with . The tree is built top-down over this assignment set: each node branches on one variable, chosen greedily to minimize an estimated subtree depth. A variable whose value cannot change the verdict is pruned. Soundness and reducedness (Definition 2) are checked per path in §3.3. Two aspects need care.
-
Derived conditions. A condition that defines in terms of other conditions, such as whether an expense in the AFL plan is “eligible” under IRS §213(d), is resolved by a subtree over its defining conditions (fig. 2). When generating the benchmark entry as text, the facts of the subtree walk are noted, with a pre- and post-amble stating we are entering context regarding a subtree verdict.
-
Numeric variables. Assignments cannot range over integer or real domains. Instead, each numeric variable's domain is partitioned into the regions induced by the threshold atoms of , and Z3 model enumeration selects one representative per region (see fig. 2). Numerics related by a shared atom, such as , are enumerated jointly so that no path asserts an impossible combination, and any condition whose variables are already fixed is evaluated by substitution. Every path is therefore consistent with its own numeric choices, ensuring consistency of per Eq. 1.

Figure 2: Fragment of the AFL medical-expense tree. The plan document admits long-term-care insurance premiums only when they are eligible under the IRS Code, so the qualified-contract branch expands directly into a subtree compiled from §213(d)(10). Numeric values are handled by constructing trees that segment the number bins.
3.3 Generating Benchmark Entries
With the policy decision tree, we can now conduct walks to collect benchmark entries, with the chosen edge labels the facts of the situation. Before committing a benchmark entry, however, the path needs to be certified for two conditions:
-
Inconsistent facts. Subtrees are compiled independently, so they can combine inconsistent facts. The qualifying-child clause of §152(c) and the qualifying-relative clause of §152(d) each ask, in their own fragment, how the person is related to the taxpayer; branched independently, a path can call the person a child in one answer and a sibling in the other.
-
Unentailed labels. The facts are consistent but do not force the recorded verdict, with multiple potential outcomes. For example, with university funding, years of research experience, and a PhD, the Yale Hiring Fellows handbook states that this person can be hired as an Associate Research Scholar, Research Scholar, and Postdoctoral Associate. The appointmentType tree, however, assumes Associate Research Scholar as the only correct entailment.
DeOGEN checks for these two failure modes by certifying every path. A definite entry with fact pattern and recorded label is released only if we prove the following two conditions, each relevant to the respective failure modes:
the second check discharged as the unsatisfiability of . An NEI entry is released only if Z3 finds two distinct values with both and satisfiable, which by Eq. 1 is exactly .
Certified entries are rendered as a numbered fact list (Figure 1c) using the metadata phrasings of §3.1, and each entry carries the section labels of the provisions whose formulas involve its facts, allowing us to evaluate model citations.
| Verdict Questions | Tree Depth | Total possible entries | Evaluation set | ||
|---|---|---|---|---|---|
| Def. | NEI | Def. | NEI | ||
| IRS Code (§§105(b), 125, 129, 152, 213; 9,156 words, 109 assertions) | |||||
| Is this individual a "dependent" of the taxpayer under §152?(isDependent) | 25 | 2,125 | 2,048 | 100 | 100 |
| Is the person a qualifying child, as defined in §152(c)?(isQualifyingChild) | 16 | 144 | 156 | 61 | 54 |
| Is this person a qualifying relative, as defined in §152(d)?(isQualifyingRelative) | 16 | 355 | 311 | 96 | 63 |
| Does this expense qualify as "medical care" under §213(d)?(isMedicalCare) | 12 | 56 | 40 | 45 | 30 |
| Is this expense allowed as a deduction under §213(a)?(isDeductible) | 40 | 59,922 | 61,937 | 100 | 100 |
| Is this expense reimbursable from a Health FSA (excludable from gross income under §105(b))?(isMedicalExcludedGrossIncome) | 36 | 12,308 | 13,445 | 100 | 100 |
| Is this a dependent care assistance program as defined in §129(d)?(isProgramDescribedinDDCA) | 7 | 7 | 9 | 7 | 8 |
| AFL Plan Document (14,527 words, 238 assertions) | |||||
| Is this an eligible medical expense as defined in Section 8.04?(EligibleMedicalExpense_8_04) | 44 | 163,870 | 78,193 | 100 | 100 |
| Is this an eligible dependent care expense as defined in Section 9.04(c)?(EligibleDependentCareExpense_9_04) | 32 | 12,547 | 15,612 | 100 | 100 |
| Is this person a dependent for purposes of the Dependent Care Reimbursement Plan (Section 9.04(a))?(isDependentUnderSectionIX) | 27 | 12,420 | 15,465 | 100 | 100 |
| AFL Certificate of Coverage (15,051 words, 1,190 assertions) | |||||
| Is this person a dependent? (dependentInsured) | 9 | 33 | 31 | 33 | 29 |
| Yale Hiring Fellows Policy (2,828 words, 11 assertions) | |||||
| What is the type of appointment? (appointmentType) | 5 | 8 | 5 | 8 | 5 |
| Total | 263,795 | 187,252 | 850 | 789 | |
Table 1: Benchmark statistics. For each determination: maximum decision-tree depth; the population of possible benchmark entries: definite entries (root-to-leaf paths) and NEI entries (root-to-internal-node paths). For the evaluation set, we draw up to 100 verdict-reaching + 100 NEI determinations, unless generated trees do not contain so many paths.
3.4 Parametric Selection
Each benchmark entry is annotated with its verdict, its fact count, and its signature: the set of variables questioned along its path (not including the answer). These annotations allow us to parametrize the distribution of our generated entries:
-
Fact count. The number of facts a model must integrate.
-
Cut depth. Sets what NEI entries withhold: a prefix cut near the root leaves most of the determination open, while a cut just above a leaf omits a single fact.
-
The signature defines path uniqueness: entries sharing a signature pair ask the same questions, differing only in answers or numeric values along the way, so they are variants of one class. Keeping at most k entries per class yields structurally distinct benchmark sets.
4 Experimental Setup
We generate benchmarks from four policies:
-
IRS Code (§§105(b), 125, 129, 152, 213). Statutory text governing cafeteria benefit plans. Its definitions and provisions chain across sections. Whether an expense is reimbursable under §105(b) turns on whether it is medical care under §213(d), and the exclusions of §§105(b) and 129 both turn on who counts as a dependent under §152.
-
AFL Plan Document. A cafeteria plan document from insurance carrier American Fidelity that lets employees pick among benefits options. The plan is explicitly contingent on the IRS Code, so its eligibility determinations incorporate the IRS sections by reference.
-
AFL Certificate of Coverage. An insurance certificate from the same carrier, describing what specific insurance policies actually cover.
-
Yale Hiring Fellows Policy. A university hiring policy whose verdict is an appointment type drawn from an enumeration rather than a Yes/No answer.
Any variable in the formalization can serve as a verdict atom. We take as verdicts twelve determinations across the four policies the source texts themselves pose as questions. These determinations call one another as the sections do: dependent (§152) resolves through qualifying child (§152(c)) and qualifying relative (§152(d)); the health-FSA exclusion (§105(b)) opens both medical care (§213(d)) and dependent (§152); the dependent-care exclusion (§129) invokes §152. The AFL plan document is predicated on the IRS Code: eligible medical expense opens §105(b) and §213(d), and the dependent-care determinations open §129 and §152.
Table 1 reports, per verdict atom, the tree depth and the certified populations of definite and NEI entries, pruned as per the two reductions of §3.3. In all, DEOGEN generated 263,795 definite and 187,252 NEI entries, post-certification. On the plan-document medical-expense tree pruning eliminated 31,460 (question-set, verdict) classes with jointly inconsistent facts. On Fellows, three leaf paths were pruned whose eligibility criteria entail several appointment types at once.
From each population, we draw up to 100 definite and 100 NEI entries, sampling across shown-fact-count buckets (1–10, 11–20, 21–30, 31–40). When a population is smaller than the target, the evaluation set is the full certi-
| Model | IRS Code | AFL | Fellows | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Def. | NEI | Def. | NEI | Def. | NEI | Def. | NEI | |
| Claude Sonnet 5 | 91.0 | 32.1 | 93.7 | 9.4 | 100.0 | 60.0 | 92.1 | 22.8 |
| GPT-5.5 | 88.3 | 55.8 | 91.3 | 19.1 | 62.5 | 80.0 | 89.2 | 40.0 |
| Qwen3.6-35B-A3B | 83.9 | 5.9 | 92.2 | 1.5 | 87.5 | 0.0 | 87.2 | 4.0 |
| Gemma 4 31B | 90.6 | 34.5 | 95.5 | 15.2 | 87.5 | 80.0 | 92.5 | 26.7 |
| Gemma 4 E4B | 71.3 | 22.9 | 80.5 | 11.6 | 87.5 | 20.0 | 75.1 | 18.2 |
Table 2: Accuracy (%) on definite scenarios (Def.) and on underdetermined scenarios (NEI), whose keyed answer is Not enough information, per policy and averaged over all entries (AFL aggregates the plan document and certificate). Zero-shot; deterministic grading. Binomial 95% CIs are at most ±3.5 points; every definite–NEI gap is significant (p<0.001, two-proportion z-tests), the Gemma 4 31B–Claude definite gap is not.
fied population. For large trees we additionally cap structural repetition, choosing at most one entry per signature class, where a signature is the set of questions a path asks, so entries asking the same questions toward the same verdict, differing only in the answers such as numeric values along the way, appear once. On the health-FSA tree (verdict isMedicalExcludedGrossIncome) this cap removes 66% of certified paths as variants of a path kept.
We grade by asking models to choose the verdict from a stated set of admissible answers, with “Not enough information” always among them. For the IRS and plan-document policies, each entry also carries the section labels of the provisions its facts touch (§3.1); we grade cited provisions recall against these labels, crediting a citation of an ancestor provision at half weight, and report precision alongside. The certificate and hiring policies have no internal section labels, so citation grading covers the first two policies.
The frontier models (Claude Sonnet 5, GPT-5.5) are queried through their public APIs with extended reasoning disabled; the open-weight models are served with vLLM on a single NVIDIA H200 GPU of a university compute cluster and decoded greedily (temperature 0).
Manual Amendments. Upon autoformalizing the source policies, we found that certain benchmark clauses were logically correct, but marginally disjoint from other clauses. For example, in AFL clauses 152(c)(1)(B) and 9.04(c), both covered the abode of an individual. “Same principal place of abode as the taxpayer for more than one-half of the taxable year” and “same principal place of abode as the Participant for more than half of the taxable year.” The autoformalization logic was correct; however, these two sections were never linked. We therefore manually add to the SMT formalizations bridges between variables that are assumed by the source policy. During manual review, we identified 33 distinct bridge asserts in the IRS and AFL formalizations.
5 Evaluation
We evaluate two frontier (Claude Sonnet 5, GPT-5.5) and three open-source (Gemma 4 31B, Gemma 4 E4B, Qwen3.6-35B-A3B) models on our generated dataset of 1,639 entries spanning the four source policy texts. Table 2 displays the primary results.
On definite scenarios, the models cluster in a band that is competent but arguably insufficient for high-stakes work:

Figure 3: Accuracy as a function of the number of facts shown. Path depth acts as a difficulty dial.
four of the five score an average between 87.2% and 92.5%, with the small Gemma 4 E4B trailing at 75.1%. Notably, the best model in the column is not a frontier model, but open-weight Gemma 4 31B (92.5%), beating Claude Sonnet 5 (92.1%) and GPT-5.5 (89.2%). On underdetermined scenarios, performance is markedly worse: averages collapse from 87.2–92.5% to 4.0–40.0%. GPT-5.5 is the strongest abstainer at 40.0%. Claude Sonnet 5, the stronger frontier model on definite entries, drops to 22.8%, roughly half GPT-5.5's rate and below Gemma 4 31B (26.7%). Qwen3.6-35B-A3B barely abstains at all (4.0% overall and 0.0% on the Fellows), committing a verdict in nearly all scenarios.
Accuracy by fact count. Figure 3 evaluates model performance over the number of facts presented. Across both determined and non-determined NEI verdicts, we see model performance generally decrease with longer chains. This decrease is more pronounced for NEI verdicts—we posit this happens due to the models assuming that more facts more likely implies a complete scenario. Qualitatively analyzing a sample of 50 output traces per model, we find that at longer depth, models still reason down the provisions and identify the conditions the facts never address, but now satisfy them by default: Claude Sonnet 5 on a length 38 AFL entry, told only that a person has not provided half of her own support, concludes this “implies the taxpayer likely provides the support” and Gemma 4 31B lists the residency and AGI facts for §152(c)(4), notes they are absent, and commits regardless.

Figure 4: Error decomposition across zero-shot evaluations on the binary-verdict policies (IRS and AFL; Fellows excluded). Bars show the distribution of outcomes within definite ( per model) and underdetermined ( per model) scenarios. Definite-case errors are divided into wrong verdicts and spurious abstentions; underdetermined-case errors are unwarranted commitments to a verdict. One Qwen3.6 NEI response was unparsed.
Failure modes. We further analyze failure modes across definite and underdetermined scenarios. Figure 4 shows that across definite scenarios, every model is more likely to claim an incorrect verdict than to abstain spuriously. In the under-determined case, four of the five models are markedly more likely to claim “yes” than “no” on the binary verdicts of IRS and AFL. Among wrong commitments, 72–83% answer Yes, with GPT-5.5 the outlier answering No on 56% of its commitments: where the other models treat an unaddressed condition as satisfied, GPT-5.5 treats it as failed. The abstention trends of Table 2 are also reflected here, in that models that perform worse on NEI entries, such as Claude Sonnet 5 and Qwen3.6, generally abstain less on definite scenarios too. This suggests that abstention behavior is tied to certain models with a higher or lower propensity to do so.
Citations. Alongside verdicts, we also asked models to cite the relevant clauses. Table 3 presents our findings, showing that models cite precisely but not completely. What models cite is almost always relevant (precision 0.82–0.94), yet even the best model surfaces under a third of the provisions its verdict depends on (recall 0.293 for Claude Sonnet 5, falling to 0.162 for Gemma 4 E4B). Models that perform weaker exhibit higher precision but lower recall, suggesting that weaker models retreat to a few safe, obviously relevant citations. This is consistent with NEI findings, as models that do not visit the provisions a determination depends on cannot notice that an unvisited branch is unresolved.
Few-shot prompting. As an ablation, we apply few-shot prompting, where we show the model a sample policy and all the possible verdict paths. Specifically, we present the example benchmark entries from Figure 1c. Despite always listing all the possible verdicts, including NEI, we wanted to examine whether explicitly demonstrating desired behavior,
| Model | Recall | Precision |
|---|---|---|
| Claude Sonnet 5 | 0.293 | 0.824 |
| GPT-5.5 | 0.257 | 0.852 |
| Qwen3.6-35B-A3B | 0.194 | 0.935 |
| Gemma 4 31B | 0.194 | 0.884 |
| Gemma 4 E4B | 0.162 | 0.912 |
Table 3: Citation grounding against the provision-level gold for AFL and IRS: recall (did the model cite every provision its scenario depends on) and precision (were the cited provisions correct).
| Model | Zero-shot | Few-shot | ||
|---|---|---|---|---|
| Def. | NEI | Def. | NEI | |
| Claude Sonnet 5 | 92.1 | 22.8 | 91.4 | 35.7 |
| GPT-5.5 | 89.2 | 40.0 | 87.1 | 51.1 |
| Qwen3.6-35B-A3B | 87.2 | 4.0 | 90.0 | 1.5 |
| Gemma 4 31B | 92.5 | 26.7 | 92.5 | 36.4 |
| Gemma 4 E4B | 75.1 | 18.2 | 74.0 | 22.3 |
Table 4: Few-shot ablation, averaged over all entries: worked examples including an NEI demonstration are drawn from a held-out determination. Demonstrating abstentions generally improves NEI performance; the 10–13-point gains are significant ().
in particular for NEI cases, enabled models to correctly reason. Table 4 shows it helps, but only partially. For three of the five models, NEI accuracy rises by 10–13 points (Claude Sonnet 5 22.8% to 35.7%, GPT-5.5 40.0% to 51.1%, Gemma 4 31B 26.7% to 36.4%), with no significant change in definite verdicts. Here, the best few-shot abstainer still misses half of its NEI entries. While in-context examples may shift a model's willingness to abstain, there remains a broader inability to track the provisions a verdict depends on.
Human evaluation. When given a representative sample of benchmark entries spanning all four source policy texts, two non-expert (undergraduates with no special legal training) human annotators achieved only 32% accuracy, as shown in Table 5. Inter-annotator agreement was also low at 52%. The human annotators cited unfamiliarity with legal code and source policy as main bottlenecks for accuracy. Underdetermined-case errors consisted of unwarranted commitment to Yes 45% of the time and to No 25% of the time. Correct abstention was achieved in 30% of scenarios, which is an overall similar split to Claude Sonnet 5 and Gemma 4 31B. This suggests that both human annotators and models are biased towards Yes when committing incorrectly.
Closed-world formalization. In their evaluation, human annotators raised issues with some benchmark entries which used implausible ages, such as cases where a dependent was not of legal age but had a spouse, stating that it was illegal for an underage person to be married. There were also benchmark entries where a dependent could be both the individual's spouse and their child. While these scenarios are improbable in the real world, they are logically permissible
| Measure | Result |
|---|---|
| Human-gold label agreement (n = 50, 2 annotators) | 32 % |
| NL rendering judged faithful to facts | 92 % |
| Inter-annotator agreement | 52 % |
Table 5: Human validity study on a stratified sample. Annotators answer from the natural-language scenario and policy alone; they struggle to recover the gold label, yet judge the renderings faithful.

Figure 5: Accuracy across zero-shot scenarios in AFL and IRS which included age determinations (three IRS, two AFL). Every model performs worse on atypical-age scenarios (n = 138) than typical ones (n = 777).
per the source document. The autoformalization-derived answers are faithful to only the source policy, whereas human annotators brought in normative assumptions.
We assume a closed world environment and do not prohibit such cases during the generation process, attempting to isolate deontic reasoning and policy adherence. In our model prompt, we tell the models explicitly to only consider the source texts and to not assume external judgment. We choose to not encode normative world assumptions into the policy formalizations as additional bridges because we felt incorporating other intuitions without formalizing the additional laws themselves violates consistency. Our autoformalization thus remains unaffected by normative assumptions.
In Figure 5, we ablate for such situations. We segment entries that considered age determinations into real-world typical and atypical scenarios, where we deem whether or not a scenario is realistically plausible. 15% of benchmark entries in IRS and AFL that involved age information fell into the atypical age category. The figure shows that across all models, accuracy decreased in atypical age scenarios, with a 2.3–17.1 percentage-point loss. This is despite the fact that every model, when faced with atypical age facts, often noted them in their response and explicitly stated they would ignore it. GPT-5.5, which did the best in typical age scenarios (70.7% accuracy, compared to 63.2% for Gemma 4 31B, the second-best) experienced the largest decrease of 17.1 points in atypical age scenario accuracy. We posit that this decrease in accuracy is due to inherent normative world assumptions the models hold, and find this an insightful metric to recognize model propensity to ground in prior knowledge of the world.
6 Related Work
Law and logic. There exists a long tradition of logic-based legal modeling (Prakken and Sartor 2015): Four decades ago, the British Nationality Act was implemented as an executable logic program (Sergot et al. 1986). Later work applies the same idea to smart contracts (Luu et al. 2016; Bhargavan et al. 2016) and to purpose-built languages like Catala, which compile statutory text directly into verifiable code (Merigoux, Chataing, and Protzenko 2021). In each of these systems, a domain expert hand-writes the logic, so correctness is provable but coverage is limited to what has been manually encoded. DeOGEN autoformalizes policies, bypassing much of the manual domain-expert labour.
Deontic Reasoning Benchmarks. CONDITIONALQA was the first benchmark to test whether a policy document supports a claim, or that the claim instead depends on conditions not stated (Sun, Cohen, and Salakhutdinov 2022). RULEBENCH and RULEARENA generalize this to explicit rule application, spanning domains from content moderation and relation extraction to real-world scenarios like airline baggage fees and tax computation (Sun et al. 2024; Zhou et al. 2025). Recently, DEONTICBENCH unifies several such domains (taxes, immigration, housing, airline policy) under a single benchmark (Dou et al. 2026). These benchmarks establish deontic reasoning as a measurable capability. Each, however, is fixed and manually drawn.
Autoformalization Autoformalization is the task of translating natural language into a formal representation (Wu et al. 2022). It has been studied most extensively for mathematics (Jiang et al. 2023; Azerbayev et al. 2023) and formal specifications (Cosler et al. 2023), and recently for policy documents, where LLMs translate regulatory clauses into logical rules checked by a solver (An et al. 2025). Beyond translation itself, formalization now serves both ends of the LLM pipeline. At test time it acts as a checker: generated code is verified against formal annotations (Sun et al. 2023), and formalized policies gate model answers at inference (An et al. 2025). At training time it acts as a reward oracle: formally checkable problems supply the verifiable signals behind reasoning-focused reinforcement learning (Shao et al. 2024; DeepSeek-AI 2025; Liu et al. 2025).
7 Conclusion
We introduced DeOGEN, an automatic, scalable, and parametric benchmark generator for deontic reasoning. DeOGEN compiles autoformalized policies into decision trees, encoding potential outcome trajectories for a given verdict. Each path is certified for consistency and entailment, before being added as a benchmark entry. Paths to leaves derive determined benchmark entries, whereas paths to internal nodes do not explicitly entail a verdict, testing model abstention. DeOGEN also contains functionality for handling integer datatypes, as well as handling intra-policy dependence. Across four rule sets, DeOGEN generated 263,795 definite and 187,252 NEI entries. On a sample of 1,639 entries, models averaged 75.1–92.5% correctness on determined verdicts, with a steep decline to 4.0–40.0% on NEI verdicts.
References
An, C.; Bayless, S.; Buliani, S.; Cassel, D.; Cook, B.; Clough, D.; Delmas, R.; Diallo, N.; Erata, F.; Feng, N.; Giannakopoulou, D.; Goel, A.; Gokhale, A.; Hendrix, J.; Heorhiadi, V.; Hudak, M.; Jovanović, D.; Kent, A. M.; Kiesler-Reiter, B.; Kuna, J. J.; Labai, N.; Lilien, J.; Raghunathan, D.; Rakamarić, Z.; Razavi, N.; Tautschnig, M.; Torkamani, A.; Weir, N.; Whalen, M. W.; and Yao, J. 2025. A Neurosymbolic Approach to Natural Language Formalization and Verification. arXiv preprint arXiv:2511.09008.
Azerbayev, Z.; Piotrowski, B.; Schoelkopf, H.; Ayers, E. W.; Radev, D.; and Avigad, J. 2023. ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematics. arXiv preprint arXiv:2302.12433.
Barrett, C.; Fontaine, P.; and Tinelli, C. 2017. The SMT-LIB Standard: Version 2.6. Technical report, Department of Computer Science, The University of Iowa. Available at www.SMT-LIB.org.
Bhargavan, K.; et al. 2016. Formal Verification of Smart Contracts: Short Paper. In Proceedings of the 2016 ACM Workshop on Programming Languages and Analysis for Security (PLAS), 91–96.
Cosler, M.; Hahn, C.; Mendoza, D.; Schmitt, F.; and Tripel, C. 2023. nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Models. In International Conference on Computer Aided Verification (CAV).
Dahl, M.; Magesh, V.; Suzgun, M.; and Ho, D. E. 2024. Large Legal Fictions: Profiling Legal Hallucinations in Large Language Models. Journal of Legal Analysis, 16(1): 64–93.
de Moura, L.; and Bjørner, N. 2008. Z3: An Efficient SMT Solver. In Tools and Algorithms for the Construction and Analysis of Systems (TACAS), volume 4963 of Lecture Notes in Computer Science, 337–340.
DeepSeek-AI. 2025. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv preprint arXiv:2501.12948.
Dou, G.; Brena, L.; Deo, A.; Jurayj, W.; Zhang, J.; Holzenberger, N.; and Van Durme, B. 2026. DeonticBench: A Benchmark for Reasoning over Rules. arXiv preprint arXiv:2604.04443.
Gema, A. P.; Leang, J. O. J.; Hong, G.; Devoto, A.; Mancino, A. C. M.; Saxena, R.; He, X.; Zhao, Y.; Du, X.; Madani, M. R. G.; Barale, C.; McHardy, R.; Harris, J.; Kaddour, J.; van Krieken, E.; and Minervini, P. 2025. Are We Done with MMLU? arXiv:2406.04127.
Jiang, A. Q.; Welleck, S.; Zhou, J. P.; Li, W.; Liu, J.; Jamnik, M.; Lacroix, T.; Wu, Y.; and Lample, G. 2023. Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs. In International Conference on Learning Representations (ICLR).
Koenecke, A.; Choi, A. S. G.; Mei, K. X.; Schellmann, H.; and Sloane, M. 2024. Careless Whisper: Speech-to-Text Hallucination Harms. In Proceedings of the 2024 ACM Conference on Fairness, Accountability, and Transparency (FAccT). Krzywinski, M.; and Altman, N. 2017. Classification and regression trees. Nature Methods, 14(8): 757–758.
Lieberthal, R. D.; Tran, R.; Phan, V.; Singh, J.; and Sottung, E. 2026. Leveraging LLMs for Unstructured Claims Data Analysis. arXiv preprint arXiv:2606.06089.
Liu, H.; Li, G.; Li, J.; Zhu, H.; Zhang, K.; and Dong, Y. 2025. SATURN: SAT-based Reinforcement Learning to Unleash LLMs Reasoning. In Advances in Neural Information Processing Systems 38 (NeurIPS 2025). Spotlight. arXiv:2505.16368.
Luu, L.; Chu, D.-H.; Olickel, H.; Saxena, P.; and Hobor, A. 2016. Making Smart Contracts Smarter. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (CCS), 254–269.
Merigoux, D.; Chataing, N.; and Protzenko, J. 2021. Catala: A Programming Language for the Law. Proceedings of the ACM on Programming Languages (PACMPL), 5(ICFP): 77:1–77:29.
Prakken, H.; and Sartor, G. 2015. Law and Logic: A Review from an Argumentation Perspective. Artificial Intelligence, 227: 214–245.
Sergot, M. J.; Sadri, F.; Kowalski, R. A.; Kriwaczek, F.; Hammond, P.; and Cory, H. T. 1986. The British Nationality Act as a Logic Program. Communications of the ACM, 29(5): 370–386.
Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y. K.; Wu, Y.; and Guo, D. 2024. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300.
Shin, M.; Kim, J.; and Shin, J. 2023. The Adoption and Efficacy of Large Language Models: Evidence From Consumer Complaints in the Financial Industry. arXiv preprint arXiv:2311.16466.
Sun, C.; Sheng, Y.; Padon, O.; and Barrett, C. 2023. Clover: Closed-Loop Verifiable Code Generation. arXiv preprint arXiv:2310.17807.
Sun, H.; Cohen, W. W.; and Salakhutdinov, R. 2022. ConditionalQA: A Complex Reading Comprehension Dataset with Conditional Answers. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (ACL), 3627–3637.
Sun, W.; Zhang, C.; Zhang, X.; Yu, X.; Huang, Z.; Chen, P.; Xu, H.; He, S.; Zhao, J.; and Liu, K. 2024. Beyond Instruction Following: Evaluating Inferential Rule Following of Large Language Models. arXiv preprint arXiv:2407.08440.
Thirunavukarasu, A. J.; Ting, D. S. J.; Elangovan, K.; Gutierrez, L.; Tan, T. F.; and Ting, D. S. W. 2023. Large Language Models in Medicine. Nature Medicine, 29(8): 1930–1940.
United States District Court for the Southern District of New York. 2023. Mata v. Avianca, Inc. 678 F. Supp. 3d 443 (S.D.N.Y. 2023), decided June 22, 2023.
Wen, B.; Yao, J.; Feng, S.; Xu, C.; Tsvetkov, Y.; Howe, B.; and Wang, L. L. 2025. Know Your Limits: A Survey of Abstention in Large Language Models. Transactions of the Association for Computational Linguistics, 13: 529–556.
Wu, Y.; Jiang, A. Q.; Li, W.; Rabe, M. N.; Staats, C.; Jamnik, M.; and Szegedy, C. 2022. Autoformalization with Large
Language Models. In Advances in Neural Information Processing Systems (NeurIPS).
Zhou, R.; Hua, W.; Pan, L.; Cheng, S.; Wu, X.; Yu, E.; and Wang, W. Y. 2025. RuleArena: A Benchmark for Rule-Guided Reasoning with LLMs in Real-World Scenarios. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), 550–572. ArXiv:2412.08972.