Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasoners

Xiaojuan Tang, Zilong Zheng|arXiv (Cornell University)|May 24, 2023
Topic ModelingComputer Science15 citations
TL;DR

The paper decouples semantics from in-context reasoning in LLMs to show that semantic representations drive much of LLM reasoning, outperforming purely symbolic cues in many tasks, and analyzes memorization and reasoning across deduction, induction, and abduction.

ABSTRACT

The emergent few-shot reasoning capabilities of Large Language Models (LLMs) have excited the natural language and machine learning community over recent years. Despite of numerous successful applications, the underlying mechanism of such in-context capabilities still remains unclear. In this work, we hypothesize that the learned extit{semantics} of language tokens do the most heavy lifting during the reasoning process. Different from human's symbolic reasoning process, the semantic representations of LLMs could create strong connections among tokens, thus composing a superficial logical chain. To test our hypothesis, we decouple semantics from the language reasoning process and evaluate three kinds of reasoning abilities, i.e., deduction, induction and abduction. Our findings reveal that semantics play a vital role in LLMs' in-context reasoning -- LLMs perform significantly better when semantics are consistent with commonsense but struggle to solve symbolic or counter-commonsense reasoning tasks by leveraging in-context new knowledge. The surprising observations question whether modern LLMs have mastered the inductive, deductive and abductive reasoning abilities as in human intelligence, and motivate research on unveiling the magic existing within the black-box LLMs. On the whole, our analysis provides a novel perspective on the role of semantics in developing and evaluating language models' reasoning abilities. Code is available at {\url{https://github.com/XiaojuanTang/ICSR}}.

Motivation & Objective

  • Investigate whether LLMs can reason in-context without semantics by decoupling semantic content from reasoning prompts.
  • Evaluate three reasoning types—deduction, induction, and abduction—in a controlled symbolic setting.
  • Assess memorization and knowledge-update behavior of LLMs when faced with semantic versus symbolic information.
  • Examine how commonsense knowledge and representation (natural language vs logic language) affect in-context reasoning in LLMs.

Proposed method

  • Propose a synthetic Symbolic Tree dataset with closed-world, noise-free symbolic reasoning and a ProofWriter subset under open-world assumptions to test semantics-free reasoning.
  • Decouple semantics by replacing predicates with symbolic labels (e.g., r1, r2) and entities with IDs; compare with Semantics (natural language predicates) settings.
  • Evaluate ChatGPT, GPT-4, and LLaMA-7B across deductive, inductive, and abductive tasks; use logic-based baselines and Neo4j for memorization comparisons.
  • Fine-tune LLaMA-7B on a memorization task and compare internal memory vs external knowledge bases.
  • Analyze conditioning effects: remove rules/facts, introduce counter-commonsense labels, and test ProofWriter OWL tasks to study semantics influence.
  • Explore context length and representation form (natural language vs logic language) on reasoning performance; assess zero-shot vs CoT effects and internal vs external knowledge use.
Figure 1: Task Definitions. Memorization : retrieving the predicted fact from in-context knowledge. Deductive : predicting the correctness of the predicted fact given rules and facts. Inductive : generating a rule based on multiple facts with similar patterns. Abductive : explaining the predicted fa
Figure 1: Task Definitions. Memorization : retrieving the predicted fact from in-context knowledge. Deductive : predicting the correctness of the predicted fact given rules and facts. Inductive : generating a rule based on multiple facts with similar patterns. Abductive : explaining the predicted fa

Experimental results

Research questions

  • RQ1Do LLMs rely on semantics or internalized priors when performing in-context reasoning on symbolic tasks?
  • RQ2How do deduction, induction, and abduction tasks differ in sensitivity to semantic vs symbolic representations?
  • RQ3What is the role of commonsense knowledge and memory in LLM reasoning under decoupled semantics?
  • RQ4How do representation form and prompt strategy (zero-shot vs CoT) impact in-context reasoning performance?

Key findings

  • Semantics-driven settings significantly improve deductive and inductive reasoning compared with purely symbolic settings on Symbolic Tree.
  • GPT-4 generally outperforms ChatGPT across evaluation settings, with semantics aiding performance, while symbolic representations sometimes reduce inductive gains.
  • Symbolic baselines remain stronger on some symbolic logic tasks, indicating symbolic reasoning is not fully captured by current LLMs.
  • Memorization of new facts is faster with semantic representations, but forgetting can be higher due to stronger inter-factor correlations.
  • Zero-shot-CoT offers limited gains in semantic settings and can perform worse than zero-shot in some semantics-decoupled tasks.
  • Internal knowledge usage often surpasses reliance on external in-context rules for reasoning tasks.
Figure 2: Decoupling semantics from the ProofWriter task. In the original ProofWriter task, entities are represented by their names (left). However, in our decoupled setting, we replace the entity names with unique entity IDs (right).
Figure 2: Decoupling semantics from the ProofWriter task. In the original ProofWriter task, entities are represented by their names (left). However, in our decoupled setting, we replace the entity names with unique entity IDs (right).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.