Lifted Rule Injection for Relation Embeddings

Thomas Demeester, Tim Rocktäschel, Sebastian Riedel

Abstract

Knowledge base embeddings often lack logical consistency, failing to capture simple implications like "father implies parent." Traditional methods to inject these rules suffer from scalability issues due to propositionalization. We present a "lifted" approach that injects first-order logic rules directly into relation embeddings using a mathematical upper bound. This method avoids grounding rules on individual entity pairs, achieving improved accuracy with negligible computational overhead and enabling effective zero-shot inference.

Introduction

Automated Knowledge Base Construction (AKBC) leverages representation learning to map entities and relations into high-dimensional vector spaces. While effective at pattern recognition, these models frequently lack "common sense" logical grounding. For instance, a model might fail to recognize that the relation father_of logically implies parent_of.

The standard solution, propositionalization, involves applying rules to every matching entity pair in the database. However, this approach scales poorly; in large-scale knowledge bases with millions of facts, the number of constraints explodes, creating a significant computational bottleneck. This paper introduces a scalable alternative: Lifted Rule Injection, which teaches models logical rules without the need for exhaustive grounding.

Methodology

The core innovation lies in shifting logical reasoning from the "grounded" entity level to the "lifted" relation level.

Approximately Boolean Space

To facilitate logical operations, entity-tuple embeddings are restricted to a non-negative $[0, 1]^k$ hypercube using a sigmoid function. This transformation simplifies the mathematical representation of implications.

Partial Ordering and Lifted Loss

Logical implication ($r_p \Rightarrow r_q$) is modeled as a partial ordering of vectors. If relation $P$ implies relation $Q$, the components of their respective vectors must satisfy $r_p \le r_q$. By applying Jensen’s inequality, the authors derive an upper bound for the implication loss. This "lifted" loss involves only relation and unit vectors, making the optimization independent of the number of entities in the domain.

Experimental Setup

The proposed method was evaluated on three primary datasets:

  • New York Times (NYT): A benchmark for relation extraction combining Freebase relations with textual patterns.
  • WordNet: Used to derive 427 hypernym rules, providing a source for commonsense logic.
  • Freebase: Utilized for zero-shot learning experiments to test the model's ability to predict unseen relations.

Results and Discussion

The "lifted" approach demonstrates that logical constraints can serve as a powerful form of regularization. Restricting embeddings to a non-negative hypercube improves generalization without sacrificing expressiveness.

Accuracy and Efficiency

As shown in Table 1, adding commonsense rules significantly improves performance. The FSL model, which incorporates lifted rules, achieves a Weighted MAP of 0.69, representing a notable improvement over the baseline models.

Comparison of relation extraction performance (MAP) across different model variants.

Crucially, this performance gain comes at almost no cost to speed. Increasing the number of rules from 36 to 427 resulted in only a 3% increase in training time per epoch, confirming the scalability of the lifted approach.

Zero-Shot Inference

The model's ability to handle low-resource scenarios is particularly noteworthy. Figure 1 illustrates the performance across varying fractions of training facts.

Performance of lifted rule injection models across varying fractions of training facts.

Even in the zero-shot setting (0.0 fraction of training facts), the model can predict relations solely based on injected rules, achieving a weighted MAP of 0.35. This capability allows the model to generalize to relations for which no explicit training data exists.

Conclusion

Lifted Rule Injection provides a scalable framework for integrating symbolic logic with distributed representations. While currently limited to simple implications ($A \Rightarrow B$), the efficiency and accuracy gains are substantial. Future work will explore extending this framework to support complex logical structures such as conjunctions and negations, as well as integrating these principles into deeper neural architectures.

Summary updated

BibTeX
@inproceedings{demeester2016lifted,
  author = {Thomas Demeester and Tim Rocktäschel and Sebastian Riedel},
  title = {{Lifted Rule Injection for Relation Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1146},
}
Figure