Using Language Models For Knowledge Acquisition in Natural Language Reasoning Problems

Fangzhen Lin, Ziyi Shou, Chengcai ChenarXiv 2023 · DOI

Abstract

Large Language Models (LLMs) like GPT-4 are often perceived as capable of complex reasoning. However, empirical evidence suggests they frequently fail at non-trivial logical tasks, providing explanations that are superficially sound but logically inconsistent. This paper proposes a shift in methodology: instead of relying on LLMs as reasoning engines, we should utilize them as knowledge acquisition tools to translate natural language into formal logic. This formal representation can then be processed by reliable symbolic theorem provers, creating a robust neuro-symbolic pipeline.

The Problem: Probabilistic Guessing vs. Rule-Based Logic

Despite the success of LLMs in various domains, they struggle with simple logic word puzzles. The fundamental limitation lies in their architecture: LLMs are data-driven probabilistic models, not deterministic rule-based engines. When presented with a logic puzzle, they often engage in "shallow reasoning," where they might reach a correct conclusion through contradictory premises or fail to maintain consistency across a multi-step problem.

Figure 1: An example of ChatGPT attempting to translate the "Who's in the car?" puzzle into propositional logic, illustrating the structured but sometimes flawed output of direct queries.

Methodology: Translation as a Path to Reasoning

To address these limitations, the authors compared two primary strategies across ChatGPT and GPT-4:

  1. Direct Query: Asking the model to solve a puzzle and explain its reasoning steps.
  2. Fact Encoding (Knowledge Acquisition): Providing the model with propositional logic symbols and asking it to translate natural language sentences into formal logic formulas.

Experiments were conducted on a variety of benchmarks, including introductory AI puzzles like "Who's in the car?", Nils Nilsson’s "The Alpine Club," and Raymond Smullyan’s complex "Ladies or Tigers?" puzzles. Additionally, a custom set of 15 statements involving logical quantifiers (e.g., "exactly one," "at most") was used to test translation precision.

Key Insights: Translation > Reasoning

The research yielded several critical insights into the nature of LLM performance:

  • Superiority of Translation: LLMs are significantly more accurate at translating natural language into formal logic than they are at performing the actual logical inference. GPT-4, for instance, achieved high translation accuracy on Smullyan trials even when it failed to solve the puzzles directly.
  • The Power of Decomposition: Translating an entire puzzle at once often introduces errors. However, when models are prompted to translate statements one at a time, their accuracy improves dramatically.
  • Quantifier Sensitivity: Models struggle with specific logical constructs. While GPT-4 showed improvement over ChatGPT, both models had difficulty with constraints like "at most two."
  • Neuro-Symbolic Synergy: The most effective approach is to use the LLM as a "front-end" to parse messy natural language into a structured format that a symbolic SAT solver can then compute with 100% reliability.
Figure 2: GPT-4 successfully translating the complex "Alpine Club" puzzle into a formal propositional formula, demonstrating its capability as a knowledge acquisition tool.

Results and Discussion

In the "Ladies or Tigers" trials, GPT-4 outperformed ChatGPT in final answer accuracy, but its internal reasoning remained frequently incorrect. This suggests that even when the model arrives at the right answer, it may be doing so through high-probability pattern matching rather than logical deduction. Furthermore, the authors noted potential "data contamination," where models performed better on famous puzzles likely present in their training data than on logically identical but novel variations.

Conclusion and Future Work

While LLMs are not yet perfect translators—sometimes making "common sense" assumptions not found in the text—they represent a powerful tool for bridging the gap between natural language and symbolic logic. Future research should focus on fine-tuning LLMs specifically for formal translation, improving pronoun resolution in logical contexts, and developing prompts that discourage models from making unsupported assumptions. By treating the LLM as a translator rather than a thinker, we can leverage its linguistic strengths while offloading reasoning to systems designed for that purpose.

Summary updated

BibTeX
@misc{lin2023using,
  author = {Fangzhen Lin and Ziyi Shou and Chengcai Chen},
  title = {{Using Language Models For Knowledge Acquisition in Natural Language Reasoning Problems}},
  year = {2023},
  eprint = {2304.01771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.01771},
}
Figure