Specificity-Aware Repairs for Knowledge Bases with Exceptions and Errors

Knowledge bases assembled from many sources contradict themselves for two different reasons. Some contradictions are errors: a sensor or a text extractor asserted something false. Others are exceptions: "birds fly" and "penguins don't" both hold, and a penguin record meets both. Tools for querying inconsistent data, such as repair semantics, treat every contradiction as an error. A repair is a largest subset of the facts that is consistent with the schema. These tools answer only what holds across all repairs, or only what touches no conflict at all. Tools for reasoning with exceptions do the opposite. Inheritance networks and default logics let the more specific class override the general one, which is called specificity-based preemption, but they assume the remaining data is clean. A system that faces both kinds of contradiction at once currently has to pick one theory and get the other kind wrong.

We propose a single repair semantics that handles both. The schema is split into strict axioms and defeasible ones ("typically"). The defeasible axioms are grounded per individual, so that "Tweety, as a bird, typically flies" becomes an object that can be kept or dropped. A priority relation over conflicting items is then compiled from the subsumption hierarchy: a default loses to a fact it conflicts with, and to any conflicting default whose condition is strictly more specific. Facts never outrank facts, so genuine data errors are still handled cautiously. The approach is conditional. If the evidence for the exception is itself in dispute (is Tweety really a penguin?), the general default comes back in exactly those repairs that drop the disputed evidence. A pipeline that filters by specificity first and repairs second cannot do this.

Core Claim

Specificity should enter inconsistency-tolerant reasoning as a priority that is local to each conflict and derived from the schema. It should not be a fixed global ranking, and it should not be applied as a filter before repair. The local, conditional version should give more correct answers than three alternatives: depth-based priority layers, preempt-then-repair pipelines, and propositional default rankings. The gains should concentrate in two places, ontologies where classes have several parents and cases where the exception's own support is contested. Where neither occurs, we expect the simpler methods to tie. Measuring that boundary is part of the result.

Formally, let the knowledge base contain strict schema axioms $T$, defeasible inclusions $D$, and facts $A$. Let $G$ be the set of ground default instances $\delta = (C \sqsubseteq_d E)(a)$, one for each individual $a$. For two items $x, y \in A \cup G$ that occur together in a minimal inconsistent subset, define

$$x \succ y \iff y \in G \text{ and } \big(x \in A \text{ or } \mathrm{cond}(x) \sqsubset_T \mathrm{cond}(y)\big),$$

where $\mathrm{cond}(\cdot)$ is the condition concept of a default instance and $\sqsubset_T$ is strict subsumption under $T$. A repair is a maximal subset of $A \cup G$ that is consistent with $T$. It is preferred if no item outside it can be added by removing only items that the added item dominates under $\succ$. The usual query semantics, namely AR (holds in all repairs), IAR (uses only items in the intersection of all repairs) and non-objection, are then applied over preferred repairs.

Three properties of this definition matter. Because $\succ$ only relates items within a shared conflict, it never needs a global ranking. Because facts are never dominated, it separates errors from exceptions. Because the support for the exception, such as Penguin(t), belongs to the same minimal conflict, a repair that drops that support no longer suppresses the general default. The Nixon diamond is the case where two defaults have incomparable conditions. There $\succ$ is silent, both outcomes survive in some repair, and AR returns no answer. That matches the skeptical inheritance of A Skeptical Theory of Inheritance in Nonmonotonic Semantic Networks.

Positioning

The work that motivates this proposal is Querying Inconsistent Description Logic Knowledge Bases under Preferred Repair Semantics. That paper defines preferred repairs under cardinality, prioritized set inclusion, prioritized cardinality and weights, and implements them in the CQAPri system. Its priorities are external inputs, such as timestamps or source trust, and are never derived from the concept hierarchy. Our semantics reuses its notion of a preferred repair and its SAT-based machinery. The difference is where the preference comes from and its shape: a pairwise relation that depends on the conflict, not ranked layers.

Non-Objection Inference for Inconsistency-Tolerant Query Answering gives every repair equal veto power. A repair that keeps only an inherited general default can therefore block a specific conclusion. This is exactly the failure we target.

