The following research paper was written by a team of Google search scientists. It was published in Proceedings of the VLDB Endowment and released under the Creative Commons AttributionNonCommercial-NoDerivs 3.0 Unported License.

This is possibly the most important piece of research by search scientists since Page and Brin’s landmark paper, “The Anatomy of a Large-Scale Hypertextual Web Search Engine“.

**N.B,** This work is licensed under the Creative Commons AttributionNonCommercial-NoDerivs 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. Obtain permission prior to any use beyond those covered by the license. Contact copyright holder by emailing [email protected] Articles from this volume were invited to present their results at the 41st International Conference on Very Large Data Bases, August 31st – September 4th 2015, Kohala Coast, Hawaii. Proceedings of the VLDB Endowment, Vol. 8, No. 9

**NB.2** also – you can click some figures and tables to enlarge for easier reading.

**NB.3** – some superscript and subscript is missing – if any inline equations do not make sense, refer to the pdf version on the VLDB website. I will be updating them as soon as I improve the editing options on this site!

## Knowledge-Based Trust: Estimating the Trustworthiness of Web Sources

**Xin Luna Dong, Evgeniy Gabrilovich, Kevin Murphy, Van Dang Wilko Horn, Camillo Lugaresi, Shaohua Sun, Wei Zhang Google Inc. {lunadong|gabr|kpmurphy|vandang|wilko|camillol|sunsh|weizh}@google.com **

## ABSTRACT

The quality of web sources has been traditionally evaluated using exogenous signals such as the hyperlink structure of the graph. We propose a new approach that relies on endogenous signals, namely, the correctness of factual information provided by the source. A source that has few false facts is considered to be trustworthy.

The facts are automatically extracted from each source by information extraction methods commonly used to construct knowledge bases. We propose a way to distinguish errors made in the extraction process from factual errors in the web source per se, by using joint inference in a novel multi-layer probabilistic model. We call the trustworthiness score we computed Knowledge-Based Trust (KBT). On synthetic data, we show that our method can reliably compute the true trustworthiness levels of the sources.

We then apply it to a database of 2.8B facts extracted from the web, and thereby estimate the trustworthiness of 119M webpages. Manual evaluation of a subset of the results confirms the effectiveness of the method.

## 1. INTRODUCTION

“Learning to trust is one of life’s most difficult tasks.” – Isaac Watts. Quality assessment for web sources1 is of tremendous importance in web search. It has been traditionally evaluated using exogenous signals such as hyperlinks and browsing history. However, such signals mostly capture how popular a webpage is. For example, the gossip websites listed in [16] mostly have high PageRank scores [4], but would not generally be considered reliable. Conversely, some less popular websites nevertheless have very accurate information.

In this paper, we address the fundamental question of estimating how trustworthy a given web source is. Informally, we define the trustworthiness or accuracy of a web source as the probability that it contains the correct value for a fact (such as Barack Obama’s nationality), assuming that it mentions any value for that fact. (Thus we do not penalize sources that have few facts, so long as they are correct.)

We propose using Knowledge-Based Trust (KBT) to estimate source trustworthiness as follows. We extract a plurality of facts from many pages using information extraction techniques. We then jointly estimate the correctness of these facts and the accuracy of the sources using inference in a probabilistic model. Inference is an iterative process, since we believe a source is accurate if its facts are correct, and we believe the facts are correct if they are extracted from an accurate source. We leverage the redundancy of information on the web to break the symmetry. Furthermore, we show how to initialize our estimate of the accuracy of sources based on authoritative information, in order to ensure that this iterative process converges to a good solution.

The fact extraction process we use is based on the Knowledge Vault (KV) project [10]. KV uses 16 different information extraction systems to extract (subject, predicate, object) knowledge triples from webpages. An example of such a triple is (Barack Obama, nationality, USA). A subject represents a real-world entity, identified by an ID such as mids in Freebase [2]; a predicate is predefined in Freebase, describing a particular attribute of an entity; an object can be an entity, a string, a numerical value, or a date.

The facts extracted by automatic methods such as KV may be wrong. One method for estimating if they are correct or not was described in [11]. However, this earlier work did not distinguish between factual errors on the page and errors made by the extraction system. As shown in [11], extraction errors are far more prevalent than source errors. Ignoring this distinction can cause us to incorrectly distrust a website.

Another problem with the approach used in [11] is that it estimates the reliability of each webpage independently. This can cause problems when data are sparse. For example, for more than one billion webpages, KV is only able to extract a single triple (other extraction systems have similar limitations). This makes it difficult to reliably estimate the trustworthiness of such sources. On the other hand, for some pages KV extracts tens of thousands of triples, which can create computational bottlenecks.

The KBT method introduced in this paper overcomes some of these previous weaknesses. In particular, our contributions are threefold. Our main contribution is a more sophisticated probabilistic model, which can distinguish between two main sources of errors: incorrect facts on a page, and incorrect extractions made by an extraction system. This provides a much more accurate estimate of the source reliability. We propose an efficient, scalable algorithm for performing inference and parameter estimation in the proposed probabilistic model (Section 3).

(*1. We use the term “web source” to denote a specific webpage, such as wiki.com/page1, or a whole website, such as wiki.com. We discuss this distinction in more detail in Section 4.*)

Our second contribution is a new method to adaptively decide the granularity of sources to work with: if a specific webpage yields too few triples, we may aggregate it with other webpages from the same website. Conversely, if a website has too many triples, we may split it into smaller ones, to avoid computational bottlenecks (Section 4).

The third contribution of this paper is a detailed, large-scale evaluation of the performance of our model. In particular, we applied it to 2.8 billion triples extracted from the web, and were thus able to reliably predict the trustworthiness of 119 million webpages and 5.6 million websites (Section 5).

