Tunneling Neural Perception and Logic Reasoning through Abductive Learning

Wang-Zhou Dai, Qiu-Ling Xu, Yang Yu, Zhi-Hua ZhouarXiv 2018 · OpenReview

TL;DR

This paper introduces "abductive learning," a novel framework that bridges the gap between neural perception and logical reasoning, enabling systems to learn these two capabilities simultaneously. Their Neural-Logical Machine (NLM) demonstrates human-like problem-solving by learning from limited data, generalizing well to complex tasks, and outperforming current state-of-the-art models on equation decipherment.

What Problem Does This Paper Address?

Modern AI systems excel at either perception (e.g., image recognition) or reasoning (e.g., theorem proving), but struggle to integrate these abilities. This incompatibility limits their ability to autonomously tackle tasks requiring both, such as understanding natural language or deciphering complex symbolic systems. The authors highlight the challenge of combining sub-symbolic data (like raw pixels) with symbolic domain knowledge, which is often incomplete or imperfect. They aim to create an AI that can learn to perceive and reason in tandem, mirroring human cognitive processes.

Methods

The core of the paper is the abductive learning framework. This framework uses a trial-and-error process inspired by how linguists deciphered Mayan scripts. It involves:

  • Neural Perception: A differentiable neural network (e.g., CNN) that transforms raw data (like images of characters) into symbolic representations.
  • Logical Abduction: A non-differentiable module (implemented using Prolog) that uses domain knowledge (first-order logic rules) to infer the most plausible explanations for observed data.
  • Neural-Logical Tunnel: This component acts as the bridge. When the logical layer detects inconsistencies between perceived symbols and domain knowledge, it signals the tunnel to revise the perception output. This feedback loop, driven by derivative-free optimization, allows the system to correct its own perception based on logical reasoning.
  • Simultaneous Learning: The perception and reasoning models are trained together. The logical layer's consistency checks provide supervised signals to train the perception layer, while the perception layer's output is used to refine the reasoning model.

The proposed implementation is the Neural-Logical Machine (NLM).

Datasets

The paper uses two custom datasets for evaluating the NLM on handwritten equation decipherment:

  • Digital Binary Additive (DBA) dataset: Equations constructed from benchmark handwritten character datasets.
  • Random Binary Additive (RBA) dataset: Equations constructed from randomly selected character sets with isomorphic structures to DBA.

These datasets consist of images of equations and labels indicating whether the equation is correct (positive) or incorrect (negative). The NLM is trained on equations of lengths 5-8 and tested on lengths 5-26.

Key Insights and Ideas

  • Abduction as a Bridge: The paper posits that abductive reasoning is the key to seamlessly integrating perception and reasoning, allowing systems to hypothesize and refine interpretations based on existing knowledge.
  • Trial-and-Error Learning: Mimicking human learning, the NLM uses a heuristic trial-and-error approach to correct perception errors through logical consistency checks, rather than relying solely on direct supervision for every primitive symbol.
  • Learning from Incomplete Knowledge: The framework demonstrates that effective learning can occur even when the symbolic domain knowledge is not exhaustive, a common scenario in real-world problems.
  • Perception and Reasoning as Intertwined: The NLM shows that improving perception accuracy directly leads to better reasoning and classification performance, highlighting the synergistic relationship between these two abilities.

Key Results

  • Superior Performance: The NLM significantly outperforms state-of-the-art models like BiLSTM and DNC on equation classification tasks, especially as equation length increases. For instance, on the RBA task, the NLM maintains over 80% accuracy while other models drop to near random guessing.
  • Efficient Learning: The NLM learns effectively with fewer training equations compared to other methods.
  • Cross-Task Transfer: The NLM demonstrates strong transfer learning capabilities. A perception model trained on one task (binary addition) can be effectively transferred to a new domain (exclusive-or equations), leading to faster convergence. Similarly, knowledge transfer from one domain to another also accelerates learning.
  • Improved Perception: The logical consistency mechanism within the NLM effectively corrects and improves the accuracy of the perception module during training, even without explicit labels for individual characters.

Limitations and Future Work

  • Computational Complexity: The optimization objective for abductive learning is generally NP-hard, requiring approximate solutions like greedy algorithms. Evaluating consistency on the entire training set is infeasible, necessitating subsampling.
  • Learning Background Knowledge: The current framework requires pre-defined symbolic background knowledge. Future work could explore AI systems that can learn this background knowledge autonomously.
  • Reusability of Knowledge: While perception and reasoning models can be reused in similar tasks, a more general paradigm for reusing complex learned knowledge is needed.
  • Efficiency of Operations: The methods for searching, abduction, and optimization within the logical module are described as "naive." Improving their efficiency would make abductive learning more practical for real-world applications.

Summary updated

Abstract

Perception and reasoning are basic human abilities that are seamlessly connected as part of human intelligence. However, in current machine learning systems, the perception and reasoning modules are incompatible. Tasks requiring joint perception and reasoning ability are difficult to accomplish autonomously and still demand human intervention. Inspired by the way language experts decoded Mayan scripts by joining two abilities in an abductive manner, this paper proposes the abductive learning framework. The framework learns perception and reasoning simultaneously with the help of a trial-and-error abductive process. We present the Neural-Logical Machine as an implementation of this novel learning framework. We demonstrate that--using human-like abductive learning--the machine learns from a small set of simple hand-written equations and then generalizes well to complex equations, a feat that is beyond the capability of state-of-the-art neural network models. The abductive learning framework explores a new direction for approaching human-level learning ability.
BibTeX
@misc{dai2018tunneling,
  author = {Wang-Zhou Dai and Qiu-Ling Xu and Yang Yu and Zhi-Hua Zhou},
  title = {{Tunneling Neural Perception and Logic Reasoning through Abductive Learning}},
  year = {2018},
  eprint = {1802.01173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.01173},
}
Figure