Entropy-based Logic Explanations of Neural Networks

Pietro Barbiero, Gabriele Ciravegna, Francesco Giannini, Pietro Lió, Marco Gori +1 more
6/12/2021
109 citations
cs.AIcs.CVcs.LG

Official code: pietrobarbiero/pytorch_explain (175 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2024-05-16). 2 more implementations below.

Abstract

Explainable artificial intelligence has rapidly emerged since lawmakers have started requiring interpretable models for safety-critical domains. Concept-based neural networks have arisen as explainable-by-design methods as they leverage human-understandable symbols (i.e. concepts) to predict class memberships.

Show full abstract

However, most of these approaches focus on the identification of the most relevant concepts but do not provide concise, formal explanations of how such concepts are leveraged by the classifier to make predictions. In this paper, we propose a novel end-to-end differentiable approach enabling the extraction of logic explanations from neural networks using the formalism of First-Order Logic. The method relies on an entropy-based criterion which automatically identifies the most relevant concepts. We consider four different case studies to demonstrate that: (i) this entropy-based criterion enables the distillation of concise logic explanations in safety-critical domains from clinical data to computer vision; (ii) the proposed approach outperforms state-of-the-art white-box models in terms of classification accuracy and matches black box performances.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
pietrobarbiero/pytorch_explainOfficial175Jupyter NotebookApache-2.02024-05-16
pietrobarbiero/logic_explained_networksOfficial53PythonApache-2.02023-06-23
pietrobarbiero/entropy-lensOfficial18Jupyter NotebookApache-2.02023-03-09
PyTorchApache-2.0

PyTorch Explain: Interpretable Deep Learning in Python.

17517Jupyter Notebook, PythonApr 10, 20212 years agoApache-2.0
deep-learningentropyexplainabilityexplainable-aiinterpretability+10 more
Apache-2.0

Logic Explained Networks is a python repository implementing explainable-by-design deep learning models.

5310Python, Jupyter NotebookDec 20, 20203 years agoApache-2.0
deep-learningexplainable-ailogicmachine-learningneural-networks+1 more
Apache-2.0
183Jupyter Notebook, PythonSep 12, 20213 years agoApache-2.0

Similar Papers

Cite this paper

@article{barbiero2021entropybased,
  title  = {Entropy-based Logic Explanations of Neural Networks},
  author = {Pietro Barbiero and Gabriele Ciravegna and Francesco Giannini and Pietro Lió and Marco Gori and Stefano Melacci},
  year   = {2021},
  eprint = {2106.06804},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.06804}
}

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

Discussion