Neural-Symbolic Integration: A Compositional Perspective

Efthymia Tsamoura, Timothy M. Hospedales, Loizos Michael

Abstract

Neural-Symbolic (NeSy) integration seeks to combine the perceptual strengths of deep learning with the structured reasoning of classical AI. Current approaches often require compromising the integrity of the symbolic component or restricting its expressivity. This paper introduces NEUROLOG, a framework that treats both neural and symbolic components as "black boxes." By leveraging logical abduction to generate training signals, NEUROLOG enables the seamless integration of standard neural networks with complex, pre-existing logic theories without requiring differentiable logic or restricted rule sets. Experimental evaluations across diverse benchmarks demonstrate NEUROLOG's superior accuracy, scalability, and robustness compared to existing state-of-the-art frameworks.

Introduction

The challenge of NeSy integration lies in the "leaky" nature of existing frameworks, which often necessitate translating logic into neural architectures or employing "fuzzy" differentiable logic. Such methods can limit the use of recursion or require significant rewriting of established symbolic theories. The authors argue for a compositional approach, allowing researchers to "snap together" pre-existing neural modules and logic theories (e.g., rules for Chess or mathematics). The primary hurdle is training: how to backpropagate errors through non-differentiable logical statements.

Methodology

NEUROLOG employs a compositional architecture where a neural module provides inputs to a symbolic module. The bridge between these modules is established through two primary processes:

  1. Deduction: In the forward pass, the neural network predicts "atoms" (e.g., identifying chess pieces), which the symbolic module uses to derive a conclusion (e.g., "The King is safe").
  2. Abduction: For training, given a ground-truth label, the system identifies the inputs to the logic module that would satisfy that label. This process asks: "What inputs to the logic module would have made this true?"
The NEUROLOG architecture illustrating the flow between neural predictions, symbolic abduction, and the resulting semantic loss function.

Key Innovations

  • Multi-Proof Learning: Unlike prior abductive learning methods that select a single "best" explanation, NEUROLOG considers all possible abductive proofs. These are combined into a single formula, and Weighted Model Counting (WMC) is used to derive a differentiable "semantic loss."
  • Neural-Guided Abduction (NGA): To manage large search spaces in complex domains, NGA prunes potential explanations based on the neural network's current predictions, focusing on those most consistent with the visual input.
  • Black-Box Interface: The symbolic module is agnostic to the underlying engine, requiring only deduce and abduce methods, making it compatible with standard logic engines like Prolog.

Experimental Evaluation

The framework was evaluated on several benchmarks, including standard NeSy tasks and new challenges:

  • Standard NeSy Tasks: ADD2x2 (summing MNIST digits) and DBA(n) (validating math equations).
  • OPERATOR2x2: Requires digit recognition and operator induction.
  • MEMBER(n): Set membership detection.
  • CHESS Suite: A complex domain requiring piece recognition to determine game states (safe, draw, mate) under strict integrity constraints.
  • Existing Benchmarks: PATH(n) and MATH(n).

Results and Discussion

NEUROLOG consistently outperformed state-of-the-art frameworks, including DeepProbLog (DLOG), NeurASP (NASP), and Abductive Learning (ABL).

Performance comparison of NEUROLOG (NLOG) against DLOG and NASP across various benchmarks, showing superior accuracy and convergence.

In the MATH(5) scenario, NEUROLOG achieved approximately 92% accuracy, significantly higher than ABL (~6%) and NeurASP (~18%). Furthermore, NEUROLOG demonstrated superior scalability; in the PATH(6) task, it reached 97% accuracy in 43 minutes, while competitors timed out. The use of all valid proofs rather than a single "best" proof provided a more stable supervision signal, avoiding local minima. Additionally, logic served as a filter for impossible neural predictions via integrity constraints.

Conclusion

NEUROLOG offers a robust, scalable method for integrating neural perception with symbolic reasoning. While currently relying on expert-provided logic rules, the framework's black-box nature provides a strong foundation for future work in "symbolic module learning" and "Machine Coaching," where human feedback can further guide the learning process. The efficiency gained through caching abductive proofs suggests that this approach can scale to more complex real-world knowledge bases.

Summary updated

BibTeX
@inproceedings{tsamoura2021neural,
  author = {Efthymia Tsamoura and Timothy M. Hospedales and Loizos Michael},
  title = {{Neural-Symbolic Integration: A Compositional Perspective}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i6.16639},
}
Figure