Rule Learning for Knowledge Graph Reasoning under Agnostic Distribution Shift

Shixuan Liu, Yue He, Yunfei Wang, Hao Zou, Haoxiang Cheng +3 more
7/7/2025
cs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Logical rule learning, a prominent category of knowledge graph (KG) reasoning methods, constitutes a critical research area aimed at learning explicit rules from observed facts to infer missing knowledge. However, like all KG reasoning methods, rule learning suffers from a critical weakness-its dependence on the I.I.D. assumption. This assumption can easily be violated due to selection bias during training or agnostic distribution shifts during testing (e.g., as in query shift scenarios), ultimately undermining model performance and reliability. To enable robust KG reasoning in wild environments, this study investigates logical rule learning in the presence of agnostic test-time distribution shifts. We formally define this challenge as out-of-distribution (OOD) KG reasoning-a previously underexplored problem, and propose the Stable Rule Learning (StableRule) framework as a solution. StableRule is an end-to-end framework that combines feature decorrelation with rule learning network, to enhance OOD generalization in KG reasoning. By leveraging feature decorrelation, StableRule mitigates the adverse effects of covariate shifts arising in OOD scenarios, improving the robustness of the rule learning network. Extensive experiments on seven benchmark KGs demonstrate the framework's superior effectiveness and stability across diverse heterogeneous environments, highlighting its practical significance for real-world applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{liu2025rule,
  title  = {Rule Learning for Knowledge Graph Reasoning under Agnostic Distribution Shift},
  author = {Shixuan Liu and Yue He and Yunfei Wang and Hao Zou and Haoxiang Cheng and Wenjing Yang and Peng Cui and Zhong Liu},
  year   = {2025},
  eprint = {2507.05110},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.05110v3}
}

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

Discussion