The method draws on Default Inheritance Reasoning in Hybrid KL-ONE-Style Logics, which reads default precedence directly off the subsumption hierarchy. We borrow that idea but use it in a different setting: query answering over facts that may be wrong, which Straccia's consistent setting does not cover.

From path-based inheritance we take the target behaviour. Mixing Strict and Defeasible Inheritance states the preemption conditions we want to reproduce. Skeptical Inheritance: Computing the Intersection of Credulous Extensions is the reference point for how skeptical conclusions relate to the intersection of the credulous extensions (the alternative consistent sets of conclusions). That paper makes a question for us precise: whether AR over our preferred repairs coincides with skeptical inheritance on pure networks, or with the intersection of credulous extensions, or with neither.

One result constrains our design. Rational Inference Relations from Maximal Consistent Subsets Selection selects consistent subsets by scores such as #mus, the number of minimal conflicts a formula belongs to, and a lower score is better. Exceptions sit in more conflicts, so these scores systematically punish them. Any purely conflict-counting preference is therefore ruled out. We will test whether $\succ$ can be written as one of their monotonic selection relations, which would carry over their rationality guarantees.

The drowning problem is when one high-priority conflict causes all lower-priority information to be thrown away. A Model-based Approach for Merging Prioritized Knowledge Bases in Possibilistic Logic and Lexicographic Entailment, Syntax Splitting and the Drowning Problem avoid drowning in propositional settings. Grounding defaults per individual should avoid it for us by construction, since a conflict about Tweety cannot touch defaults about Opus. We will check this rather than assume it.

Research Program

The theory has three parts. First, we characterize preferred repairs under $\succ$ and show that $\succ$ is acyclic whenever the strict hierarchy is. Second, we prove the conditional-preemption property and the agreement with skepticism on the Nixon diamond. Third, we place the data complexity of AR, IAR and non-objection over preferred repairs for DL-Lite$_R$, the lightweight description logic used in the CQAPri work. We make no promise of tractability. The file reports that prioritized set inclusion keeps AR and IAR coNP-complete in this logic, and we expect similar bounds. For that reason we also study a grounded approximation. It iteratively removes dominated items whose dominator is itself undisputed, much as Stein's labeling algorithm prunes ambiguous paths early. We will measure how often this approximation agrees with exact AR.

