Improved Logical Reasoning of Language Models via Differentiable Symbolic Programming

05/05/2023
by   Hanlin Zhang, et al.
0

Pre-trained large language models (LMs) struggle to perform logical reasoning reliably despite advances in scale and compositionality. In this work, we tackle this challenge through the lens of symbolic programming. We propose DSR-LM, a Differentiable Symbolic Reasoning framework where pre-trained LMs govern the perception of factual knowledge, and a symbolic module performs deductive reasoning. In contrast to works that rely on hand-crafted logic rules, our differentiable symbolic reasoning framework efficiently learns weighted rules and applies semantic loss to further improve LMs. DSR-LM is scalable, interpretable, and allows easy integration of prior knowledge, thereby supporting extensive symbolic programming to robustly derive a logical conclusion. The results of our experiments suggest that DSR-LM improves the logical reasoning abilities of pre-trained language models, resulting in a significant increase in accuracy of over 20 Furthermore, DSR-LM outperforms a variety of competitive baselines when faced with systematic changes in sequence length.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/16/2022

The Impact of Symbolic Representations on In-context Learning for Few-shot Reasoning

Pre-trained language models (LMs) have shown remarkable reasoning perfor...
research
05/18/2022

LogiGAN: Learning Logical Reasoning via Adversarial Pre-training

We present LogiGAN, an unsupervised adversarial pre-training framework f...
research
08/24/2022

Deep Symbolic Learning: Discovering Symbols and Rules from Perceptions

Neuro-Symbolic (NeSy) integration combines symbolic reasoning with Neura...
research
04/10/2023

Scallop: A Language for Neurosymbolic Programming

We present Scallop, a language which combines the benefits of deep learn...
research
07/06/2021

Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning

Human reasoning can often be understood as an interplay between two syst...
research
10/18/2021

Neuro-Symbolic Forward Reasoning

Reasoning is an essential part of human intelligence and thus has been a...
research
05/24/2023

Calc-X: Enriching Arithmetical Chain-of-Thoughts Datasets by Interaction with Symbolic Systems

This report overviews our ongoing work in enriching chain-of-thoughts da...

Please sign up or login with your details

Forgot password? Click here to reset