Elamur Research

Probabilistic Case-based Reasoning for Open-World Knowledge Graph Completion

Paper · 2020 · Rajarshi Das, Ameya Godbole, Nicholas Monath et al.

Summary

An incomplete knowledge graph may record where a scientist worked while leaving out where the scientist died. Other scientists in the graph can suggest how to fill the gap. If their affiliations frequently lead through institutions to the countries where they died, following the same kind of connection for the scientist in question might produce a useful answer. The difficulty is that the same graph can support several plausible routes. Birthplace might predict place of death for some scientists and give a poor answer for those who moved abroad. The paper asks how to reuse past cases while accounting for differences in which routes work.

The authors retrieve entities that resemble the subject of a query and already have a fact of the requested kind. They look for paths between each of those entities and its known answers, then try the same sequences of relations from the query subject. The method assigns weight to a sequence using its frequency among paths to known answers and its success rate among all traversals of that kind. The latter count can expose a sequence that frequently reaches an answer simply because it reaches many places. Both quantities are estimated from groups of similar entities, so the procedure can favor a path in one part of the graph and give it less weight elsewhere.

On the full FB122 test set, the method reaches a mean reciprocal rank of 0.727, compared with 0.678 for RotatE and 0.527 for the closely related case-based baseline. On NELL-995, its mean reciprocal rank for predicting the missing destination is 0.81. On WN18RR, allowing longer paths brings it to 0.48 mean reciprocal rank, the same value reported for RotatE, which still has higher Hits@10. These outcomes distinguish the contribution of the weighting scheme from the question of whether an answer can be reached with the paths the system is allowed to try.

The paper also simulates a graph that grows as batches of entities and facts arrive. An entity is represented by the kinds of links it has, so a new entity can be represented as soon as those links are available. The system updates a clustering hierarchy and refreshes path counts in affected parts of the graph. On FB122 Test-I and WN18RR, this incremental procedure comes close to a version of the same approach that rebuilds its statistics at every stage, and it outperforms the online variants of RotatE that the authors test. The incremental results concern entities that arrive with graph connections and a protocol in which the graph grows through additions.

Deep dive: Probabilistic Case-based Reasoning for Open-World Knowledge Graph Completion

Probabilistic case-based reasoning fills gaps in knowledge graphs by borrowing paths from similar entities and tracking which ones lead to known answers. · about 35 minutes to read

The problem and its context

A missing fact and the evidence around it

A graph fact has a source entity, a relation and a destination entity. A person, an institution or a country can be an entity. A relation says what kind of connection holds between the entities, such as a person's affiliation with an institution or the institution's location in a country. A query supplies an entity and a relation and asks for the missing destination. An evaluation can pose the reverse question as well, supplying the destination and asking which source belongs with it.

The task is to rank entities that might fill the missing position. More than one answer can be appropriate for a given source and relation. A system has to find useful candidates and distinguish them from other entities the graph makes plausible. In the scientist example, a path through an employer can suggest a country. Other affiliations or friends can lead to different countries. A good answer needs to move up the ranking even when the subject has many recorded connections.

The information needed to answer a query can be scattered across several facts. An affiliation edge establishes one part of a connection, and a location edge establishes another. Taken together, they can give evidence for a relation that the graph has yet to record. The strength of that evidence depends on the relation being predicted and on the cases to which the reasoning is applied. The paper treats this as a question about how to assess graph paths for reasoning.

The paper also considers what happens after a graph changes. Imagine that an entity first arrives with a handful of links to entities already present. A prediction system then needs to incorporate those links and produce answers about the new entity. The links can change what is known about older entities too. The graph's value as a source of evidence therefore depends on how quickly the reasoning procedure can use an update, as well as how well it ranks answers on a fixed snapshot.

What earlier approaches stored

The paper describes a common approach in which a system learns numerical representations for entities and relations. Tensor factorization and neural approaches both appear in this account. They use the collection of recorded facts to learn regularities that can score a proposed link. Translation, neural tensor operations and relational rotation are examples of how earlier systems represent connections. The paper situates its comparisons alongside Translating Embeddings for Modeling Multi-relational Data, Reasoning With Neural Tensor Networks for Knowledge Base Completion and RotatE.

An entity-specific learned vector raises a practical question when a new entity arrives. The system requires a representation for that entity, and the added facts may also concern entities whose representations were learned earlier. The paper discusses full retraining as a potentially expensive response on a large graph. It also examines whether continued training on incoming facts, together with some previously observed examples, can maintain the quality of earlier predictions.

The authors describe rule induction as another line of work. A rule can express how a sequence of relations provides evidence for a target relation. In the affiliation example, the relations along a path form premises, and the proposed relation is what the rule would infer. The paper says that classic inductive logic programming methods need explicit counterexamples and face difficulties at graph scale. A graph assembled from recorded facts can leave a claim absent simply because nobody has entered it, which makes the supply of counterexamples a problem. The paper describes subsequent rule-mining work as using rules to suggest counterexamples and making the process more scalable.

Other systems combine statistical learning with logic or store learned rules in their parameters. The paper compares its approach with differentiable proving and with systems that learn to reason by traversing the graph. A rule in this literature can be a useful generalization across many examples. The question this paper takes up is how to recover and assess the particular rules that are relevant to the entity in front of the system. One of its points of comparison is End-to-End Differentiable Proving.

Reusing cases and handling unfamiliar entities

