potentialpaper

Linear-time rule mining under formal guarantees

Jonathan Feldstein, Dominic Phillips, Efthymia Tsamoura

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We present the first linear-time structure learning algorithm that mines logical rules from relational data and, using a new proxy for the predictive power of rules, ranks them to optimise a logical theory.

Abstract. Probabilistic logical models are a core component of neurosymbolic AI and are important in their own right for tasks that require high explainability. Unlike neural networks, logical theories that underlie the model are often handcrafted using domain expertise, making their development costly and prone to errors. While there are algorithms that learn logical theories from data, they are generally prohibitively expensive, limiting their applicability in real-world settings. Here, we introduce precision and recall for logical rules and define their composition as rule utility -- a measure of the predictive power of logical theories that can be computed in linear time in the data size. We then present SPECTRUM, a linear-time framework for learning logical theories from relational data, that mines recurrent patterns in the data, and subsequently uses our utility measure to evaluate and rank the rules derived from these patterns. Finally, we prove theoretical guarantees on the utility of the learnt logical theory. As a result, we demonstrate across various tasks that SPECTRUM scales to databases with orders of magnitude more relations and entities, often learning more accurate logical theories on CPUs in < 1% of the runtime of state-of-the-art neural network approaches on GPUs.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:50 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper proposes a linear-time algorithm to learn a logical theory from relational data, by 1) mining recurrent patterns in the data (logical rules) and 2) ranking them according to a utility measure. The reviewers were uniformly positive about the paper and their relatively minor questions were satisfactorily addressed during the discussion.

Final justification

Justification in metareview.

Area Chair Ppr4 · Meta-reviewOpenReview ↗
Final justification
Justification in metareview.
Read meta-review
Meta-review

The paper proposes a linear-time algorithm to learn a logical theory from relational data, by 1) mining recurrent patterns in the data (logical rules) and 2) ranking them according to a utility measure. The reviewers were uniformly positive about the paper and their relatively minor questions were satisfactorily addressed during the discussion.

Reviewer mrJWOpenReview ↗
Rating
4/6
Confidence
5/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes SPECTRUM, a scalable structure learning method for probabilistic logical models. The method represents relational data as a labelled graph/hypergraph, mines bounded-depth recurring graph patterns, generates candidate Datalog-style rules, and ranks them with a rule utility score. The utility combines precision, a symmetry correction, a Bayesian prior for predicate imbalance, recall, and a length penalty.

The paper is in the line of StarAI / statistical relational learning, especially structure learning for MLNs, PSL, and other probabilistic logical models. This direction is now not very common, so I find the paper quite interesting. The main contribution is to replace expensive inference-based rule optimisation with count-based pattern mining and utility ranking. The experiments show strong CPU runtime and competitive accuracy/rule-recovery results on KGC, MLN, and PSL-style tasks.

Strengths and weaknesses

Strongness:

  1. The problem is well motivated. Learning compact logical theories for probabilistic logical models is useful, but old structure learning methods often do not scale well.

  2. The paper has a clear connection to classical StarAI structure learning, especially structural motif based MLN learning. I like that the paper revisits this problem with a more scalable and formal pipeline.

  3. The utility metric is meaningful. Compared with simple support/confidence, it corrects for symmetry, predicate-frequency imbalance, repeated coverage of the same fact, and rule-length bias. This makes the metric more suitable for first-order relational data.

  4. The algorithmic pipeline is clean. Pattern mining, candidate rule generation, rule filtering, and greedy theory construction are separated. This makes the method easy to understand.

  5. The formal analysis is useful. The paper gives results on utility estimation, noise robustness, completeness relative to random walks, and linear scaling in entities/relations under fixed hyperparameters.

  6. The empirical results are promising. The CPU runtime is very strong, and the method is evaluated on KGC, MLN, and PSL-style rule-recovery settings. Recovering 21/21 CAD rules and 24/26 Yelp rules is a nice result.