The implementation extends a CQAPri-style pipeline. It builds the conflict graph over $A \cup G$, orients edges by $\succ$ (this generalizes CQAPri's oriented conflict graph from external to schema-derived orientation), and encodes preferred-repair AR as a SAT problem. Because grounding $G$ multiplies the number of items, the cost of grounding is a first-class measurement. We ground only defaults that are relevant to the query, by reachability in the conflict graph.

Baselines

The naive reference point is plain AR and IAR over standard repairs of the same grounded knowledge base, as defined in Explaining Inconsistency-Tolerant Query Answering over Description Logic Knowledge Bases. It runs on the same conflict graph and solver. We expect IAR to lose nearly every exception and AR to leave most exception queries unanswered. Beating it is necessary but not interesting.

The strongest structured competitor is depth-stratified prioritized set inclusion. Each item gets a priority layer equal to the taxonomic depth of its condition concept, with facts placed on top, and the result is run under the ⊆_P preferred repairs of Querying Inconsistent Description Logic Knowledge Bases under Preferred Repair Semantics. It shares our conflict graph, our SAT solver, and our grounding. The only difference is a global depth ranking in place of the pairwise relation, so the comparison isolates locality. For conflicts between different branches of the hierarchy we also try two other layer assignments: the longest path to the root, and the shortest. We report the best of the three, which gives the baseline its best tuning. That paper reports scaling to 2.1 million assertions. No reported result was found on Lacuna for the answer accuracy of ⊆_P on a knowledge base with exceptions. To beat this baseline, we need significantly higher answer F1 on tangled and contested slices and no worse F1 on tree-shaped slices.

The strongest default-reasoning competitor is a Z-ranked lexicographic closure. We rank the defaults with the System Z+ construction of System-Z+: A Formalism for Reasoning with Variable-Strength Defaults, then apply lexicographic entailment (Lexicographic Entailment, Syntax Splitting and the Drowning Problem) to the grounded instances. We run it in two variants. In one, facts are treated as hard constraints. In the other, facts are a soft top layer. This is propositional, so it runs only on the small instances. It derives specificity from the defaults themselves, which makes it the most serious rival on our core claim.

For the applied tasks, the strongest existing methods are the original specificity heuristics. In EZLearn: Exploiting Organic Supervision in Automated Data Annotation, the Resolve function reaches an AUPRC of 0.69 on GEO/CMHGP and 0.92 precision at 0.5 recall on Viziometrics. AUPRC is the area under the precision-recall curve. In Shallow Training is cheap but is it good enough? Experiments with Medical Fact Coding, descendant-overrides-ancestor rejection rules reach F1 of 85.60% on Multi-inst and 47.65% on Proc-notes.

The key ablation is the preempt-then-repair pipeline. It first deletes every default that has a more specific conflicting item in the data, then runs standard AR. This differs from our method in exactly one way: conditionality. If it matches us everywhere, conditionality buys nothing.

Why not just…?

Why not just map taxonomic depth to priority layers and use ⊆_P? This is the real threat, and on tree-shaped hierarchies we expect it to tie. Two things should separate the methods. The first is a conflict between different branches: depth 4 in one branch is not "more specific" than depth 3 in another, yet a global ranking still orders them. The second is a class with two parents, where a single layer per item cannot express that one conflict is preempted and another is not. If the tangled-slice experiment shows no gap, we will report that the contribution is the error/exception separation alone and retreat to the depth version.

Why not just preempt first and then repair, as EZLearn's Resolve does? Filtering commits to the exception before checking whether the exception's evidence is sound. Suppose Penguin(t) is a wrong fact that conflicts with another fact. The pipeline has already deleted "t flies" and cannot restore it. The contested-support slice is built to measure exactly this. If such cases are rare in the real data (GEO, medical codes), the pipeline is good enough in practice, and we will say so.

Why not just use System Z or lexicographic entailment, which already compute specificity endogenously? These rank defaults, but they have no principled place for noisy facts. If facts are hard constraints, a single wrong fact makes the base inconsistent. If facts are a soft top layer, they outrank each other only through the ranking and not through the conflict structure. They are also propositional, so applying them to a DL knowledge base requires grounding everything. Running both fact treatments on small instances will show whether they match our answers. Runtime on larger LUBM instances will show whether they scale.

Why not cardinality repairs or IAR? Cardinality favors keeping three generic assertions over one specific override. Complexity of Inconsistency-Tolerant Query Answering in Datalog+/- under Cardinality-Based Repairs also shows that it carries a counting penalty in complexity. IAR discards both sides of every exception. We include both as reference rows, but neither is a credible contender on accuracy.

Proposed Experiments

The synthetic testbed extends LUBM, the university benchmark used in the CQAPri papers, with the EUDG data generator. We add defeasible inclusions with exceptions that follow its existing hierarchy. Examples are "students typically are not employees", with teaching and research assistants as exceptions, and multi-parent classes that create diamond conflicts. We then inject fact errors at the conflict ratios used in Explaining Inconsistency-Tolerant Query Answering over Description Logic Knowledge Bases, from 5% to 44%. Since we generate both the exceptions and the errors, a gold intended model exists. We score answer precision and recall against it and break results down into three slices: tree-shaped, tangled, and contested-support. We also report runtime and grounding size, using that paper's figure of under 10 milliseconds per explanation as the efficiency reference.

The first decisive check is the comparison with depth-stratified ⊆_P on the tangled slice. The second is the comparison with preempt-then-repair on the contested slice. A third check reproduces the #mus inversion: Konieczny-style selection should discard exceptions at a rate that grows with the number of general rules they contradict.

The real-data check replaces EZLearn's Resolve with preferred-repair answers over the GEO/CMHGP tissue ontology, which has multiple parents. The target is to match or exceed 0.69 AUPRC, with the gain located on samples whose candidate labels lie in incomparable lineages, the case EZLearn leaves open. If the clinical coding data from Shallow Training is available, we will repeat the comparison against its 85.60% and 47.65% F1. If it is not, we will report that and not substitute other data.