In classical case-based reasoning, a system retrieves past problems that resemble a new one and adapts their solutions to the new circumstances. The unit of reuse in this paper is a relation sequence. A known answer for a neighboring entity shows where an analogous query ended. A path to that answer describes how the same destination could be reached through other facts. Retaining the sequence of relations allows those other facts to be looked up afresh for a new subject.

The authors identify a concurrent case-based approach as their closest comparison. It also looks for paths through examples near the query entity. According to the paper, its treatment favors paths that occur often and gives them less opportunity to vary in usefulness across queries. The present paper separates the discovery of a path from the assessment of its reliability. Even a route frequently observed on the way to known answers may send a new traversal to many irrelevant destinations.

The paper also distinguishes several meanings of completing a growing or unfamiliar graph. Earlier open-world work it discusses uses text descriptions to learn representations for entities. Another approach extracts updates from news and can add or remove links, with its setup centered on an existing set of entities. The authors' own input consists of graph facts, including links incident to newly arrived entities.

Inductive relation prediction is relevant because representations that are independent of individual entities can also support predictions about unfamiliar ones. The authors describe those approaches as sharing the ability to handle unseen entities while differing in how they obtain evidence and how they deal with successive updates. Their own setting calls for updating path statistics as the initial graph grows, and their prediction procedure gathers paths from similar entities. The paper discusses Inductive Relation Prediction by Subgraph Reasoning in this context.

The term “non-parametric” in the paper refers to the dependence of the procedure on the available cases and the ability of its statistics to grow with the data. The authors also mention a different tradition in which Bayesian methods choose the size of a latent representation from the data. Here an entity's features come directly from its recorded relation types. Paths are found from neighboring cases when a query is posed, and statistics are kept for the clusters that the graph currently supports. Those design choices determine what has to change when new facts arrive.

The method, step by step

From a recorded case to a possible answer

Consider the paper's query about where John von Neumann died. Richard Feynman supplies a case with a recorded answer for the requested relation. The graph also offers a route from Feynman through his affiliation with Caltech to the USA. To reuse that route, the procedure keeps the relation sequence, affiliation followed by location. It then starts from von Neumann and looks for his affiliations and the locations associated with them.

The known answer in the example serves to identify a useful route in the case. The name of the answer need not be carried over. Two scientists could provide examples of the same affiliation-and-location sequence even if their institutions and countries differ. The path type says how to look for evidence when applied to another entity.

The paper also considers using birthplace to predict place of death. A birthplace edge in a case may point to the same country as the recorded place-of-death edge. That is a reason for considering the sequence. Its weight depends on how often it works in a relevant group. The authors use scientists who moved to the USA to illustrate how a pattern that seems reasonable for some people can give poor predictions for others. A cluster with many such cases gives the system evidence for reducing the weight on birthplace.

How case-based reasoning ranks answers to a graph query

The steps in order.

How case-based reasoning ranks answers to a graph queryStep 1: Represent entities by their outgoing relation types1. Represent entities by their outgoing relation typesStep 2: Find similar entities with known answers2. Find similar entities with known answersStep 3: Collect relation sequences leading to those answers3. Collect relation sequences leading to those answersStep 4: Look up frequency and precision in the query cluster4. Look up frequency and precision in the query clusterStep 5: Follow the sequences from the query entity5. Follow the sequences from the query entityStep 6: Add path contributions for each reachable candidate6. Add path contributions for each reachable candidateStep 7: Rank the candidate answers7. Rank the candidate answers

The graph, the query and the paths

The graph has named entities and directed, labeled edges. Different relations can link the same pair of entities. The paper augments the graph with inverse edges so that a traversal can move in the reverse direction of a recorded fact and still know what relation it followed.

G = (V, E, R),  E ⊆ V × R × V

G is the graph. V is the set of entities, E the set of edges and R the set of relation types. The symbol ⊆ means that E is a subset of the combinations formed by the Cartesian products ×. An edge takes an entity from V as its source, a relation from R as its label and an entity from V as its destination. Parentheses here group the components of the graph, and commas separate the components.

(e₁, r, e₂) ∈ E ⇒ (e₂, r⁻¹, e₁) ∈ E

The entities e₁ and e₂ are the source and destination of the recorded edge, and r is its relation type. The label r⁻¹ is the inverse of r. The symbol ∈ means “is an element of.” The arrow ⇒ expresses the graph construction rule. For each recorded fact on the left, the authors add the reversed fact on the right, with the inverse label added to R when necessary. In a query, e₁q designates the supplied source and r_q the requested relation. The question mark in the destination position denotes the entity to predict.

p = (e₁, r₁, e₂, …, rₙ, eₙ₊₁),  st(p) = e₁,  en(p) = eₙ₊₁,  len(p) = n

Here p is a concrete path. Each e with a subscript names an entity at a position along it, and each r with a subscript names the relation traversed at that step. The ellipsis stands for the intervening edges and entities. The functions st and en return the starting and ending entities. The function len returns the number of edges, denoted by n in this expression. The final entity has index n₊₁ because a traversal starts at an entity before taking its first edge.

type(p) = (r₁, r₂, …, rₙ)

The function type removes the entities from p and returns the ordered relation labels r₁ through rₙ. The ellipsis abbreviates the intervening labels. The resulting path type can be applied anywhere in the graph where that sequence of directed relations is available. The same type can describe distinct concrete paths from a single entity.

To make that distinction visible, W below denotes collections of concrete paths and P denotes collections of path types. A set of known answers determines which concrete paths can provide an example of a type for the requested relation.

S(e, r) = {t | (e, r, t) ∈ E}

