NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Logical Entity Representation in Knowledge-Graphs for Differentiable Rule Learning

Chi Han, Qizheng He, Charles Yu, Xinya Du, Hanghang Tong, Heng Ji

Abstract

Knowledge Graph (KG) reasoning traditionally relies on either interpretable but limited chain-like rules or powerful but opaque black-box embeddings. This paper introduces Logical Entity RePresentation (LERP), a novel method that bridges this gap by encoding the local neighborhood of entities as interpretable, differentiable logical vectors. By incorporating rich contextual information through tree-like logical structures, LERP achieves state-of-the-art performance in link prediction while maintaining full explainability.

Introduction

Knowledge Graph reasoning involves predicting missing links between entities. Traditional rule-learning methods typically rely on chain-like Horn clauses, which identify simple paths. For example, a rule might state: If $z$ is the mother of $x$ AND $z$ is the mother of $y$, then $y$ is the sibling of $x$.

However, these simple chains often lack the necessary context to distinguish between specific relations. Knowing $z$ is the mother of both $x$ and $y$ identifies them as siblings but does not specify if $y$ is the brother or sister of $x$. To make this distinction, contextual information about $y$’s gender is required.

Contextual information helps distinguish between similar relations like 'brother' and 'sister' by incorporating extra facts like 'y is a son'.

While "black-box" embedding methods (e.g., TransE, ComplEx) excel at capturing such context, they lack interpretability. Conversely, interpretable rule-learning methods have historically ignored local subgraph context, leading to a significant performance gap.

Methodology: Logical Entity Representation (LERP)

The authors propose LERP, which represents each entity as a vector of probabilistic logical functions. This approach moves beyond simple chains to more complex "tree-like" structures.

Tree-like Logical Functions

LERP constructs logical representations recursively using three primary operations:

  1. Chaining: Following an edge in the graph.
  2. Negation (NOT): Representing the absence of a relation.
  3. Merging (AND/OR): Combining multiple logical paths.

Differentiable Architecture

To enable training via standard gradient descent, these logical operations are "relaxed" into the probabilistic domain. For instance, a logical AND is implemented as a Hadamard product of vectors. This differentiable framework allows the model to learn the optimal "shape" of logical rules automatically.

LERP builds complex logical representations by relaxing tree-like logical functions into a parametrized probabilistic architecture.

Integration

LERP is designed as a "plug-and-play" component. It can enhance existing rule-learning frameworks (such as DRUM) or be combined with black-box embedding models to provide a layer of interpretability.

Experiments and Results

The model was evaluated on standard Knowledge Graph Completion benchmarks (WN18RR, WN18), Statistical Relation Learning datasets (Family, Kinship, UMLS), and Event Prediction tasks (General, IED).

Performance and Interpretability

LERP significantly outperformed previous rule-learning baselines. On WN18RR, it achieved an MRR of 0.622, compared to 0.486 for DRUM. Remarkably, its performance was competitive with state-of-the-art black-box models.

Beyond performance, LERP offers inherent interpretability. Principal Component Analysis (PCA) of the LERP space revealed that entities naturally cluster by their logical roles (e.g., all "sons" cluster together). Furthermore, when combined with TransE, LERP acted as a "logical regularizer," improving performance on the Family dataset while making the resulting embeddings explainable.

Conclusion

LERP represents a significant advancement in differentiable rule learning by successfully incorporating local subgraph context into an interpretable framework. While challenges remain regarding the massive search space for rules and computational costs for very large graphs, LERP provides a robust foundation for combining the strengths of neural embeddings and symbolic logic. Future work will explore its integration with a broader range of neural architectures to provide even stronger logical constraints.

Summary updated

BibTeX
@inproceedings{han2023logical,
  author = {Chi Han and Qizheng He and Charles Yu and Xinya Du and Hanghang Tong and Heng Ji},
  title = {{Logical Entity Representation in Knowledge-Graphs for Differentiable Rule Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=JdgO-ht1uTN},
}
Figure