A Systematic Comparison of Syllogistic Reasoning in Humans and Language Models
Tiwalayo Eisape, MH Tessler, Ishita Dasgupta, Fei Sha, Sjoerd van Steenkiste, Tal Linzen
TL;DR
This work investigates whether PaLM 2 and Llama 2 language models perform deductive syllogistic reasoning in a way that aligns with normative logic or mirrors human biases. Using a controlled dataset of $64$ syllogism types evaluated with zero-shot chain-of-thought prompting, the authors compare LM responses to human data and map LM behavior into the Mental Models Theory framework via mReasoner, revealing that larger models often surpass humans in accuracy yet retain systematic, human-like biases such as figural effects and syllogistic fallacies. The study finds that LM reasoning becomes more deliberative with scale, yet deliberation only partly accounts for accuracy, indicating a dissociation between correctness and the underlying reasoning process. These results have implications for AI interpretability and cognitive modeling, showing that LMs can achieve high logical performance while still inheriting and sometimes overcoming human biases present in their training data, with practical impact on the design and evaluation of logic-enabled AI systems.
Abstract
A central component of rational behavior is logical inference: the process of determining which conclusions follow from a set of premises. Psychologists have documented several ways in which humans' inferences deviate from the rules of logic. Do language models, which are trained on text generated by humans, replicate such human biases, or are they able to overcome them? Focusing on the case of syllogisms -- inferences from two simple premises -- we show that, within the PaLM2 family of transformer language models, larger models are more logical than smaller ones, and also more logical than humans. At the same time, even the largest models make systematic errors, some of which mirror human reasoning biases: they show sensitivity to the (irrelevant) ordering of the variables in the syllogism, and draw confident but incorrect inferences from particular syllogisms (syllogistic fallacies). Overall, we find that language models often mimic the human biases included in their training data, but are able to overcome them in some cases.