The set S contains the recorded destinations t of relation r from source entity e. The braces describe a set and the bar means “such that.” Membership in E specifies that the source, relation and destination form an available edge. Several destinations can belong to S for the same pair of source and relation.

Wₙ(e, r) = {w ∈ Wₙ(e) | en(w) ∈ S(e, r)}

The set Wₙ(e) contains all concrete paths w that start at e and have at most n edges, where n now denotes the allowed maximum. The notation Wₙ(e, r) restricts that collection to paths whose ending entity, returned by en, belongs to the known-answer set S for e and r. The symbols ∈ and | indicate membership and restriction. This selection uses known answers at the case entity.

Pₙ(e, r) = {type(w) | w ∈ Wₙ(e, r)}

The set Pₙ(e, r) keeps the distinct relation sequences of the paths w in Wₙ(e, r). The type function takes the ordered labels from a concrete path. The set braces make repeated occurrences of a sequence a single candidate type. The counts used later still distinguish the concrete paths that produced it. The direct relation r itself can supply a path type in a case because its recorded edge reaches a known answer by construction.

How the system finds cases

For every entity, the system records which relation labels occur on its outgoing edges. A feature records whether a label appears at all. An entity linked to many organizations by the same relation sets the same feature as one with a single such link. The use of inverse edges means that a fact coming into the entity can also register as an outgoing feature with the inverse label.

x(e) ∈ {0, 1}ᴿ

The vector x(e) represents entity e, and the superscript R means that there is a position for each relation type in R. The value 1 signals the presence of that outgoing type and 0 its absence. The membership symbol ∈ specifies the set of possible vectors. Here x distinguishes the vector from the entity it represents. Sparse storage is possible because an entity can be described by recording the positions that are present.

The authors use cosine distance to compare the vectors. Two entities are close under this measure when they have similar profiles of relation types. The comparison uses the overlap in the types each entity has, with the sizes of their profiles taken into account. It can therefore retrieve entities that occupy similar roles in the graph even when their edges lead to different entities.

Similarity is only the first condition for serving as a case. A neighbor also needs at least one recorded edge of the requested relation. For a query about the city where Melinda Gates works, Warren Buffett can supply a case because the example graph records Omaha as a city where he works. A very close entity whose work city is missing cannot supply this kind of evidence. The system orders entities by distance from the query subject and chooses the nearest eligible ones, up to the configured number k.

Pₙ(C_q, r_q) = ⋃_{e ∈ C_q} Pₙ(e, r_q)

The set C_q contains the selected cases for query q, and r_q is that query's requested relation. Each e in C_q contributes its set Pₙ(e, r_q) of relation sequences leading to its own recorded answers. The union symbol ⋃ gathers the sets across the cases. The result on the left is the set of distinct types available for this query, with n setting the length bound.

This retrieval and the later clustering serve different purposes. Retrieval is specific to the current query. It looks for examples with the right kind of known fact and determines which sequences to consider. Clustering pools observations so the system can assign weights to those sequences. The query entity's cluster supplies the statistics even if the eligible nearest cases and the entities in that cluster are different sets.

Turning paths into evidence

The authors express the answer probability by summing over the retrieved path types. A term combines the probability of choosing a type for a query with the probability of reaching the answer through that type. In the expressions below, p denotes a type. The letter w continues to denote a concrete traversal when individual paths are counted.

P(e₂ | e₁q, r_q) = ∑_{p ∈ Pₙ(C_q, r_q)} P(e₂, p | e₁q, r_q)

On the left, P is probability, e₂ is a possible destination, e₁q is the query source and r_q is the query relation. The vertical bar indicates conditioning on the supplied query. On the right, ∑ adds the joint probabilities of destination e₂ and type p across the retrieved set Pₙ(C_q, r_q). The symbol ∈ restricts the summation to that set, and commas within the probability expressions separate variables.

P(e₂ | e₁q, r_q) = ∑_{p ∈ Pₙ(C_q, r_q)} P(p | e₁q, r_q) · P(e₂ | p, e₁q, r_q)

The source e₁q, relation r_q, candidate e₂ and path-type set Pₙ(C_q, r_q) retain their meanings. The first P on the right assigns a prior to type p given the query. The second P is the answer term conditioned on using p for that query. The bar again separates the outcome from its conditions, and · multiplies the two terms. Summation over p combines the evidence from the available types.

The practical scoring procedure follows this decomposition. The system traverses each selected sequence from the query entity. A candidate gets a contribution from a sequence that leads to it, and evidence from different sequences can accumulate for that candidate. The system estimates a type's contribution using how frequently it appears on successful routes and how reliably traversals of that type reach known answers. Those are different properties of a path.

Consider the paper's example of following a friend link and then that friend's city of residence to answer a query about someone's work city. The sequence can get to the right city in many cases, which can make it common among paths to known answers. It can also get to all the other cities where a person's friends live. Counting those other endpoints as opportunities for an incorrect result gives the frequency evidence context. A path through an affiliation can pose the same issue when people have several affiliations.

Pooling the evidence in clusters

Estimating a separate prior and precision for every entity would leave many estimates based on a small number of observations. The authors pool observations in clusters built from the same entity similarity used for case retrieval. Their probabilistic account starts by introducing the cluster assignment as a variable.

P(p | e₁q, r_q) = ∑_c P(c | e₁q, r_q) · P(p | c, e₁q, r_q)

Here c ranges over the available clusters and ∑_c sums over them. The type p is being assessed for the source e₁q and relation r_q. The first factor on the right is the probability of membership in c for that query. The second factor is the prior for p with c included among the conditions. The multiplication sign · joins the factors.

