Disentangling Logic: The Role of Context in Large Language Model Reasoning Capabilities

Wenyue Hua, Kaijie Zhu, Lingyao Li, Lizhou Fan, Shuhang Lin +5 more
6/4/2024
cs.CLcs.AIcs.LG

Official code: agiresearch/ContextHub (13 stars, last commit 2024-06-08).

Abstract

This study intends to systematically disentangle pure logic reasoning and text understanding by investigating the contrast across abstract and contextualized logical problems from a comprehensive set of domains. We explore whether LLMs demonstrate genuine reasoning capabilities across various domains when the underlying logical structure remains constant. We focus on two main questions (1) Can abstract logical problems alone accurately benchmark an LLM's reasoning ability in real-world scenarios, disentangled from contextual support in practical settings? (2) Does fine-tuning LLMs on abstract logic problem generalize to contextualized logic problems and vice versa? To investigate these questions, we focus on standard propositional logic, specifically propositional deductive and abductive logic reasoning. In particular, we construct instantiated datasets for deductive and abductive reasoning with 4 levels of difficulty, encompassing 12 distinct categories or domains based on the categorization of Wikipedia. Our experiments aim to provide insights into disentangling context in logical reasoning and the true reasoning capabilities of LLMs and their generalization potential. The code and dataset are available at: https://github.com/agiresearch/ContextHub.

View on arXivView PDF

Code Implementations(1)

Contextualized Logic

131Shell, PythonMay 27, 20242 years ago

Similar Papers

Cite this paper

@article{hua2024disentangling,
  title  = {Disentangling Logic: The Role of Context in Large Language Model Reasoning Capabilities},
  author = {Wenyue Hua and Kaijie Zhu and Lingyao Li and Lizhou Fan and Shuhang Lin and Mingyu Jin and Haochen Xue and Zelong Li and JinDong Wang and Yongfeng Zhang},
  year   = {2024},
  eprint = {2406.02787},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.02787v1}
}

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

Discussion