Abstract
Abductive Learning is a framework that combines machine learning with first-order logical reasoning. It allows machine learning models to exploit complex symbolic domain knowledge represented by first-order logic rules. However, it is challenging to obtain or express the ground-truth domain knowledge explicitly as first-order logic rules in many applications. The only accessible knowledge base is implicitly represented by groundings, i.e., propositions or atomic formulas without variables. This paper proposes Grounded Abductive Learning (GABL) to enhance machine learning models with abductive reasoning in a ground domain knowledge base, which offers inexact supervision through a set of logic propositions. We apply GABL on two weakly supervised learning problems and found that the model's initial accuracy plays a crucial role in learning. The results on a real-world OCR task show that GABL can significantly reduce the effort of data labeling than the compared methods.
Introduction: Bridging Neural Networks and Dictionaries
In the quest to combine deep learning with symbolic reasoning (Neuro-Symbolic AI), a major hurdle is the nature of the knowledge we actually possess. Most existing frameworks, like standard Abductive Learning (ABL), require domain knowledge to be expressed as first-order logic rules. However, in many real-world scenarios, we do not have elegant rules; we have lists of facts. For example, in Optical Character Recognition (OCR), it is nearly impossible to write a set of logic rules that define every valid English word. Instead, we have a dictionary—a Ground Knowledge Base (GKB).
Standard reasoning systems struggle with GKBs because there is no explicit relational structure to follow. This paper introduces Grounded Abductive Learning (GABL) to address how a machine learning model can "reason" its way to better performance when its only guide is a list of valid outputs.
The GABL Framework
The core innovation of GABL is an "augmenting" logic program that bridges the gap between raw model predictions and the static facts in a GKB. The process follows a three-step cycle:
- Perception: A standard neural network (e.g., a CRNN for OCR) processes raw data and predicts a "pseudo-label" (e.g., guessing "havz" for a handwritten word).
- Abduction: Since "havz" is not in the dictionary, GABL uses a logic program to find the "best" explanation. It searches the GKB for a valid word that is close to the prediction (low edit distance) and supported by the model's confidence scores.
- Feedback: The corrected word (e.g., "have") is treated as a high-quality label. The model is then fine-tuned using these abduced labels alongside the original unlabeled data.
Unlike standard self-training, which trusts the model's own potentially erroneous guesses, GABL uses the GKB as a filter to ensure the pseudo-labels are logically valid.
Experimental Evaluation
The authors evaluated GABL on both synthetic and real-world datasets to test its versatility and efficiency.
- Synthetic Data: Sequences of MNIST and CIFAR-10 images were created to follow specific patterns, such as Hamming codes or decimal addition equations. This allowed for precise control over the "rules" and "facts" to test the limits of the system.
- Real-World OCR: Using the IAM-database, which contains over 115,000 images of handwritten English words, the researchers treated the entire vocabulary as the GKB.
Key Insights: The Role of Accuracy and Sparsity
The study revealed several critical factors for successful grounded reasoning:
- The Accuracy Threshold: GABL requires a minimum initial accuracy to be effective. If the perception model is too weak, the abduction step might "correct" a wrong guess to the wrong valid fact, leading to a performance degradation.
- Sparsity as a Feature: The "sparser" the label space, the better GABL works. In a dictionary of millions of words, "havz" is very close to "have." If the dictionary contained every possible four-letter combination, the reasoning system would lack the necessary constraints to correct errors.
- Confidence Integration: Incorporating the neural network's confidence into the logic program lowers the accuracy threshold required for the system to start improving.
Results and Conclusion
In the IAM handwriting task, GABL demonstrated significant label efficiency. With only 5% labeled data, GABL achieved 61.5% accuracy, vastly outperforming a standard CRNN (26.2%) and standard self-training (46.1%). Furthermore, GABL with 15% labeled data (71.3% accuracy) performed nearly as well as a fully supervised model trained on 100% of the data (74.2%).
While GABL introduces some computational overhead due to the search process within the GKB, its ability to significantly reduce labeling effort makes it a powerful tool for weakly supervised learning in domains where ground-truth facts are available but explicit logic rules are not.
Summary updated