We note that source trustworthiness provides an additional signal for evaluating the quality of a website. We discuss new research opportunities for improving it and using it in conjunction with existing signals such as PageRank (Section 5.4.2). Also, we note that although we present our methods in the context of knowledge extraction, the general approach we propose can be applied to many other tasks that involve data integration and data cleaning.

## 2. PROBLEM DEFINITION AND OVERVIEW

In this section, we start with a formal definition of Knowledgebased trust (KBT). We then briefly review our prior work that solves a closely related problem, knowledge fusion [11]. Finally, we give an overview of our approach, and summarize the difference from our prior work.

### 2.1 Problem definition

**Input:** We are given a set of web sources W and a set of extractors E. An extractor is a method for extracting (subject, predicate, object) triples from a webpage. For example, one extractor may look for the pattern “$A, the president of $B, …”, from which it can extract the triple (A, nationality, B). Certainly, this is not always correct (e.g., if A is the president of a company, not a country). In addition, an extractor reconciles the string representations of entities into entity identifiers such as Freebase mids, and sometimes this fails too. It is the presence of these common extractor errors, which are separate from source errors (i.e., incorrect claims on a webpage), that motivates our work.

In the rest of the paper, we represent such triples as (data item, value) pairs, where the data item is in the form of (subject, predicate), describing a particular aspect of an entity, and the object serves as a value for the data item. We summarize the notation used in this paper in Table 1.

We define an observation variable Xewdv. We set Xewdv = 1 if extractor e extracted value v for data item d on web source w; if it did not extract such a value, we set Xewdv = 0. An extractor might also return confidence values indicating how confident it is in the correctness of the extraction; we consider these extensions in Section 3.5. We use matrix X = {Xewdv} to denote all the data.

We can represent X as a (sparse) “data cube”, as shown in Figure 1(b). Table 2 shows an example of a single horizontal “slice” of this cube for the case where the data item is d ∗ = (Barack Obama, nationality). We discuss this example in more detail next.

EXAMPLE 2.1. Suppose we have 8 webpages, W1 − W8, and suppose we are interested in the data item (Obama, nationality). The value stated for this data item by each of the webpages is shown in the left hand column of Table 2. We see that W1 − W4 provide USA as the nationality of Obama, whereas W5 − W6 provide Kenya (a false value). Pages W7 − W8 do not provide any information regarding Obama’s nationality

mation regarding Obama’s nationality. Now suppose we have 5 different extractors of varying reliability. The values they extract for this data item from each of the 8 webpages are shown in the table. Extractor E1 extracts all the provided triples correctly. Extractor E2 misses some of the provided triples (false negatives), but all of its extractions are correct. Extractor E3 extracts all the provided triples, but also wrongly extracts the value Kenya from W7, even though W7 does not provide this value (a false positive). Extractor E4 and E5 both have poor quality, missing a lot of provided triples and making numerous mistakes.

**Knowledge-based trust (KBT):** For each web source w ∈ W, we define its accuracy, denoted by Aw, as the probability that a value it provides for a fact is correct (i.e., consistent with the real world). We use A = {Aw} for the set of all accuracy parameters. We now formally define the problem of KBT estimation.

DEFINITION 2.2 (KBT ESTIMATION). The Knowledge-Based Trust (KBT) estimation task is to estimate the web source accuracies A = {Aw} given the observation matrix X = {Xewdv} of extracted triples.

### 2.2 Estimating the truth using a single-layer model

KBT estimation is closely related to the knowledge fusion problem we studied in our previous work [11], where we evaluate the true (but latent) values for each of the data items, given the noisy observations. We introduce the binary latent variables Tdv, which represent whether v is a correct value for data item d. Let T = {Tdv}. Given the observation matrix X = {Xewdv}, the knowledge fusion problem computes the posterior over the latent variables, p(T|X).

One way to solve this problem is to “reshape” the cube into a two-dimensional matrix, as shown in Figure 1(a), by treating every combination of web page and extractor as a distinct data source. Now the data are in a form that standard data fusion techniques (surveyed in [22]) expect. We call this a single-layer model, since it only has one layer of latent variables (representing the unknown values for the data items). We now review this model in detail, and we compare it with our work shortly.

In our previous work [11], we applied the probabilistic model described in [8]. We assume that each data item can only have a single true value. This assumption holds for functional predicates, such as nationality or date-of-birth, but is not technically valid for set-valued predicates, such as child. Nevertheless, [11] showed empirically that this “single truth” assumption works well in practice even for non-functional predicates, so we shall adopt it in this work for simplicity. (See [27, 33] for approaches to deal with multivalued attributes.)

Based on the single-truth assumption, we define a latent variable Vd ∈ dom(d) for each data item to present the true value for d, where dom(d) is the domain (set of possible values) for data item d. Let V = {Vd} and note that we can derive T = {Tdv} from V under the single-truth assumption. We then define the following observation model:

where v ∗ is the true value, s = (w, e) is the source, As ∈ [0, 1] is the accuracy of this data source, and n is the number of false values for this domain (i.e., we assume |dom(d)| = n + 1). The model says that the probability for s to provide a true value v ∗ for d is its accuracy, whereas the probability for it to provide one of the n false values is 1 − As divided by n.

Given this model, it is simple to apply Bayes rule to compute p(Vd|Xd, A), where Xd = {Xsdv} is all the data pertaining to data item d (i.e., the d’th row of the data matrix), and A = {As} is the set of all accuracy parameters. Assuming a uniform prior for p(Vd), this can be done as follows:

where the likelihood function can be derived from Equation (1), assuming independence of the data sources:2 (*2 Previous works [8, 27] discussed how to detect copying and correlations between sources in data fusion; however, scaling them up to billions of web sources remains an open problem*.)

This model is called the ACCU model [8]. A slightly more advanced model, known as POPACCU, removes the assumption that the wrong values are uniformly distributed. Instead, it uses the empirical distribution of values in the observed data. It was proved that the POPACCU model is monotonic; that is, adding more sources would not reduce the quality of results [13].