Weaknesses:

  1. The "linear-time" claim should be stated more carefully. The method is linear in data size when M, D, epsilon, and the number of predicate types are fixed or well controlled. This is still valuable, but the abstract and introduction should make these conditions more visible.

  2. The learned rule language is somewhat hard-coded. The mined rules are body-connected and term-constrained, and the current pattern miner mainly supports unary/binary predicate structures with bounded depth. This is probably enough for many probabilistic graphical model / PLM tasks, but it is less expressive than more general hypergraph or ILP-style rule languages.

  3. The method is closer to scalable statistical relational pattern mining than to general logical theory learning. It does not support many richer ILP features such as arbitrary background knowledge, explicit positive/negative examples, predicate invention, recursive programs, or entailment-based correctness. This is fine as a design trade-off, but the paper should say this more directly.

  4. The utility metric is a proxy for final PLM usefulness. It is well designed, but it may miss rules that are individually weak but useful jointly after weight learning. Since SPECTRUM decouples structure selection from PLM weight learning, this limitation should be discussed more.

  5. The Zipfian/top-M pattern assumption is important for the guarantee. I think it is plausible in many relational graphs, but the paper should explain what happens when important rules correspond to rare patterns.

  6. Some comparisons could be stronger. The paper compares to several relevant methods, but it would be useful to more clearly position SPECTRUM against structural motif learning, PRISM, AMIE/AnyBURL-style rule mining, and ILP systems. Some of this is discussed, but the difference in expressivity and supervision should be sharper.

Questions
  1. How often does the Zipfian/top-M pattern assumption fail in practice? Are there datasets where useful rules are low-frequency and therefore missed?

  2. Can the authors give more examples of rules that SPECTRUM cannot express because of the current pattern-mining restrictions?

  3. How sensitive are the results to the maximum depth D and rule budget M? In large heterogeneous graphs, do these hyperparameters need more tuning?

  4. Does the utility ranking sometimes remove rules that are weak alone but helpful when combined with other rules in a PLM?

  5. For CAD/Yelp, the paper reports rule recovery from gold hand-engineered rules. Can the authors also report predictive PSL performance, if possible?

  6. How does SPECTRUM compare with AMIE/AnyBURL-style rule mining on rule quality and scalability, beyond the KGC metrics?

  7. Can the pattern mining component be replaced by a more general hypergraph mining algorithm while keeping the same utility and theory-construction pipeline?

Limitations

I suggest making the expressivity trade-off more explicit. The current design is a bit hard coded, but this is not necessarily bad. For probabilistic logical models, compact bounded-depth relational patterns may be enough and much more scalable. The authors should present this as a scalability-expressivity trade-off.

Final justification

This work is a decent contribution to structural learning

Formatting concerns

No.

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We would like to thank the reviewer for taking the time to review our paper. However, we believe there may have been an inadvertent mix-up, and that this review was intended for a different submission. In particular:

  • The paper description does not match our work. Our paper is about structure learning, whereas the review discusses DNN representation quality.
  • The strengths and weaknesses do not correspond to our paper. For example, we do not perform experiments on the mentioned models (e.g. VGG, ResNet, BERT-style models, or LLMs), our paper does not include an AND-OR interaction model, and the stated weakness concerns scalability, whereas improving scalability is one of the central motivations and contributions of our work.
  • The questions reference terminology that does not appear anywhere in our paper, including "interaction generalisability", "three-phase dynamic", and "interaction-penalisation method".

If we have misunderstood and the reviewer did intend this review for our paper, we would be grateful if they could let us know, and we will do our best to address the comments and questions. Otherwise, if there has indeed been a mix-up, we would kindly ask the reviewer to update the review for the correct paper. We would, of course, be happy to respond to any comments on our submission.

Reviewer mrJW · CommentOpenReview ↗

Correct review

My apologies. I must have entered it wrong since there are five papers assigned to me. The review has been corrected now.

Authors · CommentOpenReview ↗

No worries about the mix up. This is very understandable given the workload. We would like to thank you for this very detailed review and the interesting questions you posed that highlighted points that would benefit from being made more precise. Below we present concrete suggestions to address the concerns and improve the manuscript.

The "linear-time" claim should be stated more carefully.

