Logical Neural Networks

Ryan Riegel, Alexander Gray, Francois Luus, Naweed Khan, Ndivhuwo Makondo +10 more
6/23/2020
234 citations
cs.AIcs.LGcs.LO

Official code: IBM/LNN (337 stars, Python, Apache-2.0, last commit 2026-10-30).

Abstract

We propose a novel framework seamlessly providing key properties of both neural nets (learning) and symbolic logic (knowledge and reasoning). Every neuron has a meaning as a component of a formula in a weighted real-valued logic, yielding a highly intepretable disentangled representation.

Show full abstract

Inference is omnidirectional rather than focused on predefined target variables, and corresponds to logical reasoning, including classical first-order logic theorem proving as a special case. The model is end-to-end differentiable, and learning minimizes a novel loss function capturing logical contradiction, yielding resilience to inconsistent knowledge. It also enables the open-world assumption by maintaining bounds on truth values which can have probabilistic semantics, yielding resilience to incomplete knowledge.

View on arXivView PDF

Code Implementations(1)

IBM/LNNOfficial100%
Apache-2.0

A `Neural = Symbolic` framework for sound and complete weighted real-value logic

337470Python, Jupyter NotebookNov 26, 20211 months agoApache-2.0
logicmachine-learningneuro-symbolic-aireasoning

Similar Papers

Cite this paper

@article{riegel2020logical,
  title  = {Logical Neural Networks},
  author = {Ryan Riegel and Alexander Gray and Francois Luus and Naweed Khan and Ndivhuwo Makondo and Ismail Yunus Akhalwaya and Haifeng Qian and Ronald Fagin and Francisco Barahona and Udit Sharma and Shajith Ikbal and Hima Karanam and Sumit Neelam and Ankita Likhyani and Santosh Srivastava},
  year   = {2020},
  eprint = {2006.13155},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.13155}
}

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

Discussion