In both ACCU and POPACCU, it is necessary to jointly estimate the hidden values V = {Vd} and the accuracy parameters A ={As}. An iterative EM-like algorithm was proposed for performing this as follows ([8]).

Theoretical properties of this algorithm are discussed in [8].

### 2.3 Estimating KBT using a multi-layer model

Although estimating KBT is closely related to knowledge fusion, the single-layer model falls short in two aspects to solve the new problem. The first issue is its inability to assess trustworthiness of web sources independently of extractors; in other words, As is the accuracy of a (w, e) pair, rather than the accuracy of a web source itself. Simply assuming all extracted values are actually provided by the source obviously would not work. In our example, we may wrongly infer that W1 is a bad source because of the extracted Kenya value, although this is an extraction error

The second issue is the inability to properly assess truthfulness of triples. In our example, there are 12 sources (i.e., extractorwebpage pairs) for USA and 12 sources for Kenya; this seems to suggest that USA and Kenya are equally likely to be true. However, intuitively this seems unreasonable: extractors E1 − E3 all tend to agree with each other, and so seem to be reliable; we can therefore “explain away” some of the Kenya values extracted by E4 − E5 as being more likely to be extraction errors.

Solving these two problems requires us to distinguish extraction errors from source errors. In our example, we wish to distinguish correctly extracted true triples (e.g., USA from W1 − W4), correctly extracted false triples (e.g., Kenya from W5 − W6), wrongly extracted true triples (e.g., USA from W6), and wrongly extracted false triples (e.g., Kenya from W1, W4, W7 − W8).

In this paper, we present a new probabilistic model that can estimate the accuracy of each web source, factoring out the noise introduced by the extractors. It differs from the single-layer model in two ways. First, in addition to the latent variables to represent the true value of each data item (Vd), the new model introduces a set of latent variables to represent whether each extraction was correct or not; this allows us to distinguish extraction errors and source data errors. Second, instead of using A to represent the accuracy of (e, w) pairs, the new model defines a set of parameters for the accuracy of the web sources, and for the quality of the extractors; this allows us to separate the quality of the sources from that of the extractors. We call the new model the multi-layer model, because it contains two layers of latent variables and parameters (Section 3).

The fundamental differences between the multi-layer model and the single-layer model allow for reliable KBT estimation. In Section 4, we also show how to dynamically select the granularity of a source and an extractor. Finally, in Section 5, we show empirically how both components play an important role in improving the performance over the single-layer model.

## 3. MULTI-LAYER MODEL

In this section, we describe in detail how we compute A = {Aw} from our observation matrix X = {Xewdv} using a multilayer model.

### 3.1 The multi-layer model

We extend the previous single-layer model in two ways. First, we introduce the binary latent variables Cwdv, which represent whether web source w actually provides triple (d, v) or not. Similar to Equation (1), these variables depend on the true values Vd and the accuracies of each of the web sources Aw as follows:

Second, following [27, 33], we use a two-parameter noise model for the observed data, as follows:

Here Re is the recall of the extractor; that is, the probability of extracting a truly provided triple. And Qe is 1 minus the specificity; that is, the probability of extracting an unprovided triple. Parameter Qe is related to the recall (Re) and precision (Pe) as follows:

where γ = p(Cwdv = 1) for any v ∈ dom(d), as explained in [27]. (Table 3 gives a numerical example of computing Qe from Pe and Re.)

To complete the specification of the model, we must specify the prior probability of the various model parameters:

For simplicity, we use uniform priors on the parameters. By default, we set Aw = 0.8, Re = 0.8, and Qe = 0.2. In Section 5, we discuss an alternative way to estimate the initial value of Aw, based on the fraction of correct triples that have been extracted from this source, using an external estimate of correctness (based on Freebase [2]).

Let V = {Vd}, C = {Cwdv}, and Z = (V, C) be all the latent variables. Our model defines the following joint distribution:

We can represent the conditional independence assumptions we are making using a graphical model, as shown in Figure 2. The shaded node is an observed variable, representing the data; the unshaded nodes are hidden variables or parameters. The arrows indicate the dependence between the variables and parameters. The boxes are known as “plates” and represent repetition of the enclosed variables; for example, the box of e repeats for every extractor e ∈ E.

### 3.2 Inference

Recall that estimating KBT essentially requires us to compute the posterior over the parameters of interest, p(A|X). Doing this exactly is computationally intractable, because of the presence of the latent variables Z. One approach is to use a Monte Carlo approximation, such as Gibbs sampling, as in [32]. However, this can be slow and is hard to implement in a Map-Reduce framework, which is required for the scale of data we use in this paper.

A faster alternative is to use EM, which will return a point estimate of all the parameters, ˆθ = argmax p(θ|X). Since we are using a uniform prior, this is equivalent to the maximum likelihood estimate ˆθ = argmax p(X|θ). From this, we can derive Aˆ.

As pointed out in [26], an exact EM algorithm has a quadratic complexity even for a single-layer model, so is unaffordable for data of web scale. Instead, we use an iterative “EM like” estimation procedure, where we initialize the parameters as described previously, and then alternate between estimating Z and then estimating θ, until we converge.

We first give an overview of this EM-like algorithm, and then go into details in the following sections

In our case, Z consists of two “layers” of variables. We update them sequentially, as follows. First, let Xwdv = {Xewdv} denote all extractions from web source w about a particular triple t = (d, v). We compute the extraction correctness p(Cwdv|Xwdv, θt 2), as explained in Section 3.3.1, and then we compute Cˆwdv = argmax p(Cwdv|Xwdv, θt 2), which is our best guess about the “true contents” of each web source. This can be done in parallel over d, w, v.

Let Cˆd = Cˆwdv denote all the estimated values for d across the different websites. We then compute p(Vd|Cˆd, θt 1), as explained in Section 3.3.2, and then we compute Vˆd = argmax p(Vd|Cˆd, θt 1), which is our best guess about the “true value” of each data item. This can be done in parallel over d.

