Manuscript Offprint
arXiv:2610.29287Post-Pruning vs. Early Stopping: Which Works Better for Link Prediction with AnyBurl?
Abstract
Rule-based link prediction combines symbolic and statistical artificial intelligence methods by inductively learning a set of rules from a knowledge graph (KG), with the aim of completing the graph when a query cannot be answered from the KG alone. Several systems have been proposed, and while they perform well on classical benchmarks, even compared with embedding-based systems, many of them produce a large number of rules. This compromises scalability in the query-answering phase, especially under strong hardware constraints. In this work, we investigate the behavior of AnyBurl, a state-of-the-art rule learner for link prediction, to determine whether running it for a given time and then pruning the learned rules yields better query-answering performance at test time than a simpler approach that stops rule generation earlier.
1 Introduction
Knowledge Graphs (KGs) [19] have attracted increasing attention in recent years. For our purposes, a KG can be regarded as a large collection of subject-relation-object triplets, for instance (Bob, lives, London); well-known examples include FreeBase [7], DBPedia [3], Microsoft Satori [33], and YAGO [40]. Although a KG typically gathers a large number of facts (triplets), it is nonetheless assumed to be often incomplete [11]: entities, relations between entities, or both may be missing. This observation raises the question of whether a graph can be completed. The problem has been capturing the interest of several communities, with applications in intelligent question answering [20], recommender systems [43] and network security systems [21]. Concretely, given a KG G, a completion task amounts to filling gaps such as (Einstein, bornIn, ?) or (? , worksAt, Apple). The most widespread approaches rely on graph embeddings [2, 34, 35] or, more recently, on large language models [38]. A parallel line of work instead learns symbolic representations [12–14, 29, 30]: rules are induced from the data and link prediction queries are then answered by applying these rules over the knowledge graph, treated as a set of facts. Closely related are neuro-symbolic methods, which come in various forms. One such form injects logical knowledge (e.g. Description Logics) into an embedding space by encoding constraints directly in the objective function, as done in [1, 16, 23, 27].
In this work we focus on purely symbolic approaches. Specifically, we address the problem of pruning a set of learned rules, that is, of retaining only a subset of them, say of the original set. Rule learners targeting link prediction tend to produce very large rule sets, often in the order of millions of rules. Such volume compromises (i) scalability and responsiveness, since
Both authors contributed equally to this research. Corresponding authors.
every query must be answered by considering a vast number of rules; (ii) inspectability, since no human expert can realistically review the full set of generated rules to decide which ones are worth retaining; and (iii) usability as input to LLM-based pipelines, since it is known in the literature that when LLM's context window are overloaded — with rules in our case, as shown in [4] — they tend to perform worse. Some other works identified the amount of rules generated as a challenge for the problem of rule aggregation [6] or for the generation and evaluation as in [39].
Concretely, we build on metrics discussed in [13]—support, confidence, and PCA confidence—in addition to a variant of support that splits the rule budget across relations as the basis for a heuristic selection among the rules produced by the state-of-the-art rule learner AnyBurl [32]. We then assess how such a pruning affects link prediction performance, comparing the pruned rule set both against the original one and against a rule set of comparable size obtained by shortening the time budget of the anytime AnyBurl algorithm. Therefore, it can be read as a way of testing whether an early stopping criterion can be more or less beneficial with respect to a post-generation pruning phase applied to a larger set of generated rules. Even if we test only AnyBurl, we can apply this study to other systems producing Horn clauses for link prediction tasks.
More generally, pruning AI systems after training is a well-established practice. In particular, a variety of approaches have been proposed for pruning neural networks, both at the level of individual weights (unstructured pruning) and at the level of entire neurons, channels or layers (structured pruning) [9]. In this area, one of the most widely used heuristics is magnitude pruning, which discards the weights with smallest absolute value. As in that setting, our goal is to retain only a small fraction of the model while preserving predictive performance. The difference lies in the units being pruned: ours are logical rules, rather than weights, which are not individually interpretable. Therefore, post-training rule pruning could be considered as the symbolic counterpart of magnitude pruning and model compression.
2 Background
In this section, we recall some definitions and notions regarding the link prediction problem. We also give a brief introduction to the rule-based systems for link prediction that we consider for rule pruning.
2.1 Link Prediction in Knowledge Graphs
Following [25], we can formalize the notion of KG as:
Definition 2.1 (KG). A knowledge graph is defined as:
where , represent the sets of entities and relations. Facts are in a triplet format (a, r, b), where a, b, r represent the head entity, the tail entity and the relation between them, respectively.
Since a KG is inherently incomplete, the link prediction (or knowledge graph completion) task aims at inferring missing triplets from the observed ones. Formally,
Definition 2.2 (Link Prediction). Given an incomplete triplet, a query takes one of the two forms
called tail query and head query respectively. Answering amounts to identifying the entity s.t. the completed triplet (resp. ) is a valid fact of the domain, although it may be absent from .
In practice, the task is cast as a ranking problem. A model learns a scoring partial function
parameterised by , which assigns to each candidate triplet a plausibility score, with higher values indicating higher likelihood of the triplet being true. is a partial function, as it might not associate a score to certain facts. Given a query , every entity is scored through and the candidates are sorted in decreasing order of their score; the head query is handled symmetrically via . The rank of the ground-truth entity is then
furthermore, in the standard filtered setting, all entities such that already appears in the training, validation, or test set are removed from the candidate set before ranking, as done in the seminal work [8], so that other correct answers are not penalized. Model quality is assessed by rank-based metrics such as Mean Reciprocal Rank (MRR) and Hits@k, averaged over all head and tail queries obtained from the evaluation triplets.
Definition 2.3 (MRR and Hits@k). Let be the set of evaluation triplets. Each yields two queries, and , with filtered ranks and . Then
where is the indicator function and typically. Both metrics lie in and higher is better.
Hits@k is suited to use cases where it is sufficient for the correct answer to appear among the top k results. Unless k = 1, there is no benefit in ranking the correct entity first, as long as it appears among the top k candidates.
In contrast, MRR is sensitive to the exact position of the correct entity: if it is ranked at position instead of , the prediction is penalized. The respective penalty is largest at the top of the ranking and quickly becomes negligible for lower positions, so MRR rewards ranking the correct answer near the top rather than within a fixed cutoff. As a consequence, when a short list of answers can be taken into consideration, then evaluating a system against Hits@k is a good choice, whereas in a scenario where each answer inspection comes with a cost, then MRR is a better fit.
2.2 ILP Systems for KG Link Prediction
We first formally introduce the concepts of entailment, rules, derivation. Then, we describe what is the ILP task for KG Link prediction, and finally we introduce some standard metrics.
Entailment. Let be a knowledge graph over entities and relations . For a ground atom we set if and only if . More generally, let be a conjunction of atoms with variables ; then
there exists such that ,
where denotes the set of ground atoms obtained by applying the substitution to . Whenever does not satisfy a formula , we write .
Rules. Given a rule with and for some , as we require every variable occurring in the head to occur in the body as well. Such a constraint correspond to the safety requirement of logic programming. Note that if , then may coincide with .
Derivation. We say that derives for the query with score if there exists a rule with score , head and body such that
The derivation as a second argument of the q-relation is defined symmetrically.
Therefore, the ILP task for the link prediction problem can be formulated as the inductive generation of rules to be able to perform the link prediction task, meaning that once we have a query or , then we list out as answers to the query as a list of constants labeled with their score. If there are different rules that we can derive a specific constant , then we label such a constant with the maximum among those scores. We thus define the score associated with for the query as:
where is the score associated to the rule r. The symmetric case of e being the second argument in the query is symmetrically defined.
The support is formally defined as follows:
where is the rule and when and , then is replaced with and with , respectively.
The (standard) confidence is formally defined as follows:
where is the rule and where if and if .
The confidence of rules is therefore the result of dividing the number of groundings for the conjunction of body and head by the number of body groundings. In this way we can normalize the number of representatives (supports) the rule stands for with the number of times the rule is actually triggered.
AnyBurl AnyBurl, as presented in [32], is a random-walk
reinforcement-based rule learner. From a semantical point of view, it uses the object identity assumption [37], meaning that different variables X and Y can be grounded only with different entities/constants e and , where , i.e. the variables appearing in the body of a rule are meant to satisfy an all different constraint. Rules are generated by executing random walks on a graph. Such paths are generalized into rules by replacing constants with variables. Most rules produced by AnyBurl belong to one of the following three cases:
• binary rules B:
• unary rules with dangling atom :
• unary rules with an atom containing a constant :
In addition to them, each of the patterns may contain atoms where the arguments are swapped, for instance if . is a rule, then also , . and . are rules. AnyBURL also learns rules with an empty body, or , which predict the constant whatever the query entity, and rules whose head relates an entity to itself, . Note that only the rules do not satisfy the condition of being closed rules. We later prune the rules out in case they do not generalize on the training set.
Interestingly for our study, [32] proposes an original confidence mechanism for scoring rules based on a sampling mechanism; such an approach consists in sampling walks on a graph such that they are consistent with a given first-order rule's body. If the walk-induced grounding yields to a ground true head atom, then the rule is considered to predict such an atom correctly. Let us consider the following example.
Example 2.4. Given a rule
the search starts by collecting all the possible grounding of the variable such that they appear as the first argument of a speaks-relation, for instance {Alice, Bob, Charlie}. A random element such as Bob is picked, then a random edge labeled with speaks connecting Bob to another entity e is randomly chosen. If such an entity e is Dutch, then an entity like Netherlands from which there is an outgoing arc labeled with isSpokenIn ending up into Dutch may be chosen. If the triplet (Bob, speaks, Dutch) belongs to the KG, then it counts as a contribution to both the numerator and the denominator of the confidence score, otherwise only to the denominator.
Since the generation of rules happens by generalizing paths induced by random walks on the graph, AnyBurl classifies the random walks into profiles, where a profile consists of the type of rule (B, or ) and of the length of the path considered. In order to enhance the decision on how much CPU should be allocated to a specific profile, a RL policy is used, whose rewards consist of some confidence based metrics.
AMiE AMiE was first introduced in [13]. One of the language biases that is imposed here with respect to AnyBurl is the fact that only closed rules are learned, which rules out the rule-schema. Another difference with respect to AnyBurl is that the rules learned by AMiE do not fulfill the path constraint as , , and rule-schema do. The algorithm proceeds by applying a set of operations called , , and . More precisely,
-
takes a rule as an input and returns a rule with a body extended with a new atom with two variables as argument which shares one variable with the ones already present in the rule;
-
takes a rule as an input and returns a rule with a body extended with a new atom with one variable that already appears in the rule as one argument, while the other argument is an entity from ;
-
takes a rule as an input and returns a rule with a body extended with a new atom with two variables already appearing in the rule.
Non-closed rules are never output, but a later refinement may close them. We first define the concept of head coverage, and then introduce AMiE's algorithm. The head coverage of a rule r is obtained as the ratio between the support of r and the number pairs connected via the head predicate name in the KG. Formally, let r be
then
The idea is to normalize the support of a rule by dividing it by the number of entity pairs connected by the head predicate in the KG.
The rule-generation AMiE algorithm proceeds as follows:
-
initialize a FIFO queue q with an empty list as the only element for a certain head ;
-
while q contains at least one element;
(a) extract a rule r from q;
(b) if is defined, is closed,
and , then output ;
(c) for all operators o, for all rules obtained from :
i. if is not pruned then add it to the queue q;
where the operator is the one that can be obtained by instantiating the various , , and . The pruning check is passed if the following two conditions are matched: (i) refinement's head coverage is at least a threshold (0.01 in [13]) (ii) no rule was already produced with the same head coverage and confidence score.
AMiE scores the rules it produces according to the PCA confidence. This measure was introduced in [13] and aims at rectifying the standard confidence measure, which is inadequate under the Open World Assumption (OWA), which is the working assumption in this setting, as it counts every predicted fact that is absent from the KB as a counterexample. The PCA confidence instead relies on the Partial Completeness Assumption: if the KB contains at least one object for a given subject and relation, it is assumed to contain all of them. For instance, if the KB contains the triple (Alice, owns, house1), then it is assumed to contain every true triple of the form (Alice, owns, x); consequently, any such triple that is not in the KB is taken to be false and may serve as a counterexample. Conversely, if the KB contains no triple (Bob, owns, x)
Table 1: Statistics of the benchmark datasets.
| Dataset | Entities | Relations | Train | Validation | Test |
|---|---|---|---|---|---|
| WN18RR | 40,943 | 11 | 86,835 | 3,034 | 3,134 |
| FB15k-237 | 14,541 | 237 | 272,115 | 17,535 | 20,466 |
| YAGO3-10 | 123,182 | 37 | 1,079,040 | 5,000 | 5,000 |
| CoDEx-S | 2,034 | 42 | 32,888 | 1,827 | 1,828 |
| CoDEx-M | 17,050 | 51 | 185,584 | 10,310 | 10,311 |
| CoDEx-L | 77,951 | 69 | 551,193 | 30,622 | 30,622 |
| Hetionet | 45,158 | 24 | 2,249,925 | 121 | 151 |
| Nations | 14 | 55 | 1,592 | 199 | 201 |
at all, then nothing is assumed about what Bob owns, and no counterexample is derived for him. The PCA confidence is formally defined as follows:
where is the rule .
3 Pruning Method
Given a set of Horn clauses produced by AnyBurl, we present in what follows some selection criterion such that given the training KG and a value , it returns a subset of such that .
-
Support: the number of training triples a rule predicts correctly, as estimated by AnyBURL;
-
Confidence: which is the ration between the support and the body support;
-
Balanced: recounted exact support values, with the rule budget split across head relations by D'Hondt apportionment (see below).;
-
PCA: the PCA confidence of AMIE (Section 2.2), counted on the training graph.
We introduced the balanced criterion because a query with a given relation name can only be answered by rules whose head atom features that same relation. Rules with different head relations therefore serve disjoint sets of queries, and they can be pruned independently. Building on this observation, we allocate the rule budget using D'Hondt apportionment [5], where the “votes” are meant to be the number of occurrences of validation triples with that relation, and each relation fills its “seats” with its rules of highest support computed on the training set.
4 Experimental Evaluation
We tested our methodology on the following standard benchmarks, whose statistics are reported in Table 1:
- WN18RR [10], which contains lexical and semantic information about the English language;
For a few hundred rules on CoDEx-M, CoDEx-L, and YAGO3-10 whose predictions are too many to enumerate, the count is estimated from a sample.
Table 2: Analysis of the PCA metrics
| support | PCA confidence | |||
|---|---|---|---|---|
| cov. | RR | cov. | cov. | RR | cov. | |
| WN18RR | 71.9% | 0.672 | 6.2% | 0.931 |
| FB15k-237 | 89.0% | 0.331 | 15.1% | 0.606 |
| CoDEx-S | 97.9% | 0.415 | 38.3% | 0.753 |
| CoDEx-M | 96.9% | 0.320 | 33.5% | 0.580 |
| CoDEx-L | 85.1% | 0.331 | 7.6% | 0.650 |
| YAGO3-10 | 94.0% | 0.532 | 53.9% | 0.756 |
| Hetionet | 100.0% | 0.332 | 24.5% | 0.644 |
| Nations | 72.6% | 0.812 | 17.9% | 0.697 |
-
FB15k-237 [41], which contains cross-domain real-world facts about entities such as people, locations, movies, sports teams, and organizations;
-
YAGO3-10 [28], which contains information about people, places, and organisations;
-
CoDEx-{S,M,L} [36], which contains general knowledge about world history, culture, and science extracted from Wikidata and Wikipedia;
-
Hetionet [18], which is an integrated knowledge graph built by unifying data extracted from 29 public biomedical databases;
-
Nations [22], which contains international relations and geopolitical data.
Hetionet and Nations are an order of magnitude smaller than the rest in the number of test queries, so a single query moves Hits@1 by 0.33 and 0.25 percentage points there; we still report the results concerning these two datasets, but we treat them as exploratory and exclude them from statements made across benchmarks.
Figure 1: AnyBurl run with different time budgets (snapshots).