Yes, we understand the concern and it was not our intention to overpromise. From our ablation study, we found that ε\varepsilon can be safely fixed at ε=0.01\varepsilon=0.01 as even on the more complex datasets the number of patterns found plateaus at this value across datasets, and given that DD is O(1)O(1) and M<<∣E∣<∣V∣M << |E| < |V|, the dominant scaling comes from the dataset size. This is why we believe framing SPECTRUM as linear-time in data size is valid.

However, we appreciate that the additional factors need to be stated more carefully, and we suggest the following three changes to address this issue:

  1. In the abstract (line 10) we will make clear that it is linear in the data size:

a measure of the predictive power of logical theories that can be computed in linear-time in the data size.

  1. In the introduction (line 39) we will be fully explicit:

Specifically, we make three contributions to tackle scalability, each linear in dataset size for a fixed maximum rule length, error tolerance, and predicate vocabulary:

  1. In Section 5.3, line 325, when discussing the complexity, we will add a discussion on ε\varepsilon, DD and MM and how the dataset size becomes the dominant factor.

The method is closer to scalable statistical relational pattern mining than to general logical theory learning. [...] This is fine as a design trade-off, but the paper should say this more directly. [...] It would be useful to more clearly position SPECTRUM against structural motif learning, PRISM, AMIE/AnyBURL-style rule mining, and ILP systems [...] the difference in expressivity and supervision should be sharper.

We thank the reviewer for the suggested framing. We have now added a section to the appendix comparing the shape of rules mined by different methods (see our response to Reviewer hPAA). In addition, we propose to rephrase the paragraph lines 216-223 as follows:

In (1), [...] Additionally, (2) [...]. Notice that if the data contains only binary predicates, then these restrictions reduce to chain rules imposed by prior art [cite NCRL, AMIE, RNNLogic]. By allowing unary predicates, we are able to model non-chain rules that are important in real-world datasets (c.f. App. E.2). However, in contrast to general ILP methods [cite ILASP, Popper] and even template-based rule mining [cite Metagol, HRI, δ\delta ILP], the shapes of the rules learnt by SPECTRUM are more restricted, see [new Appendix section] for a detailed comparison of learnt rules and the trade-off w.r.t. scalability. The pattern mining component of the framework can be replaced by a more sophisticated algorithm, e.g. to mine patterns with higher arity predicates or mining trees in addition to cycles, without affecting the remaining pipeline.

Regarding supervision, SPECTRUM is an entirely unsupervised algorithm similar to AMIE, AnyBURL, LSM and PRISM, which is different to other ILP methods (e.g. BOOSTR, HRI) that need positive/negative examples and (meta)templates for training.

Does the utility ranking sometimes remove rules that are weak alone but helpful when combined with other rules in a PLM? ... Since SPECTRUM decouples structure selection from PLM weight learning, this limitation should be discussed more.

Not if the rules in question are all within the top-MM highest-utility rules; the design of Alg 2 means that the utility measure of a theory will increase monotonically until all the rules are added.

However, you are correct that this means SPECTRUM is not guaranteed to find the optimal theory of a given size (since Alg 2 is greedy). This is a scalability trade-off we decided to make. Practitioners can replace Alg 2 with any optimisation algorithm and all guarantees (except possibly complexity) would still hold.

Reviewer dzMzOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Logical theories, in contrast to standard neural networks, are often handcrafted, making theire development expensive and error prone in practice. While there exist methods to automatically extract logical theories, they do not scale to real-world settings. To overome this, the authors propose SPECTRUM, a linear-time framework for learning logical theories from relational data, that mines recurrent patterns in the data, and subsequently, using our utility measure, evaluates and ranks rules derived from these patterns. The key idea is to define a notion of recall and precision of a rule, which is in turn used to define a heuristic for mining patterns. They also show how these heuristics can be linked to the optimal solution. In practice, the algorithm shows strong performance on large datasets, beating the state-of-art.

Strengths and weaknesses

Strengths:

  • The paper is extremly well-written and structured. All the neccessary concepts are formally introduced and explained well with well chosen examples.
  • The employed heuristics are intuitive
  • The theoretical analysis regarding the optimality of the heuristics supports the strong empirical results
  • The experiments include classical as well more modern neural methods, which gives a complete eval against state-of-the-art.