The authors assign each entity to a single cluster. Its assigned cluster gets all the membership probability. They also assume that the prior for a type can be shared across the members of that cluster for a given relation.

P(p | cₑ₁q, e₁q, r_q) = P(p | cₑ₁q, r_q)

The notation cₑ₁q identifies the cluster assigned to source e₁q. The type p and query relation r_q are the same on both sides, and P refers to the prior for that type. The equality expresses the assumption that the source's identity adds no further conditioning information once its cluster is known. The paper applies the same pooling idea to precision. The identity of the source still matters when finding cases and traversing the graph.

For the fixed graph, the authors build a hierarchy with agglomerative clustering. It starts with entities as individual groups and merges groups according to their similarity. The linkage score compares groups by averaging the similarities of the cross-group entity pairs. The resulting hierarchy describes possible groups at different levels of detail.

linkage(A, B) = (1 / (|A| · |B|)) · ∑_{a ∈ A} ∑_{b ∈ B} sim(a, b)

A and B are the groups being compared. The symbols |A| and |B| count their members. The variables a and b range over the members of A and B respectively, and sim(a, b) is the similarity between those entities. The two sums add the similarities across the groups. Division by the number of cross-group pairs, expressed using 1, / and ·, turns that sum into a mean. The function linkage names the resulting comparison.

The procedure then selects a flat partition from the hierarchy. It starts at the root and visits nodes breadth first. When a node's linkage exceeds the specified threshold, the procedure accepts the group represented by that node and stops descending there. Otherwise it continues to the children. The accepted groups form the partition used for counting. The threshold controls the granularity, and the number of groups follows from the hierarchy and the chosen threshold.

Estimating the prior and the precision

To compute a prior, the authors take the entities in a cluster and look at their paths to known answers for a relation. The prior for a type asks what share of these paths have that type. The observations are concrete paths. If distinct coworker links all support a route from a person to a known work city, their occurrences contribute separately.

P̂(p | c, r_q) = (∑_{e ∈ c} ∑_{w ∈ Wₙ(e, r_q)} 𝟙[type(w) = p]) / (∑_{e ∈ c} ∑_{w ∈ Wₙ(e, r_q)} 1)

The hat on P̂ marks an estimate. Its arguments are path type p, cluster c and query relation r_q. The outer sums range over source entities e in c, and the inner sums range over paths w in Wₙ(e, r_q), the bounded paths to their recorded answers. The indicator 𝟙 in the numerator contributes 1 when the type of w equals p and contributes nothing otherwise. The 1 in the denominator counts each included path. Division / gives the occurrence share. All paths contributing to this estimate already satisfy the condition on their endpoints.

To compute precision, the authors broaden the collection. They include paths of the specified type whether they reach known answers or other entities. It is the number of paths of that type that determines the denominator. The numerator restricts this count to endpoints with a recorded edge of the requested relation from the starting entity.

P̂(e₂ | p, c, r_q) = (∑_{e ∈ c} ∑_{w ∈ Wₙ(e)} 𝟙[type(w) = p] · 𝟙[en(w) ∈ S(e, r_q)]) / (∑_{e ∈ c} ∑_{w ∈ Wₙ(e)} 𝟙[type(w) = p])

P̂ is the estimated answer term for the candidate e₂, assessed using type p, cluster c and relation r_q. The estimate on the right measures a type's success at reaching a known answer somewhere in the cluster. The sums go over entities e in c and over all bounded paths w in Wₙ(e) starting at each e. The first indicator selects paths of type p. The second tests membership of the endpoint en(w) in the known-answer set S(e, r_q). Multiplication · requires both conditions in the numerator. The denominator counts the selected type at all endpoints, and division gives the fraction that reached recorded answers. The score for a particular candidate uses this reliability when the path type can lead to that candidate from the query source.

This distinction matters to the interpretation of the probability notation. The precision count pools successes for possibly different correct destinations across the members of a cluster. It supplies empirical evidence about the reliability of the route. Identifying which destination receives that evidence still requires traversing the query graph. A route can lead to several candidates, and the estimates in the paper are used to order candidates through the resulting weighted evidence.

The counts can be computed independently by starting entity before aggregation. This allows parallel computation and lets the system reuse an entity's counts if its relevant paths remain the same. The preparation still includes finding paths, building the hierarchy and estimating the statistics. The authors use validation results to choose settings such as the number of neighbors, the number of paths taken from neighbors and the clustering threshold. After preparation, fitting the weights calls for count aggregation with no further iterative optimization. The authors make the implementation available under the repository name ameyagodbole/Prob-CBR.

Updating the graph as facts arrive

A batch of new entities changes the binary relation profiles for the newcomers and can change those for existing entities. If an added edge introduces an outgoing label at an older entity, its vector gains that feature. With inverse edges, the destination of an added fact can experience a change too. An existing feature can stay present while the new edge creates additional concrete paths. Updating the profiles and refreshing the path counts are consequently separate operations.

The online method uses GRINCH to maintain the hierarchy. An arriving entity is initially placed by its nearest neighbor. The algorithm can rotate parts of the tree to change local groupings, and it can graft a subtree elsewhere in the hierarchy. When an older entity's representation changes, its old leaf is removed and the entity is inserted again with its updated vector. After the insertions, the threshold-based procedure extracts the current flat partition.

Cluster membership can change for entities whose vectors are untouched as a consequence of rearranging the tree. The count aggregation uses the resulting groups. If an unchanged entity's path counts are still valid, its contribution can be combined with those of its current cluster without traversing its surroundings again. The expensive part the authors aim to avoid is repeating the traversal from every entity after each batch.

