Abstract: Symbolic reasoning, rule-based symbol manipulation, is a hallmark of human intelligence. However, rule-based systems have had limited success competing with learning-based systems outside formalized domains such as automated theorem proving. We hypothesize that this is due to the manual construction of rules in past attempts. In this work, we ask how we can build a rule-based system that can reason with natural language input but without the manual construction of rules. We propose MetaQNL, a "Quasi-Natural" language that can express both formal logic and natural language sentences, and MetaInduce, a learning algorithm that induces MetaQNL rules from training data consisting of questions and answers, with or without intermediate reasoning steps. Our approach achieves state-of-the-art accuracy on multiple reasoning benchmarks; it learns compact models with much less data and produces not only answers but also checkable proofs. Further, experiments on a real-world morphological analysis benchmark show that it is possible for our method to handle noise and ambiguity.
Introduction: The Challenge of Symbolic Reasoning
Reasoning is a cornerstone of artificial intelligence, yet the field has long been divided between two paradigms. Symbolic Reasoning utilizes rigid, human-defined rules (similar to mathematics or formal logic). While perfectly interpretable and verifiable, it is notoriously brittle when confronted with the inherent ambiguity and "messiness" of natural language. Conversely, Deep Learning employs massive neural networks to predict answers. These models are flexible and handle language well but function as "black boxes"—requiring vast amounts of data, generalizing poorly to novel problem types, and failing to provide human-understandable explanations for their conclusions.
This research addresses the hypothesis that the failure of past symbolic systems was not due to the use of rules themselves, but rather the reliance on manual rule construction. The authors propose a framework that bridges this gap by automatically learning symbolic rules from data, enabling reasoning that is both flexible and verifiable.
The MetaQNL Framework
The proposed solution consists of two primary components: a representation language and a learning algorithm.
1. MetaQNL (Quasi-Natural Language)
MetaQNL is a formal language designed to mirror the structure of natural language while maintaining the precision of logic. It allows sentences to contain variables (e.g., The [A] is [B]), enabling the system to represent abstract knowledge independent of specific vocabulary. This abstraction is critical for generalization across different contexts.
2. MetaInduce: The Learning Engine
MetaInduce is the algorithm responsible for discovering these rules through a three-step pipeline:
- Rule Proposal: Given a training example, the system suggests "concrete" rules (rules without variables) that might explain the observed answer.
- Rule Abstraction (Anti-Unification): Using a symbolic process called anti-unification, the algorithm identifies common patterns between concrete rules to derive abstract rules with variables. For instance, it might generalize "The elephant is big" and "The cat is small" into the template "The [A] is [B]".
- Rule Pruning (MAX-SAT): To prevent the system from simply memorizing every training example as a unique rule, MetaInduce employs a Maximum Satisfiability (MAX-SAT) solver. This treats rule selection as a discrete optimization problem, identifying the smallest, most efficient set of rules that explains the training data—effectively applying Occam's Razor to the model.
Experimental Evaluation
The researchers evaluated MetaInduce across three distinct challenges:
- SCAN & MiniSCAN: Benchmarks for compositional generalization (e.g., learning that if "jump" maps to JUMP, then "jump twice" must map to JUMP JUMP).
- RuleTaker: A dataset requiring multi-step logical reasoning over synthetic English sentences.
- SIGMORPHON 2018: A real-world dataset for morphological analysis in languages like Spanish, Swahili, and Turkish (e.g., learning the rules for verb conjugation).
Key Results and Insights
Extreme Data Efficiency and Interpretability
Because the system learns abstract symbolic rules rather than statistical correlations, it is remarkably data-efficient. On the MiniSCAN benchmark, MetaInduce achieved perfect accuracy using only 14 training examples. Furthermore, unlike Transformers that output a single probability, MetaInduce produces a proof: a step-by-step trace of which rules were applied to which facts, allowing for mechanical verification.
Competitive Performance
On the RuleTaker benchmark, MetaInduce achieved 99.7% accuracy, matching the state-of-the-art "ProofWriter" model. While ProofWriter is a T5-11B model with 11 billion parameters, the MetaInduce model achieved the same result using only 79 rules (approximately 2,869 symbols). In morphological tasks, the system proved competitive with standard neural sequence-to-sequence models (LSTMs with attention), demonstrating its ability to handle real-world linguistic noise through "soft matching."
Limitations and Future Work
While the framework demonstrates the viability of learned symbolic rules, several challenges remain. The current MAX-SAT optimization process has not yet been scaled to millions of examples, which is necessary for open-domain reasoning. Additionally, the anti-unification process remains a computational bottleneck. Future research may explore "neuro-symbolic" hybrids, where a deep neural network acts as the rule proposer, combining the linguistic nuance of deep learning with the rigorous logic of MetaQNL.
Summary updated