Logical forms complement probability in understanding language model (and human) performance
Yixuan Wang, Freda Shi
TL;DR
This work investigates LLM logical reasoning beyond probability by constructing a controlled dataset of propositional and alethic modal logic syllogisms expressed in natural language. It systematically evaluates multiple open-weight LLMs and human participants using a probability-based soft accuracy metric, revealing that logical form and modality significantly influence performance alongside perplexity, with Diamond generally easier than Box. Through linear and generalized mixed-effects modeling, the study shows robust effects of Modality and ArgForm and a relatively weak but negative correlation with perplexity, while also documenting an affirmation bias in LLMs that varies by modality. Human data echo some patterns but diverge in others, underscoring both similarities and differences between machine and human reasoning. The findings advocate for incorporating logical-form structure into evaluation and planning frameworks and provide a publicly releasable dataset for further study of machine and human logical reasoning in natural language.
Abstract
With the increasing interest in using large language models (LLMs) for planning in natural language, understanding their behaviors becomes an important research question. This work conducts a systematic investigation of LLMs' ability to perform logical reasoning in natural language. We introduce a controlled dataset of hypothetical and disjunctive syllogisms in propositional and modal logic and use it as the testbed for understanding LLM performance. Our results lead to novel insights in predicting LLM behaviors: in addition to the probability of input (Gonen et al., 2023; McCoy et al., 2024), logical forms should be considered as important factors. In addition, we show similarities and discrepancies between the logical reasoning performances of humans and LLMs by collecting and comparing behavioral data from both.
