arXiv:2610.18198cs.AIOct 2026

Manuscript Offprint

arXiv:2610.18198

QORH: Learning Query-Specific Ordered Rule Hypergraphs for Inductive Knowledge Graph Link Prediction

Naixing Xu

Naixing Xu [0009−0005−2094−330X]^{[0009-0005-2094-330X]}

School of Software, Shandong University, Jinan, China

naixingxu@mail.sdu.edu.com

Abstract. Knowledge graph link prediction involving unseen entities and relations requires learning transferable reasoning patterns from observed graph structure. Existing methods based on relation graphs primarily capture pairwise dependencies, limiting their ability to preserve the compositional semantics, relation ordering, and role information of complete path rules. To address this limitation, we propose QORH (Query-specific Ordered Rule Hypergraph), which jointly encodes rule heads and ordered rule bodies as hyperedges conditioned on the query relation, explicitly modeling joint dependencies among multiple relations. QORH performs learnable rule selection using statistical evidence, such as rule confidence and coverage, and enhances relation representations through role-aware hypergraph message passing to guide entity-level reasoning. The model's shared parameters are independent of specific entity or relation identifiers, enabling inductive prediction for unseen entities and relations. Extensive experiments on entity-inductive and fully inductive benchmarks demonstrate that QORH significantly outperforms the state-of-the-art baselines included in our evaluation, validating the effectiveness of rule hypergraph modeling for inductive link prediction.

Keywords: Knowledge graph link prediction · Inductive reasoning · Ordered rule hypergraphs · Higher-order relational modeling · Graph neural networks.

1 Introduction

Knowledge graphs (KGs) represent entities and their semantic relationships as structured triples (h,r,t)(h, r, t), where hh, tt, and rr denote the head entity, tail entity, and their relation, respectively. Owing to their rich semantics and structured representation capabilities, KGs have been widely applied to recommender systems [1, 2], question answering [3, 4], biomedicine [5, 6], and other domains [7, 8].

However, KGs are typically incomplete because of the high cost of knowledge acquisition and the continuous evolution of real-world knowledge. Knowledge graph link prediction aims to infer missing facts from observed ones and has become a central task in KG research. Although conventional embedding methods

N. Xu et al.

Figure

Fig. 1. Spurious composition of binary edges in relation-level auxiliary graphs. The two KGs induce identical binary relation graphs, yet only KG A contains a continuous path with the relation sequence (r1,r2,r3)(r_{1}, r_{2}, r_{3}).

such as TransE [9], DistMult [10], ComplEx [11], and RotatE [12] have achieved notable progress, they generally follow the transductive setting, assuming that all entities and relations encountered during inference have been observed during training. Consequently, they struggle to generalize to unseen entities and relations.

To handle unseen entities, entity-inductive methods such as GraIL [13], TACT [14], MorsE [15], and Content Pooling [16] learn transferable local structures and relational patterns without relying on entity-specific representations. Nevertheless, these methods typically assume a shared relation set between the training and test graphs, limiting their applicability to open-world scenarios in which both entities and relations continuously emerge.

Accordingly, fully inductive KG link prediction requires models to generalize simultaneously to unseen entities and relations. Methods such as RMPI [17], InGram [18], and TARGI [19] enable fully inductive reasoning by learning transferable relational structures. KG foundation models such as ULTRA [20] and GraphOracle [21] further learn general reasoning patterns independent of specific entity and relation vocabularies through pretraining across multiple KGs, achieving strong performance on various inductive benchmarks with limited fine-tuning on target KGs.

Despite the progress made by fully inductive KG link prediction methods such as InGram [18], ULTRA [20], TARGI [19], and GraphOracle [21], their relation modeling is generally limited to pairwise dependencies induced by shared entities, making it difficult to preserve the compositional semantics, relation roles, and overall reliability of ordered multi-relation rules. As illustrated in Figure 1, given a KG G=(V,R,F)\mathcal{G} = (\mathcal{V}, \mathcal{R}, \mathcal{F}), GraphOracle [21] establishes a directed edge in its relation-level auxiliary graph whenever two relations are sequentially connected through an intermediate entity: (ri,rj)∈ER  ⟺  ∃u,x,v∈V:(u,ri,x)∈F∧(x,rj,v)∈F(r_i, r_j) \in \mathcal{E}_R \iff \exists u, x, v \in \mathcal{V} : (u, r_i, x) \in \mathcal{F} \land (x, r_j, v) \in \mathcal{F}, where V\mathcal{V}, R\mathcal{R}, and F\mathcal{F} denote the entity set, relation set, and factual triple set, respectively, and ER\mathcal{E}_R is the directed edge set of the relation-level auxiliary graph. This construction retains only local adjacency between relations and cannot determine whether multiple pairwise dependencies originate from the same complete path. For example, both knowledge graph A and knowledge graph B contain r1→r2r_1 \to r_2 and r2→r3r_2 \to r_3, whereas only knowledge graph A contains the complete sequence r1→r2→r3r_1 \to r_2 \to r_3. In knowledge graph B, the two relation pairs arise from different paths and therefore cannot form a valid reasoning chain. We refer to this limitation as the “spurious composition of binary edges,” indicating that pairwise dependencies alone are insufficient to recover higher-order joint structures among multiple relations.

Moreover, as discussed in GraphOracle, the performance of existing KG foundation models often depends substantially on fine-tuning over target datasets [21]. Our data analysis in Section 4.2 further reveals overlaps between some pretraining data and inductive test sets, exposing models to information that should remain unseen during evaluation and thereby causing data leakage. Consequently, the resulting performance may conflate pretraining memorization with inductive generalization, making it difficult to assess the models' true capabilities under strict inductive protocols. Therefore, achieving reliable link prediction for unseen entities and even unseen relations under strict inductive evaluation protocols remains an important open problem.

To address these limitations, we propose a query-specific rule hypergraph enhancement method that represents ordered path rules as hyperedges connecting rule-head and rule-body relations, thereby preserving their compositional semantics, ordering, and role information. A lightweight multilayer perceptron jointly considers rule statistics, such as confidence and coverage, to select high-quality hyperedges, while role-aware relation-hyperedge-relation message passing enhances relation representations for entity-level reasoning and link prediction. Following the entity-inductive protocol of GraIL [13] and the fully inductive protocol of InGram [18], our method achieves state-of-the-art performance in both inductive settings. The main contributions of this work are summarized as follows:

– We propose a query-specific rule hypergraph enhancement method that explicitly models ordered multi-relation rules through learnable rule selection and role-aware hypergraph propagation.

– We identify the loss of multi-relation rule information and the spurious composition of binary edges caused by binary relation-level auxiliary graphs, and analyze this limitation from the perspective of higher-order relational modeling.

N. Xu et al.

– We conduct systematic experiments on 12 entity-inductive and 12 fully inductive datasets. The proposed method consistently outperforms existing state-of-the-art approaches on the major evaluation metrics, demonstrating strong inductive generalization and robustness.

References (41)