arXiv:2610.29287cs.LOOct 2026

Manuscript Offprint

arXiv:2610.29287

Post-Pruning vs. Early Stopping: Which Works Better for Link Prediction with AnyBurl?

Thomas Eiter, Davide Soldà, Hai Xia

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 n%n\% 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.

References (42)