Neural Unification for Logic Reasoning over Natural Language

Gabriele Picco, Hoang Thanh Lam, Marco Luca Sbodio, Vanessa Lopez Garcia
9/17/2021
cs.CL
transformer-attention

Official code: IBM/Neural_Unification_for_Logic_Reasoning_over_Language (22 stars, Python, Apache-2.0, last commit 2021-11-15).

Abstract

Automated Theorem Proving (ATP) deals with the development of computer programs being able to show that some conjectures (queries) are a logical consequence of a set of axioms (facts and rules). There exists several successful ATPs where conjectures and axioms are formally provided (e.g. formalised as First Order Logic formulas).

Show full abstract

Recent approaches, such as (Clark et al., 2020), have proposed transformer-based architectures for deriving conjectures given axioms expressed in natural language (English). The conjecture is verified through a binary text classifier, where the transformers model is trained to predict the truth value of a conjecture given the axioms. The RuleTaker approach of (Clark et al., 2020) achieves appealing results both in terms of accuracy and in the ability to generalize, showing that when the model is trained with deep enough queries (at least 3 inference steps), the transformers are able to correctly answer the majority of queries (97.6%) that require up to 5 inference steps. In this work we propose a new architecture, namely the Neural Unifier, and a relative training procedure, which achieves state-of-the-art results in term of generalisation, showing that mimicking a well-known inference procedure, the backward chaining, it is possible to answer deep queries even when the model is trained only on shallow ones. The approach is demonstrated in experiments using a diverse set of benchmark data.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Neural Unification for Logic Reasoning over Language

223PythonAug 27, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{picco2021neural,
  title  = {Neural Unification for Logic Reasoning over Natural Language},
  author = {Gabriele Picco and Hoang Thanh Lam and Marco Luca Sbodio and Vanessa Lopez Garcia},
  year   = {2021},
  eprint = {2109.08460},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.08460}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.08460.svg)](https://codeofpaper.com/paper/2109.08460)

Discussion