SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.17169 · EMNLP · 2024

Conditional and Modal Reasoning in Large Language Models

Cedegao Zhang, Wesley Holliday, Matthew Mandelkern

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The reasoning abilities of large language models (LLMs) are the topic of a growing body of research in AI and cognitive science. In this paper, we probe the extent to which twenty-nine LLMs are able to distinguish logically correct inferences from logically fallacious ones. We focus on inference patterns involving conditionals (e.g., 'If Ann has a queen, then Bob has a jack') and epistemic modals (e.g., 'Ann might have an ace', 'Bob must have a king'). These inferences have been of special interest to logicians, philosophers, and linguists, since they play a central role in the fundamental human ability to reason about distal possibilities. Assessing LLMs on these inferences is thus highly relevant to the question of how much the reasoning abilities of LLMs match those of humans. All the LLMs we tested make some basic mistakes with conditionals or modals, though zero-shot chain-of-thought prompting helps them make fewer mistakes. Even the best performing LLMs make basic errors in modal reasoning, display logically inconsistent judgments across inference patterns involving epistemic modals and conditionals, and give answers about complex conditional inferences that do not match reported human judgments. These results highlight gaps in basic logical reasoning in today's LLMs. 0% 25% 50% 75% 100% Average correct answer frequency Llama 3.1 Instruct 405B GPT-4 Turbo (2024-04-09) Claude 3.5 Sonnet GPT-4 Turbo (1106) GPT-4 (0613) Llama 3.1 Instruct 70B Gemini 1.5 Pro GPT-4 (0314) GPT-4o (2024-05-13) GPT-4o mini Claude 3 Opus

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.17169")
get_code_for_paper("2401.17169")
have("2401.17169")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.17169.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.17169.svg)](https://syntology.ai/paper/2401.17169)

Connect an agent — have() is free.