The update argument uses a connection between a successful path and the direct edge that marks its endpoint as a known answer. Suppose an added fact creates a new route from a source to one of its known answers. The route and the direct answer edge connect the same entities. Traversing the route forward and using the direct edge in reverse closes a cycle.

len(w_new) + 1 ≤ n + 1

The path w_new is a newly available route from a source to a known answer, len is its edge count and n is the maximum path length. The 1 added on the left accounts for the edge that closes the route into a cycle. The symbol ≤ bounds the cycle length by n + 1. The proof motivates searching bounded cycles through additions to identify entities whose counts of paths to known answers need updating.

For the prior, those successful paths are the entire collection being counted. The same reasoning covers the successful paths in the numerator of precision. The precision denominator can also grow when a new path reaches some other entity. Such a path can appear without creating a cycle of the relevant length through the addition. The online procedure can therefore retain a precision estimate above the value that a full refresh would produce. The paper measures the incremental system against a version that refreshes all the counts.

How the comparison system receives new entities

The online comparison requires adapting RotatE to give each arriving entity a vector. The authors try random initialization and an initialization derived from facts connecting the new entity to existing ones. In the latter, each associated fact suggests a vector by rotating the known entity's vector according to the relation, and the suggestions are averaged.

𝐞_t = (∑_{(h, r, t) ∈ S} 𝐞_h ◦ 𝐞_r) / |S|

Here t is the arriving entity, h is the head of an associated fact and r is its relation to t. The set S contains those triples, and |S| is their count. The vectors 𝐞_t, 𝐞_h and 𝐞_r represent the new entity, the head and the relation. The operator ◦ is the element-wise product, so it combines corresponding vector components. The sum adds the suggestions from the triples in S and division averages them. The authors describe this initialization as a way to place a new entity consistently with the representations from the preceding stage.

New relations receive random vectors in these comparisons. After initialization, the authors train on the new batch and, in some settings, a sample of previously seen facts. They also test freezing the previously learned entity vectors and training only the new entity and relation vectors. Together, these settings let the experiments examine how much the result depends on the starting position of a new vector and on the ability to revise older representations.

Experiments and results

The graphs and the ranking task

The fixed-graph experiments use FB122, WN18RR and NELL-995. In the paper's dataset statistics, FB122 contains 9,738 entities, 122 relation types and 112,476 edges. It comes from the Freebase-derived FB15K collection and includes relations about people, places and sports. WN18RR has 40,943 entities, 11 relation types and 93,003 edges. It was constructed from WN18 to remove cases in which an inverse relation exposed test answers. NELL-995 has 75,492 entities, 200 relation types and 154,213 edges. It is drawn from the 995th iteration of NELL and is the benchmark the paper associates with DeepPath.

The graphs have training, development and test edge partitions. In tail prediction, the query gives the source and relation and asks the system to rank possible destinations. In head prediction, it gives the destination and asks for the source. The inverse edges allow the reasoning procedure to treat this as following the inverse relation from the supplied entity. The authors average the head and tail results for FB122 and WN18RR. On NELL-995, they report tail prediction to match the comparisons used for that benchmark.

Hits at a cutoff measures how frequently the answer appears somewhere within the corresponding number of top-ranked items. Hits@1 is about the leading prediction. Hits@10 gives credit for returning the answer anywhere in the first ten positions. Mean reciprocal rank, or MRR, takes the reciprocal of the answer's rank for each query and averages it. It gives more credit for putting the answer near the top and also distinguishes placements within a Hits cutoff. The FB122 tables display Hits as percentages and MRR as a decimal. The WN18RR and NELL-995 tables display both kinds of metric as decimals.

The comparison systems represent several ways of producing a ranking. TransE, DistMult, ComplEx and RotatE are examples of baselines that learn representations and score links with them. ConvE appears in the WN18RR and NELL-995 comparisons. GNTP, MINERVA and the concurrent CBR approach supply comparisons for reasoning with rules or paths. The paper also includes FB122 systems evaluated under a setup with rules, making it important to retain the distinction between those entries and the comparison without supplied rules.

The authors report means over 3 runs for their approach. They tune settings using development data. On WN18RR, their reported best configuration uses 40 nearest neighbors, 60 paths from neighbors, a maximum path length of 5 and a linkage threshold of 0.25. For FB122, the corresponding settings are 10 neighbors, 80 paths, a maximum length of 3 and a threshold of 0.6. For NELL-995, the reported settings are 15 neighbors, 25 paths, a maximum length of 3 and a threshold of 0.95.

The appendix reports validation MRR of 0.451 for WN18RR and 0.724 for FB122. For NELL-995, the authors construct a validation set by randomly selecting 3000 edges from the full NELL graph because the benchmark supplies no validation set. The appendix reports 0.367 MRR on that validation set. Many of its relation types differ from those in the benchmark splits, so the validation and test figures characterize different collections of queries.

FB122 separates the overall ranking from a rule-inferable subset

FB122 Test-II contains facts that can be inferred using logical rules. The result columns distinguish it from Test-I and from the combined Test-ALL evaluation. This division matters because a system can be particularly strong at recovering rule-supported facts and still have a lower overall ranking score. Conversely, success on the combined set alone gives little detail about a method's use of the available rule structure.

Mean reciprocal rank on the full FB122 test set

The probabilistic case-based approach leads the displayed systems on the combined test set.