Having estimated the latent variables, we then estimate θ t+1 . This parameter update also consists of two steps (but can be done in parallel): estimating the source accuracies {Aw} and the extractor reliabilities {Pe, Re}, as explained in Section 3.4.

Algorithm 1 gives a summary of the pseudo code; we give the details next.

### 3.3 Estimating the latent variables

We now give the details of how we estimate the latent variables Z. For notational brevity, we drop the conditioning on θ t , except where needed.

### 3.3.1 Estimating extraction correctness

We first describe how to compute p(Cwdv = 1|Xwdv), following the “multi-truth” model of [27]. We will denote the prior probability p(Cwdv = 1) by α. In initial iterations, we initialize this to α = 0.5. Note that by using a fixed prior, we break the connection between Cwdv and Vd in the graphical model, as shown in Figure 2. Thus, in subsequent iterations, we re-estimate p(Cwdv = 1) using the results of Vd obtained from the previous iteration, as explained in Section 3.3.4.

We use Bayes rule as follows:

In other words, for each extractor we can compute a presence vote Pree for a triple that it extracts, and an absence vote of Abse for a triple that it does not extract:

**EXAMPLE 3.1.** Consider the extractors in the motivating example (Table 2). Suppose we know Qe and Re for each extractor e as shown in Table 3. We can then compute Pree and Abse as shown in the same table. We observe that in general, an extractor with low Qe (unlikely to extract an unprovided triple; e.g., E1, E2) often has a high presence vote; an extractor with high Re (likely to extract a provided triple; e.g., E1, E3) often has a low (negative) absence vote; and a low-quality extractor (e.g., E5) often has a low presence vote and a high absence vote.

Having computed p(Cwdv = 1|Xwdv), we can compute Cˆwdv = argmax p(Cwdv|Xwdv). This serves as the input to the next step of inference.

### 3.3.2 Estimating true value of the data item

In this step, we compute p(Vd = v|Cˆd), following the “single truth” model of [8]. By Bayes rule we have

Since we do not assume any prior knowledge of the correct values, we use a uniform prior p(Vd = v), so we just need to focus on the likelihood. Using Equation (5), we have

EXAMPLE 3.2. Assume we have correctly decided the triple provided by each web source, as in the “Value” column of Table 2. Assume each source has the same accuracy Aw = 0.6 and n = 10, so the vote count is ln( 10∗0.6 1−0.6 ) = 2.7. Then USA has vote count 2.7 ∗ 4 = 10.8, Kenya has vote count 2.7 ∗ 2 = 5.4, and an unprovided value, such as N.Amer, has vote count 0. Since there are 10 false values in the domain, so there are 9 unprovided values. Hence we have p(Vd = USA|Cˆd) = exp(10.8) Z = 0.995, where Z = exp(10.8) + exp(5.4) + exp(0) ∗ 9. Similarly, p(Vd = Kenya|Cˆd) = exp(5.4) Z = 0.004. This is shown in the last row of Table 4. The missing mass of 1 − (0.995 + 0.004) is assigned (uniformly) to the other 9 values that were not observed (but in the domain).

### 3.3.3 An improved estimation procedure

So far, we have assumed that we first compute a MAP estimate Cˆwdv, which we then use as evidence for estimating Vd. However, this ignores the uncertainty in Cˆ. The correct thing to do is to compute p(Vd|Xd) marginalizing out over Cwdv.

Here we can consider each ~c as a possible world, where each element cwdv indicates whether a source w provides a triple (d, v) (value 1) or not (value 0).

As a simple heuristic approximation to this approach, we replace the previous vote counting with a weighted version, as follows:

Note that for reasons explained in [27], it is much more reliable to estimate Pe and Re from data, and then compute Qe using Equation (7), rather than trying to estimate Qe directly.

### 3.5 Handling confidence-weighted extractions

So far, we have assumed that each extractor returns a binary decision about whether it extracts a triple or not, Xewdv ∈ {0, 1}. However, in real life, extractors return confidence scores, which we can interpret as the probability that the triple is present on the page according to that extractor. Let us denote this “soft evidence” by p(Xewdv = 1) = Xewdv ∈ [0, 1]. A simple way to handle such data is to binarize it, by thresholding. However, this loses information, as shown in the following example.

**EXAMPLE 3.4.** Consider the case that E1 and E3 are not fully confident with their extractions from W3 and W4. In particular, E1 gives each extraction a probability (i.e., confidence) .85, and E3 gives probability .5. Although no extractor has full confidence for the extraction, after observing their extractions collectively, we would be fairly confident that W3 and W4 indeed provide triple T =(Obama, nationality, USA).

However, if we simply apply a threshold of .7, we would ignore the extractions from W3 and W4 by E3. Because of lack of extraction, we would conclude that neither W3 nor W4 provides T. Then, since USA is provided by W1 and W2, whereas Kenya is provided by W5 and W6, and the sources all have the same accuracy, we would compute an equal probability for USA and for Kenya.

Following the same approach as in Equation (23), we propose to modify Equation (14) as follows:

Similarly, we modify the precision and recall estimates:

## 4. DYNAMICALLY SELECTING GRANULARITY

This section describes the choice of the granularity for web sources; at the end of this section we discuss how to apply it to extractors. This step is conducted before applying the multi-layer model.

Ideally, we wish to use the finest granularity. For example, it is natural to treat each webpage as a separate source, as it may have a different accuracy from other webpages. We may even define a source as a specific predicate on a specific webpage; this allows us to estimate how trustworthy a page is about a specific kind of predicate. However, when we define sources too finely, we may have too little data to reliably estimate their accuracies; conversely, there may exist sources that have too much data even at their finest granularity, which can cause computational bottlenecks

