Implementing Derivations of Definite Logic Programs with Self-Attention Networks

Phan Thi Thanh Thuy, Akihiro Yamamoto
10/15/2024
cs.AI

No confident code implementation found for this paper.

Abstract

In this paper we propose that a restricted version of logical inference can be implemented with self-attention networks. We are aiming at showing that LLMs (Large Language Models) constructed with transformer networks can make logical inferences. We would reveal the potential of LLMs by analyzing self-attention networks, which are main components of transformer networks. Our approach is not based on semantics of natural languages but operations of logical inference. %point of view. We show that hierarchical constructions of self-attention networks with feed forward networks (FFNs) can implement top-down derivations for a class of logical formulae. We also show bottom-up derivations are also implemented for the same class. We believe that our results show that LLMs implicitly have the power of logical inference.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{thuy2024implementing,
  title  = {Implementing Derivations of Definite Logic Programs with Self-Attention Networks},
  author = {Phan Thi Thanh Thuy and Akihiro Yamamoto},
  year   = {2024},
  eprint = {2410.11396},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.11396v1}
}

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

Discussion