Table of Contents
Fetching ...

Learning Symbolic Rules for Reasoning in Quasi-Natural Language

Kaiyu Yang, Jia Deng

TL;DR

The paper tackles the challenge of achieving interpretable, symbolic reasoning over natural language by introducing MetaQNL, a quasi-natural language framework for rule-based reasoning, and MetaInduce, a MAX-SAT–based method to induce MetaQNL rules from data. It demonstrates that compact rule sets can achieve strong reasoning performance across synthetic and real-world tasks while producing verifiable proofs. A key contribution is the combination of explicit symbolic rules with data-driven induction, enabling both interpretability and data efficiency. The work also explores soft matching to handle noisy or ambiguous inputs and discusses limitations and future integration with deep learning approaches for scalability and robustness.

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. Code will be released at https://github.com/princeton-vl/MetaQNL.

Learning Symbolic Rules for Reasoning in Quasi-Natural Language

TL;DR

The paper tackles the challenge of achieving interpretable, symbolic reasoning over natural language by introducing MetaQNL, a quasi-natural language framework for rule-based reasoning, and MetaInduce, a MAX-SAT–based method to induce MetaQNL rules from data. It demonstrates that compact rule sets can achieve strong reasoning performance across synthetic and real-world tasks while producing verifiable proofs. A key contribution is the combination of explicit symbolic rules with data-driven induction, enabling both interpretability and data efficiency. The work also explores soft matching to handle noisy or ambiguous inputs and discusses limitations and future integration with deep learning approaches for scalability and robustness.

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. Code will be released at https://github.com/princeton-vl/MetaQNL.
Paper Structure (14 sections, 4 theorems, 25 equations, 4 figures, 3 tables, 1 algorithm)

This paper contains 14 sections, 4 theorems, 25 equations, 4 figures, 3 tables, 1 algorithm.

Key Result

Lemma 1

Applying substitutions does not make a sentence shorter. In other words, for any sentence $s = (t_1, t_2, \dots, t_n) \in \Sigma^{+}$ and substitution $\sigma: \Sigma_{v} \rightarrow \Sigma^{+}_{-s}$, we have $\text{length}(\sigma s) \geq n$. Further, $\text{length}(\sigma s) = n$ if and only if $\s

Figures (4)

  • Figure 1: An example proof with 4 assumptions, 1 goal, and 2 rule applications. Each rule have multiple premises and one conclusion. Both the premises and the conclusion can have variables that bind to concrete sentences when the rule is applied.
  • Figure 2: The minimal complete set of unifiers of two sentences can be empty, finite, or infinite (e.g., "hello [X]" and "[X] hello"). The minimal complete set of anti-unifiers is non-empty and finite.
  • Figure 3: RuleTaker contains ground truth proofs in the form of directed acyclic graphs from the assumptions to the conclusion. The nodes in the graph are concrete sentences without variables.
  • Figure :

Theorems & Definitions (27)

  • Definition 1: Sentence
  • Definition 2: Rule
  • Definition 3: Substitution
  • Definition 4: Partial order among sentences and rules
  • Definition 5: Proof
  • Definition 6: Theorem proving
  • Definition 7: Soft matching
  • Definition 7: Sentence length
  • Lemma 1: Substitutions are noncontractive
  • proof
  • ...and 17 more