Mean reciprocal rank on the full FB122 test setTransE: 0.480TransE0.480DistMult: 0.628DistMult0.628ComplEx: 0.641ComplEx0.641GNTPs: 0.678GNTPs0.678RotatE: 0.678RotatE0.678CBR: 0.527CBR0.527KB LR: 0.702KB LR0.702Probabilistic case-based reasoning (this paper): 0.727Probabilistic case-based reasoning (thispaper)0.727
The numbers
System or settingMRR
TransE0.480
DistMult0.628
ComplEx0.641
GNTPs0.678
RotatE0.678
CBR0.527
KB LR0.702
Probabilistic case-based reasoning (this paper)0.727

On Test-ALL, the authors' method also records 74.2 Hits@3, 76.0 Hits@5 and 78.2 Hits@10, all in percent. RotatE records 70.8, 73.57 and 77.0 at those cutoffs. The CBR comparison records 57.0, 61.2 and 65.3. Some systems in the group evaluated with rules remain ahead at particular cutoffs. KB LR reaches 77.0 Hits@5 and 79.7 Hits@10 on Test-ALL. The leading overall MRR for the case-based approach thus describes where it places answers across ranks.

Test-I tells a different part of the story. RotatE obtains 0.471 MRR, with the authors' method at 0.457 and the CBR baseline at 0.359. RotatE reports 51.1 Hits@3 and 60.3 Hits@10. The case-based method reports 49.0 and 57.1. The paper uses RotatE's Test-I performance as the offline comparison for FB122 in the later streaming experiment.

On Test-II, the authors' method reaches 0.948 MRR and 94.8 Hits@3. The concurrent CBR system records 0.636 MRR and 67.8 Hits@3. RotatE obtains 0.846 MRR, and GNTPs reaches 0.977. Among systems evaluated with rules, ASR-ComplEx reports 0.984. The Test-II result establishes that the probabilistic case-based procedure can recover many of the rule-inferable facts. Its advantage over the close CBR comparison is especially visible on this subset, while the strongest Test-II score in the table belongs to a different system.

NELL-995 and WN18RR show different strengths

On NELL-995, the proposed method has the highest tail-prediction results displayed for each of the reported metrics. Its Hits@1 is 0.77, Hits@3 is 0.85 and Hits@10 is 0.89. The CBR baseline reports 0.70, 0.83 and 0.87 at the same cutoffs, while MINERVA reports 0.66, 0.77 and 0.83. RotatE has Hits@1 of 0.65 and Hits@10 of 0.87. The differences in the highest-ranked answer and in broader coverage can be read separately.

Mean reciprocal rank for tail prediction on NELL-995

The proposed approach ranks answers highest on average among the displayed tail-prediction systems.

Mean reciprocal rank for tail prediction on NELL-995TransE: 0.67TransE0.67DistMult: 0.68DistMult0.68ComplEx: 0.69ComplEx0.69ConvE: 0.75ConvE0.75RotatE: 0.74RotatE0.74MINERVA: 0.72MINERVA0.72CBR: 0.77CBR0.77Probabilistic case-based reasoning (this paper): 0.81Probabilistic case-based reasoning (thispaper)0.81
The numbers
System or settingMRR
TransE0.67
DistMult0.68
ComplEx0.69
ConvE0.75
RotatE0.74
MINERVA0.72
CBR0.77
Probabilistic case-based reasoning (this paper)0.81

ConvE is a close comparison among the embedding systems on this dataset, with 0.75 MRR and 0.67 Hits@1. The CBR baseline lies between ConvE and the proposed method on MRR. This ordering is informative because a near-neighbor method already does well on the benchmark. The proposed weighting and pooling procedure improves on that comparison in the same tail-prediction evaluation. The paper has no GNTP result for NELL-995.

For WN18RR, the proposed method and RotatE both report 0.48 MRR. They also both report 0.43 Hits@1 and 0.49 Hits@3. RotatE reaches 0.57 Hits@10 and the case-based approach 0.55. The CBR baseline reports 0.43 MRR and 0.51 Hits@10. The paper's separate path-length experiment shows that this close comparison with RotatE depends on allowing longer reasoning sequences than the shorter case-based setting uses.

Taken across the fixed-graph experiments, the figures locate the competitive claims precisely. The method improves on the concurrent CBR comparison in the reported overall evaluations. Its strongest aggregate results in the paper are on FB122 and NELL-995. WN18RR is a case of matching RotatE on several metrics while leaving a gap at the broader retrieval cutoff. On FB122, the strongest systems also change with the test subset.

What the online experiment changes

The authors create a stream from each graph by starting with the top 10% of nodes by outgoing connectivity and adding randomly selected nodes until the seed contains 50% of all entities. The seed includes edges between its selected nodes. Choosing the most connected nodes first gives the initial graph enough structure to support useful predictions. The remaining entities are randomly assigned to 10 batches, which arrive with their graph edges.

A validation or test fact is included at a stage only when both of its endpoints are present. This makes the set of available questions grow with the graph. The authors report MRR for the full evaluation at each stage and for the cases associated with the newly added edges. Full evaluation measures how the procedure handles the accumulated prediction task. The new portion makes it possible to see when a system is doing relatively well on incoming information while losing accuracy on earlier cases.

The authors adapt RotatE in several ways. RotatE uses random initialization for new entity vectors, and RotatE+ uses the initialization based on associated facts. The training sets at each stage can include either 10% or 30% of previously seen edges. The replay procedure favors facts in the neighborhood of incoming entities, with those edges described as ten times as likely to be sampled as others. RotatE-Freeze keeps existing entity representations fixed. The authors stop continued training when performance on validation data containing old and new triples stops improving.

