Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought

Abulhair Saparov, He He
10/3/2022
584 citations
cs.CL

Official code: asaparov/prontoqa (169 stars, Python, Apache-2.0, last commit 2025-09-09).

Abstract

Large language models (LLMs) have shown remarkable reasoning capabilities given chain-of-thought prompts (examples with intermediate reasoning steps). Existing benchmarks measure reasoning ability indirectly, by evaluating accuracy on downstream tasks such as mathematical reasoning.

Show full abstract

However, it is unclear how these models obtain the answers and whether they rely on simple heuristics rather than the generated chain-of-thought. To enable systematic exploration of the reasoning ability of LLMs, we present a new synthetic question-answering dataset called PrOntoQA, where each example is generated from a synthetic world model represented in first-order logic. This allows us to parse the generated chain-of-thought into symbolic proofs for formal analysis. Our analysis on InstructGPT and GPT-3 shows that LLMs are quite capable of making correct individual deduction steps, and so are generally capable of reasoning, even in fictional contexts. However, they have difficulty with proof planning: When multiple valid deduction steps are available, they are not able to systematically explore the different options.

View on arXivView PDF

Code Implementations(1)

asaparov/prontoqaOfficial100%
Apache-2.0

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

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

Similar Papers

Cite this paper

@article{saparov2022language,
  title  = {Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought},
  author = {Abulhair Saparov and He He},
  year   = {2022},
  eprint = {2210.01240},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01240}
}

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

Discussion