Weaknesses:

  • the paper does not have any methodological weaknesses that are worth mentioning
  • one potential concern is that the paper is rather a classical pattern mining paper. Could the authors elaborate, how it fits into the topics outlined in the call for papers? How is this neurosymbolic? Maybe one could show an example how neural methods could be used for grounding variables?
Questions

Could you also report Hit@N for N in 1..10 and plot this as function of N?

Limitations

yes

Final justification

All of my concerns have been addressed, and I recommend acceptance.

Formatting concerns

none

1 comment
Authors · CommentOpenReview ↗

We would like to thank the reviewer for their time and effort they have put into this very supportive review and the suggestions they made to strength the motivation of our paper.

Re Neuro-Symbolic framing: We agree that our method is not itself a neural model. Rather, it is a symbolic learning method for discovering logical rules from data. We nevertheless believe that the paper fits well within the scope of the call for papers for two reasons.

First, our contribution falls under general machine learning. The proposed framework learns logical models directly from data and is therefore an unsupervised learning approach in the classical machine learning sense. While it does not rely on neural networks, learning symbolic models from data has long been an established branch of machine learning, and our work advances this direction through new scalable algorithms together with theoretical and empirical analysis.

Second, and more importantly, we see the proposed method as an enabling component for neuro-symbolic systems. Many neuro-symbolic frameworks combine a neural component with an explicit symbolic component, such as logical rules or knowledge bases. A commonly discussed challenge is that these symbolic models often require substantial manual engineering, limiting the accessibility and wider adoption of neuro-symbolic methods [1]. Our work addresses this bottleneck by automatically learning high-quality logical rules from data at scales that were previously impractical. In particular, we show that rules comparable to or more expressive than those found by existing neuro-symbolic rule learning methods can be mined on commodity CPU hardware in a fraction of their runtime. In this sense, we view our contribution as making neuro-symbolic frameworks substantially more accessible, by lowering both the computational and engineering barriers to their development and deployment.

We will revise the paper to make this motivation more explicit in the introduction and discussion, and we will clarify that the learned rules can naturally be integrated into downstream neuro-symbolic frameworks.

Re [email protected]: Yes, please see below the full table, which we can plot in the appendix.

Dataset Hit@1 Hit@2 Hit@3 Hit@4 Hit@5 Hit@6 Hit@7 Hit@8 Hit@9 Hit@10
Family 0.819 0.962 0.982 0.992 0.996 0.997 0.997 0.998 1.000 1.000
UMLS 0.591 0.910 0.914 0.924 0.938 0.948 0.948 0.952 0.952 0.952
Kinship 0.277 0.427 0.543 0.603 0.661 0.714 0.745 0.774 0.808 0.834
WN18RR 0.421 0.551 0.645 0.726 0.786 0.824 0.860 0.885 0.885 0.885
FB15K-237 0.330 0.396 0.439 0.473 0.495 0.518 0.533 0.544 0.553 0.562

[1] Feldstein et al. 2024 "Mapping the neuro-symbolic AI landscape by architectures: A handbook on augmenting deep learning through symbolic reasoning."

Reviewer hPAAOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work aims to improve the efficiency of rule learning to scale up to larger number of given facts. The authors first propose utility metric to evaluate logical rules without requiring time-consuming inference. Based on the utility, authors propose SPECTRUM, a search-based ILP algorithm that can find the best theory (up to an error) in linear time. The algorithm has linear time complexity wrt. number of relations and number of entities, which is theoretically justified. On standard-size benchmarks, SPECTURM shows similar performance to SOTA but requires only <1% running time, and SPECTURM can easily scale to 100x larger datasets.

Strengths and weaknesses

Strengths

  1. The manuscript is well-organized, and the presentation is easy to follow.
  2. The contributions are technically sound and original. The rule utility defined in Section 4 is novel, makes sense in terms of formal logic, and shows a new path towards search-based ILP.
  3. SPECTURM is theoretically sound, and its complexity is appropriately analyzed.

