When is a wrong answer
really wrong?
Turning OWL ontologies into multiple-choice tests—with a reasoner checking the logic and an LLM polishing the language.
Reading: Ontology-Grounded, Reasoner-Verified Benchmarks for Evaluating LLM Reasoning in Scientific AI
1. The central move: generate language around checked logic
A benchmark needs trustworthy wrong answers, not just trustworthy right answers. If a language model writes a question and invents three plausible alternatives, one of those alternatives might also be correct. Evaluating another model against that answer key would measure agreement with the generator, not reliable reasoning.
This paper starts elsewhere: with a formal domain ontology. It takes an existing class axiom, makes small edits to its logical expression, and asks an OWL reasoner how each edited expression relates to the original. Only then does it turn those expressions into answer options.
What is new here?
The distractors are complex descriptions, not merely alternative class names. Changing “exactly two” to “at least one,” or replacing a class with a nearby class, can preserve almost all the wording while changing the meaning.
What the paper reports
MCQs across three ontologies, each with four options. Reported zero-shot accuracy ranges from 41.1% to 76.8%, versus 25% random guessing.
Total calculated from the paper’s three dataset sizes. These are reported experimental results, not independently reproduced here.
2. First principles: classes are sets, axioms constrain worlds
An ontology is more than a dictionary. It gives named classes, relationships, and logical constraints. A class denotes a set of individuals. A relationship, or role, connects individuals. A reasoner asks what must hold in every interpretation compatible with all the axioms.
| Notation | Intuition | Important nuance |
|---|---|---|
A ⊑ C | Every A is a C. | A necessary condition, not necessarily a complete definition. |
C ⊓ D | Both C and D. | Intersection of two sets. |
∃ r.C | Has at least one r-related C. | Does not say there is only one. |
∀ r.C | Every r-related individual is a C. | Does not by itself require any r-related individuals to exist. |
=2 r.C | Has exactly two distinct r-related individuals that are C. | May still have other r-related individuals outside C. |
O ⊨ X | The ontology O entails X. | X holds in every model of O, not just in observed data. |
⊥ | The empty class. | A ⊓ D ⊑ ⊥ means A and D cannot overlap. |
The paper’s running example
Read this as: every grain boundary has exactly two memberOf successors that are crystals and each have an angle-of-misalignment relational quality. The role’s name is retained from the formal expression; the logic determines its direction.
The paper calls axioms of the form A ⊑ C “class definition axioms.” Strictly, this is a one-way constraint. The reverse implication, C ⊑ A, is not supplied by that notation. Keep that distinction in mind when an MCQ asks for the “best” description of A.
3. The four-stage method
Stage 1: choose axioms that can support a test
The pipeline builds an inferred hierarchy of named classes. It removes trivial right-hand sides containing only a single class, and filters expressions whose fillers are entirely generic upper-ontology classes. It also propagates complex constraints from superclasses to subclasses and removes duplicate pairs.
To prevent repetitive benchmarks, at most three classes are retained per shared ancestor expression and at most three axioms per class are perturbed in the reported configuration. The latter are selected in descending syntactic complexity. For shared expressions, a greedy max-min procedure favors label diversity. An axiom needs at least three valid distractors to survive.
| Edit family | How it works | Example / guard |
|---|---|---|
| Filler substitution F₁–F₄ | Globally replace a named filler with siblings and their descendants, ancestors, direct children, or disjoint classes. | Crystal → AlloyCrystal. Sibling and disjoint substitutions skip expressions containing universal restrictions. |
| Cardinality S₁ | Change a top-level exact, minimum, or maximum bound by ±1. | =2 → =1 or =3; no negative bounds. |
| Restriction Q₁–Q₃ | Change exact/minimum restrictions to existential, or existential to exactly one. | =2 → ∃. The existential-to-exact operator skips transitive roles. |
Reported filler caps: sibling-descendant depth 2, up to 4 direct children, and up to 6 disjoint replacements per filler. HermiT 1.3.8 is accessed through Owlready2 0.50; calls have a 180-second timeout and timed-out axioms are skipped.
The semantic classifier: four questions about each candidate D
Let C be the original right-hand-side expression. The reasoner checks whether A ⊑ D, whether A ⊓ D is impossible, whether C ⊑ D, and whether D ⊑ C. The appendix batches checks and only performs the last two when A ⊑ D is entailed.
| Category | What the checks establish | Pipeline decision |
|---|---|---|
| Contradiction | A is not subsumed by D, and A ∩ D is impossible. | Keep: incompatible with being A. |
| Non-entailed-satisfiable | A is not subsumed by D, but A ∩ D is possible. | Keep: possible, not guaranteed. |
| Weakening | A ⊑ D, C ⊑ D, but not D ⊑ C. | Keep: true of A, but loses information from C. |
| Incomparable | A ⊑ D, but neither C ⊑ D nor D ⊑ C. | Keep: true of A, but describes a different aspect. |
| Strengthening | A ⊑ D, D ⊑ C, but not C ⊑ D. | Discard: an entailed, more specific description. |
| Equivalent | A ⊑ D and C and D subsume each other. | Discard: semantically the same answer. |
A child-filler substitution is not automatically classified as a strengthening. That category requires the whole candidate to be entailed for A. Exact qualified cardinalities also make simple intuitions about replacing a class with its child unreliable: exactly two alloy crystals does not rule out a third non-alloy crystal.
Stages 2–4: make it readable without giving the answer away
DeepOnto recursively verbalizes constructors, but covers only the ALC fragment. The smoothing model receives both the raw wording and the logical expression so it can handle unsupported or awkward constructs. The intended division of labor is sound: the reasoner decides semantics; the language model edits presentation. However, semantic faithfulness of the edited text still needs checking.
Distractors are ranked first by category—contradiction, weakening, non-entailed-satisfiable, incomparable—and then by cosine similarity of their smoothed-text embeddings to the correct option. Thus the three highest-similarity options need not be selected. In the running example, a contradiction with similarity 0.909 and a weakening with similarity 0.856 rank ahead of a child substitution with similarity 0.976.
Operator count counts Manchester-syntax keywords such as some, and, and exactly. These substitutions preserve that count, reducing an easy structural cue. This is a coarse control, not a proof that surface cues disappear.
The pipeline creates both a fixed-template stem and a contextualized scenario stem. The scenario generator receives a blocklist of option content words to avoid answer leakage. The assembled options are shuffled with seed 42. A judge scores option faithfulness, stem clarity, and domain relevance from 1 to 5; items survive if the mean is at least 3.0.
4. Interactive laboratory: possible, guaranteed, or impossible?
This small executable model lets you see why the categories differ. It is an educational finite-model simulation, not an OWL reasoner. We simplify the example to A ⊑ C, where C means “exactly two crystal members.” Every alloy crystal is a crystal. The angle-of-misalignment condition is omitted.
Try “part of a polycrystal” with this axiom off and on. Then try the conjunction. The same candidate changes category when the background ontology changes.
Our toy ontology
A-worlds are all combinations consistent with these necessary conditions. A is assumed satisfiable. Worlds have 0–4 crystal members, 0–that many alloy members, and a yes/no polycrystal relation.
Each tile summarizes counts, not a database record. “Poly: yes” means at least one partOf link to a polycrystal. The 30 tiles exhaust this bounded toy vocabulary, not unrestricted OWL interpretations. Counts beyond 4 do not add a new truth-pattern for the particular predicates shown here; this is not a general completeness technique.
A one-question comprehension check
Given only “every A has exactly two crystal members,” which option preserves that selected constraint exactly?
Select an option. Notice the question asks about preserving a specific constraint—not merely stating something true.
5. What the experiments actually show
The three ontologies vary in size and modeling style. Pizza has 85 classes and 77 disjointness declarations; PMDco has 1,071 classes and 15 declarations; DOID has 9,969 classes and 26 declarations. The working sets contain 159, 2,727, and 19,010 axioms respectively. Maximum operator counts are 2, 6, and 17, although mean counts are only 1.28, 1.55, and 1.14.
| Reported metric | Pizza | PMDco | DOID |
|---|---|---|---|
| Final MCQs | 112 | 2,491 | 15,216 |
| Mean text-embedding similarity | 0.922 | 0.810 | 0.906 |
| Mean judge score / 5 | 4.02 | 4.36 | 3.36 |
| Stem clarity / 5 | 3.66 | 4.05 | 3.01 |
| Domain relevance / 5 | 4.08 | 4.23 | 2.27 |
| Option faithfulness / 5 | 4.32 | 4.80 | 4.80 |
Ontology design shapes the errors being tested
Percentages from the paper’s pipeline-results table; rounding can put totals slightly above or below 100%.
Pizza’s richer disjointness modeling yields many incompatible options. Sparse disjointness in PMDco and DOID yields mostly unguaranteed-but-possible options or weakenings. A lower contradiction rate need not mean an easier domain; it may simply mean the ontology states fewer exclusions.
Model evaluation: challenging, but not a pure reasoning test
Models received a domain-expert system prompt, a scenario stem, and four options, with instructions to return only the answer letter. Evaluation was zero-shot, temperature 0, with up to 4,096 output tokens. The published prompt does not supply the ontology’s axioms as premises.
| Model / mode (paper labels) | Pizza % | PMDco % | DOID % |
|---|---|---|---|
| Ministral-3-14B | 46.4 | 45.7 | 54.1 |
| Qwen-3.8-27B · thinking off | 54.5 | 53.8 | 65.9 |
| Qwen-3.8-27B · thinking on | 62.5 | 59.5 | 68.4 |
| DeepSeek-R1 | 51.8 | 41.1 | 53.7 |
| GPT-5.6-sol | 76.8 | 74.9 | 75.3 |
| GPT-5.4 | 69.6 | 64.2 | 66.1 |
| GPT-4o | 67.0 | 54.3 | 58.8 |
Six distinct models, seven configurations. The appendix identifies the DeepSeek model as DeepSeek-R1-Distill-Qwen-32B.
Enabling Qwen’s thinking mode raises accuracy by 8.0, 5.7, and 2.5 percentage points respectively. But the reasoning-tagged DeepSeek configuration does not dominate the non-reasoning models. The strongest reported model still misses roughly one in four items. These comparisons demonstrate a spread in scores, not the mechanism causing that spread.
Human checking is preliminary
A domain expert rated 20 PMDco items. The expert mean was 3.33, versus 4.0 for the LLM judge, with a mean absolute difference of 1.33. Both averages exceed the scale midpoint, but that alone does not establish close agreement. The paper explicitly leaves a larger human study and formal inter-rater agreement to future work.
6. Critical reading: where the guarantees stop
1 · Entailed does not mean “wrong”
Weakening and incomparable candidates satisfy O ⊨ A ⊑ D. A reasoner verifies their relationship to C, not their falsehood. A weakening is less informative than C, but an incomparable entailed description need not be objectively worse without an explicit criterion.
The pipeline can label one selected option, but a generic “best describes A” stem does not formally guarantee a unique semantic answer. The safest claim is reasoner-classified distractors relative to a chosen axiom.
2 · Checked symbols, fallible language
Reasoner results apply to the symbolic expressions. Smoothing can drop a cardinality, alter scope, or attach a clause to the wrong subject. The appendix’s smoothing example for independent conjuncts illustrates how easy attachment ambiguity can be.
The judge’s detailed faithfulness rubric explicitly focuses on the correct option. That is weaker than independently proving that every distractor’s final text preserves its symbolic meaning.
3 · Reasoning versus remembered knowledge
Named public concepts remain visible, and the evaluation prompt does not give the relevant formal premises. Performance therefore mixes learned domain knowledge, interpretation of wording, familiarity with public ontologies, and reasoning. Above-chance accuracy does not isolate logical deduction.
The authors propose deeper derived-axiom tests as future work; their initial Pizza extension yields 191 additional MCQs. The current pipeline already inherits superclass constraints, so the proposed extension should be read as going beyond that limited inference.
4 · Quality signals are proxies
Embedding similarity above 0.8 suggests close wording, not proof that models cannot use superficial cues. No reported shortcut baseline or smoothing ablation establishes that causal claim.
A mean-based quality gate can also hide a weak dimension: DOID’s relevance score is 2.27 despite high faithfulness. Few expert ratings, no reported confidence intervals, and no detailed per-category model-error breakdown limit diagnostic conclusions.
Bottom line: this is a useful benchmark-construction architecture and a substantial generated dataset. It is not yet proof that every natural-language question has exactly one defensible answer, or that its scores exclusively measure reasoning over supplied ontological premises.
7. A minimal prototype you can reason about
The laboratory above implements the core classifier using set inclusion. For an actual OWL implementation, replace those finite-set checks with calls to a complete reasoner for the supported ontology fragment. Keep symbolic records separate from presentation text.
# Conceptual prototype; not executable OWL API code
for A, C in select_complex_axioms(ontology):
pool = []
for D in deduplicate(perturb(C)):
entailed = entails(ontology, SubClassOf(A, D))
if not entailed:
impossible = not satisfiable(ontology, And(A, D))
category = 'contradiction' if impossible else 'non_entailed_satisfiable'
else:
forward = entails(ontology, SubClassOf(C, D))
reverse = entails(ontology, SubClassOf(D, C))
if reverse: # equivalent or entailed strengthening
continue
category = 'weakening' if forward else 'incomparable'
pool.append({ 'expression': D, 'category': category })
if len(pool) < 3:
continue
texts = verbalize_then_smooth([C] + pool)
chosen = rank_by_category_then_similarity(pool, texts)[:3]
item = assemble_and_shuffle(A, C, chosen)
if mean(judge(item)) >= 3:
save(item) # preserve expressions alongside all final textWhat to preserve in each record
The appendix stores class IRI and label, whether the axiom was inferred, complexity, original and perturbed logical expressions, smoothed text, category, similarity and rank, stems, option letters, and quality metadata. That dual representation makes the benchmark auditable: a fluent sentence can always be traced back to the expression it is meant to represent.
Suggested safeguards beyond the paper’s prototype
- Validate ontology consistency and subject-class satisfiability before generation; an impossible A makes universal claims vacuously true.
- Record ontology version, imports, reasoner version, timeout outcomes, prompts, and model versions.
- Choose the test contract explicitly: entailment, exact preservation of a target expression, or domain “best description.” Do not silently mix them.
- For a strict entailment MCQ, exclude all entailed distractors and distinguish contradiction from mere non-entailment.
- Audit each option’s final language, including attachment and quantifier scope. Add per-dimension quality floors rather than relying only on a mean.
- Evaluate with and without supplied premises and with anonymized labels to separate ontology knowledge from deduction.
These are recommendations from this analysis, not experiments or guarantees reported by the authors.