The authors also run a full-recomputation version of the case-based procedure. At each stage it rebuilds the clustering over the entities available at that point and estimates all parameters afresh. The authors call this the oracle setting. It supplies a comparison for the incrementally maintained hierarchy and selective counting. The offline RotatE result, by contrast, is the best fixed-graph reference reported for each of the online benchmarks.

What happens as the stream grows

The paper gives the offline RotatE references as 47.1 MRR for FB122 Test-I and 48 for WN18RR on the scale used to discuss the online figure. The online RotatE runs end up at least 8 MRR points below the offline reference on FB122 and at least 11 points below the reference on WN18RR. These are the paper's reported losses from the offline comparisons. Over the stages, the authors observe that exposure to new facts can coincide with deteriorating rankings on facts available earlier.

Systematic initialization improves RotatE's full evaluation relative to random initialization. The difference shows that the quality of an arriving representation matters beyond the moment when it is inserted. Even with the stronger initialization, the paper reports a substantial remaining gap to the best results. The freeze variant's performance deteriorates after an initial period. In the paper's interpretation, keeping the older vectors fixed eventually restricts what can be learned about incoming entities.

The incremental case-based approach remains close to its full-recomputation version. It also comes closest to the best offline reference among the online procedures in the comparison. This result measures whether the combined hierarchy update and selective count refresh preserve ranking quality under the particular sequence of additions. The paper's comparison includes a strong offline embedding approach, several adaptations of it for continued training and a full refresh of the case-based approach.

What the ablations show

Pooling observations improves the WN18RR ranking

The clustering ablation gives every entity its own cluster. The system still retrieves cases and uses path statistics, but the prior and precision for an entity now depend on its individual observations. The comparison isolates the value of pooling the available evidence over similar entities.

Effect of clustering on WN18RR mean reciprocal rank

Pooling path statistics across similar entities improves the ranking over estimating them separately for each entity.

Effect of clustering on WN18RR mean reciprocal rankPer-entity path statistics: 0.34Per-entity path statistics0.34Cluster-level path statistics (this paper): 0.45Cluster-level path statistics (thispaper)0.45
The numbers
System or settingMRR
Per-entity path statistics0.34
Cluster-level path statistics (this paper)0.45

In that comparison, Hits@1 is 0.42 with clusters and 0.29 with separate entity estimates. Hits@3 is 0.46 with clusters and 0.36 without pooling. Hits@10 is 0.51 and 0.45 respectively. The gain extends from the first position to the wider set of predictions. The authors attribute it to noisy prior and precision estimates when each entity has only its own observations. A path that happens to work in a sparse local graph can receive a different assessment once the system sees its other possible endpoints around comparable entities.

The clustered entry in this ablation has 0.45 MRR. The paper separately reports 0.48 for the longer-path WN18RR result. The clustering comparison supports pooling under the configuration shown in the ablation, while the length comparison changes the set of paths that are available to be pooled and used.

The length bound can eliminate the answer before ranking

The authors examine the WN18RR development queries for which their method puts the answer outside the top ten. Of 2985 such queries, 2030 require a path longer than 3 to connect the source to the answer. This is a reachability diagnostic. If traversal is capped at length 3, the relevant destination cannot receive evidence from a bounded route, regardless of how well the procedure would score such a route if it were available.

With the bound raised to 5, the paper says that 950 of those 2030 answers become reachable. This is a count of cases in which the graph permits a route under the longer bound. Retrieval has to find a suitable path type, and the scoring stage still has to place the answer above competing candidates. Reachability therefore marks an opportunity for recovery.

In the WN18RR comparison of length settings, the length-3 entry has 0.42 Hits@1, 0.46 Hits@3, 0.51 Hits@10 and 0.45 MRR. The length-5 entry has 0.43 Hits@1, 0.49 Hits@3, 0.55 Hits@10 and 0.48 MRR. RotatE's Hits@10 remains higher at 0.57. The diagnostic explains why improving weights alone could leave a large share of the shorter setting's misses unresolved. The ranking results show that some of the opportunity offered by longer paths translates into better predictions.

Different clusters support different relation sequences

The paper gives a qualitative comparison for the NELL-995 relation concerning an agent's membership in an organization. In an athlete cluster, high-scoring paths go through a sports team and the league it plays in, or through an athlete's home stadium and the inverse of the relation connecting leagues to stadiums. The same query relation for a politician cluster favors a path involving a political group or one going through another agent with whom the politician collaborates.

These examples show what a cluster-specific path weight can capture. The relation requested by the query remains the same, while the group supplies a different pattern of evidence. Individual paths still make defeasible suggestions. For instance, following a collaborator's organizational affiliation can reach a plausible organization even when the original agent has no such membership. The precision estimate gives the procedure a way to learn how much weight that pattern deserves in the group that produced it.

The FB122 Test-II comparison supplies complementary quantitative evidence. The proposed method places rule-inferable answers much higher than the concurrent CBR approach, and the authors interpret that gap as support for assessing path reliability. The comparison is between complete systems. The explicit clustering ablation isolates a change in pooling, while the Test-II results assess the resulting approach against a related way of reusing paths. The experiments leave separate numerical estimates of the contributions of prior and precision to a further comparison.

Selective updates stay close to a full refresh

The open-world results compare incremental maintenance with rebuilding the hierarchy and statistics from scratch as each batch arrives. The two case-based curves stay close in the paper's evaluation. This tests the combined effect of local hierarchy editing and selective path refresh on answer quality. It is possible for a small departure in the clustering or in a precision estimate to have little effect on the ordering of the leading candidates.