Weaknesses

  1. The Related Work part (and other parts) could lead readers to mistakenly think that "ILP = knowledge graph completion (KGC)". Although KGC is a major application of ILP and it is OK to only consider KGC (and similar tasks) in experiments, authors should explictly mention this. I suggest mentioning other ILP applications, such as program synthesis, robotics, explainable reinforcement learning, and visual ILP, in the Related Work part.
  2. The term "larger datasets" in Abstract is also misleading. This work only handles a larger number of facts/entities. Differently, another line of work focuses on handling larger hypothesis space [1]. Hence, it is important to clearly define "large" in Abstract.
  3. Several statements are not precise:
    • a). Line 77: In FOL, it is not true that a term is a constant or a variable, although it is true in standard Datalog. Authors should explicitly state that they do not consider functions for terms, as done in many works that also do not consider functions (e.g., HRI).
    • b). Line 210-212: The rule shape is an interesting distinction of different methods. Only mentioning chain-like rules is not sufficient, since modern methods like HRI and ∂\partial ILP are not limited to chain-like rules. I suggest adding a thorough comparison of rule shapes since it seems that the rule shape considered in this work is unseen in prior works.
  4. It seems that all the evaluation experiments only consider unary and binary predicates. I suggest simplifying the theoretical part to also only consider unary and binary predicates. The current presentation of the theoretical part considers higher arity, which increases the reading difficulty, but the performance on higher-arity datasets is unknown.

Minor issues:

  1. Line 86-87: Using a bar to denote possible groundings (e.g., αˉ\bar{\alpha}) is not the best choice. In logic programming, a bar is typically used to denote the negation of a literal. Consider changing this notation.
  2. Line 87: Shouldn't the α\alpha in "the set of all possible groundings of α\alpha in D\mathcal{D}" be in bold?

[1] Chen, S., Zhang, R., & Zhang, X. (2025). Geoilp: A synthetic dataset to guide large-scale rule induction. In The Thirteenth International Conference on Learning Representations.

Questions
  1. Line 74: It is true that the NLMs construct models where all head and body atoms contain the same variables; however, it seems that this is not a restriction since all the variables need not actually take effect (i.e., several variables may be dummy in head or body)? The main limitation of NLMs is that we cannot extract symbolic rules from the learned model; hence, it is not a ILP model in the conventional sense.
Limitations

yes

Final justification

I will maintain my positive evaluation (Accept).

Formatting concerns

\

3 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the effort put into this review, the attention to detail and the thoughtful suggestions to improve our manuscript.

We think that all the comments present valid concerns. However, as remarked by the meta review, we believe that they can all be easily addressed with minor changes to the manuscript and below we present concrete suggestions:

The Related Work part (and other parts) could lead readers to mistakenly think that "ILP = knowledge graph completion (KGC)". Yes, the current presentation should clarify that KGC is one of several ILP application domains. We rephrased the start of the ILP paragraph as:

Inductive logic programming (ILP). ILP as a technique has been used in diverse areas such as knowledge graph completion (KGC), program synthesis, robotics, explainable reinforcement learning, and visual scene understanding [1]. Here, we focus on ILP methods for learning relational theories over databases, and apply our framework to standard KGC benchmarks to evaluate it. Given a database, a set...

We would like to point out that our framework is not limited to KGC but is learning probabilistic logical theories more generally, as, for example, we have shown with experiments on PSL and MLN benchmarks, automatically recovering theories that been used in neuro-symbolic applications [2,3,4].

The term "larger datasets" in Abstract is also misleading. [...] We understand the concern and will change the final sentence of the abstract:

we demonstrate across various tasks that SPECTRUM scales to databases with orders of magnitude more relations and entities, often learning more accurate logical theories on CPUs in < 1% of the runtime of SOTA neural network approaches on GPUs.

Line 77: In FOL, it is not true that a term is a constant or a variable [...] We agree this should be made more precise and we will rewrite as follows:

In FOL, constants represent objects in the domain (e.g. alice, bob). Variables range over the objects (e.g. X, Y, Z). Following standard practice in Datalog and the differentiable methods discussed in Section 2, we restrict ourselves to function-free FOL. In function-free FOL, a term is a constant or a variable.

