Probing LLMs for Logical Reasoning

Francesco Manigrasso*, Stefan Schouten, Lia Morra, Peter Bloem

*Corresponding author for this work

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

23 Downloads (Pure)

Abstract

Recently, the question of what types of computation and cognition large language models (LLMs) are capable of has received increasing attention. With models clearly capable of convincingly faking true reasoning behavior, the question of whether they are also capable of real reasoning—and how the difference should be defined—becomes increasingly vexed. Here we introduce a new tool, Logic Tensor Probes (LTP), that may help to shed light on the problem. Logic Tensor Networks (LTN) serve as a neural symbolic framework designed for differentiable fuzzy logics. Using a pretrained LLM with frozen weights, an LTP uses the LTN framework as a diagnostic tool. This allows for the detection and localization of logical deductions within LLMs, enabling the use of first-order logic as a versatile modeling language for investigating the internal mechanisms of LLMs. The LTP can make deductions from basic assertions, and track if the model makes the same deductions from the natural language equivalent, and if so, where in the model this happens. We validate our approach through proof-of-concept experiments on hand-crafted knowledge bases derived from WordNet and on smaller samples from FrameNet.

Original languageEnglish
Title of host publicationNeural-Symbolic Learning and Reasoning
Subtitle of host publication18th International Conference, NeSy 2024, Barcelona, Spain, September 9–12, 2024, Proceedings, Part I
EditorsTarek R. Besold, Artur d’Avila Garcez, Ernesto Jimenez-Ruiz, Pranava Madhyastha, Benedikt Wagner, Roberto Confalonieri
PublisherSpringer Science and Business Media Deutschland GmbH
Pages257-278
Number of pages22
Volume1
ISBN (Electronic)9783031711671
ISBN (Print)9783031711664
DOIs
Publication statusPublished - 2024
Event18th International Conference on Neural-Symbolic Learning and Reasoning, NeSy 2024 - Barcelona, Spain
Duration: 9 Sept 202412 Sept 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14979 LNAI
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349
NameNeSy: International Conference on Neural-Symbolic Learning and Reasoning
PublisherSpringer

Conference

Conference18th International Conference on Neural-Symbolic Learning and Reasoning, NeSy 2024
Country/TerritorySpain
CityBarcelona
Period9/09/2412/09/24

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.

Keywords

  • Logic Tensor Networks
  • NeuroSymbolic AI
  • Probing Large Language Models

Fingerprint

Dive into the research topics of 'Probing LLMs for Logical Reasoning'. Together they form a unique fingerprint.

Cite this