The appendix examines the work required by the clustering update by counting new and modified entities at each round. The authors observe that those requiring insertion or reinsertion are substantially fewer than the entities already in the graph. An example in the appendix illustrates arrivals joining recognizable groups, including the groups for professions and sports organizations. Those examples make the update operation concrete. The comparison with a full refresh supplies the accuracy evidence, while the entity counts describe how much of the clustering input is touched directly at each stage.

Limitations

Limits the authors identify

Bounded traversal is an explicit restriction. On WN18RR, the authors show that the short bound rules out routes for many queries that their method misses. Raising the cap gives the system access to additional destinations, and the method still depends on a route in the available graph. Whether such a route is useful depends on the patterns retrieved from cases and the evidence those patterns receive in the cluster.

The authors also identify a source of approximation in streaming precision. A newly created path to a nonanswer can increase a precision denominator even when the cycle search leaves its source untouched. An estimate retained from the previous stage can then be too high. The paper's incremental and full-recomputation comparison measures the practical ranking consequence under its benchmark streams. The cycle argument gives broader coverage for the successful-path counts than for the full precision denominator.

A further author-stated limitation concerns validation for NELL-995. The sampled validation edges come from the full NELL graph and include many query relations different from those in the benchmark partitions. The selected settings are reported on the benchmark test set, but the validation source is a poor proxy for that test distribution by the authors' account. The appendix also lists a best linkage threshold of 0.95 for that dataset while its displayed random-search range ends at 0.75. The account leaves the relationship between the reported setting and the listed search range unresolved.

The paper reports computational measurements on a CPU with 128 GB RAM and says the experiments required no GPUs. It reports around 20 mins of preparation on WN18RR and around 90 mins on each of FB122 and NELL-995. It gives inference rates of 18.9 queries/s on WN18RR and 9.05 queries/s on NELL-995. These measurements give the reader a sense of the cost of constructing and using the statistics on the systems tested. Path traversal remains the costly operation that motivates selective refresh.

Limits visible in the evaluation

The seed of the online graph deliberately has substantial connectivity, and a test or validation question becomes eligible when both endpoints are present. The experiment therefore evaluates incoming entities that can be incorporated into an existing graph with useful structure. It leaves sparsely connected starting graphs, different arrival orders and entities introduced without usable links as separate cases. The online protocol also grows by addition. Its results describe how the procedure handles those additions, including revisions to the structures attached to existing entities.

The online comparison is against adaptations of RotatE. The variants are informative about replay, initialization and freezing within that approach. The authors also discuss inductive systems capable of dealing with unfamiliar entities in the related work. Their reported online results therefore support a comparative claim about the evaluated systems and protocols. They give no numerical ordering against the other inductive approaches discussed in the paper.

The binary profiles capture which kinds of connections an entity participates in. Their simplicity makes them cheap to construct and update. They also give the same feature to entities that participate in a relation with different frequencies, different destinations or different surroundings. Two entities can appear very similar at retrieval even if the applicability of a reasoning pattern differs. Cluster statistics can absorb some variation, but cluster membership is still a shared estimate. An unusual entity can differ from the group used to assess its paths.

Precision is defined against answers recorded in the graph. A path leading to an unrecorded but valid answer can appear among the unsuccessful traversals used to estimate reliability. A frequent route can also be predictive for incidental reasons. The ranking results measure performance against the benchmark's references. They leave the calibration of the resulting scores and the logical validity of individual inferences as other questions. The different path weights for athletes and politicians illustrate statistical dependence on context. Establishing that a specific path provides a universally valid inference would require different evidence.

A returned path can help someone inspect the recorded facts that contributed to a candidate. The examples demonstrate that the procedure can expose the applicable sequence and how it relates to the group used for weighting. The paper evaluates answers through their ranks and illustrates paths with selected cases. How readers interpret these paths, how frequently those explanations identify trustworthy evidence and what makes an explanation useful to a human reader remain outside that evaluation.

The preparation costs and update counts also measure different things. Recomputing fewer per-entity statistics can reduce the amount of traversal, while the actual time depends on how connected those entities are and how many paths must be examined. The reported accuracy comparison and the appendix's count of affected entities establish the behavior on the benchmark workloads. They leave open how latency changes with much denser graphs or with batches that touch highly connected parts of a graph.

What came after

The paper's comparison with concurrent case-based reasoning identifies a development already under way at the time. Retrieving cases provided a way to propose relation sequences dynamically. This work added cluster-specific evidence about when those sequences work and tested whether that evidence could be maintained as the graph grew. Its comparison with inductive subgraph reasoning belongs to that same research context. Later uptake of the path-weighting or incremental-update procedure is undocumented.

Cite

Cite as Rajarshi Das, Ameya Godbole, Nicholas Monath, Manzil Zaheer and Andrew McCallum. 2020. Probabilistic Case-based Reasoning for Open-World Knowledge Graph Completion. Findings of the Association for Computational Linguistics: EMNLP 2020.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.findings-emnlp.427

@inproceedings{das2020probabilistic,
  title = {{Probabilistic Case-based Reasoning for Open-World Knowledge Graph Completion}},
  author = {Rajarshi Das, Ameya Godbole, Nicholas Monath, Manzil Zaheer and Andrew McCallum},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.427},
  url = {https://doi.org/10.18653/v1/2020.findings-emnlp.427}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/das-2020-probabilistic-case-based-reasoning-open/