LPRules: Rule Induction in Knowledge Graphs Using Linear Programming

Sanjeeb Dash, Joao Goncalves
10/15/2021
cs.AIcs.LG

Official code: IBM/LPRules (4 stars, C++, EPL-2.0, last commit 2025-09-17).

Abstract

Knowledge graph (KG) completion is a well-studied problem in AI. Rule-based methods and embedding-based methods form two of the solution techniques.

Show full abstract

Rule-based methods learn first-order logic rules that capture existing facts in an input graph and then use these rules for reasoning about missing facts. A major drawback of such methods is the lack of scalability to large datasets. In this paper, we present a simple linear programming (LP) model to choose rules from a list of candidate rules and assign weights to them. For smaller KGs, we use simple heuristics to create the candidate list. For larger KGs, we start with a small initial candidate list, and then use standard column generation ideas to add more rules in order to improve the LP model objective value. To foster interpretability and generalizability, we limit the complexity of the set of chosen rules via explicit constraints, and tune the complexity hyperparameter for individual datasets. We show that our method can obtain state-of-the-art results for three out of four widely used KG datasets, while taking significantly less computing time than other popular rule learners including some based on neuro-symbolic methods. The improved scalability of our method allows us to tackle large datasets such as YAGO3-10.

View on arXivView PDF

Code Implementations(1)

IBM/LPRulesOfficial100%
EPL-2.0

Rule Induction in Knowledge Graphs Using Linear Programming

45C++, ShellNov 28, 20221 years agoEPL-2.0

Similar Papers

Cite this paper

@article{dash2021lprules,
  title  = {LPRules: Rule Induction in Knowledge Graphs Using Linear Programming},
  author = {Sanjeeb Dash and Joao Goncalves},
  year   = {2021},
  eprint = {2110.08245},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.08245}
}

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

Discussion