To handle this, we wish to dynamically choose the granularity of the sources. For too small sources, we can “back off” to a coarser level of the hierarchy; this allows us to “borrow statistical strength” between related pages. For too large sources, we may choose to split it into multiple sources and estimate their accuracies independently. When we do merging, our goal is to improve the statistical quality of our estimates without sacrificing efficiency. When we do splitting, our goal is to significantly improve efficiency in presence of data skew, without changing our estimates dramatically.

To be more precise, we can define a source at multiple levels of resolution by specifying the following values of a feature vector: hwebsite, predicate, webpagei, ordered from most general to most specific. We can then arrange these sources in a hierarchy. For example, hwiki.comi is a parent of hwiki.com, date of birthi, which in turn is a parent ofhwiki.com, date of birth, wiki.com/page1.htmli. We define the following two operators.

**Split:**When we split a large source, we wish to split it randomly into sub-sources of similar sizes. Specifically, let W be a source with size |W|, and M be the maximum size we desire; we uniformly distribute the triples from W into d |W| M e buckets, each representing a sub-source. We set M to a large number that does not require splitting sources unnecessarily and meanwhile would not cause computational bottleneck according to the system performance.**Merge:**When we merge small sources, we wish to merge only sources that share some common features, such as sharing the same predicate, or coming from the same website. Hence, we only merge children with the same parent in the hierarchy when their size is below a pre-defined minimum size m. We set m to a small number that does not require merging sources unnecessarily while maintaining enough statistical strength.

**EXAMPLE 4.1.** Consider three sources: (website1.com, date of birth), (website1.com, place of birth), (website1.com, gender), each with two triples, arguably not enough for quality evaluation. We can merge them into their parent source by removing the second feature. We then obtain a source hwebsite1.comi with size 2 ∗ 3 = 6, which gives more data for quality evaluation.

Note that when we merge small sources, the result parent source may not be of desired size: it may still be too small, or it may be too large after we merge a huge number of small sources. As a result, we might need to iteratively merge the resulting sources to their parents, or splitting an oversized resulting source, as we describe in the full algorithm

Algorithm 2 gives the SPLITANDMERGE algorithm. We use W for sources for examination and W0 for final results; at the beginning W contains all sources of the finest granularity and W0 = ∅ (Ln 1). We consider each W ∈ W (Ln 2). If W is too large, we apply SPLIT to split it into a set of sub-sources; SPLIT guarantees that each sub-source would be of desired size, so we add the subsources to W0 (Ln 5). If W is too small, we obtain its parent source (Ln 7). In case W is already at the top of the source hierarchy so it has no parent, we add it to W0 (Ln 8); otherwise, we add Wpar back to W (Ln 11). Finally, for sources already in desired size, we move them directly to W0 (Ln 13).

**EXAMPLE 4.2.** Consider a set of 1000 sourceshW, Pi, URLii, i ∈ [1, 1000]; in other words, they belong to the same website, each has a different predicate and a different URL. Assuming we wish to have sources with size in [5, 500], MULTILAYERSM proceeds in three stages.

In the first stage, each source is deemed too small and is replaced with its parent source hW, Pii. In the second stage, each new source is still deemed too small and is replaced with its parent source hWi. In the third stage, the single remaining source is deemed too large and is split uniformly into two sub-sources. The algorithm terminates with 2 sources, each of size 500.

Finally, we point out that the same techniques apply to extractors as well. We define an extractor using the following feature vector, again ordered from most general to most specific: hextractor, pattern, predicate, websitei. The finest granularity represents the quality of a particular extractor pattern (different patterns may have different quality), on extractions for a particular predicate (in some cases when a pattern can extract triples of different predicates, it may have different quality), from a particular website (a pattern may have different quality on different websites).

## 5. EXPERIMENTAL RESULTS

This section describes our experimental results on a synthetic data set (where we know the ground truth), and on large-scale realworld data. We show that (1) our algorithm can effectively estimate the correctness of extractions, the truthfulness of triples, and the accuracy of sources; (2) our model significantly improves over the state-of-the-art methods for knowledge fusion; and (3) KBT provides a valuable additional signal for web source quality.

## 5.1 Experiment Setup

### 5.1.1 Metrics

We measure how well we predict extraction correctness, triple probability, and source accuracy. For synthetic data, we have the benefit of ground truth, so we can exactly measure all three aspects. We quantify this in terms of square loss; the lower the square loss, the better. Specifically, SqV measures the average square loss between p(Vd = v|X) and the true value of I(V ∗ d = v); SqC measures the average square loss between p(Cwdv = 1|X) and the true value of I(C ∗ wdv = 1); and SqA measures the average square loss between Aˆw and the true value of A∗w.

For real data, however, as we show soon, we do not have a gold standard for source trustworthiness, and we have only a partial gold standard for triple correctness and extraction correctness. Hence for real data, we just focus on measuring how well we predict triple truthfulness. In addition to SqV, we also used the following three metrics for this purpose, which were also used in [11].

- Weighted deviation (WDev): WDev measures whether the predicted probabilities are calibrated. We divide our triples according to the predicted probabilities into buckets[0, 0.01), . . . , [0.04, 0.05), [0.05, 0.1), . . . , [0.9, 0.95), [0.95, 0.96), . . . , [0.99, 1), [1, 1] (most triples fall in [0, 0.05) and [0.95, 1], so we used a finer granularity there). For each bucket we compute the accuracy of the triples according to the gold standard, which can be considered as the real probability of the triples. WDev computes the average square loss between the predicted probabilities and the real probabilities, weighted by the number of triples in each bucket; the lower the better.
- Area under precision recall curve (AUC-PR): AUC-PR measures whether the predicted probabilities are monotonic. We order triples according to the computed probabilities and plot PR-curves, where the X-axis represents the recall and the Yaxis represents the precision. AUC-PR computes the areaunder-the-curve; the higher the better.
- Coverage (Cov): Cov computes for what percentage of the triples we compute a probability (as we show soon, we may ignore data from a source whose quality remains at the default value over all the iterations).

