user: text: Write a concise one-sentence TLDR summary of the scientific paper content below.

Title: Scalable Rule Learning in Probabilistic Knowledge Bases

Paper content:
Knowledge Bases (KBs) are becoming increasingly large, sparse and probabilistic.
These KBs are typically used to perform query inferences and rule mining.
But their efficacy is only as high as their completeness.
Efficiently utilizing incomplete KBs remains a major challenge as the current KB completion techniques either do not take into account the inherent uncertainty associated with each KB tuple or do not scale to large KBs.
Probabilistic rule learning not only considers the probability of every KB tuple but also tackles the problem of KB completion in an explainable way.
For any given probabilistic KB, it learns probabilistic first-order rules from its relations to identify interesting patterns.
But, the current probabilistic rule learning techniques perform grounding to do probabilistic inference for evaluation of candidate rules.
It does not scale well to large KBs as the time complexity of inference using grounding is exponential over the size of the KB.
In this paper, we present SafeLearner -- a scalable solution to probabilistic KB completion that performs probabilistic rule learning using lifted probabilistic inference -- as faster approach instead of grounding.
We compared SafeLearner to the state-of-the-art probabilistic rule learner ProbFOIL+ and to its deterministic contemporary AMIE+ on standard probabilistic KBs of NELL (Never-Ending Language Learner) and Yago.
Our results demonstrate that SafeLearner scales as good as AMIE+ when learning simple rules and is also significantly faster than ProbFOIL+.
There is an increasing tendency to construct knowledge bases and knowledge graphs by machine learning methods.
As a result, knowledge bases are often incomplete and also uncertain.
To cope with uncertainty, one often resorts to probabilistic databases and logics Suciu, 2017, De Raedt et al., 2016] , which take into account the probability of the tuples in the querying process.
The most widely used probabilistic database semantics is based on the tuple-independent probabilistic databases model, which assumes that every tuple in every table of the database is independent of one another To cope with incomplete knowledge bases, various researchers have used machine learning techniques to learn a set of rules that can be used to infer new tuples from the existing ones, thereby completing the knowledge base BID2 .
This traditional relational rule learning setting BID18 has been extended to probabilistic logics and databases by De Raedt et al. [2015] .
However, the ProbFOIL approach of De Raedt et al. suffers from one key limitation: It does not scale well to large databases due to the grounding step, which results in an intractable probabilistic inference problem.
The key contribution of this paper is the introduction of the SafeLearner system which performs two major tasks.
1) It uses lifted inference to avoid the grounding step and to improve scaling.2) It enhances a highly efficient rule generation system, AMIE+ BID11 ] to obtain deterministic candidate rules which are then made probabilistic using lifted inference.
This paper is organized as follows.
We introduce the background for this paper in Section 2.
We define, in Section 3, the problem of learning a set of probabilistic rules.
Sections 4 and 5 outline the idea behind the working of SafeLearner.
Section 6 proposes the algorithm for SafeLearner.
In Section 7, we present an experimental evaluation in the context of the NELL knowledge base BID2 ].
An overview of related work can be found in Section 8.
Section 9 discusses future research directions and concludes.
The notation used and definitions introduced in this section are largely adapted from the work of Ceylan et al. [2016] .
Throughout the paper, σ denotes a relational vocabulary, consisting of a finite set of predicates or relations R, and a finite set of constants or entities C. The Herbrand Base of σ is the set of all ground atoms, called σ-atoms, of the form R(c 1 , ..., c n ) with R ∈ R and c i ∈ C (that is, all tuples that can be constructed from R and C).
A σ-interpretation is a truth value assignment to all the σ-atoms, often represented as a set containing all the σ-atoms mapped to True.
A relational database can be seen as a σ-interpretation BID0 .
Here, database relations correspond to predicates and database tuples correspond to σ-atoms.
The σ-atoms that are true in the σ-interpretation are those that are listed in the database tables.
In databases (represented as σ-interpretations), query answering can be formalized as follows.
A query is a first-order logic formula Q(x 1 , x 2 , . . .
, x k ) with free variables x 1 , x 2 , . . . , x k .
The task of answering the query translates to finding the set of all substitutions [x 1 /t 1 , x 2 /t 2 , . . .
, x k /t k ] such that ω |= Q[x 1 /t 1 , x 2 /t 2 , . . . , x k /t k ].
The answer to a query Q w.r.t.
a database ω is denoted as Ans(Q, ω).Example 1 Consider the database consisting of Tables 1, 2 and 3 and the query Q 1 (x) = location(x, mit) ∧ coauthor(x, fred).
Then the answer to the query Q consists of the following substitutions: [x/alice] and [x/dave] .
In general, queries may also contain variables bound by existential or universal quantifiers.
For instance, if we have the query Q 2 (z) = ∃x, y. location(z, x) ∧ coauthor(z, y), which asks for researchers from the database researcher paper P bob plp 0.9 carl plp 0.6 greg plp 0.7 ian db 0.9 harry db 0.8 A Boolean query is a query with fully quantified variables.
A conjunctive query (CQ) is a negation-free first-order logic conjunction with all variables either free or bound by an existential quantifier.
A union of conjunctive queries (UCQ) is a disjunction of conjunctive queries.
We mainly work with UCQs in this paper.
Conjunctive queries may also be expressed using Prolog notation BID4 .
For instance, the rule R(z) :-location(z, x), coauthor(z, y). represents the query Q 2 from Example 1.
Here, R(z) is called head of the rule 1 and location(z, x), coauthor(z, y) is called the body.
The rule is understood as defining tuples of a new table R that, in this case, contains all tuples [t] where [z/t] ∈ Ans(∃x, y. location(z, x) ∧ coauthor(z, y), ω).
Thus, variables not occurring in the head of the rule correspond to existentially quantified variables in the respective conjunctive query.
In Prolog notation, UCQs are represented as a collection of rules with the same relation in the head.
For a given set of rules representing a UCQ, we denote prediction set as the union of its respective answer sets.
A database D is said to be a PDB if its every tuple has an assigned probability value.
Mathematically, A PDB D, for a vocabulary σ, is a finite set of tuples of the form t, p , where t is a σ-atom and p ∈ [0, 1].
Moreover, if t, p ∈ D and t, q ∈ D, then p = q. Each PDB for the vocabulary σ induces a unique probability distribution over σ-interpretations ω: DISPLAYFORM0 where DISPLAYFORM1 Example 2 TAB0 and 3 form a PDB with 3 relations: coauthor/2, author/2 and location/2.Furthermore, the probability of any Boolean query Q w.r.t.
a PDB D is DISPLAYFORM2 Example 3 For the Boolean query Q 3 = coauthor(bob, carl) we can read off the probability P D (Q 3 ) = 0.4 directly from TAB2 .
On the other hand, the probability of query Q 4 = ∃x.
coauthor(bob, x)∧ coauthor(carl, x) cannot be read directly from any table and requires probabilistic inference.
Directly using Equation 2, we get P D (Q 4 ) = 0.879.
Intuitively, Q 3 asked about the probability that bob and carl are co-authors, whereas Q 4 asked about the probability that bob and carl have a common co-author.
A query plan is a sequence of database operations (namely join, projection, union, selection and difference) that are executed to do exact probabilistic inference for a query BID22 .
Extensional query plans are query plans under the tupleindependence assumption.
Extensional query plans can be used to compute probabilities of queries over probabilistic databases.
However, not all queries have an extensional query plan that can be used to compute their probabilities correctly.
Those for which such a correct extensional query plan exists are called safe queries.
Hence, safe queries can be evaluated in time polynomial in the size of the database (data complexity).
In general, for every UCQ, the complexity of evaluating it on a probabilistic database is either PTIME (safe queries) or #P-complete in the size of the database BID5 .
The algorithms with PTIME data complexity are also called lifted inference algorithms.
In this work, we exploit the lifted inference algorithm of Lif t O R which is an extension of the Lift R algorithm BID15 .
The Lif t O R algorithm exploits the structure of a query and uses a divide and conquer approach to calculate its probability.
When we have a probabilistic database and a collection of Prolog rules defining a relation R, the relation R becomes a random variable.
2 The relation R does no longer have to be representable as a tuple-independent table, though.
Additionally, one may enlarge the set of probability distributions over tuples of R that can be modelled by Prolog rules by introducing auxiliary probabilistic tables, not originally present in the database and using them in the rules.
In this way, one can think of Prolog rules as a model of a distribution rather than only as a way to query a pre-existing probabilistic database.
This is illustrated by the next example.
Example 4 As an example, let us consider again the database that is listed in TAB0 and 3 and a rule R(x, y) :-coauthor(x, y).
Suppose that we introduce a new probabilistic relation A(x, y) with all possible σ-atoms A(t 1 , t 2 ) having the same probability p and replace the original rule by R(x, y) :-coauthor(x, y), A(x, y).
By changing the parameter p we can now decrease the probabilities of the σ-atoms R(t 1 , t 2 ).We use the following notation as syntactic sugar for probabilistic rules.
We write p :: R(x, y) :-coauthor(x, y) to denote R(x, y) :-coauthor(x, y), A R,i (x, y) where we set P D [A R,i (t 1 , t 2 )] = p for all tuples (t 1 , t 2 ) and where i is an identifier of the respective rule.
For rules with variables appearing in the body but not in the head, such as p :: R(x, y) :-author(x, z), author(y, z), the auxiliary relation's arguments range only over the variables in the head; that is for the considered rule we would have R(x, y) :-author(x, z), author(y, z), A R,i (x, y).
This restriction is necessary in order to keep the resulting rules simple enough so that lifted inference could still be used, i.e. we want to avoid the introduction of rule's probabilistic weights to result in creating unsafe queries from safe ones.
Moreover, since we will only be querying probability of individual (ground) tuples, it will be possible to create the relation A R,i (x, y) always on the fly to contain just one tuple.
As mentioned above, relations defined using probabilistic rules do not have to be tupleindependent.
Since the main intended application of the present work is to be able to fill in missing probabilistic tuples into tuple-independent probabilistic databases, we introduce the following operation, denoted Ind(R), which produces a tuple-independent relation R from a given relation R by simply assigning marginal probabilities to the individual tuples.
We may notice that when R is defined using probabilistic rules and deterministic relations, i.e. relations where every tuple has probability either 0 or 1, then R = Ind(R).
This can also be seen as materializing views to tuple-independent tables.
We aim to learn probabilistic rules from a given PDB D and a target relation, target.
We call E the set of the tuples, of target, present in D. We could interpret the set of these probabilistic training examples E as defining a distribution over deterministic training sets in the same way as a probabilistic database represents a distribution over deterministic databases.
Then, given a probabilistic database, during training we search for a collection of probabilistic rules so that we would obtain a good model for the data.
Example 5 Consider a set of examples for a relation supervisor: E = { [greg, carl], 0.8 , [edwin, fred], 0.4 } for the database from Tables 1, 2, 3.
The task is then to find rules that define the relation supervisor using the relations author, location and coauthor.
For instance, one such, not particularly optimal, model could be 0.1 :: supervisor(x, y) :-coauthor(x, y).What we will call a good model, depends on the context (in the next section, we consider different loss functions which could lead to different ways to score the learned probabilistic models).
Moreover, what is deemed a good model also depends on the assumptions about the way the training tuples were obtained and on what we assume about the tuples that are not present in the set of training examples.
We now describe the problem Statement formally as follows.
Find: A set of probabilistic rules called H = {h 1 , h 2 , . . .
, h n } with target in the head of each rule such that cross entropy loss (cf.
Equation 3) is minimum over all target tuples in D.SafeLearner addresses the above Stated problem heuristically using two main components.
1) A structure learning component that generates candidate rules -a larger set of rules that subsumes H. 2) A parameter learning component that optimizes weights of these rules thus effectively also performing selection of these rules as a result.
We present each of these components in Sections 4 and 5 respectively before explaining the algorithm of SafeLearner in Section 6.
Most relations of KBs have binary relations and we restrict ourselves to it.
In order to learn structure in this specified problem setting, we learn deterministic candidate rules.
This method of structure learning without considering the parameters p H is simpler than the case when the structure and parameters are learned jointly.
But this method is followed keeping in mind that the parameters are tuned later.
We use AMIE+ for generating candidate rules.
It is a highly efficient rule generation system for mining deterministic rules from KBs.
It uses a language bias (constraints on the form of mined rules) to mine the rules from a vast search space.
Compared with a naive support-based confidence score BID1 , it uses a more involved scoring function.
By confidence, we refer to the confidence score used by AMIE+, throughout the rest of the paper.
A rule is output when it satisfies some properties BID11 , its confidence score surpasses a specified confidence threshold, and improves over the confidence scores of all its parents.
Since AMIE+ expects deterministic input, we have to first generate a deterministic database from the given probabilistic database and the given training set.
This may be achieved either directly by sampling from the database or by keeping only tuples that have probabilities over some threshold.
The rationale behind this simple approach is as follows.
Let us suppose that the training data was generated by directly sampling from a model consisting of a probabilistic database together with some probabilistic rules.
Suppose that the rules contained the rule 0.7 :: author(a, p) :-author(b, p), supervisor(a, b).
We may then reasonably expect that a deterministic rule learner, such as AMIE+, will be able to find the respective deterministic rule since its confidence should be on average at least 0.7 on datasets sampled form the data-generating model.
At least on a heuristic level, this justifies using a deterministic rule learner for finding candidate rules.
Ideally, this intermediate deterministic step wanes the predictive performance in comparison to the case where candidates could be obtained on the probabilistic tuples but this slight decrease in performance is compensated by the improvement in the scalability provided by AMIE+.
Unless specified otherwise by the user, SafeLearner uses AMIE+ restricted to rules with two atoms in the body.
Then, the algorithm selects k rules with highest confidence as the candidates, where k is a parameter of the algorithm, and checks if the resulting rule set correspond to a safe UCQ.
If the UCQ is not safe, it removes the minimal number of lowest-confidence candidate rules that make the resulting UCQ safe.
Finally, we add a rule for the target relation that has an empty body.
Whenever this rule has non-zero probabilistic weight, all the possible tuples will have non-zero probability (this turns out to be important for avoiding infinite cross entropy scores).
Since we are learning a distribution over databases, the natural choice is to measure the likelihood of the model consisting of the learned rules given the training data.
However, our training datasets are also probabilistic themselves.
Thus, we need to measure how 'close' the learned distributions are to the distributions of the training data.
This is typically measured by the KL divergence.
Another way to look at this problem is by asking what the likelihood would be given the data sampled from the training distribution.
This is an expectation of likelihood, or cross entropy, which turns out, is equivalent to KL divergence (up to a constant) when we assume both independence of the tuples and independence of the predictions (i.e. we replace the target relation R by its materialization R = Ind(R)).
This can be seen as follows.
First, let us assume that the training examples are complete, that is, the training set E contains all possible tuples t i and their respective probabilities p i .
Then, we can write the expected log-likelihood of the model given the training examples as follows.
Let T be the set of all possible tuples.
For every i ∈ {1, . . . , |T|}, let T i be a Bernoulli random variable corresponding to the i-th training example t i , p i ∈ E such that P [T i = 1] = p i .
Next let q i denote the probability assigned by the model to the tuple t i .
Then we may write the expected log-likelihood as DISPLAYFORM0 where the expectation is over the samples of the probabilistic database (here represented by the variables T i ).
This is the same as cross entropy, except for the sign.
Hence, what we need to minimize is indeed cross entropy.
Naturally, in most realistic cases, access to probabilities of all the possible tuples is limited.
We introduce two distinct settings that lead to a different way of treating tuples that are outside the training set.
In the first setting, we assume that our goal is to learn a probabilistic model for the whole database.
Since most domains will be sparse, we may assume that a majority of the tuples (over elements of the given domain) will have some very small probability γ target , possibly zero.
When estimating the loss of a set of rules Q (here represented as a UCQ), we need to split the possible target tuples (Cartesian product of sets of constants of all the entities constituting the target) into three categories:1.
target tuples contained in the training set, also denoted by the set of examples E.2.
possible target tuples outside E that lie in the answer of Q (i.e. in Ans(Q )), where Q contains all the rules in Q with non-empty bodies.
These are all the target tuples outside E that have at least one grounded proof in the training data.
In other words, these tuples can be inferred from the training data by the rules in Q .3.
the remaining possible target tuples.
These tuples are neither present in the training data nor can these be inferred from the training data by the rules in Q .The estimate of the loss is then obtained as the sum of estimates of these three losses.
Estimating the first and second component of the loss is straightforward.
To speed it up, we estimate the second component only on a sample of the tuples of the second category (as there may often be significantly more tuples in this category than in the first one).
Similarly, it is not difficult to estimate the third component of the loss because it only depends on the probability of the rule with empty body and all tuples in this third category have the same estimated probability.
We will denote by E, E 2 , E 3 the sets of sampled tuples for categories 1, 2 and 3, respectively.
The weights of tuples in E 2 and E 3 are calculated corresponding to the inverse of the subsampling ratio.
For example, if we sample 5000 tuples out of a possible set of 100000, we assign a weight of 20 to each of the sampled tuples.
Tuples in E 2 are assigned a weight w 2 and tuples in E 3 are assigned w 3 .
In the second setting, which is closer to the setting considered in De Raedt et al. [2015] , we assume that our task is not to obtain a good model for the whole database.
Instead, we assume that there is a distribution that generates probabilistic tuples for which we, then, need to predict the probability with which these tuples hold.
It is important to stress that the distribution that generates the tuples is not the distribution that we need to model.
As emphasized by De Raedt et al. [2015] , one may also see this setting as a probabilistic extension of the PAC-learning framework BID21 , and, in particular, of its probabilistic extension BID16 .
It emerges that, in this setting, we can ignore tuples that are not in the training set.
An instance where this setting is natural is, for example, automatic construction of knowledge bases from text or other nonstructured source where we need to learn rules to estimate probability with which the tuples suggested by the construction process really hold.
In contrast to the previous setting, we do not use the rules to predict anything about any 'new' tuples.
To our best knowledge, Slimshot BID14 was the first lifted inference engine developed in 2016 that also performed approximate probabilistic inference for unsafe queries using sampling.
We used its latest version BID13 with the Lif t O R algorithm and extended it so that it could not only do numeric exact inference for safe queries but could also do it in a symbolic setting.
In our implementation, it returns the probability of a query (constructed from H) as a closed-form function of the rule probabilities.
Once we have a set of candidate rules H, we need to learn its rule weights p H .
For this, we first need to predict probabilities of all target tuples with respect to H and compute the loss.
We begin this process by converting H into a UCQ Q. But, before calling Slimshot for lifted inference on the whole query, we first break down the query to independent subqueries such that no variable is common in more than one sub-query.
Then, we perform inference separately over it and later unify the sub-queries to get the desired result.
SafeLearner initializes the probabilistic weights of the rules and sets them equal to their confidences estimated from the training data.
The confidence of a rule is an empirical estimate of the conditional probability of the rule's head being true given its body is true.
In other words, for any rule h i in H, its probability p h i is initialized as the classical conditional probability of P(head = T rue|body = T rue).
DISPLAYFORM0 Lastly, we perform Stochastic Gradient Descent (SGD) to optimize the rule weights.
In this section, we describe the SafeLearner system that tackles the problem Statement defined in the preceding section.
As its input, SafeLearner obtains a probabilistic database and a target relation and returns a set of probabilistic rules for the target relation.
SafeLearner learns only safe rules for which inference has polynomial-time data complexity.
It consists of two main components: a structure learning component that generates candidate rules and a parameter learning component that optimizes weights of these rules (and as a result also effectively performs selection of these rules).
Algorithm 1 outlines the working of SafeLearner 3 .
Similar to ProbFOIL, the algorithm takes input a PDB D and a target relation as a Problog file.
The input file could also specify the type constraints among the relations, if any.
Also, the choice of the loss function (which is cross-entropy by default) could be given as a parameter.
Once D is parsed from the input file, all the tuples are separated with their probabilities and are given as input to AMIE+ (cf.
4.1).
In line 3, the deterministic rules that are output by AMIE+ are searched for type consistency and are put together as H -a hypothesis of deterministic candidate rules.
Further, in lines 4 -5, we initialize the probability p h i (cf.
5.3) for every candidate rule h i .
Once the probabilities are embedded in the rules, we now have H as a set of probabilistic candidate rules.
To make our learned rules extensible to all the possible target tuples, we sample more target tuples in line 6 as explained in 5.1.1.
In line 7, we formulate a UCQ Randomly select an example e from all the target examples E ∪ E 2 ∪ E 3 10: DISPLAYFORM0 y is a function of p H
if e ∈ E then 12:x := actual probability of e from E
Compute cross-entropy loss for e using x, y with sampling weight := 1 14:else if e ∈ E 2 then 15:Compute cross-entropy loss for e using x := 0 and y with sampling weight := w 2
else if e ∈ E 3 then 17:Compute cross-entropy loss for e using x := 0 and y with sampling weight := w 3
Get gradient of cross-entropy loss at current p H
Update p H 20: Remove rules with insignificant rule weights from H 21: return H Algorithm 2 QueryConstructor -Constructs query from a hypothesis H of rules continue Don't include this rule's body as it makes Q unsafe 12:end try 13: return Q Q from all the probabilistic candidate rules in H (cf.
Algorithm 2) Lines 8 -19 are the heart of this algorithm which use SGD on the loss function, to learn the rule probabilities p H .
In line 10, for every randomly selected example e, a closed-form function is generated w.r.t Q that evaluates to the predicted probability of e for every specified values of p H (cf.
Algorithm 3 and Appendix D) .
Lastly, in line 20, we prune H by removing any rule from it whose probability has diminished very close to 0 (below a predefined tolerance value).System Architecture SafeLearner is written in Python 2.7 and it relies on Postgres 9.4 as its underlying database management system.
It also requires Java for running AMIE+.Algorithm 3 ProbabilityPredictor -Predicts probability of a UCQ Q for an example e 1: Input: Query Q, Example e 2: Instantiate the head variables in Q w.r.t.
the constants in e 3: if Number of disjuncts in Q = 1 then Q cannot be disintegrated to smaller sub-queries 4:return SlimShot(Q) Return the probability of the full query Q 5: else
DisjunctList := list of all the disjuncts of Q
Merge different disjuncts in DisjunctList using disjunctions if they have a common relation 8:prob := 1.0
for SubQuery in DisjunctList do return 1 − prob
We empirically address the following two crucial questions experimentally: Experimental Setup: We investigate the prediction of target tuples from other relations.
This is motivated by the problem of predicting tuples that are missing from the database.
Here, we aim to learn a set of rules that could be used to predict target from the other relations.
For learning the rules, we select the same iteration of NELL that was used by De Raedt et al. [2015] for ProbFOIL + (850).
For testing, we use the latest iteration (1110) that was available at the time of this experiment.
For the correct validation of models, we removed all the tuples from the test data which were present in the training data.
Baselines: The baselines we compare SafeLearner to are the following:1.
ProbFOIL + : We use the probabilistic rules learned on the NELL knowledge base that were reported by De Raedt et al. [2015] .
We were not able to run ProbFOIL + in the same way as SafeLearner because ProbFOIL + does not scale to large databases.
This is mostly because ProbFOIL + does not use lifted inference.
5The remaining two baselines use the same sets of deterministic rules obtained using AMIE+:2.
Deterministic rules: For this baseline, all rules are used with weights set to 1.
The rationale for this baseline is to find out to what extent the probabilistic weights influence the predictions on unseen data.
We note that even when the rules are 4.
NELL KB is available at http://rtw.ml.cmu.edu/rtw 5.
On the other hand, this also means that ProbFOIL + can in theory find more complex rule sets as it does not have to restrict itself to rule sets that result in safe (i.e. liftable) queries.
deterministic, the other tuples in the database are often still probabilistic.
Hence, even with deterministic rules, one needs to rely on probabilistic inference.3.
Probabilistic rules with confidence scores as probabilistic weights: Although, in general, the probabilistic weights of rules are not equal to the conditional probabilities of the head being true given the body is true (i.e. confidence scores), we want to assess how much worse the probabilistic predictions will be if we set the probabilistic weights equal to confidence scores estimated on the training data.
This baseline is labeled as 'SafeLearner -without learning'.Hyper-parameters: For our experiments, we set the minimum confidence threshold to = 10 −5 .
The sample size of both E 1 and E 2 were specified to be equal to E. SGD was run with 10 4 iterations with learning rate parameter = 10 −5 .Results: We measured cross entropy (cf.
FIG2 ) and precision-recall (PR) curves (cf.
Figure 2 ) on the test set.
For cross entropy, the best results were consistently obtained by SafeLearner which means that the models obtained by SafeLearner were able to provide best estimates of probabilities of the unseen test-set tuples.
This is not surprising given that SafeLearner is the only one of the evaluated baseline methods that optimizes a loss function that is a proper scoring rule.
Interestingly, the differences were much smaller for the PR curves.
This suggests that, at least on our datasets, obtaining ranking of tuples based on predicted probabilities, but not the actual probabilities, can be quite reliably done already by models that are not very precise when it comes to predicting the actual probabilities.
TAB6 , it can be easily seen that although SafeLearner suffers in runtime when it learns more rules, it is able to scale to more than 14000 target tuples (in case of Yago:IsCitizenOf) in relatively lesser time as it learns fewer rules.
It would also depend upon how complex the learned rules are.
The actual rules learned by SafeLearner are mentioned in the Appendix B. To resolve this trade-off between runtime and number of rules, we could also specify the maximum number of rules to learn as part of the input parameters.
The work presented in this paper advances the works [De Raedt et al., 2015, Dylla and BID9 that also studied learning in the probabilistic database setting.
7 But compared with these previous works, we rely on lifted inference, which allows our approach to scale to much larger databases.
Both of the previous approaches only use tuples from a given training set but do not take into account the behavior of the model on tuples not in the training set.
This is problematic because, unless the training set is really large, these previous methods do not distinguish models that predict too many false positives (i.e. models that give too high probability to too many tuples outside the training set).
This becomes an issue especially in sparse domains (and most real domains are indeed sparse).
Our work is also closely related to the literature on learning from knowledge bases such as NELL within statistical relational learning (SRL), including works that use Markov logic networks BID20 , Bayesian logic programs BID19 and stochastic logic programs BID17 BID23 .
A disadvantage of many of these methods is that the learned parameters of the models can not be interpreted easily, which is particularly an issue for Markov logic networks where the weight of a rule cannot be understood in isolation from the rest of the rules.
In contrast, the learned weights of probabilistic rules in our work, and also in the other works relying on probabilistic databases [De Raedt et al., 2015, Dylla and BID9 , have a clear probabilistic interpretation.
Parameter Learning with Different Losses Cross entropy is not the only loss function that may be considered for learning the parameters of probabilistic rules.
Here, we discuss two additional loss functions that have already been used for the same or similar tasks in the literature: squared loss BID9 and a probabilistic extension of accuracy .
Whereas cross entropy and squared loss belong among so-called proper scoring rules BID12 and, thus, reward estimates of probabilities that match the true probability, this is not the case for probabilistic accuracy.
Moreover, each of these functions also relies on additional assumptions such as mutual independence of the examples' probabilities as well as mutual independence of the predictions, although this is not mentioned explicitly in the respective works BID9 Theobald, 2016, De Raedt et al., 2015] .
Below, we briefly discuss squared loss and probabilistic accuracy.
Squared Loss (Brier Score) As before, let p i denote the probability of the i-th example and q i the probability of the respective prediction.
Then, the squared loss, which is a proper scoring rule, is: DISPLAYFORM0 2 which was among others used in BID9 for learning probabilities of tuples in PDBs.
define probabilistic extension of accuracy and other measures of predictive quality such as precision and recall.
Their version of probabilistic accuracy is Acc prob = 1− 1 |E| t i ,p i ∈E |p i − q i | .
Unlike the other two discussed loss functions, probabilistic accuracy is not a proper scoring rule as the next example illus-7.
Strictly speaking, the work was framed within the probabilistic logic programming setting.
However, probabilistic logic programming systems, such as Problog BID10 , can be seen as generalizations of probabilistic databases.
trates, however, it has other convenient properties (cf.
De Raedt et al. [2015] for details).Example 6 Let the set of domain elements in the database be C = {alice, bob, eve}. Next, let E = { [alice], 0 , [bob], 1 , [eve], 1 } be the set of training examples for the relation smokes and let us have the rule p :: smokes(X) :-true.
Then, maximizing probabilistic accuracy on E yields p = 1, whereas optimizing both cross entropy and squared loss would yield p = 2/3, which is the probability that a randomly selected person in C smokes.
We proposed a probabilistic rule learning system, named SafeLearner, that supports lifted inference.
It first performs structure learning by mining independent deterministic candidate rules using AMIE+ and later executes joint parameter learning over all the rule probabilities.
SafeLearner extends ProbFOIL + by using lifted probabilistic inference (instead of using grounding).
Therefore, it scales better than ProbFOIL + .
In comparison with AMIE+, it is able to jointly learn probabilistic rules over a probabilistic KB unlike AMIE+ which only learns independent deterministic rules (with confidences) over a deterministic KB.
We experimentally show that SafeLearner scales as good as AMIE+ when learning simple rules.
Trying to learn complex rules leads to unsafe queries which are not suitable for lifted inference.
But lifted inference helps SafeLearner in outperforming ProbFOIL + which does not scale to NELL Sports Database without the help of a declarative bias.
A few limitations of SafeLearner are as follows: 1) It cannot learn complex rules that translate to an unsafe query.
2) It cannot use rules within the background theory.
3) It cannot learn rules on P DB with numeric data (without assuming them as discrete constants).The main contributions of SafeLearner are presented as follows.
Firstly, it accomplishes probabilistic rule learning using a novel inference setting as it is the first approach that uses lifted inference for KB completion.
Secondly, unlike ProbFOIL + , SafeLearner scales well on the full database of NELL with 233,000 tuples and 426 relations as well as on the standard subset of Yago 2.4 with 948,000 tuples and 33 relations.
Thirdly, SafeLearner is faster than ProbFOIL + because of the following three factors: 1) it disintegrates longer complex queries to smaller simpler ones, 2) it caches the structure of queries before doing inference and 3) it uses lifted inference to infer on those simple queries.
The first two factors of query disintegration and memoization are discussed in Appendix D in further detail.
In future, this work could be advanced further to eliminate its shortcomings.
In particular, a prominent direction of advancement would be to extend probabilistic rule learning to open-world setting of which the Lif t O R algorithm BID3 is capable.

assistant: text: Probabilistic Rule Learning system using Lifted Inference