---
title: "Efficient and Expressive Knowledge Base Completion Using"
description: "Subgraph feature extraction predicts missing knowledge base facts from local graph patterns, with faster extraction and better rankings on NELL."
canonical: "https://research.elamur.ai/free/en/papers/gardner-2015-efficient-expressive-knowledge-base-completion/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/gardner-2015-efficient-expressive-knowledge-base-completion/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Efficient and Expressive Knowledge Base Completion Using Subgraph Feature Extraction

# Efficient and Expressive Knowledge Base Completion Using Subgraph Feature Extraction

Paper · 2015 · Matt Gardner and Tom Mitchell

**Authors:** [Matt Gardner](https://md.research.elamur.ai/free/en/authors/matt-gardner/) and Tom Mitchell · **Year:** 2015 · **Venue:** Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**166** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2250601658) · [Cited by **14** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/gardner-2015-efficient-expressive-knowledge-base-completion/cited-by/) · [Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing](https://aclanthology.org/volumes/D15-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/D15-1173/)
- [PDF](https://aclanthology.org/D15-1173.pdf)
- [DOI 10.18653/v1/d15-1173](https://doi.org/10.18653/v1/d15-1173)
- [OpenAlex](https://openalex.org/W2250601658)

Citations: OpenAlex, 2026-10-14.

## Summary

A knowledge base can contain many facts about a city, a writer, or a book and still be missing a relationship that its other entries help establish. A city’s state and that state’s country, for instance, give a system a way to infer the city’s country. Gardner and Mitchell examine how to find evidence of this kind in a [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/), where entities are nodes and relations are labeled edges. The graph can also include relations extracted from text. The task is to use the available edges to rank candidate facts that the knowledge base might be missing.

The Path Ranking Algorithm, or PRA, represents a pair of entities by the kinds of paths that connect them. It first looks for useful sequences of edge labels. It then estimates the chance that a random walk following each sequence would reach the target entity from the source. This second stage is expensive, and the paper tests what happens when the classifier receives only a yes-or-no indication of whether it can connect the pair by the specified path. On both NELL and Freebase, the authors found statistically indistinguishable mean average precision with binary values and with the walk probabilities.

Their alternative, subgraph feature extraction, or SFE, searches the neighborhoods of the two candidate entities and turns what it finds into binary features. The version used for the main experiments explores nearby edges with breadth-first search. It can recover the same kinds of paths as PRA and also describe evidence that a fully specified path would miss. For example, a feature can record that some textual relation links a writer and a book through their names, regardless of the wording of the relation. Other extractors record neighboring edge labels along a path, substitute similar relation labels, or describe and compare the neighborhoods on either side.

In the final NELL comparison, SFE with ordinary path features and the any-relation feature family reached mean average precision of .528 and mean reciprocal rank of .933. Vector space PRA, the stronger of the two PRA baselines, reached .432 and .850. The authors report that SFE cuts running time by an order of magnitude. On the development split used to compare search procedures, breadth-first SFE with ordinary path features took 5 min. and PRA took 44 min. The result points to a better use of computation on this graph: uncover more of the local evidence and give recurring patterns a common representation. The authors made their experimental code and data available.

## Deep dive: Efficient and Expressive Knowledge Base Completion Using Subgraph Feature Extraction

Subgraph feature extraction predicts missing knowledge base facts from local graph patterns, with faster extraction and better rankings on NELL. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a missing edge means

A knowledge base organizes facts so that software can retrieve them by entity and relation. NELL, Freebase, and DBPedia are the paper’s examples of large collections of such facts. Size and coverage are different properties. A collection can have many entries and still omit facts about familiar entities. That matters when the entries supply training examples for [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/) or evidence for [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/). An incomplete graph limits which examples a parser can learn from and which questions can be answered by consulting the stored facts.

The paper treats completion as a kind of link prediction. Suppose the city and country are both represented in the graph and the relation under consideration is whether the city lies in that country. A candidate consists of the city in the source role and the country in the target role. The classifier examines evidence for that ordered pair and scores it for the relation of interest. Other pairs are scored for the same relation, so the candidates can be ranked. Changing the target relation changes which evidence matters. A path useful for locating a city may have little value for deciding whether the city is a capital.

An edge type and an edge instance play different roles. The type says what relationship the edge expresses. The instance connects particular nodes. A path type such as city in state followed by state in country abstracts away the names of the city, state, and country. An instance of that path supplies evidence about a specific city and country. The abstraction lets a classifier learn from one collection of city–country pairs and apply the resulting weight to other pairs with the same pattern.

The graph in this paper also carries evidence from text. A formal relation can have a fixed label in the knowledge base, while textual relations are represented by the expressions obtained from a corpus. The same neighborhood can therefore contain a structured fact, a link from an entity to a name, and an edge derived from wording found in text. Using those together can make the evidence for an entity pair richer. It also makes the representation more varied: useful textual expressions may be spread across many separate edge labels.

#### How earlier approaches used facts and text

The paper places completion alongside relation extraction, a form of [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/). A sentence-level extractor asks what relation a particular sentence expresses. Completion asks what relation holds between particular entities, potentially drawing on facts and textual evidence from several parts of the graph. A relation extractor can contribute to completion by supplying evidence from sentences. The resulting completion decision has a broader scope than the interpretation of any single sentence.

In the distantly supervised approach reviewed by the authors, known facts supply the supervision for training from text. A heuristic associates the entities mentioned in text with their knowledge base entries. These associations let the system obtain training material for a relation without relying on manually labeled examples of its expression in sentences. The paper describes a practical tradeoff. Aligning facts with mentions draws on a useful source of supervision, while a sentence-centered prediction procedure makes it harder to use richer evidence already present in the knowledge base. The cited work includes [Distant Supervision for Relation Extraction without Labeled Data](https://md.research.elamur.ai/free/en/papers/mintz-2009-distant-supervision-relation-extraction-without/) and [Multi-instance Multi-label Learning for Relation Extraction](https://md.research.elamur.ai/free/en/papers/surdeanu-2012-multi-instance-multi-label-learning/).

The authors also discuss approaches that represent entities and relations as vectors. The common idea is to learn a representation from known relational entries and use it to score possible missing entries. A useful representation depends on structure shared across those entries. The paper discusses this in terms of the rank of the knowledge base tensor, an array indexed by the entities and relations. It notes that learning useful embeddings can be difficult when that array or the slice for an individual relation has high rank. It also describes a hybrid approach that reserves embeddings for the part of the array that is difficult to predict from observable graph patterns. Examples of the embedding line include [TransE](https://md.research.elamur.ai/free/en/papers/bordes-2013-translating-embeddings-modeling-multi-relational/) and [Reasoning With Neural Tensor Networks for Knowledge Base Completion](https://md.research.elamur.ai/free/en/papers/socher-2013-reasoning-neural-tensor-networks-knowledge/).

Graph approaches use the edges themselves as evidence. The paper groups PRA with graph-based inference methods and relates its paths to a restricted class of Horn clauses. Intuitively, the chain through city, state, and country has the shape of a rule with conditions joined through the state. Whether the path is useful is learned from examples. A set of learned weights can give different paths different influence, even when several have the shape of plausible rules. Previous work with PRA had already brought information from parsed text into the graph, changed how textual relations were represented, and used graph inference within the larger Knowledge Vault system.

PRA’s division of labor matters for understanding the proposed change. The first stage discovers path types and selects a subset as feature columns. The second assigns values to those columns for particular entity pairs. A feature vocabulary of paths is large, and evaluating each selected path separately adds a cost every time the system needs that path’s value for a pair. The selection procedure and the probability calculation are thus related design choices. A costly calculation gives the system a reason to retain fewer columns, even when the graph contains many potentially informative paths.

Earlier research also connected paths to continuous representations. The paper singles out a study that used binary paths, a larger inventory of features, and adjacent pairs of edge labels. The authors clarify that the path baseline in that study used the discovery portion of PRA. Its comparison therefore concerns the use and representation of discovered paths. Gardner and Mitchell take this as a reason to investigate whether the probability stage earns its cost and whether graph evidence can be represented through a wider range of features. The related study is [Compositional Vector Space Models for Knowledge Base Completion](https://md.research.elamur.ai/free/en/papers/neelakantan-2015-compositional-vector-space-models-knowledge/).

### The method, step by step

#### Start with a candidate pair and the graph around it

SFE’s basic operation is to describe the neighborhood of each endpoint of a candidate fact. When the same intermediate node is reachable from both sides, the method can join the two partial routes into a path. It can also use the local descriptions independently. An edge from the source to an attribute node, for example, still provides information about the source when the target has no path to that node.

Each kind of evidence has a name and becomes a feature in the representation of the pair. One column might indicate a path through a state. Another might stand for a phrase-level link with its wording concealed. A row describes the available evidence for one ordered pair, and the classifier learns which features help rank pairs for the relation being predicted. Both PRA and SFE provide features for this kind of classifier. Their main differences lie in what the graph search records and how it converts the record into feature values.

From a candidate entity pair to a relation score The steps in order.

#### Separate path discovery from scoring

The paper describes a labeled graph with the notation below.

```
G = (N, E, R)
```

Here `G` is the graph, `N` is the collection of nodes, `E` is the collection of edges, and `R` is the set of labels that edges can carry. The parentheses group these parts into the description of the graph, and the equals sign introduces that description. Entity nodes and names can occupy different positions in this graph while an alias edge records the connection between them.

```
(sⱼ, tⱼ) ∈ D
```

`D` is the dataset of ordered pairs for the task. The subscript `ⱼ` indexes an example, `sⱼ` is its source node, and `tⱼ` is its target node. The membership sign `∈` says that the ordered pair in parentheses belongs to the dataset. A pair’s role in this notation is to specify the endpoints whose potential relationship will be scored.

```
π = −e₁−e₂−…−eₗ−
```

`π` denotes a path type. Each `e` with a subscript is an edge label at the indicated position, with `₁` and `₂` marking the initial positions and `ₗ` the last. The ellipsis stands for the intervening labels and the dashes delimit them. The equals sign assigns the sequence to `π`. Traversal direction matters: a path can use an alias edge from an entity to a name, then use an alias edge in reverse to reach another entity from its name.

Even without storing the names of intermediate nodes, the possible vocabulary grows quickly. With a bound on path length, the paper gives the size of the space of label sequences as follows.

```
∑ᵢ₌₁ˡ |R|ⁱ
```

`∑` adds a term for each length. The index `i` starts at `1`, shown in the lower limit, and goes through `l`, the maximum permitted length displayed above the sum. `|R|` denotes the number of distinct edge labels, and the superscript `i` makes that number a power, counting sequences of that length. This is a count of possible label sequences under the bound. Which sequences actually connect the examples depends on the graph.

In PRA’s discovery stage, walks originate at the source and target nodes in the data. They are unconstrained in the sense that they are free to discover the sequence of labels as they travel. The algorithm records paths that connect the endpoints of a pair. It can also combine walks that reach a common intermediate node. After gathering connectivity evidence across examples, it selects `k` path types, where `k` is the number retained. The paper describes earlier selection procedures based on measures of precision and recall, as well as a simpler approach based on how frequently a path type occurs.

The second stage uses a different kind of walk. A path type is now given in advance, and a walk can advance only according to its prescribed labels. At each step there may be several edges with the required label. Which one is taken can determine whether the walk reaches the intended target, reaches another target, or encounters a node from which it cannot continue along the path type. A PRA matrix entry is the resulting probability of reaching the particular target.

```
p(t | s, π)
```

`p` denotes a probability, `t` is the target, `s` is the source, and `π` is the specified edge-label sequence. The vertical bar introduces the conditions: the walk begins at `s` and follows `π`. The expression describes a walk’s arrival probability. The classifier later uses many such entries to score a candidate fact.

An exact calculation can enumerate the possible destinations under the path constraint and normalize the resulting distribution. The paper describes the search cost in terms of the average out-degree per edge label raised to the path length. Out-degree here is the number of edges leaving a node, and the per-label qualification restricts the count to edges of the required type. A search may branch through a large number of choices even though every step has a specified label. Repeating that search for sources and selected path types makes even a restricted vocabulary expensive to evaluate.

The authors review ways of reducing this cost. The procedure they use for PRA is rejection sampling. It attempts walks that follow the label sequence and restarts when a walk cannot take the required next step. Limiting the effort spent on sampling gives an approximate probability. An alternative described in the paper searches from both sides when the target is known. It uses dynamic programming to keep track of what is needed to compute the probability when the searches meet. This reduces the exponent governing the search, while the probability calculation still requires substantial work.

A further option is to express the path computation through adjacency matrices. Such a matrix records which nodes are joined by a given kind of edge. Multiplication offers a way to reuse computations over sources for a path type. The authors point out a condition that complicates that reuse. When evaluating a training pair, the edge that directly supplies the answer for that instance has to be excluded. A shared matrix calculation would then need to account for the corresponding change in the graph for each instance. The shortcut and the exclusion matter together because a path appearing to support a prediction can otherwise simply include the fact being predicted.

#### Build the neighborhood once and join it in different ways

SFE retains the discovery work and turns the discoveries directly into features. The authors first describe this using random walks. Each walk starts at an endpoint and produces a path type together with the node it reaches. The local subgraph in their notation is a collection of these records. It is a description of where the search can go, including how it got there.

```
(π, i) ∈ Gₙ
```

`π` is the path type followed from node `n`, and `i` is the node reached by that traversal. The subscript `ₙ` identifies `n` as the center of the local subgraph `Gₙ`. The parentheses group the path and its destination into a record, and `∈` means that the record is present in this subgraph description. Here `i` denotes a graph node, in contrast to its use as a counting index in the expression for vocabulary size.

To obtain a full path between the candidate endpoints, SFE matches records from the two local descriptions by the reached node. A route from the source to a shared intermediate node supplies the first part of the path. Reversing the route from the target to that same node supplies the second part. Reversal changes both the order of the edge labels and the traversal direction along those edges. If the source search reaches the target directly, its path is already complete. If the target search reaches the source directly, reversing that path produces the required orientation.

The graph in the paper illustrates how such a join works. An alias edge leads from the knowledge base entity for Barack Obama to the corresponding name. A text-derived edge for the expression `is married to` connects that name to Michelle Obama’s name. Following the second entity’s alias edge in reverse completes the route to her knowledge base entry. The searches can meet at either name. Each meeting yields the same sequence of edge labels and hence the same binary feature for the pair. For that feature, alternative ways of discovering the sequence establish presence.

The path-only version uses the same kind of feature column as PRA. The value records whether the search found a path of that type for the pair. This makes it important to distinguish a shared *feature space* from a shared *search result*. PRA and SFE can describe the same sequence while finding different sets of its instances. Binarizing a PRA matrix keeps the paths that its own procedure uncovered and discards the magnitudes. Building a binary matrix directly with SFE makes the quality of its neighborhood search central.

#### Search outward systematically

Unconstrained random walks can give a patchy view of a crowded neighborhood. The authors illustrate the problem with a node of degree 1000 and 200 walks. Even the immediate neighborhood can exceed what these walks can visit. The chance of finding a useful longer path can be small when a search starts at a highly connected city node and then needs to continue through a highly connected state. The path city in state followed by state in country can be informative even when it forms a small part of the possible traffic out of those nodes.

PRA has a way to recover such paths after discovery. A path type can first attract attention through examples with less branching, or through repeated observations across the training pairs. Once selected, the type is evaluated by walks constrained to its labels. An SFE implementation that relies entirely on unconstrained sampling lacks this second opportunity to look for missing instances. Its faster feature computation therefore depends on the first search providing enough local coverage.

The main version of SFE replaces those discovery walks with breadth-first search. A breadth-first search examines the graph in layers around the starting node. It first considers edges incident to the endpoint and then extends what it found to reach farther nodes, within the search’s permitted depth. This explores allowed branches more systematically. The authors argue that a short search of this kind can be practical when the graph fits in memory and each endpoint requires a local search whose result can be used by the extractors.

The search also controls branching by edge type. If a particular node has too many outgoing edges of a given type, the procedure skips expansion along those edges. The paper gives a Freebase type node as an example. Such a node can have thousands of edges of the type `/TYPE/OBJECT/TYPE`. SFE can still retain the type node itself as a reached node, so two searches can meet there. The cutoff controls which branches can grow beyond it. This leaves a usable representation of common membership while limiting the amount of graph that the search must enumerate.

#### Turn the same search into several kinds of evidence

Ordinary path features result from joining local descriptions on a shared node. A full path preserves the sequence of labels, from the source end through the intermediate portion to the target end. The writer–book case in the paper illustrates the benefit and the cost of this detail. A path through an alias, a particular expression involving the writer and the book, and a reverse alias gives the classifier a precise cue. Each distinct expression generates its own version of the path. The extractors below change the amount or kind of detail retained from these local paths.

A path bigram records adjacent labels within a complete path. This is the same basic notion of adjacency as a binary-length [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/), applied to edge labels instead of words. Start and end markers also allow a feature to record the first or last label of a path. In the example with the two Obama entities, one feature says that a path begins with an alias, another joins the alias label to the marriage expression, and an end feature identifies an alias at the target boundary. A bigram can recur across different complete paths. The classifier can also use multiple bigram features for a single pair.

A one-sided feature takes a path type and the node reached by following it from just one endpoint. It additionally records whether that endpoint was the source or the target. For instance, a path from the source through a gender edge to the male node has a different feature identity from the corresponding observation on the target side. The example graph also yields one-sided features that end at particular names. These are potentially useful for learning which kinds of entity tend to participate in a relation in each role. The authors suggest that evidence about a city’s sports teams, for instance, could help characterize it as a potential capital. The extractor’s basic input is the path and its destination, which in practice can describe a named neighbor as easily as a portable attribute.

The comparison extractor uses a different join. It looks for the same path type on both sides and then pairs the nodes reached. The two gender edges in the example lead to different gender values, and the comparison feature records those values along with the shared gender path. An ordinary connecting path can express the case where both endpoints reach the same attribute node by this pattern. The comparison can express the case where both have an attribute in the graph and its values differ. Pairing reached nodes also allows the representation to preserve specific combinations of values.

The vector similarity extractor starts from a complete path. It uses relation vectors obtained by factorizing the knowledge base tensor, following earlier work that had incorporated similarity into PRA’s walks. SFE uses the vectors to identify similar relation labels and creates binary variants of a path by substituting a related label in one position at a time. For example, if the vector mapping puts `spouse of` close to `is married to`, the original marriage path can also activate a feature with the similar label in its middle position. The feature family also includes a version with the label unchanged. That version allows an observed path and a path that reaches the same feature by substitution to share a column within this feature family.

A wildcard is another allowed substitution in the vector similarity extractor. It can stand for an edge of any type at the chosen position. Restricting the substitution to one position per generated variant limits the growth in possible features. A variant can hide the marriage expression while preserving the alias edges, or it can hide an alias label while retaining the expression and the other alias. These patterns come from a path that the search has already found. The substitutions change the description of the evidence available to the classifier.

The any-relation extractor isolates the wildcard operation. It uses the same kind of transformation with an empty mapping of similar labels. Starting from a full path, it can conceal a label at one position and preserve the others. Its most prominent use in the experiments conceals the middle edge between two aliases. A writer and a book connected by `wrote` then share an indicator with a pair connected by another text-derived expression in the same position. Because ordinary paths are retained alongside the wildcard features in the experiments, the classifier can use the common indicator and still learn what a particular expression contributes.

#### Choose examples and fit the classifier

The prediction procedure requires an ordered pair before it can extract features. This affects training and testing. A knowledge base supplies positive examples through the facts it contains, while many other pairs have an unknown status. Earlier PRA practice treated unrecorded pairs as negative candidates under a closed-world assumption. The PRA probability stage could also produce possible targets for a source as part of its walks. An endpoint that the walks reached and that was absent from the known correct targets could be used as a negative training example.

The SFE experiments construct candidate pairs explicitly. From each positive example, the authors identify nearby nodes of the same category as its source and nearby nodes of the same category as its target. They use personalized PageRank to determine proximity. In this setting, the personalization gives the proximity score a particular endpoint as its reference. The authors sample replacement endpoints from the resulting lists, with the PageRank scores determining the sampling weights. The original endpoint on either side remains eligible. The resulting sampled pairs serve as negative examples in the evaluation procedure.

The authors test how this change in training data affects PRA before fixing the protocol for the main comparison. They ultimately give the two approaches the same PageRank-based training data. A candidate pair then yields a feature row, and the response for the relation supplies the training label. The classifier is logistic regression with elastic net regularization. Its L1 and L2 terms penalize feature weights, with L1 encouraging some weights to become zero and L2 discouraging large weights. On a random development split, the authors adjust those strengths for each method independently before using a fresh split for the final tests. This gives the methods a shared prediction setup and lets the comparison examine what their respective graph representations contribute.

### Experiments and results

#### Data, baselines, and measures

The main experiments cover 10 relations from NELL. The authors reuse the data from their earlier vector space PRA study. The graph combines formal knowledge base relations with surface relations extracted from text. This matters to the interpretation of the comparison. The graph has both chains through structured facts and links through textual expressions, so feature extractors can draw on both. In particular, the alias–text relation–reverse alias pattern makes use of how the two kinds of graph material are connected.

The methods in the final comparison include standard PRA, a PRA variant that uses vector space random walks, and breadth-first SFE with both standard path features and any-relation features. Ordinary PRA obtains its feature values from path-constrained walks. Vector space PRA uses similarity between relation labels in its walks. SFE uses the neighborhoods collected by breadth-first search and directly constructs binary features. The final comparison uses the strongest SFE setting by mean average precision in the feature study. Earlier search comparisons used a different development split of the same NELL data. Freebase appears in a separate experiment about binarizing PRA features, on 24 Freebase relations.

Mean average precision, or MAP, measures the quality of the ranked candidate pairs across relations. Average precision reflects where correct examples appear as the ranking is traversed. Precision describes the share of correct examples among those retrieved, and recall describes the share of all known correct examples retrieved at that point. The paper describes average precision through the area under the precision–recall curve. Taking its mean across relations gives MAP. A method can improve this measure by moving more of the positive examples ahead of negative ones.

Mean reciprocal rank, or MRR, summarizes the position of the first correct result in a ranking. The reciprocal gives the largest credit when that result comes first, and the mean pools these reciprocal positions. It can favor a different setting than MAP. A method can do well at bringing a correct candidate to the top while placing the remaining positive candidates less reliably. The paper uses a paired permutation test for statistical comparisons, with average precision for the same relation forming a pair across the systems being compared. The reported significance of the final comparison therefore concerns average precision across relations.

#### The final NELL comparison

On the final split, SFE with ordinary paths and any-relation features attained .528 MAP. Vector space PRA attained .432 MAP, and ordinary PRA attained .362 MAP. The significance reported for SFE against both PRA alternatives is p \< 0.005. The ranking of the methods on MRR was the same. SFE reached .933 MRR, vector space PRA reached .850 MRR, and ordinary PRA reached .717 MRR.

Final comparison of PRA and SFE on NELL by mean average precision SFE with ordinary paths and any-relation features ranks ahead of both PRA baselines.

**The numbers**

| System or setting | MAP |
| --- | --- |
| PRA | .362 |
| Vector space PRA | .432 |
| SFE with PRA-style and any-relation features (this paper) | .528 |

The feature study provides a useful intermediate comparison within the final experiments. Breadth-first SFE with only ordinary paths reached .431 MAP and .806 MRR, using 240k features. The MAP for that setting is close to the .432 of vector space PRA in the final comparison, with lower MRR than the .850 for vector space PRA. Adding any-relation features brings SFE to 649k features and yields its strongest MAP result. Its improvement in the final comparison therefore includes a contribution from the added representation of a path. The path-only result also shows what SFE obtains on these data before that feature family is introduced.

#### Runtime and search coverage

The paper reports runtime for the comparison of PRA and the two SFE search procedures on the development split. All use paths as their feature type. PRA took 44 min. and averaged 835 features. Random-walk SFE took 6 min. and averaged 8275 features. Breadth-first SFE took 5 min. and averaged 237,853 features. The corresponding MAP values were .3704 for PRA, .4007 for random-walk SFE, and .4799 for breadth-first SFE. The improvement of breadth-first SFE over PRA was significant at p \< 0.05. The comparison of random-walk SFE with PRA was statistically inconclusive.

PRA and SFE search procedures on the NELL development split by runtime Both SFE variants took substantially less time than PRA in the path-only comparison.

**The numbers**

| System or setting | min. |
| --- | --- |
| PRA | 44 |
| Random-walk SFE | 6 |
| Breadth-first SFE (this paper) | 5 |

The runtime comparison shows the practical consequence of giving up the repeated probability calculations in this implementation. SFE can retain more discovered paths while taking less time than PRA. The authors attribute the small runtime ordering between the two SFE variants mostly to an implementation detail. Their choice of breadth-first search is supported by the higher MAP and the much larger feature inventory it found. The 5 min. measurement belongs to the path-only development run. The final scores of .528 MAP and .933 MRR belong to the configuration augmented with any-relation features on the final split.

#### Binary values in the original PRA representation

The paper compares probabilistic and binary values before relying on SFE’s richer feature extractors. On Freebase, the PRA matrix with probabilities gave .337 MAP and its binarized counterpart gave .344 MAP, with p = .55. On NELL, the corresponding figures were .303 MAP and .319 MAP, with p = .25. The observed means favored binarization on both datasets. The test supports the narrower conclusion that the paper found no discernible performance gain from the magnitude of the probabilities in these comparisons.

These results motivated the design, whereas the later tables evaluate a different search procedure, richer representations, or both. In particular, the .303 MAP for probabilistic features on NELL belongs to the binarization comparison. The .362 MAP for ordinary PRA belongs to the final baseline comparison under its stated data procedure. Treating the two as measurements of the same run would obscure what each experiment controls. Taken in their respective settings, the results answer two questions: how much the numerical path probabilities contribute, and what the new feature extraction procedure can achieve when it is used to build a classifier from the graph.

### What the ablations show

#### Removing probability magnitudes and changing the search

Binarization is the most direct test of the information in PRA’s probability values. Each comparison starts with path features derived by PRA and changes how their values are represented. A classifier that receives a walk probability can distinguish different positive magnitudes for a given path type. With binary values it can learn only the contribution of finding the path. The lack of a statistically discernible difference on NELL and Freebase made it reasonable to investigate a design in which the search reports its discoveries without doing the separate probability calculation.

The comparison also helps explain a result that might otherwise look inconsistent. Binary values work well when they describe the paths already found by PRA. Random-walk SFE can still miss important path instances because its unconstrained searches may seldom reach them. On the NELL development split, the average feature count rose from 835 for PRA to 8275 for random-walk SFE, yet the corresponding change in MAP from .3704 to .4007 was inconclusive. The authors checked the feature matrices and found that the gains varied across relations. A method can find more distinct path types while still missing important occurrences of a particular type.

Breadth-first SFE changes that initial coverage. In the path-only development comparison, its average count of 237,853 features came with .4799 MAP. The search comparison supports the authors’ explanation that important evidence can be recovered by exploring the local graph more systematically. Because changing the search changes both the size of the feature inventory and which pairs exhibit which paths, the experiment measures their combined effect. The counts alone cannot tell how much came from discovering additional useful types and how much came from finding additional instances of types already discovered.

#### Holding the negative examples in the test set fixed

Switching from PRA’s walk-generated training negatives to PageRank-based sampling could have affected the baseline. The authors test that possibility using the same test set for two PRA training conditions. One lets PRA obtain negative examples from its own walks. The other supplies the PageRank-based negatives. The first yielded .359 MAP and the second .363 MAP, with p = .77.

The experiment supports using the shared training set for this comparison. In the tested setup, changing the source of negative training examples produced no statistically discernible difference in PRA’s average precision. The controlled condition is the test set, including its sampled negatives. This lets the paper address a potential disadvantage imposed on PRA during training while leaving the evaluation candidates fixed.

#### Adding features to ordinary paths

Every row of the feature study begins with ordinary path features in breadth-first SFE. A row therefore measures the effect of adding the named feature family to a common base. Comparisons and one-sided features were tested both separately and together. Bigram and vector similarity features were also tested separately and together. The wildcard-only transformation has its own row, which allows the contribution of that feature family to be compared with the richer replacement scheme that incorporates vector similarity.

Feature additions to breadth-first SFE on NELL by mean average precision Any-relation features yield the highest mean average precision, with vector similarity the closest setting.

**The numbers**

| System or setting | MAP |
| --- | --- |
| PRA-style paths | .431 |
| Paths and comparisons | .405 |
| Paths and one-sided features | .389 |
| Paths with one-sided features and comparisons | .387 |
| Paths and bigrams | .483 |
| Paths and vector similarity | .514 |
| Paths with bigrams and vector similarity | .490 |
| Paths and any-relation features (this paper) | .528 |

Adding comparisons produced .405 MAP and .833 MRR, with 558k features. Adding one-sided features produced .389 MAP and .800 MRR, with 1,227k features. Adding both produced .387 MAP and .817 MRR, with 1,544k features. The declines in MAP from the path-only setting were statistically inconclusive. The authors’ inspection of learned weights supplies an explanation for why additional information about endpoints gave little benefit in this task. Some features captured fine-grained entity types, but many captured the names of particular entities in the training data. A feature whose identity includes a particular name may explain the label of a training pair while offering little evidence on a pair with different names.

Adding bigrams gave .483 MAP and 1.00 MRR with 320k features. The MAP gain over the path-only setting varied enough across relations that it did not attain statistical significance. The improvement in the reported MRR illustrates the distinction between the two measures. Of the displayed settings, the one using paths and bigrams reaches the highest MRR, while the wildcard setting reaches the highest MAP. The reported comparisons of significance use average precision, so they do not establish a significance ordering for MRR.

Adding vector similarity gave .514 MAP and .910 MRR with 3,993k features. The authors report p-values close to 0.05 in its comparisons with baseline paths and with paths plus bigrams. Combining bigrams and vector similarity yielded .490 MAP and .950 MRR with 4,073k features. This combination’s feature count and MAP illustrate why the paper evaluates each representation on held-out data. Combining two expansions changes which features are available to the classifier and can produce a different ranking even when each expansion supplies plausible evidence on its own.

The any-relation addition reached .528 MAP and .933 MRR with 649k features. On average precision it significantly outperformed the other feature settings at p \<= 0.01, with the exception of paths plus vector similarity. For that comparison, p = .21. The wildcard-only addition was thus the highest-MAP setting the paper observed, and the difference in MAP between it and the richer similarity setting remained inconclusive. The two feature counts provide a separate observation about representation size. This experiment evaluates the alternatives as complete feature sets, so it cannot assign a performance contribution to every individual substitution inside them.

#### Why a wildcard could carry more weight than a phrase

The learned weights provide a view of which features the classifier used. With ordinary paths alone, the strongest features usually connected an entity to its name, crossed a textual relation, and returned from the other name to an entity. The paper’s writer–book examples include textual expressions such as `wrote` and `expresses in`. PRA also tends to place high weight on this kind of evidence. SFE retains a larger assortment of these paths because it can afford to keep their binary indicators.

The bigram addition can collect some of that evidence into broad features. A start marker paired with an alias identifies paths that begin by reaching a name. The corresponding end feature identifies paths with an alias at the far boundary. These features can be active for many different textual expressions and are usually given high weights in the settings that use them. Their scope also includes other paths. Even when both boundary features are present, they can describe the ends of separate paths or of a path whose middle has a different structure from the characteristic text link.

The any-relation transformation has an indicator for that more specific structure. The feature `ANYREL:-ALIAS-@ANYREL@-ALIAS-1` is activated by a complete path with the alias at the source end and the reverse alias at the target end, with the intervening label left open. It received the highest weight for all 10 relations in the experiment. The weight analysis is consistent with the authors’ interpretation that the existence of textual evidence linking a pair can be predictive even when the exact expression varies. Sharing an indicator lets different expressions contribute observations to the same feature. Retaining the original paths also leaves room for the classifier to assign additional weight to an informative expression.

This finding depends on what relations the candidate entities are likely to have. For the tested combinations of entity types, the authors argue that a textual link between the entities often narrows the possibilities enough to make the wildcard informative. Their contrast within the discussion is between pairs such as cities and countries and pairs of people, for whom many relationships may be plausible. The weight identifies a strong cue in the tested data. Its interpretation rests on the graph construction, the categories of the endpoints, and the relation for which the classifier was trained.

### Limitations

#### Limits discussed by the authors

Breadth-first SFE has operating conditions. The authors argue that a short search is feasible when the graph fits in memory and when high fan-out can be curtailed. Their cutoff excludes expansions along certain edge types at crowded nodes. A reached node can still support a join, but an informative path that requires continuing through an excluded edge type can be missed. The local description captures the portion of the graph permitted by the search. The paper’s efficiency results concern that bounded procedure on the experimental graph.

SFE needs candidate endpoints supplied to it. It provides relation scores for pairs, while the probability stage of PRA can yield possible targets for a fixed source as it explores the graph. The authors address this difference experimentally with explicit sampling of positive and negative candidates. This is appropriate for comparing the feature methods as pair scorers. A downstream use that begins with a source and an unknown target would also need a way to generate pairs to score.

The discussion also gives a data-dependent explanation for the strong wildcard results. If relatively few relations are plausible for the types of entities under consideration, a textual link between them can be a useful cue. A broad wildcard may have less value for pairs of people, where varied relationships can give rise to textual edges. The characteristic alias pattern also depends on having text-derived edges and a connection between names and knowledge base entities. Its significance on NELL follows from what those edges supply in this experiment.

The authors suggest that the tested relations have limited need for detailed information about which entities fit the source and target roles. They cite relations such as spouse and capital city to illustrate cases where role suitability could matter more. In the reported experiments, many one-sided features include entity names and tend to fit the training examples too closely. The evidence calls for care about this particular representation and about how much the task rewards modeling the properties of individual endpoints.

#### Limits imposed by the experimental setup

The sample of NELL relations defines the scope of the headline comparison. The Freebase experiment broadens the evidence about the use of probability magnitudes, since it tests the same general question on a different data collection. Its scope ends with binarization. The final comparison of breadth-first SFE, vector space PRA, and ordinary PRA was conducted on NELL, and the comprehensive study of feature families also belongs to that setting. The evidence for the wildcard’s value is consequently strongest in a graph with the mix of formal and textual edges and the relation choices used there.

The negative examples are another condition of the reported ranking scores. Personalized PageRank helps choose alternatives close to the known positive endpoints and in the same categories. This makes the candidates suitable for a comparison under a shared protocol. Their negative labels still rest on treating sampled alternatives as negative for the relation being evaluated. Since knowledge base incompleteness is the premise of the work, a sampled pair can in principle correspond to a true fact that is absent from the base. The paper gives the checks on the choice of training negatives and their effect on PRA. The ranking results measure performance against the resulting labeled test sets.

The binarization comparisons found no detectable advantage for walk probabilities. They do not supply bounds on how large a probability effect could be elsewhere. Branching structure, available relation labels, and the task for which the paths are used may all influence the value of the magnitudes. In these experiments, a binary indication was sufficient to obtain comparable MAP when derived from PRA features, and binary SFE supported the strongest final setting. Those are empirical claims about the tested conditions.

Similarly, the runtime figures measure particular implementations on a development split with ordinary path features. They support a substantial efficiency gain for the tested method. The paper’s account of branching explains why removing repeated probability computation can save time, but the measurements do not trace how costs grow across graph sizes, depths, memory budgets, or feature families. The feature counts show that some expansions can create very large inventories even when each feature is binary. The engineering tradeoff involves both time spent searching and the amount of evidence retained for classification.

Finally, a large learned weight identifies an association useful for ranking under this setup. A textual link can signal that an entity pair is worth examining for the named relation, and more specific features can refine that signal. The evaluation concerns the order of candidate facts under known labels. It leaves open how reliable the same cue would be if the task required assigning a precise interpretation to one expression or explaining a new fact to a reader. Those tasks ask more from a textual relation than the wildcard deliberately preserves.

### What came after

#### Textual evidence across sentence boundaries

The cited follow-up on distant supervision extends relation extraction beyond the boundary of a sentence. That scope connects to the distinction Gardner and Mitchell drew between deciding what a sentence expresses and deciding what relation holds between entities. In SFE, what the classifier sees is a graph over entity and name nodes, with text-derived relations already represented as edges. The later paper’s stated focus is the extraction problem when the textual evidence itself extends across a sentence boundary. Both problems involve deciding what evidence is available for a pair, at different stages of turning text into relational facts. [Distant Supervision for Relation Extraction beyond the Sentence Boundary](https://md.research.elamur.ai/free/en/papers/quirk-2017-distant-supervision-relation-extraction-beyond/).

This connection also clarifies which part of the problem the NELL experiments address. Their strong alias-based feature begins after a textual relation has become an edge in the graph. It can pool together different expressions of a link because the graph already identifies the endpoints of that link. The later extraction work takes up the question on the text side, where the boundary governing which evidence can be considered is a boundary between sentences.

#### Embeddings for entities and relationships

STransE cites SFE from the embedding line of knowledge base research. Its stated contribution is an embedding approach for entities and relationships. Gardner and Mitchell’s paper had discussed embedding approaches alongside graph inference and had used vectors for relation labels in one of its extractors. In that extractor, vector similarity expands the descriptions of paths found by the search. STransE places embeddings at the center of its contribution. The relationship between the two papers is thus visible in what each chooses to represent: explicit evidence in neighborhoods for SFE, and entities and relations themselves for STransE. [STransE](https://md.research.elamur.ai/free/en/papers/nguyen-2016-stranse-novel-embedding-model-entities/).

The vector similarity experiment in SFE is relevant to this comparison because it shows one way the two lines of research can meet. A vector representation can say which relation labels might plausibly share a feature, while a local graph search determines which paths exist for the pair. The embedding contribution cited here addresses the broader representation of knowledge base entries. Its citation places SFE alongside that approach to the shared completion problem.

#### Graph neural networks for link prediction

Neural Bellman-Ford Networks cites SFE in work on a general graph neural network framework for link prediction. The shared task is to score a candidate link using information carried by a graph. In Gardner and Mitchell’s system, the evidence available to the trained classifier consists of explicitly defined path and neighborhood features. The later work frames link prediction through a graph neural network. The connection is at the level of the link prediction problem and its use of graph structure. [Neural Bellman-Ford Networks](https://md.research.elamur.ai/free/en/papers/zhu-2021-neural-bellman-ford-networks-general/).

These citing works pursue different parts of the research landscape around SFE. The distant supervision paper concerns the scope of textual evidence, STransE concerns the representation of entities and relations, and Neural Bellman-Ford Networks concerns graph-based link prediction. Their stated contributions establish those connections. Whether a follow-up reused SFE’s breadth-first search, wildcard features, or experimental protocol requires evidence beyond the fact that it cites the paper.

## Cite

Cite as Matt Gardner and Tom Mitchell. 2015. Efficient and Expressive Knowledge Base Completion Using Subgraph Feature Extraction. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/d15-1173](https://doi.org/10.18653/v1/d15-1173)

```bibtex
@inproceedings{gardner2015efficient,
  title = {{Efficient and Expressive Knowledge Base Completion Using Subgraph Feature Extraction}},
  author = {Matt Gardner and Tom Mitchell},
  booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1173},
  url = {https://doi.org/10.18653/v1/d15-1173}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