Note that on the synthetic data Cov is 1 for all methods, and the comparison of different methods regarding AUC-PR and WDev is very similar to that regarding SqV, so we skip the plots.

### 5.1.2 Methods being compared

We compared three main methods. The first, which we call SINGLELAYER, implements the state-of-the-art methods for knowledge fusion [11] (overviewed in Section ??). In particular, each source or “provenance” is a 4-tuple (extractor, website, predicate, pattern). We consider a provenance in fusion only if its accuracy does not remain default over iterations because of low coverage. We set n = 100 and iterate 5 times. These settings have been shown in [11] to perform best.

The second, which we call MULTILAYER, implements the multilayer model described in Section 3. To have reasonable execution time, we used the finest granularity specified in Section 4 for extractors and sources: each extractor is an (extractor, pattern, predicate, website) vector, and each source is a (website, predicate, webpage) vector. When we decide extraction correctness, we consider the confidence provided by extractors, normalized to [0, 1], as in Section 3.5. If an extractor does not provide confidence, we assume the confidence is 1. When we decide triple truthfulness, by default we use the improved estimate p(Cwdv = 1|X) described in Section 3.3.3, instead of simply using Cˆwdv. We start updating the prior probabilities p(Cwdv = 1), as described in Section 3.3.4, starting from the third iteration, since the probabilities we compute get stable after the second iteration. For the noise models, we set n = 10 and γ = 0.25, but we found other settings lead to quite similar results. We vary the settings and show the effect in Section 5.3.3.

The third method, which we call MULTILAYERSM, implements the SPLITANDMERGE algorithm in addition to the multi-layer model, as described in Section 4. We set the min and max sizes to m = 5 and M = 10K by default, and varied them in Section 5.3.4.

For each method, there are two variants. The first variant determines which version of the p(Xewdv|Cwdv) model we use. We tried both ACCU and POPACCU. We found that the performance of the two variants on the single-layer model was very similar, while POPACCU is slightly better. However, rather surprisingly, we found that the POPACCU version of the multi-layer model was worse than the ACCU version. This is because we have not yet found a good way to combine the POPACCU model with the improved estimation procedure described in Section 3.3.3. Consequently, we only report results for the ACCU version in what follows

The second variant is how we initialize source quality. We either assign a default quality (Aw = 0.8, Re = 0.8, Qe = 0.2) or initialize the quality according to a gold standard, as explained in Section 5.3. In this latter case, we append + to the method name to distinguish it from the default initialization (e.g., SINGLELAYER+).

## 5.2 Experiments on synthetic data

### 5.2.1 Data set

We randomly generated data sets containing 10 sources and 5 extractors. Each source provides 100 triples with an accuracy of A = 0.7. Each extractor extracts triples from a source with probability δ = 0.5; for each source, it extracts a provided triple with probability R = 0.5; accuracy among extracted subjects (same for predicates, objects) is P = 0.8 (in other words, the precision of the extractor is Pe = P 3 ). In each experiment we varied one parameter from 0.1 to 0.9 and fixed the others; for each experiment we repeated 10 times and reported the average. Note that our default setting represents a challenging case, where the sources and extractors are of relatively low quality.

### 5.2.2 Results

Figure 3 plots SqV, SqC, and SqA as we increase the number of extractors. We assume SINGLELAYER considers all extracted triples when computing source accuracy. We observe that the multilayer model always performs better than the single-layer model. As the number of extractors increases, SqV goes down quickly for the multi-layer model, and SqC also decreases, albeit more slowly. Although the extra extractors can introduce much more noise extractions, SqA stays stable for MULTILAYER, whereas it increases quite a lot for SINGLELAYER.

Next we vary source and extractor quality. MULTILAYER continues to perform better than SINGLELAYER everywhere and Figure 4 plots only for MULTILAYER as we vary R, P and A (the plot for varying δ is similar to that for varying R). In general the higher quality, the lower the loss. There are a few small deviations from this trend. When the extractor recall (R) increases, SqA does not decrease, as the extractors also introduce more noise. When the extractor precision (P) increases, we give them higher trust, resulting in a slightly higher (but still low) probability for false triples; since there are many more false triples than true ones, SqV slightly increases. Similarly, when A increases, there is a very slight increase in SqA, because we trust the false triples a bit more. However, overall, we believe the experiments on the synthetic data demonstrate that our algorithm is working as expected, and can successfully approximate the true parameter values in these controlled settings.

### 5.3 Experiments on KV data

### 5.3.1 Data set

We experimented with knowledge triples collected by Knowledge Vault [10] on 7/24/2014; for simplicity we call this data set KV. There are 2.8B triples extracted from 2B+ webpages by 16 extractors, involving 40M extraction patterns. Comparing with an old version of the data collected on 10/2/2013 [11], the current collection is 75% larger, involves 25% more extractors, 8% more extraction patterns, and twice as many webpages.

Figure 5 shows the distribution of the number of distinct extracted triples per URL and per extraction pattern. On the one hand, we observe some huge sources and extractors: 26 URLs each contributes over 50K triples (a lot due to extraction mistakes), 15 websites each contributes over 100M triples, and 43 extraction patterns each extracts over 1M triples. On the other hand, we observe long tails: 74% URLs each contributes fewer than 5 triples, and 48% extraction patterns each extracts fewer than 5 triples. Our SPLITANDMERGE strategy is exactly motivated by such observations.

To determine whether these triples are true or not (gold standard labels), we use two methods. The first method is called the *Local-Closed World Assumption (LCWA)* [10, 11, 15] and works as follows. A triple (s, p, o) is considered as true if it appears in the Freebase KB. If the triple is missing from the KB but (s, p) appears for any other value o 0 , we assume the KB is locally complete (for (s, p)), and we label the (s, p, o) triple as false. We label the rest of the triples (where (s, p) is missing) as unknown and remove them from the evaluation set. In this way we can decide truthfulness of 0.74B triples (26% in KV), of which 20% are true (in Freebase).

