Neural Networks Enhancement with Logical Knowledge

Alessandro Daniele, Luciano Serafini
9/13/2020
cs.LGcs.AIcs.LO

Official code: DanieleAlessandro/KENN2 (15 stars, Python, BSD-3-Clause, last commit 2022-02-21).

Abstract

In the recent past, there has been a growing interest in Neural-Symbolic Integration frameworks, i.e., hybrid systems that integrate connectionist and symbolic approaches to obtain the best of both worlds. In a previous work, we proposed KENN (Knowledge Enhanced Neural Networks), a Neural-Symbolic architecture that injects prior logical knowledge into a neural network by adding a new final layer which modifies the initial predictions accordingly to the knowledge.

Show full abstract

Among the advantages of this strategy, there is the inclusion of clause weights, learnable parameters that represent the strength of the clauses, meaning that the model can learn the impact of each clause on the final predictions. As a special case, if the training data contradicts a constraint, KENN learns to ignore it, making the system robust to the presence of wrong knowledge. In this paper, we propose an extension of KENN for relational data. To evaluate this new extension, we tested it with different learning configurations on Citeseer, a standard dataset for Collective Classification. The results show that KENN is capable of increasing the performances of the underlying neural network even in the presence relational data, outperforming other two notable methods that combine learning with logic.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

A python 3 library based on TensorFlow 2 for injecting logical knowledge into neural networks

152PythonSep 10, 20204 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{daniele2020neural,
  title  = {Neural Networks Enhancement with Logical Knowledge},
  author = {Alessandro Daniele and Luciano Serafini},
  year   = {2020},
  eprint = {2009.06087},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.06087}
}

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

Discussion