Reliable Reasoning Beyond Natural Language

Nasim Borazjanizadeh, Steven T. Piantadosi
7/16/2024
cs.CLcs.AI

No official code found. Best implementation: NasimBorazjani/Reasoning-Beyond-NL (4 stars, CC0-1.0, last commit 2024-05-22).

Abstract

Despite their linguistic competence, Large Language Models (LLMs) often struggle to reason reliably and flexibly. To identify these shortcomings, we introduce the Non-Linear Reasoning (NLR) dataset, a collection of 55 unique, hand-designed problems that target reasoning bottlenecks arising from the sequential prediction paradigm of LLMs and the inherently linear nature of natural language. NLR tasks require iterative updates, backtracking, and reasoning across multiple parallel chains of thought but only basic arithmetic to solve. To address these limitations, we propose a neurosymbolic reasoning approach that integrates Prolog, a symbolic reasoning engine, into the inference pipeline of LLMs. This division of labor shifts the LLM's task from iterative computations to inferring all information, explicit or implied through common sense, and encoding it as logical code. Our method yields large and robust performance gains across the GSM8k and BIG-bench Navigate benchmarks and achieves near-perfect accuracy on NLR problems, maintaining robustness even as variable interdependence - the number of other variables on which the value of a single variable depends - increases.

View on arXivView PDF

Code Implementations(1)

CC0-1.0

Github repo for the paper Reliable Reasoning Beyond Natural Language

41PythonMay 20, 20242 years agoCC0-1.0

Similar Papers

Cite this paper

@article{borazjanizadeh2024reliable,
  title  = {Reliable Reasoning Beyond Natural Language},
  author = {Nasim Borazjanizadeh and Steven T. Piantadosi},
  year   = {2024},
  eprint = {2407.11373},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.11373v3}
}

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/2407.11373.svg)](https://codeofpaper.com/paper/2407.11373)

Discussion