Second, we apply type checking to find incorrect extractions. In particular, we consider a triple (s, p, o) as false if 1) s = o; 2) the type of s or o is incompatible with what is required by the predicate; or 3) o is outside the expected range (e.g., the weight of an athlete is over 1000 pounds). We discovered 0.56B triples (20% in KV) that violate such rules and consider them both as false triples and as extraction mistakes

Our gold standard include triples from both labeling methods. It contains in total 1.3B triples, among which 11.5% are true.

### 5.3.2 Single-layer vs multi-layer

Table 5 compares the performance of the three methods. Figure 8 plots the calibration curve and Figure 9 plots the PR-curve. We see that all methods are fairly well calibrated, but the multi-layer model has a better PR curve. In particular, SINGLELAYER often predicts a low probability for true triples and hence has a lot of false negatives.

We see that MULTILAYERSM has better results than MULTILAYER, but surprisingly, MULTILAYERSM+ has lower performance than MULTILAYER+. That is, there is an interaction between the granularity of the sources and the way we initialize their accuracy.

The reason for this is as follows. When we initialize source and extractor quality using default values, we are using unsupervised learning (no labeled data). In this regime, MULTILAYERSM merges small sources so it can better predict their quality, which is why it is better than standard MULTILAYER. Now consider when we initialize source and extractor quality using the gold standard; in this case, we are essentially using semi-supervised learning. Smart initialization helps the most when we use a fine granularity for sources and extractors, since in such cases we often have much fewer data for a source or an extractor

Finally, to examine the quality of our prediction on extraction correctness (recall that we lack a full gold standard), we plotted the distribution of the predictions on triples with type errors (ideally we wish to predict a probability of 0 for them) and on correct triples (presumably a lot of them, though not all, would be correctly extracted and we shall predict a high probability). Figure 6 shows the results by MULTILAYER+. We observe that for the triples with type errors, MULTILAYER+ predicts a probability below 0.1 for 80% of them and a probability above 0.7 for only 8%; in contrast, for the correct triples in Freebase, MULTILAYER+ predicts a probability below 0.1 for 26% of them and a probability above 0.7 for 54%, showing effectiveness of our model.

### 5.3.3 Effects of varying the inference algorithm

Table 6 shows the effect of changing different pieces of the multilayer inference algorithm, as follows.

Row p(Vd|Cˆd) shows the change we incur by treating Cd as observed data when inferring Vd (as described in Section 3.3.2), as opposed to using the confidence-weighted version in Section 3.3.3. We see a significant drop in the AUC-PR metric and an increase in SqV by ignoring uncertainty in Cd; indeed, we predict a probability below 0.05 for the truthfulness of 93% triples.

Row “Not updating α” shows the change we incur if we keep p(Cwdv = 1) fixed at α, as opposed to using the updating scheme described in Section 3.3.4. We see that most metrics are the same, but WDev is significantly worse, showing that the probabilities are less well calibrated. It turns out that not updating the prior often results in over-confidence when computing p(Vd|X), as shown in Example 3.3.

Row p(Cdwv|I(Xewdv > φ)) shows the change we incur by thresholding the confidence-weighted extractions at a threshold of φ = 0, as opposed to using the confidence-weighted extension in Section 3.5. Rather surprisingly, we see that thresholding seems to work slightly better; however, this is consistent with previous observations that some extractors can be bad at predicting confi- dence [11].

### 5.3.4 Computational efficiency

All the algorithms were implemented in FlumeJava [6], which is based on Map-Reduce. Absolute running times can vary dramatically depending on how many machines we use. Therefore, Table 7 shows only the relative efficiency of the algorithms. We reported the time for preparation, including applying splitting and merging on web sources and on extractors; and the time for iteration, including computing extraction correctness, computing triple truthfulness, computing source accuracy, and computing extractor quality.

For each component in the iterations, we report the average execution time among the five iterations. By default m = 5, M = 10K.

First, we observe that splitting large sources and extractors can significantly reduce execution time. In our data set some extractors extract a huge number of triples from some websites. Splitting such extractors has a speedup of 8.8 for extractor-quality computation. In addition, we observe that splitting large sources also reduces execution time by 20% for source-accuracy computation. On average each iteration has a speed up of 3. Although there is some overhead for splitting, the overall execution time dropped by half.

Second, we observe that applying merging in addition does not add much overhead. Although it increases preparation by 33%, it drops the execution time in each iteration slightly (by 2.4%) because there are fewer sources and extractors. The overall execution time increases over splitting by only 8.6%. Instead, a baseline strategy that starts with the coarsest granularity and then splits big sources and extractors slows down preparation by 3.8 times.

Finally, we examined the effect of the m and M parameters. We observe that varying M from 1K to 50K affects prediction quality very little; however, setting M = 1K (more splitting) slows down preparation by 19% and setting M = 50K (less splitting) slows down the inference by 21%, so both have longer execution time. On the other hand, increasing m to be above 5 does not change the performance much, while setting m = 2 (less merging) increases WDev by 29% and slows down inference by 14%.

### 5.4 Experiments related to KBT

We now evaluate how well we estimate the trustworthiness of webpages. Our data set contains 2B+ webpages from 26M websites. Among them, our multi-layer model believes that we have correctly extracted at least 5 triples from about 119M webpages and 5.6M websites. Figure 7 shows the distribution of KBT scores: we observed that the peak is at 0.8 and 52% of the websites have a KBT over 0.8.

### 5.4.1 KBT vs PageRank

Since we do not have ground truth on webpage quality, we compare our method to PageRank. We compute PageRank for all webpages on the web, and normalize the scores to [0, 1]. Figure 10 plots KBT and PageRank for 2000 randomly selected websites. As expected, the two signals are almost orthogonal. We next investigate the two cases where KBT differs significantly from PageRank.