—— Hits@10 ---- Hits@3 ---- MRR@100 ...... Hits@1 •test
Given the set of rules produced by AnyBurl, we apply the four different filtering criteria given in Section 3. Table 4 shows that the support criterion and its weighted version balanced are effective metrics for the pruning of the rules. As expected, by retaining of rules, we obtain better performance than by retaining only of rules. Furthermore, we tested the performance on smaller set of rules , yielding the results in Table 3. They show that if we admit even fewer rules, the pruning methods help in producing even more quality rules compared to the ones produced by AnyBurl if a very short time budget is provided. More precisely, in Figure 1 we show the performance of AnyBurl with different time budgets. Interestingly, it is often the case that we need to produce a good amount of rules before discovering high quality rules. Consequently, if the target set of rules is (too) small, then the pruning techniques wins under support or balanced selection criteria over the simple earlier stopping approach. Each panel follows one benchmark's rule set as AnyBurl is given more time, from one second to one hour on a logarithmic scale, and reports the four quality measures of that rule set. Note how most benchmarks rise steeply and then flatten well before the one hour time limit; on Hetionet and Nations, quality instead drops after an early peak. Hetionet and Nations are exploratory, as these two benchmarks have only 151 and 201 test triples, respectively, making their results less reliable.
Table 3: Pruning against early stopping at three small target rule ratios: , , . Early stop is the snapshot AnyBurl had written when it reached that size, Pruned is the one-hour rule set cut to the same size, and both columns are MRR@100 on the test queries. Actual is the fraction of rules effectively retained and Rules their number. for the support and the balanced criterion, so positive values favor pruning. Note that under the Early stop and Pruned columns, the MRR@100 obtained via the support metrics is displayed.
| Dataset | Actual | Rules | Early stop | Pruned | Δ support | Δ balanced |
|---|---|---|---|---|---|---|
| Target 0.1 % | ||||||
| YAGO3-10 | 0.103% | 2,742 | 0.0552 | 0.4613 | +0.4061 | +0.4289 |
| WN18RR | 0.091% | 64 | 0.1310 | 0.4175 | +0.2865 | +0.2914 |
| CoDEx-S | 0.110% | 1,292 | 0.2474 | 0.3674 | +0.1200 | +0.1332 |
| CoDEx-L | 0.094% | 1,151 | 0.1291 | 0.2145 | +0.0854 | +0.1100 |
| CoDEx-M | 0.102% | 4,954 | 0.2354 | 0.2646 | +0.0292 | +0.0357 |
| FB15k-237 | 0.089% | 5,338 | 0.1774 | 0.1999 | +0.0225 | +0.0806 |
| Nations† | 0.110% | 33,882 | 0.8415 | 0.4962 | -0.3454 | -0.1834 |
| Target 0.25 % | ||||||
| YAGO3-10 | 0.233% | 6,194 | 0.0783 | 0.4948 | +0.4165 | +0.4116 |
| FB15k-237 | 0.284% | 17,527 | 0.1461 | 0.2449 | +0.0988 | +0.1270 |
| CoDEx-S | 0.257% | 3,023 | 0.3462 | 0.3843 | +0.0381 | +0.0519 |
| CoDEx-M | 0.263% | 14,732 | 0.2709 | 0.2849 | +0.0139 | +0.0187 |
| Target 0.5 % | ||||||
| FB15k-237 | 0.552% | 34,102 | 0.1739 | 0.2732 | +0.0994 | +0.1144 |
| CoDEx-L | 0.496% | 6,077 | 0.2106 | 0.2620 | +0.0513 | +0.0508 |
| CoDEx-M | 0.427% | 20,687 | 0.2719 | 0.2903 | +0.0184 | +0.0221 |
| YAGO3-10 | 0.544% | 16,315 | 0.4920 | 0.4969 | +0.0048 | -0.0007 |
Interestingly, we can notice from Table 4 that the PCA confidence does not score high on MRR and Hit@k for . The reason we found is that this metric scores high on rules when they can be fruitfully applied, but the relevance of a rule is not taken into consideration: a rule may have a very high PCA confidence, but it may be triggered only a handful of times. Such a conclusion is also backed by Table 2, where 1% of the rules is retained from pruning. In this table, cov. stands for the ratio of true answers that the pruned rules are able to predict regardless of their ranks with respect to the total number of test queries; RR | cov. is MRR@100 restricted to the test queries for which there is a rule deriving them.
Furthermore, in order to simplify the MRR computation, we replaced MMR with MRR@100, which computes the average of the reciprocal ranks over the pool of the top 100 ranked elements, which is a common practice in the literature [31]. This yields an underestimate of the actual MRR, but the difference is negligible. In fact, as observed above, the MRR penalty is larger at the top of the ranking and insignificant after a certain threshold.
Table 4: Keeping 1% and 10% of rules according to support, balanced, standard confidence, and PCA criteria. Hetionet has 151 test triples (302 queries), so its values are exploratory.
| full | keeping 1% of the rules | keeping 10% of the rules | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| support | balanced | std. conf. | PCA | support | balanced | std. conf. | PCA | |||
| WN18RR | MRR@100 | 0.4957 | 0.4834 | 0.4802 | 0.3555 | 0.0576 | 0.4905 | 0.4879 | 0.3962 | 0.4074 |
| Hits@1 | 0.4568 | 0.4469 | 0.4446 | 0.3527 | 0.0563 | 0.4517 | 0.4488 | 0.3899 | 0.4001 | |
| Hits@3 | 0.5105 | 0.4981 | 0.4935 | 0.3567 | 0.0586 | 0.5043 | 0.5027 | 0.4003 | 0.4119 | |
| Hits@10 | 0.5715 | 0.5571 | 0.5509 | 0.3618 | 0.0600 | 0.5678 | 0.5641 | 0.4094 | 0.4223 | |
| FB15k-237 | MRR@100 | 0.3323 | 0.2950 | 0.3036 | 0.1060 | 0.0919 | 0.3235 | 0.3267 | 0.2456 | 0.2608 |
| Hits@1 | 0.2466 | 0.2207 | 0.2263 | 0.0950 | 0.0866 | 0.2410 | 0.2438 | 0.2005 | 0.2159 | |
| Hits@3 | 0.3633 | 0.3214 | 0.3306 | 0.1136 | 0.0934 | 0.3528 | 0.3558 | 0.2676 | 0.2842 | |
| Hits@10 | 0.5065 | 0.4445 | 0.4576 | 0.1263 | 0.1018 | 0.4913 | 0.4949 | 0.3350 | 0.3464 | |
| CoDEx-M | MRR@100 | 0.3197 | 0.3106 | 0.3144 | 0.1541 | 0.1943 | 0.3175 | 0.3191 | 0.2205 | 0.2505 |
| Hits@1 | 0.2488 | 0.2426 | 0.2447 | 0.1371 | 0.1742 | 0.2475 | 0.2489 | 0.1875 | 0.2146 | |
| Hits@3 | 0.3490 | 0.3405 | 0.3444 | 0.1629 | 0.2038 | 0.3473 | 0.3485 | 0.2366 | 0.2685 | |
| Hits@10 | 0.4563 | 0.4380 | 0.4448 | 0.1851 | 0.2311 | 0.4496 | 0.4534 | 0.2813 | 0.3161 | |
| YAGO3-10 | MRR@100 | 0.5658 | 0.5003 | 0.5030 | 0.4566 | 0.4072 | 0.5266 | 0.5239 | 0.5334 | 0.5389 |
| Hits@1 | 0.4981 | 0.4274 | 0.4287 | 0.4219 | 0.3687 | 0.4574 | 0.4527 | 0.4804 | 0.4852 | |
| Hits@3 | 0.6036 | 0.5359 | 0.5419 | 0.4768 | 0.4301 | 0.5599 | 0.5580 | 0.5679 | 0.5737 | |
| Hits@10 | 0.6905 | 0.6405 | 0.6459 | 0.5242 | 0.4827 | 0.6590 | 0.6613 | 0.6296 | 0.6366 | |
| Hetionet | MRR@100 | 0.2830 | 0.3317 | 0.3517 | 0.0731 | 0.1577 | 0.2830 | 0.2834 | 0.2178 | 0.2661 |
| Hits@1 | 0.1921 | 0.2384 | 0.2748 | 0.0596 | 0.1424 | 0.1954 | 0.1987 | 0.1689 | 0.1954 | |
| Hits@3 | 0.3146 | 0.3642 | 0.3642 | 0.0828 | 0.1656 | 0.3046 | 0.3013 | 0.2318 | 0.3046 | |
| Hits@10 | 0.4536 | 0.5166 | 0.5265 | 0.0993 | 0.1821 | 0.4404 | 0.4437 | 0.3113 | 0.3974 | |
5 Conclusions
This preliminary work motivates further exploration of more sophisticated techniques for pruning Horn clauses in link prediction. Beyond that, we can experiment different metrics, such as combinations of the PCA confidence, which measures the quality of a rule when it is triggered, with another metric that can indicate whether the rule is relevant in describing the KG, such as the support metric.
An interesting direction for future research is also the integration of hybrid techniques, in which heuristics are combined with combinatorial optimisation approaches for pruning and reranking rules. To this end, we plan to investigate the use of MaxSAT [24] and integer linear programming (ILP) solvers [15].
A similar investigation can be carried out with respect to temporal rule learners such as TLogic [26], which come with a similar anytime bottom-up algorithm for learning rules from knowledge graphs. Beyond temporal rules forecasting approaches, where predictions about relations at timestamp have access to the KG portion consisting of timestamps only [17], some temporal rule approaches have been designed for the interpolation problem, where rule bodies have access to both past and future information centered around the timestamp of the query [39, 42]. This variety of tools may also benefit from an adequate post-processing pruning.
Acknowledgments
The authors acknowledge the support by the European Union's Horizon 2020 research and innovation programme under the Maria Skłodowska-Curie grant agreement No. 101034440.
Use of AI assistants
We used AI tools to draft and edit text and figures. We reviewed all AI-assisted work. Code is checked by tests. We take responsibility for the final content of this paper, including text, claims and artifacts produced with the aid of generative AI.
10
©
References
[1] Ralph Abboud, Ismail Ceylan, Thomas Lukasiewicz, and Tommaso Salvatori. Boxe: A box embedding model for knowledge base completion. Advances in neural information processing systems, 33:9649–9661, 2020.
[2] Mehdi Ali, Max Berrendorf, Charles Tapley Hoyt, Laurent Vermue, Mikhail Galkin, Sahand Sharifzadeh, Asja Fischer, Volker Tresp, and Jens Lehmann. Bringing light into the dark: A large-scale evaluation of knowledge graph embedding models under a unified framework. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(12):8825–8845, 2021.
[3] Sören Auer, Christian Bizer, Georgi Kobilarov, Jens Lehmann, Richard Cyganiak, and Zachary Ives. Dbpedia: A nucleus for a web of open data. In international semantic web conference, pages 722–735. Springer, 2007.
[4] Teodoro Baldazzi, Luigi Bellomarini, Andrea Coletta, Michela Iezzi, Carsten Maple, Alessandro Pesare, and Emanuel Sallinger. VADAOrchestra: Neurosymbolic Orchestration of Adaptive Reasoning Workflows. In Proceedings of the 23rd International Conference on Principles of Knowledge Representation and Reasoning, pages 815–825, 7 2026. doi:10.24963/kr.2026/77. URL https://doi.org/10.24963/kr.2026/77.
[5] Michel L Balinski and H Peyton Young. Fair representation: meeting the ideal of one man, one vote. Rowman & Littlefield, 2010.
[6] Patrick Betz, Christian Meilicke, and Heiner Stuckenschmidt. Supervised knowledge aggregation for knowledge graph completion. In European Semantic Web Conference, pages 74–92. Springer, 2022.
[7] Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. Freebase: a collaboratively created graph database for structuring human knowledge. In Proceedings of the 2008 ACM SIGMOD international conference on Management of data, pages 1247–1250, 2008.
[8] Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. Advances in neural information processing systems, 26, 2013.
[9] Hongrong Cheng, Miao Zhang, and Javen Qinfeng Shi. A survey on deep neural network pruning: Taxonomy, comparison, analysis, and recommendations. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12):10558–10578, 2024.
[10] Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, and Sebastian Riedel. Convolutional 2d knowledge graph embeddings. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
[11] Xin Dong, Evgeniy Gabrilovich, Geremy Heitz, Wilko Horn, Ni Lao, Kevin Murphy, Thomas Strohmann, Shaohua Sun, and Wei Zhang. Knowledge vault: A web-scale approach to probabilistic knowledge fusion. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 601–610, 2014.
[12] Luis Galárraga, Christina Teflioudi, Katja Hose, and Fabian M Suchanek. Fast rule mining in ontological knowledge bases with amie+. The VLDB Journal, 24(6):707–730, 2015.
[13] Luis Antonio Galárraga, Christina Teflioudi, Katja Hose, and Fabian Suchanek. Amie: association rule mining under incomplete evidence in ontological knowledge bases. In Proceedings of the 22nd international conference on World Wide Web, pages 413–422, 2013.
[14] Kun Gao, Katsumi Inoue, Yongzhi Cao, and Hanpin Wang. A differentiable first-order rule learner for inductive logic programming. Artif. Intell., 331:104108, 2024. doi: 10.1016/J.ARTINT.2024.104108. URL https://doi.org/10.1016/j.artint.2024.104108.
[15] Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual, 2026. URL https://www.gurobi.com.
[16] Victor Gutierrez Basulto and Steven Schockaert. From knowledge graph embedding to ontology embedding? an analysis of the compatibility between vector space representations and rules. 2018.
[17] Zhen Han, Peng Chen, Yunpu Ma, and Volker Tresp. Explainable subgraph reasoning for forecasting on temporal knowledge graphs. In ICLR, 2021.
[18] Daniel Scott Himmelstein, Antoine Lizee, Christine Hessler, Leo Brueggeman, Sabrina L Chen, Dexter Hadley, Ari Green, Pouya Khankhanian, and Sergio E Baranzini. Systematic integration of biomedical knowledge prioritizes drugs for repurposing. elife, 6:e26726, 2017.
[19] Aidan Hogan, Eva Blomqvist, Michael Cochez, Claudia d'Amato, Gerard De Melo, Claudio Gutierrez, Sabrina Kirrane, José Emilio Labra Gayo, Roberto Navigli, Sebastian Neumaier, et al. Knowledge graphs. ACM Computing Surveys (Csur), 54(4):1–37, 2021.
[20] Xiao Huang, Jingyuan Zhang, Dingcheng Li, and Ping Li. Knowledge graph embedding based question answering. In Proceedings of the twelfth ACM international conference on web search and data mining, pages 105–113, 2019.
[21] Yan Jia, Yulu Qi, Huaijun Shang, Rong Jiang, and Aiping Li. A practical approach to constructing a knowledge graph for cybersecurity. Engineering, 4(1):53–60, 2018.
[22] Charles Kemp, Joshua B Tenenbaum, Thomas L Griffiths, Takeshi Yamada, and Naonori Ueda. Learning systems of concepts with an infinite relational model. In AAAI, volume 3, page 5, 2006.
[23] Maxat Kulmanov, Wang Liu-Wei, Yuan Yan, and Robert Hoehndorf. El embeddings: Geometric construction of models for the description logic el++. arXiv preprint arXiv:1902.10499, 2019.
[24] Chu Min Li and Felip Manya. Maxsat, hard and soft constraints. In Handbook of satisfiability, pages 613–631. IOS Press, 2009.
[25] Xinyu Liang, Guannan Si, Jianxin Li, Pengxin Tian, Zhaoliang An, and Fengyu Zhou. A survey of inductive knowledge graph completion. Neural Computing and Applications, 36(8):3837–3858, 2024.
[26] Yushan Liu, Yunpu Ma, Marcel Hildebrandt, Mitchell Joblin, and Volker Tresp. Tlogic: Temporal logical rules for explainable link forecasting on temporal knowledge graphs. In Proceedings of the AAAI conference on artificial intelligence, volume 36, pages 4120–4127, 2022.
[27] Bruno F Lourenço, Hesham Morgan, Ana Ozaki, Aleksandar Pavlović, and Emanuel Sallinger. Boxlite: A faithful knowledge base embedding based on convex optimization. arXiv preprint arXiv:2605.23937, 2026.
[28] Farzaneh Mahdisoltani, Joanna Biega, and Fabian Suchanek. Yago3: A knowledge base from multilingual wikipedia. In 7th biennial conference on innovative data systems research. CIDR Conference, 2014.
[29] Christian Meilicke, Manuel Fink, Yanjie Wang, Daniel Ruffinelli, Rainer Gemulla, and Heiner Stuckenschmidt. Fine-grained evaluation of rule-and embedding-based systems for knowledge graph completion. In International semantic web conference, pages 3–20. Springer, 2018.
[30] Christian Meilicke, Melisachew Wudage Chekol, Daniel Ruffinelli, and Heiner Stuckenschmidt. Anytime bottom-up rule learning for knowledge graph completion. In IJCAI, volume 2019, pages 3137–3143, 2019.
[31] Christian Meilicke, Melisachew Wudage Chekol, Manuel Fink, and Heiner Stuckenschmidt. Reinforced anytime bottom up rule learning for knowledge graph completion. arXiv preprint arXiv:2004.04412, 2020.
[32] Christian Meilicke, Melisachew Wudage Chekol, Patrick Betz, Manuel Fink, and Heiner Stuckenschmidt. Anytime bottom-up rule learning for large-scale knowledge graph completion: C. meilicke et al. The VLDB Journal, 33(1):131–161, 2024.
[33] Natasha Noy, Yuqing Gao, Anshu Jain, Anant Narayanan, Alan Patterson, and Jamie Taylor. Industry-scale knowledge graphs: lessons and challenges. Communications of the ACM, 62(8):36–43, 2019.
[34] Andrea Rossi, Denilson Barbosa, Donatella Firmani, Antonio Matinata, and Paolo Merialdo. Knowledge graph embedding for link prediction: A comparative analysis. ACM Transactions on Knowledge Discovery from Data (TKDD), 15(2):1–49, 2021.
[35] Daniel Ruffinelli, Samuel Broscheit, and Rainer Gemulla. You can teach an old dog new tricks! on training knowledge graph embeddings. In International conference on learning representations, 2020.
[36] Tara Safavi and Danai Koutra. Codex: A comprehensive knowledge graph completion benchmark. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 8328–8350, 2020.
[37] Giovanni Semeraro, Floriana Esposito, Donato Malerba, Clifford Brunk, and Michael Pazzani. Avoiding non-termination when learning logic programs: A case study with foil and focl. In International Workshop on Meta-Programming in Logic, pages 183–198. Springer, 1994.
[38] Dong Shu, Tianle Chen, Mingyu Jin, Chong Zhang, Mengnan Du, and Yongfeng Zhang. Knowledge graph large language model (kg-llm) for link prediction. arXiv preprint arXiv:2403.07311, 2024.
[39] Davide Soldà, Kun Gao, Thomas Eiter, and Katsumi Inoue. Incremental differentiable metric temporal first-order rule learning. In Davide Lanti and Adrian Paschke, editors, Rules and Reasoning: 10th International Joint Conference, RuleML+RR 2026, Vilnius, Lithuania, August 24–26, 2026, Proceedings, Lecture Notes in Computer Science. Springer, 2026.
[40] Fabian M Suchanek, Gjergji Kasneci, and Gerhard Weikum. Yago: a core of semantic knowledge. In Proceedings of the 16th international conference on World Wide Web, pages 697–706, 2007.
[41] Kristina Toutanova and Danqi Chen. Observed versus latent features for knowledge base and text inference. In Proceedings of the 3rd workshop on continuous vector space models and their compositionality, pages 57–66, 2015.
[42] Dingmin Wang, Przemysław Andrzej Wałęga, and Bernardo Cuenca Grau. Mtlearn: extracting temporal rules using datalog rule learners. In Proceedings of the International Conference on Principles of Knowledge Representation and Reasoning, volume 21, pages 962–973, 2024.
[43] Xiang Wang, Dingxian Wang, Canran Xu, Xiangnan He, Yixin Cao, and Tat-Seng Chua. Explainable reasoning over knowledge graphs for recommendation. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 5329–5336, 2019.