I suggest simplifying the theoretical part to also only consider unary and binary predicates. We appreciate this suggestion, and this alternative presentation is something we did thoroughly consider when writing the manuscript. We favour the current presentation, as

  • It allows us to distinguish unary predicates and incident binary predicates, i.e. Likes(Alice, Alice) vs Smokes(Alice);
  • All theoretical results for SPECTRUM hold in the general hypergraph setting, and we want the presentation to reflect that generality rather than understate it;
  • Presenting the general theory leaves room for future work to extend SPECTRUM to higher-arity settings, which we believe is useful to the community.

While we understand that this increases reading burden, we tried to tackle the issue of readability by presenting simple examples for every step of the pipeline and we can add more examples with the additional page for the camera-ready version to improve the readability.

Bar notation: Yes, this is an unfortunate choice of notation and we will instead be using an indexed "g", i.e. α‾→αg\overline{\alpha} \rightarrow \alpha_g

Line 87: Shouldn't the α\alpha in "the set of all possible groundings of α\alpha in DD" be in bold? No, but we do see why this sentence was confusing; α\alpha here refers to a single, un-ground atom. It is only its set of all groundings (what we now call αg\boldsymbol{\alpha}_g) that should be bold. We will rephrase how we introduce the ground atom notation in the preliminaries as follows:

We denote a single atom as α\alpha, its ground counterpart (a fact) as αg\alpha_g. Boldface denotes the corresponding set: α\boldsymbol{\alpha} is the set of all atoms, and αg\boldsymbol{\alpha}_g is the set of groundings of a particular α\alpha.

Line 74: [...] The main limitation of NLMs is that we cannot extract symbolic rules from the learned model; hence, it is not a ILP model in the conventional sense. It's possible that using dummy variables might work in theory -- our first instinct is that this approach would increase the search space to accommodate a combinatorical number of auxiliary predicates. In any case, the reviewer is correct that NLMs do not really fit with the other methods discussed in that section, and we will remove the description from the related work.

[1] Cropper et al. (2021), Inductive logic programming [2] Wang and Poon (2018) Deep probabilistic logic: A unifying framework for indirect supervision. [3] Kuang and Tie (2020) Video understanding based on human action and group activity recognition [4] Feldstein et al. (2023) Parallel neurosymbolic integration with Concordia.

Authors · CommentOpenReview ↗

Line 210-212: The rule shape is an interesting distinction of different methods.

We suggest adding the following section to the Appendix to discuss this comment:

Expressivity of Rule Shapes

Rule-learning approaches make trade-offs between the kind of rule structures that they are capable of mining and the scalability of the method. Below, we review the common rule classes, in increasing generality, and then position SPECTRUM within this wider context.

Unrestricted ILP. Systems such as ILASP and Popper support arbitrary Horn clauses along with recursion and predicate invention, but this added expressivity comes at the cost of much larger search spaces. This limits practical scalability. For example, ILASP-based approaches become intractable at datasets on the order of just 1010 objects once given an unconstrained hypothesis space, and while Popper scales to 10310^3–10410^4 examples for simple lookup-style tasks, scalability degrades sharply once predicate invention or recursion is required (Glanois et al., 2022).

Template-based rule mining. Several learning systems, such as Metagol, search over user-provided metarules, rather than unrestricted clauses, to restrict the search space. In addition, differentiable ILP approaches, including δ\deltaILP and HRI, construct rules by composing a fixed collection of protorules. In the case of HRI, the default protorules are:

  1. Chain: Q(A,C)∧R(C,B)→H(A,B)Q(A,C)\land R(C,B) \rightarrow H(A,B)
  2. Loop: Q(A,B)∧R(B,A)→H(A)Q(A,B)\land R(B,A) \rightarrow H(A)
  3. Reciprocal: Q(A,B)∧R(B,A)→H(A,B)Q(A,B)\land R(B,A) \rightarrow H(A,B)

Repeated composition of these protorules allows increasingly expressive rule structures to be represented. For example, consider the rule

live(X,Y)∧lang(Y,Z)∧bornIn(X,Y)→speak(X,Z).\mathrm{live}(X,Y) \land \mathrm{lang}(Y,Z) \land \mathrm{bornIn}(X,Y) \rightarrow \mathrm{speak}(X,Z).

This is not a chain rule, owing to the additional 'branch' of conditional information, bornIn(X,Y)\mathrm{bornIn}(X, Y). However, this rule can be learned by HRI in two layers:

