Testing the General Deductive Reasoning Capacity of Large Language Models Using OOD Examples

Abulhair Saparov, Richard Yuanzhe Pang, Vishakh Padmakumar, Nitish Joshi, Seyed Mehran Kazemi +2 more
5/1/2023

No official code found. Best implementation: asaparov/prontoqa (168 stars, Apache-2.0, last commit 2025-09-09).

Abstract

Given the intractably large size of the space of proofs, any model that is capable of general deductive reasoning must generalize to proofs of greater complexity. Recent studies have shown that large language models (LLMs) possess some abstract deductive reasoning ability given chain-of-thought prompts. However, they have primarily been tested on proofs using modus ponens or of a specific size, and from the same distribution as the in-context examples. To measure the general deductive reasoning ability of LLMs, we test on a broad set of deduction rules and measure their ability to generalize to more complex proofs from simpler demonstrations from multiple angles: depth-, width-, and compositional generalization. To facilitate systematic exploration, we construct a new synthetic and programmable reasoning dataset that enables control over deduction rules and proof complexity. Our experiments on four LLMs of various sizes and training objectives show that they are able to generalize to compositional proofs. However, they have difficulty generalizing to longer proofs, and they require explicit demonstrations to produce hypothetical subproofs, specifically in proof by cases and proof by contradiction.

View on arXivView PDF

Code Implementations(1)

asaparov/prontoqaCommunity100%
Apache-2.0

Synthetic question-answering dataset to formally analyze the chain-of-thought output of large language models on a reasoning task.

16817PythonJul 1, 20221 years agoApache-2.0
dataset-generationlarge-language-modelsquestion-answering

Similar Papers

Cite this paper

@article{saparov2023testing,
  title  = {Testing the General Deductive Reasoning Capacity of Large Language Models Using OOD Examples},
  author = {Abulhair Saparov and Richard Yuanzhe Pang and Vishakh Padmakumar and Nitish Joshi and Seyed Mehran Kazemi and Najoung Kim and He He},
  year   = {2023},
  eprint = {2305.15269},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.15269},
  journal = {NEURIPS 2023 2023}
}

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

Discussion