**Low PageRank but high KBT (bottom-right corner)**: To understand which sources may obtain high KBT, we randomly sampled 100 websites whose KBT is above 0.9. The number of extracted triples from each website varies from hundreds to millions. For each website we considered the top 3 predicates and randomly selected from these predicates 10 triples where the probability of the extraction being correct is above 0.8. We manually evaluated each website according to the following 4 criteria.

- Triple correctness: whether at least 9 triples are correct.
- Extraction correctness: whether at least 9 triples are correctly extracted (and hence we can evaluate the website according to what it really states).
- Topic relevance: we decide the major topics for the website according to the website name and the introduction in the “About us” page; we then decide whether at least 9 triples are relevant to these topics (e.g., if the website is about business directories in South America but the extractions are about cities and countries in SA, we consider them as not topic relevant).
- Non-trivialness: we decide whether the sampled triples state non-trivial facts (e.g., if most sampled triples from a Hindi movie website state that the language of the movie is Hindi, we consider it as trivial).

We consider a website as truly trustworthy if it satisfies all of the four criteria. Among the 100 websites, 85 are considered trustworthy; 2 are not topic relevant, 12 do not have enough non-trivial triples, and 2 have more than 1 extraction errors (one website has two issues). However, only 20 out of the 85 trustworthy sites have a PageRank over 0.5. This shows that KBT can identify sources with trustworthy data, even though they are tail sources with low PageRanks.

**High PageRank but low KBT (top-left corner):** We consider the 15 gossip websites listed in [16]. Among them, 14 have a PageRank among top 15% of the websites, since such websites are often popular. However, for all of them the KBT are in the bottom 50%; in other words, they are considered less trustworthy than half of the websites. Another kind of websites that often get low KBT are forum websites. For instance, we discovered that answers.yahoo.com says that “Catherine Zeta-Jones is from New Zealand” 3 , although she was born in Wales according to Wikipedia4 .

### 5.4.2 Discussions

Although we have seen that KBT seems to provide a useful signal about trustworthiness, which is orthogonal to more traditional signals such as PageRank, our experiments also show places for further improvement as future work.

- To avoid evaluating KBT on topic irrelevant triples, we need to identify the main topics of a website, and filter triples whose entity or predicate is not relevant to these topics.
- . To avoid evaluating KBT on trivial extracted triples, we need to decide whether the information in a triple is trivial. One possibility is to consider a predicate with a very low variety of objects as less informative. Another possibility is to associate triples with an IDF (inverse document frequency), such that low-IDF triples get lower weight in KBT computation.
- Our extractors (and most state-of-the-art extractors) still have limited extraction capabilities and this limits our ability to estimate KBT for all websites. We wish to increase our KBT coverage by extending our method to handle open-IE style information extraction techniques, which do not conform to a schema [14]. However, although these methods can extract more triples, they may introduce more noise
- Some websites scrape data from other websites. Identifying such websites requires techniques such as copy detection. Scaling up copy detection techniques, such as [7, 8], has been attempted in [23], but more work is required before these methods can be applied to analyzing extracted data from billions of web sources.
- Finally, there have been many other signals such as PageRank, visit history, spaminess for evaluating web-source quality. Combining KBT with those signals would be important future work.

(3 https://answers.yahoo.com/question/index?qid=20070206090808AAC54nH.

4 http://en.wikipedia.org/wiki/Catherine Zeta-Jones.)

## 6. RELATED WORK

There has been a lot of work studying how to assess quality of web sources. PageRank [4] and Authority-hub analysis [19] consider signals from link analysis (surveyed in [3]). EigenTrust [18] and TrustMe [28] consider signals from source behavior in a P2P network. Web topology [5], TrustRank [17], and AntiTrust [20] detect web spams. The knowledge-based trustworthiness we propose in this paper is different from all of them in that it considers an important endogenous signal–the correctness of the factual information provided by a web source

Our work is relevant to the body of work in Data fusion (surveyed in [1, 12, 23]), where the goal is to resolve conflicts from data provided by multiple sources and find the truths that are consistent with the real world. Most of the recent work in this area considers trustworthiness of sources, measured by link-based measures [24, 25], IR-based measures [29], accuracy-based measures [8, 9, 13, 21, 27, 30], and graphical-model analysis [26, 31, 33, 32]. However, these papers do not model the concept of an extractor, and hence they cannot distinguish an unreliable source from an unreliable extractor

Graphical models have been proposed to solve the data fusion problem [26, 31, 32, 33]. These models are more or less similar to our single-layer model in Section 2.2; in particular, [26] considers single truth, [32] considers numerical values, [33] allows multiple truths, and [31] considers correlations between the sources. These prior works do not model the concept of an extractor, and hence they cannot capture the fact that sources and extractors introduce qualitatively different kinds of noise. In addition, the data sets used in their experiments are typically 5-6 orders of magnitude smaller in scale than ours, and their inference algorithms are inherently slower than our algorithm.

Finally, the most relevant work is our previous work on knowledge fusion [11]. We have given detailed comparison in Section 2.3, as well as empirical comparison in Section 5, showing that MULTILAYER improves over SINGLELAYER for knowledge fusion and gives the opportunity of evaluating KBT for web-source quality.

## 7. CONCLUSIONS

**This paper proposes a new metric for evaluating web-source quality– knowledge-based trust. We proposed a sophisticated probabilistic model that jointly estimates the correctness of extractions and source data, and the trustworthiness of sources. In addition, we presented an algorithm that dynamically decides the level of granularity for each source. Experimental results have shown both promise in evaluating web-source quality and improvement over existing techniques for knowledge fusion.**

It’s an awesome paragraph in support of all the web viewers;

they will take benefit from it I am sure.

I am sure too. It is awesomeness personified.