Neural Reasoning Networks: Efficient Interpretable Neural Networks With Automatic Textual Explanations

Stephen Carrow, Kyle Harper Erwin, Olga Vilenskaia, Parikshit Ram, Tim Klinger +3 more
10/10/2024
cs.LGcs.AI

Official code: IBM/torchlogic (21 stars, Apache-2.0, last commit 2025-09-18).

Abstract

Recent advances in machine learning have led to a surge in adoption of neural networks for various tasks, but lack of interpretability remains an issue for many others in which an understanding of the features influencing the prediction is necessary to ensure fairness, safety, and legal compliance. In this paper we consider one class of such tasks, tabular dataset classification, and propose a novel neuro-symbolic architecture, Neural Reasoning Networks (NRN), that is scalable and generates logically sound textual explanations for its predictions. NRNs are connected layers of logical neurons which implement a form of real valued logic. A training algorithm (R-NRN) learns the weights of the network as usual using gradient descent optimization with backprop, but also learns the network structure itself using a bandit-based optimization. Both are implemented in an extension to PyTorch (https://github.com/IBM/torchlogic) that takes full advantage of GPU scaling and batched training. Evaluation on a diverse set of 22 open-source datasets for tabular classification demonstrates performance (measured by ROC AUC) which improves over multi-layer perceptron (MLP) and is statistically similar to other state-of-the-art approaches such as Random Forest, XGBoost and Gradient Boosted Trees, while offering 43% faster training and a more than 2 orders of magnitude reduction in the number of parameters required, on average. Furthermore, R-NRN explanations are shorter than the compared approaches while producing more accurate feature importance scores.

View on arXivView PDF

Code Implementations(1)

IBM/torchlogicOfficial100%
Apache-2.0

torchlogic is a pytorch framework for developing Neuro-Symbolic AI systems and implements Neural Reasoning Networks.

212C++, CudaAug 9, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{carrow2024neural,
  title  = {Neural Reasoning Networks: Efficient Interpretable Neural Networks With Automatic Textual Explanations},
  author = {Stephen Carrow and Kyle Harper Erwin and Olga Vilenskaia and Parikshit Ram and Tim Klinger and Naweed Aghmad Khan and Ndivhuwo Makondo and Alexander Gray},
  year   = {2024},
  eprint = {2410.07966},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07966v1}
}

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

Discussion