Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Enhanced Neural Networks for relational domains

Alessandro Daniele, Luciano Serafini|arXiv (Cornell University)|May 31, 2022
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper extends Knowledge Enhanced Neural Networks (KENN) to handle relational data by introducing multiple residual logical layers that inject prior logical knowledge into neural networks, enabling scalable reasoning over unary and binary predicates. The method improves model accuracy—especially under low-data regimes—while maintaining high efficiency, outperforming SBR and RNM in both performance and training speed on the Citeseer dataset.

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 this work we focus on a specific method, KENN (Knowledge Enhanced Neural Networks), a Neural-Symbolic architecture that injects prior logical knowledge into a neural network by adding on its top a residual layer that modifies the initial predictions accordingly to the knowledge. 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 rule 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. One of the main advantages of KENN resides in its scalability, thanks to a flexible treatment of dependencies between the rules obtained by stacking multiple logical layers. We show experimentally the efficacy of this strategy. The results show that KENN is capable of increasing the performances of the underlying neural network, obtaining better or comparable accuracies in respect to other two related methods that combine learning with logic, requiring significantly less time for learning.

Motivation & Objective

  • To extend the KENN framework to support relational data, including both unary and binary predicates, which the original version could not handle due to its matrix-based representation.
  • To address the violation of the independence assumption between logical rules in real-world relational domains by introducing multiple stacked logical layers.
  • To improve the scalability and robustness of knowledge injection in neural networks, especially in low-data and complex relational settings.
  • To empirically validate the effectiveness of the extended KENN framework against existing Neural-Symbolic methods like SBR and RNM on collective classification tasks.

Proposed method

  • Augments a pre-trained neural network with multiple residual logical layers that modify predictions based on prior logical rules.
  • Represents logical knowledge as differentiable constraints applied via residual connections, enabling end-to-end training.
  • Introduces learnable clause weights per rule, allowing the model to dynamically adjust the influence of each logical constraint.
  • Supports both unary and binary predicates by redefining the input representation to handle relational structures beyond tabular formats.
  • Employs a stacking strategy of multiple logical layers to model dependencies between rules, overcoming the independence assumption limitation.
  • Uses a flexible, scalable architecture that maintains high training efficiency even with complex rule sets.

Experimental results

Research questions

  • RQ1Can KENN be effectively extended to handle relational data with both unary and binary predicates?
  • RQ2Does stacking multiple logical layers improve performance when the independence assumption between rules is violated?
  • RQ3How does the performance of the extended KENN compare to SBR and RNM in terms of accuracy and training efficiency on relational datasets?
  • RQ4To what extent does knowledge injection reduce the required amount of labeled training data?

Key findings

  • KENN with three KE layers achieved a test accuracy of 0.110 in the transductive scenario with only 10% training data, matching the performance of a standard NN with 50% data.
  • The addition of knowledge via KE layers increased accuracy in low-data regimes, effectively doubling the data efficiency—equivalent to doubling the training set size.
  • KENN outperformed SBR and RNM in both inductive and transductive settings, with the largest performance gap observed in low-data scenarios.
  • KENN achieved an average training time of 7.96 seconds per run, significantly faster than SBR (87.36s) and RNM (215.69s), demonstrating superior scalability.
  • Adding more KE layers improved accuracy up to a point, after which performance stabilized, confirming the method’s robustness and diminishing returns beyond optimal depth.
  • In the inductive setting, SBR showed minimal improvement, while KENN and RNM maintained strong performance, indicating model-based approaches are more effective than regularization-based ones.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.