Tensor-Based Abduction in Horn Propositional Programs

Yaniv Aspis, Krysia Broda, Alessandra Russo

Introduction

This research bridges the longstanding gap between symbolic logic and linear algebra by introducing a novel tensor-based algorithm for abductive reasoning. By mapping Horn propositional programs into third-order tensors, the authors demonstrate that finding minimal explanations for observations can be computed efficiently as a series of iterative matrix-tensor multiplications.

Bridging Symbolic and Statistical AI

The authors address the divide between Symbolic AI, which utilizes formal logic for rigorous reasoning, and Statistical AI, which relies on linear algebra and tensors for learning and pattern recognition. The focus is specifically on abduction—the process of "inference to the best explanation."

In a logical context, if one has a rule "If it rains, the grass is wet" ($Rain \to Wet$) and observes that the grass is wet, abduction allows for the suggestion that "It rained" is a possible explanation. While deduction (moving from cause to effect) has been successfully mapped to linear algebra previously, abduction (moving from effect back to cause) is significantly more complex. Traditional symbolic solvers are effective but difficult to integrate into the high-performance, differentiable tensor frameworks of modern machine learning. This paper provides the mathematical "bridge" to perform these logical "backwards" steps using tensors.

Methodology

The researchers introduce three key components to translate logic into the tensor domain:

  1. The Explanatory Operator ($E_P$): Unlike the standard "Immediate Consequence" operator used in deduction, the $E_P$ operator works in reverse. It takes an observation and "inverts" the implications to identify the sets of atoms that could have caused it.
  2. Abductive Tensor Mapping: A Horn program (a set of logical rules) is represented as a third-order tensor ($A^P$). Each "frontal slice" of this 3D block represents a specific rule, allowing the system to handle "Multiple Definitions"—scenarios where the same observation could be explained by several different rules.
  3. Iterative Computation:
    • Interpretations (sets of true/false atoms) are represented as binary vectors.
  4. Sets of interpretations are stacked into a matrix.
  5. The algorithm applies the tensor to the matrix using 2-mode multiplication.
  6. After each step, it filters out "inconsistent" solutions (those violating logical constraints) using a separate matrix-based deductive check.
  7. This process repeats until it reaches a fixed point, where no new explanations are found.
Matrix representation of a Horn program, showing the mapping of logical atoms to linear algebraic structures.

Key Insights and Ideas

  • Tensors as Rule Containers: The transition from matrices to third-order tensors is pivotal. While a matrix can represent simple 1-to-1 mappings, a tensor's third dimension allows the algorithm to "choose" between multiple different rules that share the same head, effectively exploring multiple explanatory paths in parallel.
  • Inverting the Logic: The core innovation is the realization that abduction can be treated as a single-step operation based on inverted implication, which can then be perfectly mirrored by tensor-matrix multiplication.
  • Guaranteed Minimality: The authors prove that their algorithm is guaranteed to find all minimal abductive solutions. In logic, a minimal solution is the "leanest" explanation—one where no part can be removed while still explaining the observation.
  • Handling Contradictions: By integrating a "deductive check" into the iterative process, the algorithm automatically discards explanations that lead to a logical contradiction ($\perp$), ensuring the final output is consistent with the background knowledge.

Key Results

The paper is primarily theoretical, utilizing small, hand-crafted synthetic Horn programs (involving variables like $p, q, r, s, t$) to provide a proof-of-concept.

  • Correctness Proof: Theorem 1 formally proves that this linear algebraic approach produces a subset of abductive solutions containing all minimal solutions.
  • Fixed Point Convergence: For any finite Horn program, the iterative tensor multiplication is guaranteed to halt, preventing infinite loops.
  • Unified Framework: This work extends previous research that only handled deduction, creating a more complete toolkit for logic-based reasoning within linear algebraic systems.

Limitations and Future Work

Currently, the framework is limited to propositional logic. It does not yet handle First-Order Logic, which includes complex relationships and quantifiers. Additionally, while optimizations are suggested, the computational cost for very large rule sets remains a challenge due to the NP-complete nature of abduction. Future directions include extending the framework to First-Order Logic and exploring "Normal Logic Programs" to handle Negation-as-Failure.

Summary updated

BibTeX
@inproceedings{aspis2018tensor,
  author = {Yaniv Aspis and Krysia Broda and Alessandra Russo},
  title = {{Tensor-Based Abduction in Horn Propositional Programs}},
  booktitle = {Ilp Up-and-coming / Short Papers},
  year = {2018},
}
Figure