live(X,Y)∧bornIn(X,Y)→aux(X,Y)[reciprocal rule]\mathrm{live}(X,Y) \land \mathrm{bornIn}(X,Y) \rightarrow \mathrm{aux}(X,Y) \quad \text{[reciprocal rule]}
aux(X,Y)∧lang(Y,Z)→speak(X,Z)[chain rule]\mathrm{aux}(X,Y) \land \mathrm{lang}(Y,Z) \rightarrow \mathrm{speak}(X,Z) \quad \text{[chain rule]}

Like HRI, SPECTRUM can learn chain rules, loops, and reciprocals. However, unlike HRI, it cannot compose these to arbitrary depths. This results in a hypothesis space that is intermediate between chain-rule miners and miners such as HRI. However, HRI's generality comes at a scalability cost: HRI has been demonstrated to scale to graphs of up to O(104)O(10^4) objects on tasks requiring predicate invention, but has not, to our knowledge, been evaluated beyond this scale. In addition, just because a rule is representable in the hypothesis space does not imply that it is easily findable by gradient descent. For this reason, HRI needs to inject noise into the learning process and execute repeated learning cycles to guarantee finding useful rules. By contrast, SPECTRUM does not have this limitation; all rules in its hypothesis space can be recovered, up to ε\varepsilon-uncertainty guarantees.

Chain rules. A length kk chain rule can be expressed as:

R1(X0,X1)∧R2(X1,X2)∧⋯∧Rk(Xk−1,Xk)→H(X0,Xk),R_1(X_0,X_1) \land R_2(X_1,X_2) \land \cdots \land R_k(X_{k-1},X_k) \rightarrow H(X_0,X_k),

where the variables form a simple, linear path. This is the most common case for scalable rule miners, such as AMIE, Neural-LP, DRUM, NCRL, and RNNLogic.

Rules learnable by SPECTRUM. Depending on the type of predicate in the head, SPECTRUM can find the following two shapes:

  1. Binary head. When the head predicate is binary, by construction, the learnt rule must form a closed path. In contrast to chain rules, the order of variables appearing in the binary predicates does not matter, and the rule can have up to one unary predicate per variable. For example,
friends(X1,X2)∧isVerified(X2)∧friends(X2,X3)→friends(X3,X1)\mathrm{friends}(X_1,X_2) \land \mathrm{isVerified}(X_2) \land \mathrm{friends}(X_2,X_3) \rightarrow \mathrm{friends}(X_3,X_1)

is a length-3 loop. All chain rules are a subset of this type.

  1. Unary head. When the head predicate is a unary predicate, the rule can form an open path, as long as the ends are capped by unary predicates. For example,
livesIn(X,Y)∧locatedIn(Y,Z)∧isDisasterZone(Z)→isAtRisk(X)\mathrm{livesIn}(X,Y) \land \mathrm{locatedIn}(Y,Z) \land \mathrm{isDisasterZone}(Z) \rightarrow \mathrm{isAtRisk}(X)

is an open two-hop path ending in a unary.

Two special cases outside this general pattern are the following:

  1. Unary chain. All atoms are unary and share the same single variable:
U1(X)∧U2(X)∧⋯∧UN(X)→UN+1(X).U_1(X) \land U_2(X) \land \cdots \land U_N(X) \rightarrow U_{N+1}(X).

For example, isAdult(X)∧hasID(X)→canVote(X)\mathrm{isAdult}(X) \land \mathrm{hasID}(X) \rightarrow \mathrm{canVote}(X). 2. Binary rule on a fixed pair. All atoms are binary and relate the same pair of variables (in any order):

B1(X,Y)∧B2(Y,X)∧⋯→BN+1(X,Y).B_1(X,Y) \land B_2(Y,X) \land \cdots \rightarrow B_{N+1}(X,Y).

For example, follows(X,Y)∧follows(Y,X)→mutualFollow(X,Y)\mathrm{follows}(X,Y) \land \mathrm{follows}(Y,X) \rightarrow \mathrm{mutualFollow}(X,Y).

Reviewer hPAA · CommentOpenReview ↗

Thanks for your detailed responses. I will maintain my positive evaluation.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…