Problemcore
Abduction
Also called abductive explanation, inference to the best explanation.
Given a theory and an observation, find a minimal consistent set of hypotheses that together with the theory entails the observation.
Abduction is reasoning from an observation back to a cause. Deduction goes from "rain makes the grass wet" and "it rained" to "the grass is wet". Abduction goes from the rule and the wet grass to the hypothesis "it rained". In logic-based abduction the input is a background theory, a set of allowed hypotheses and an observation, and an explanation is a set of hypotheses that is consistent with the theory and, together with it, entails the observation. Usually only the minimal explanations are wanted. For propositional theories, deciding whether an explanation exists is -complete, one level above SAT, and it drops to NP for Horn theories and to polynomial time for definite Horn theories (Eiter and Gottlob 1995).
In plain words
You see an effect and want to know what could have caused it. You have a list of possible causes and a set of rules that say what each cause brings about. An explanation is a choice of causes that does not contradict what you know and that would produce everything you see. Several choices may work. You prefer the ones that assume nothing extra: if one cause alone explains the effect, a pair that includes it is not a better explanation. The hard part is that "would produce" and "does not contradict" are both questions of logic, and the number of possible choices of causes grows exponentially.
Definition
A propositional abduction problem (Eiter and Gottlob 1995) is a tuple :
- is a finite set of atoms,
- is the set of hypotheses,
- is a set of literals over , the manifestations (observations),
- is a consistent propositional theory over .
A set is an explanation (a solution) of if
Write for the set of explanations. An explanation is subset-minimal if no proper subset is an explanation. Other preference orders compare explanations by size or by priorities and penalties on the hypotheses.
The decision tasks for an order on explanations are:
- Checking: is a given a -minimal explanation?
- Existence: is nonempty?
- Relevance: is a given in some -minimal explanation?
- Necessity: is a given in every -minimal explanation?
The search task is to output one minimal explanation, or all of them.
Variants
- Horn abduction. is a set of Horn clauses and a set of atoms. Definite Horn abduction also requires every clause to have exactly one positive literal, so is always consistent.
- Set-covering abduction. Each hypothesis is a disease and only says which disease causes which symptom. An explanation is a set of diseases whose symptoms cover . With minimum size as the criterion this is set cover.
- Cardinality and weights. Prefer the explanations with the fewest hypotheses, or with the least total cost. This turns the search into an optimization problem, often solved with MaxSAT.
- First-order and logic-program abduction. The theory is a first-order theory or a logic program, as in abductive logic programming. Hypotheses are atoms of chosen abducible predicates.
- Probabilistic abduction. Choose the most probable explanation in a Bayesian network, which replaces logical minimality by probability.
Examples
Rain or sprinkler. , , and
The explanations are , and . The first two are subset-minimal, so both hypotheses are relevant and neither is necessary.
A new fact removes an explanation. Add to . Now is inconsistent, the only minimal explanation is , and becomes necessary. Abduction is nonmonotonic: more knowledge can remove explanations.
No explanation. With , and , no subset of entails , so .
Known algorithms
- Generate and test. Try the subsets of in order of size and keep those that pass one SAT test for consistency and one for entailment. This takes pairs of tests and finds all subset-minimal explanations.
- Guess and check with two solvers. For the case, one SAT solver proposes a set and a second one looks for a model of that falsifies . Each counterexample blocks a family of candidates, in the style of CEGAR. Encodings into QBF follow the same quantifier pattern.
- Assumption-based truth maintenance. For Horn theories, the ATMS keeps for each atom its label, the set of minimal consistent sets of assumptions that derive it. The label of the observation is the set of its minimal explanations. Labels can be exponentially large.
- Definite Horn theories. Forward chaining decides in linear time, as in Horn-SAT. One minimal explanation is found by starting from and deleting hypotheses while the entailment still holds, with entailment tests.
- Abductive logic programming. Proof procedures in the style of SLDNF resolution collect abducible atoms as they go, see abductive logic programming.
Bounds
All results are for propositional problems and subset-minimal explanations, under polynomial-time reductions (Eiter and Gottlob 1995; Thomas and Vollmer 2010, Theorem 6.1).
| Theory | Checking | Existence | Relevance | Necessity |
|---|---|---|---|---|
| general | DP-complete | -complete | -complete | -complete |
| Horn | in P | NP-complete | NP-complete | coNP-complete |
| definite Horn | in P | in P | NP-complete | in P |
- The general upper bounds are direct: guess , then one NP test (consistency) and one coNP test (entailment). Checking that is an explanation is the conjunction of an NP and a coNP question, which is what DP-completeness means.
- The NP-hardness of existence for Horn theories is due to Selman and Levesque (1990). For definite Horn theories, an explanation exists exactly when , and is necessary exactly when , so both are polynomial. Relevance stays NP-complete even there (Friedrich, Gottlob and Nejdl 1990).
- The number of minimal explanations can be exponential: with and there are of them.
- Preference by size or by penalties moves some tasks to classes of the polynomial hierarchy defined by a bounded number of oracle calls. Eiter and Gottlob (1995) give the complete table.
Reductions
- From QBF to existence (a proof sketch of the lower bound). For , add a fresh atom for each , a fresh atom , and put , and . A set is consistent with unless it contains both and , so it fixes a partial assignment of . Since is free, exactly when , that is, when holds for every completion of the partial assignment and every . So an explanation exists exactly when the QBF is true.
- To and from consistency-based diagnosis. Diagnosis asks for faults that make the observations consistent, abduction for hypotheses that entail them. With fault models that predict the observed behaviour, diagnosis becomes abduction, and the two meet in a spectrum of definitions.
- From set cover. Minimum set-covering abduction is set cover, so finding a smallest explanation is NP-hard even when entailment is trivial.
- To default logic. Selman and Levesque (1990) related Horn abduction to finding extensions of simple default theories, which places both in a common computational core.
Applications
- Diagnosis of devices and of patients, where the hypotheses are faults or diseases and the observations are symptoms.
- Plan and intention recognition, which explains observed actions by the goals that produce them.
- Natural language interpretation, which explains a sentence by the assumptions that make it coherent.
- Database and knowledge-base updates, where a view update is explained by changes to the base facts.
- Test generation and debugging, where the explanation of a failure is a set of suspicious statements.
References
- Thomas Eiter and Georg Gottlob, The complexity of logic-based abduction, Journal of the ACM 42(1), 3 to 42 (1995), the definition of a propositional abduction problem and the complexity of checking, existence, relevance and necessity for general, Horn and definite Horn theories and for several minimality criteria
- Bart Selman and Hector J. Levesque, Abductive and default reasoning: a computational core, Proceedings of the Eighth National Conference on Artificial Intelligence (AAAI-90), 343 to 348 (1990), the NP-hardness of finding an explanation for Horn theories
- Gerhard Friedrich, Georg Gottlob and Wolfgang Nejdl, Hypothesis classification, abductive diagnosis and therapy, in Expert Systems in Engineering, Lecture Notes in Computer Science 462, Springer, 69 to 78 (1990), the NP-completeness of deciding whether a hypothesis is relevant for a definite Horn theory
- Michael Thomas and Heribert Vollmer, Complexity of non-monotonic logics, Bulletin of the EATCS 102 (2010), arXiv:1009.1990, Section 6, Theorem 6.1 (checking is DP-complete, existence is Sigma2P-complete, necessity is Pi2P-complete, also for subset-minimal explanations, citing Eiter and Gottlob 1995)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag TSA1J1 Edit this page History Report an error Markdown