Logic Tensor Networks

Samy Badreddine, Artur d'Avila Garcez, Luciano Serafini, Michael Spranger
12/25/2020
442 citations
cs.AIcs.LG

Official code: logictensornetworks/logictensornetworks (376 stars, Python, MIT, TensorFlow, last commit 2026-11-15).

Abstract

Artificial Intelligence agents are required to learn from their surroundings and to reason about the knowledge that has been learned in order to make decisions. While state-of-the-art learning from data typically uses sub-symbolic distributed representations, reasoning is normally useful at a higher level of abstraction with the use of a first-order logic language for knowledge representation.

Show full abstract

As a result, attempts at combining symbolic AI and neural computation into neural-symbolic systems have been on the increase. In this paper, we present Logic Tensor Networks (LTN), a neurosymbolic formalism and computational model that supports learning and reasoning through the introduction of a many-valued, end-to-end differentiable first-order logic called Real Logic as a representation language for deep learning. We show that LTN provides a uniform language for the specification and the computation of several AI tasks such as data clustering, multi-label classification, relational learning, query answering, semi-supervised learning, regression and embedding learning. We implement and illustrate each of the above tasks with a number of simple explanatory examples using TensorFlow 2. Keywords: Neurosymbolic AI, Deep Learning and Reasoning, Many-valued Logic.

View on arXivView PDF

Code Implementations(1)

TensorFlowMIT

Deep Learning and Logical Reasoning from Data and Knowledge

37671Python, Jupyter NotebookJul 7, 20182 weeks agoMIT
fuzzy-logiclogic-programmingmachinelearningtensorflow

Similar Papers

Cite this paper

@article{badreddine2020logic,
  title  = {Logic Tensor Networks},
  author = {Samy Badreddine and Artur d'Avila Garcez and Luciano Serafini and Michael Spranger},
  year   = {2020},
  eprint = {2012.13635},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.13635}
}

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

Discussion