---
title: "Scaling Textual Inference to the Web — Schoenmackers 2008"
description: "Scaling Textual Inference to the Web shows how HOLMES combines facts from different pages to answer questions and keep inference tractable."
canonical: "https://research.elamur.ai/free/en/papers/schoenmackers-2008-scaling-textual-inference-web/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/schoenmackers-2008-scaling-textual-inference-web/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2008](https://md.research.elamur.ai/free/en/papers/2008/) / Scaling Textual Inference to the Web

# Scaling Textual Inference to the Web

Paper · 2008 · Stefan Schoenmackers, Oren Etzioni and Daniel Weld

**Authors:** [Stefan Schoenmackers](https://md.research.elamur.ai/free/en/authors/stefan-schoenmackers/), [Oren Etzioni](https://md.research.elamur.ai/free/en/authors/oren-etzioni/) and [Daniel Weld](https://md.research.elamur.ai/free/en/authors/daniel-s-weld/) · **Year:** 2008 · **Venue:** Proceedings of the 2008 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/)

[**53** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1984626158) · [Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing](https://aclanthology.org/volumes/D08-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/D08-1009/)
- [PDF](https://aclanthology.org/D08-1009.pdf)
- [DOI 10.3115/1613715.1613727](https://doi.org/10.3115/1613715.1613727)
- [OpenAlex](https://openalex.org/W1984626158)

Citations: OpenAlex, 2026-10-14.

## Summary

A search for foods that help prevent osteoporosis might find a page about the nutrients in kale and a separate page about the role of calcium. Either page can supply evidence for an answer that neither states directly. To connect them, a system needs to recognize that the passages refer to the same nutrient, apply a rule that relates a food’s contents to a possible effect, and check that the food belongs to the requested category. *Scaling Textual Inference to the Web* presents HOLMES, a system that carries out this kind of reasoning over facts already extracted from text. Its aim is to make evidence distributed across a large collection usable for [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/).

HOLMES takes a question expressed as conditions that must hold together, a set of weighted rules, and databases of relational assertions. It works backward from the question to find facts and rule applications that could support an answer. It records those connections in a proof structure and converts that structure into a Markov network, which represents dependencies among uncertain assertions. It then estimates a probability for each answer. A candidate with several supporting derivations can draw on all of them, with shared evidence represented in the same network. As time permits, the system can look for further derivations and revise its early estimates.

The difficulty is that connecting relations can produce a large number of matches, even when every individual lookup is straightforward. The authors identify a property they call approximate pseudo-functionality. For a relation such as *is married to*, most names are associated with only a few partners. A small number of names can have more matches, provided their combined contribution to the relation stays within a specified bound. The authors use this property to bound the number of combinations that joins can produce. Their scaling argument also assumes a fixed query and rule set, bounded proof size, and a relation store that grows at most linearly with the source corpus.

The experiments use approximately 183 million distinct assertions that TextRunner extracted from over 117 million Web pages, along with 159 thousand assertions from WordNet. The comparison system could join facts already present in either database. Giving HOLMES the ability to infer new assertions extended relative recall, with some loss in precision. The reported increases in area under the precision–recall curve were +102% for geography, +2,643% for business, and +5,595% for nutrition. The corresponding inference times for the complete query sets in those domains were 55 s, 145 s, and 64 s. In a separate corpus-size experiment, total inference time grew approximately linearly for the tested queries. The findings concern relational questions that the extractor and supplied rules can represent.

## Deep dive: Scaling Textual Inference to the Web

Scaling Textual Inference to the Web shows how HOLMES combines facts from different pages to answer questions and keep inference tractable. · about 35 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

#### When the answer is distributed across pages

An answer can be easy to recognize after the relevant facts have been assembled and difficult to find by searching for its wording. The nutrition example illustrates the difference. A sentence about kale can identify calcium as one of its constituents. A sentence about calcium can describe a possible benefit with respect to osteoporosis. A third assertion can put kale in the category of vegetables. The answer depends on the connection among the assertions. Searching for a passage that explicitly connects kale and osteoporosis puts pressure on the part of the evidence that may be absent from the corpus.

The authors describe open-domain systems such as Mulder and AskMSR as starting from a different premise. They seek individual documents or sentences that contain the answer. A system can analyze promising passages in depth and fall back to shallower processing if necessary. That arrangement is suited to questions whose answers someone has stated. For the cases that motivate HOLMES, analyzing a passage in more detail still leaves a gap if the passage contains only one of the premises. The task includes assembling evidence alongside finding it. This is the role that broader access to the corpus can play in [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/).

The difficulty is apparent even when the wording varies very little. A source can give someone’s city of birth, while a question asks who was born in a particular country. The city statement can support an answer if the system also has a geographic relation that connects the city to the country. The necessary background fact can live in a structured resource. A passage describing a person’s birthplace and a separate record of geographic containment jointly support a conclusion that a direct country-level lookup could miss.

Textual inference raises a question of evidence as well as coverage. A tuple obtained from a Web sentence can be wrong, a name can be ambiguous, and a rule can be a reasonable default with exceptions. A chain that brings several such assertions together inherits uncertainty from its premises and the rule that connects them. The design problem is to recover enough chains to make meaningful use of a large corpus, while retaining enough information about their support to rank the answers. This combination of symbolic structure and uncertainty is central to [knowledge representation and reasoning](https://md.research.elamur.ai/free/en/concepts/knowledge-representation/).

#### From testing a hypothesis to finding its possible answers

In the paper’s account of textual entailment, a system receives a text and a proposed hypothesis. Its job is to decide whether the meaning of the hypothesis follows from the text. Some of the approaches the authors cite convert both inputs to logical representations and use axioms to establish a proof. One approach constructs an integer linear program from representations of the text, hypothesis, and rewrite rules. The paper also identifies work by Tatu and Moldovan among the approaches closest to its own in their reliance on logical inference. [A Logic-Based Semantic Approach to Recognizing Textual Entailment](https://md.research.elamur.ai/free/en/papers/tatu-2006-logic-based-semantic-approach-recognizing/)

HOLMES receives a query with a variable whose value is still unknown. For a question about vegetables, it may have to find all the names that can fill that variable while meeting the category and prevention conditions. The scope of the evidence changes as well. In the earlier entailment setting as characterized by the authors, the source text is typically small enough that a system can use a richer representation. HOLMES searches over assertions drawn from a corpus of Web pages. Its representation keeps the relations and their arguments, with a limited rule language for connecting them.

The reduced representation makes it possible to use database operations during the search. An assertion about a city and one about a country can be connected through a shared argument value. An assertion about a food and one about a disease can be connected through their shared nutrient. The system can look for these matches without reparsing the source sentences each time a query arrives. The usability of the resulting evidence is tied to the [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/) that created the assertions.

The paper uses TextRunner as the Web extraction system for its experiments. WordNet supplies additional lexical and conceptual relations, including synonymy, category membership, and part–whole connections. TextRunner contributes assertions extracted from a large body of text and also supplies category assertions obtained through patterns of the kind the paper attributes to Hearst. This division of labor lets a query draw a real-world relation from the Web and a general connection from a lexical resource. [Open Information Extraction from the Web](https://md.research.elamur.ai/free/en/papers/banko-2007-open-information-extraction-web/) · [Automatic Acquisition of Hyponyms from Large Text Corpora](https://md.research.elamur.ai/free/en/papers/hearst-1992-automatic-acquisition-hyponyms-large-text/)

#### Why the number of possible connections matters

Even simple rules can be costly at this scale. Consider a rule that connects every assertion ending with a particular entity to every assertion beginning with that entity. If both sets are large, the system can find many possible premises for the same type of inference. Each matched combination may be a distinct derivation, including when several combinations yield the same answer. The size of the answer list therefore gives only a partial indication of the work needed to assemble the evidence.

The paper considers two sources of growth. The first is the number of kinds of derivations the system may have to consider. The second is the number of times each kind can be instantiated with concrete facts. For a fixed set of rules and a bound on proof size, the first quantity stays fixed as the collection grows. The second depends on the distribution of values in the relations. In particular, a often occurring value can create many matches if it appears on both sides of a join. The authors make that distribution part of their explanation of when Web-scale inference is feasible.

The paper also draws on statistical relational work that attaches weights to logical statements and represents their dependencies in a probabilistic network. HOLMES uses a restricted rule language and constructs a network for each question from the evidence found during proof search. The authors connect this selectivity to the observation behind LazySAT that many ground instances of a Horn implication have false premises and are already satisfied. For HOLMES, proof construction determines which concrete applications enter the network. It is the part of the system that directly encounters the scale of the assertion store.

### The method, step by step

#### Express the question and prepare the evidence

The system begins with a query, a domain theory, and databases of assertions. A ground assertion is a relation whose arguments have concrete values. For instance, a representation of kale’s calcium content can name kale as the food and calcium as the nutrient. A rule contains variables that can take different values on different applications. A query also contains variables, with its head specifying which values to return and its body specifying the conditions those values must satisfy. The paper uses Datalog notation for the conjunctive queries.

How HOLMES turns a query into ranked answers The steps in order.

For the running example, the query asks for a value that names a vegetable and satisfies a prevention relation whose other argument is osteoporosis. In the paper’s rule notation, the query can be written as follows.

```
query(X) :- IS-A(X, Vegetable) ∧ Prevents(X, osteoporosis)
```

Here `query` names the relation whose results the system returns. `X` is the candidate food. `IS-A` is the category relation, and `Vegetable` is the required category. `Prevents` names the relation being sought between the food and the fixed disease argument `osteoporosis`. The marker `:-` connects the head on the left to the conditions on the right, and `∧` means that both conditions are required.

When the database already contains the desired food–disease assertion, the search can use it as evidence. The authors also give a rule that connects the food to a nutrient and the nutrient to the disease.

```
Prevents(X, Z) :- IsHighIn(X, Y) ∧ Prevents(Y, Z)
```

`X` is the food, `Y` is the nutrient that connects the premises, and `Z` is the disease. `IsHighIn` relates the food to the nutrient. The `Prevents` predicate in the body relates the nutrient to the disease, while the one in the head relates the food to the disease. The marker `:-` introduces the rule’s premises, and `∧` requires them together. Applying the rule supplies a candidate assertion and a derivation for it. The rule’s reliability enters later through its weight.

The example makes the join key concrete. With osteoporosis fixed, the prevention premise can supply calcium as the value of `Y`. The food premise can then supply kale as a value of `X` linked to calcium. A classification assertion can satisfy the remaining condition in the query. The answer names kale, while the derivation retains calcium because it explains why the system has proposed kale. This retained evidence is essential to the next stage, which assigns confidence to the answer.

The experimental databases carry different kinds of confidence information. WordNet facts receive a uniform probability of 0.9. The authors use redundancy statistics for Web extractions, treating repeated extraction of an assertion as evidence that it is correct. A Web fact and a WordNet fact can thus appear next to each other in a proof while entering the probabilistic calculation with confidence estimates obtained in different ways. The paper names Kylin as another possible source of extracted assertions, while the experiments use TextRunner and WordNet.

#### Follow rules backward and retain their proofs

Backward search starts with the conditions in the query. It finds rules that could produce those conditions and turns their premises into additional conditions to look up or derive. A rule whose head can produce a prevention statement may direct the search toward a nutrient; a rule about a geographic part can direct it toward a city. Constants in the query, such as the disease or country, restrict the possible matches. Where a variable occurs in several premises, all those premises must agree on its value.

The search produces ground derivations. A proof records the concrete assertions and the rule applications that support an answer. Several paths may share a fact. A geographic containment fact can support birthplace inferences about many people, for example. The authors describe the resulting structures as proof trees while showing that they can be directed acyclic graphs, in which a node can be reused. HOLMES keeps the proof structure because the probabilistic stage needs the relationships among the grounds for an answer.

The search can recover several derivations for the same conclusion. A new derivation can contribute support even if it adds no new candidate to the answer list. Conversely, two derivations can share a key assertion. Treating them as wholly separate pieces of evidence would lose that dependency. The proof representation makes it possible to create a single truth variable for the assertion they share and connect it to each relevant rule application.

In its implementation, HOLMES uses Datalog optimizations to avoid work that a literal walk through every proof would repeat. It expands proofs associated with recently added nodes and uses an approximation to magic sets to focus the database computation on the query. The paper also describes substring or regular-expression matching for simple variation in the wording of extracted assertions. A proper-noun restriction is available when a query is intended to return named entities. These controls act on the search that precedes the probability calculation.

Users can set a maximum for how many transitive inference steps a rule may take. This matters when the same rule can apply again to its own results. A city can be part of a region, which can in turn be part of a country. Iterating a location rule allows the original fact to support a conclusion at the country level. The depth limit determines how far the system will follow that kind of chain. It also gives the implementation a way to control the size of the proof structures.

#### Use general rules for observation, substitution, and containment

The authors supply domain-independent rules that apply across the experiments. The observation rule gives an extracted statement a path into the network as a claim about the world.

```
R(X, Y) :- ObservedInCorpus(X, R, Y)
```

`R` is the relation named by an extracted tuple. `X` and `Y` are its arguments. `ObservedInCorpus` records that the corpus yielded a tuple with those arguments and relation, and `:-` connects the supported assertion to that observation. The application is weighted, so the observed tuple provides evidence for the relation’s truth.

Synonym substitution can operate on either argument of eligible extracted relations. The first form changes the first argument.

```
R_TR(X′, Y) :- R_TR(X, Y) ∧ Synonym(X, X′)
```

`R_TR` denotes a TextRunner relation eligible for these rules. `X` is its original first argument, `X′` is the substitute, and `Y` is the unchanged second argument. `Synonym` supplies the relation between the old and new values. `:-` links the result to the body, and `∧` requires the original relational assertion and the synonym assertion together.

```
R_TR(X, Y′) :- R_TR(X, Y) ∧ Synonym(Y, Y′)
```

`R_TR` again denotes the eligible relation. `X` stays in the first argument position, while `Y′` replaces the original second argument `Y`. `Synonym` supplies evidence that those second-argument values are synonymous. `:-` introduces the premises, which are linked by `∧` and must occur together in the derivation.

The generalization rules use a category relation in place of the synonym relation. As with substitution, the rules apply separately to the two argument positions.

```
R_TR(X′, Y) :- R_TR(X, Y) ∧ IS-A(X, X′)
```

`R_TR` is the relation being generalized. `X` is its original first argument, `X′` is the more general value given by `IS-A`, and `Y` is its existing second argument. The marker `:-` connects the generalized claim to its premises, and `∧` requires the original claim and the category relationship.

```
R_TR(X, Y′) :- R_TR(X, Y) ∧ IS-A(Y, Y′)
```

`R_TR` is again the eligible extracted relation. `X` is the unchanged first argument, `Y` is the original second argument, and `Y′` is its generalization under `IS-A`. `:-` links the head to the body, and `∧` joins the two required premises.

A final rule follows a part–whole relation from the second argument to a containing entity.

```
R_TR(X, Y′) :- R_TR(X, Y) ∧ Part-Of(Y, Y′)
```

`X` is the unchanged first argument of `R_TR`, `Y` is the original second argument, and `Y′` is the whole of which `Y` is a part. `Part-Of` states that connection. `:-` identifies the conditions for an application of the rule, and `∧` requires the original relational assertion together with the part–whole fact.

The paper describes `R_TR` using the surface pattern `* in`, where `*` can match the text before *in*, as in *born in*. Suppose the query fixes France as the desired birthplace argument. The part–whole rule lets HOLMES use a birth assertion with Paris in that argument when it also has the corresponding geographic fact. That application has a clear direction. It supports a country-level statement from a city-level one. Following the same rule can extend the proof through intermediate containing places if the facts and configured depth allow it.

The rules are function-free Horn clauses. Each has a single conclusion, and its premises can specify a conjunction of relational assertions. Function-free rules work with values already available to the search, without creating new terms by nesting functions. The domain-independent examples have short bodies, but the system permits longer conjunctions in rules and queries. A domain can supply rules specific to its subject matter, as the nutrition experiments do. Those rules determine what chains are available in the first place.

#### Turn the proof structure into probabilities

Once HOLMES has found an initial collection of proofs, it constructs a Markov network from them. The network is an undirected graph. Each assertion in the proof collection has a Boolean variable representing its truth. For each recorded application of a rule, the variables involved form a clique, a group of mutually connected nodes. A potential function assigns a non-negative value to each state of that group. The collection of these values determines how much probability the system assigns to a joint state of the network.

```
P(x) = (1 / Z) ∏ₖ φₖ(xₖ)
```

`P(x)` is the probability of the joint state `x`, which assigns truth values to the variables. The index `k` identifies a clique, and `xₖ` is the part of the joint state involving that clique. `φₖ` is the clique’s potential function. The product symbol `∏ₖ` multiplies the potential values across cliques. `Z` is the partition function, the normalization that makes the probabilities of all joint states sum to `1`.

For a rule application, the paper describes the potential with the following cases.

```
φ(x) = eʷ if all member nodes are true, and 1 otherwise
```

In this expression, `φ` is the potential for the clique created by a rule application, and `x` refers to the state of its variables. `w` is the supplied weight of that rule. `eʷ` denotes the exponential of the weight, and `1` is the neutral multiplier assigned to the other states. The potential contributes to the score of a joint state. The probability of an individual answer is obtained from the network as a whole.

The evidence for leaf assertions comes from the source database. Inferred assertions receive an exponential prior. In the reported experiments, the authors set the prior on inferred facts to -0.75, the observation rule’s weight to 1.5, and the other rule weights to 0.6. These choices are manual. They express the authors’ preference for treating a deeper derivation with more caution and for allowing additional independent proofs to strengthen an answer. A rule weight and an answer probability describe different quantities. One is a setting used in the network’s potential, and the other is the result of reasoning over the network.

A candidate’s probability depends on the assertions and rule applications that bear on it. Where two proofs share an assertion, their cliques overlap at its variable. Where separate facts support separate derivations, the network has the structure to represent those contributions too. This is the point of compiling the proof collection for a specific question. Its graph includes evidence reached in the search, so the system can do probabilistic inference over that evidence without building a graph for every possible assertion and rule application in the corpus.

HOLMES estimates answer probabilities using a variant of loopy belief propagation. The procedure passes information among connected variables and factors, with the term *loopy* indicating that the network may contain cycles. The authors report that the method works well in their experience on the networks built from their Horn proofs. They also identify Monte Carlo and exact methods as possible alternatives. Their implementation uses approximation because the cost of exact probabilistic inference can be prohibitive.

The network is built incrementally. Once the first proofs are available, HOLMES can estimate probabilities and return preliminary results. With more time it can extend the proof collection, add the corresponding graph structure, and update the estimates. The authors call this *anytime* operation. An early estimate describes the evidence assembled by that point in the search. A later pass may find both new answers and new support for answers already returned.

#### Bound the number of matches the search can generate

The scalability argument starts with the size of the assertion store and the size of a proof. The authors assume that as the textual corpus grows, the count of distinct ground assertions increases no faster than linearly. They hold the query and the rules fixed while considering growth in the available facts. They also assume that each proof has a constant size bound, denoted by `m`. They say the bound can depend on the rules and data and suggest limiting search depth if needed.

On those assumptions, the number of distinct proof patterns is constant with respect to corpus growth. Each pattern can be expressed with a bounded number of equijoins. An equijoin combines rows whose specified argument values are equal. A match between the two premises of the nutrition rule is one example, with equality tested on the nutrient. The paper gives a generic rule and its relational-algebra counterpart to connect the proof and database views.

```
H(X) :- R₁(X, Y) ∧ R₂(Y, Z)
```

`H` is the conclusion predicate and `X` is the value it returns. `R₁` and `R₂` are the premise relations. `Y` is the variable shared by them, and `Z` is the second argument of `R₂`. The marker `:-` introduces the body and `∧` requires both premises.

```
πₓ(R₁ ⋈ R₂)
```

`R₁` and `R₂` are the same premise relations. The join symbol `⋈` denotes matching rows on their shared `Y` value in the rule. `πₓ` means projection onto the column for `X`, retaining the variable in the conclusion. Before projection, different joined rows can contain different supporting facts even if their `X` values agree. In HOLMES those differences matter to the proof collection.

A relation is *pseudo-functional* in a particular argument if each value of that argument is associated with at most a fixed number of values in the other position. The direction matters. A relation that maps a person to birthplaces may have relatively few matches per person while admitting many people for a given place. The paper formalizes the property for binary relations.

```
R = {(xᵢ, yᵢ)} ⊆ X × Y
```

`R` is the set of pairs in the relation. `X` is the domain of first-argument values and `Y` the domain of second-argument values. The index `i` ranges over pairs, whose components are `xᵢ` and `yᵢ`. The braces denote a set, `×` denotes the Cartesian product of the domains, and `⊆` means that every pair in `R` belongs to that product.

```
∀x ∈ X: |{y ∣ (x, y) ∈ R}| ≤ k
```

`∀x ∈ X` means that the bound applies to every first-argument value `x` in the domain `X`. The braces collect all second-argument values `y` for which the pair `(x, y)` belongs to `R`, with `∣` read as *such that*. The outside bars give the number of elements in that set. `≤` means *at most*, and `k` is the degree of pseudo-functionality. A fixed `k` caps how many extensions of a match a join can generate at each relevant step.

The paper gives a size bound for a join over relations with this property in their joined arguments.

```
kᵐ × |R|
```

`k` is the degree bound in this expression, `m` specifies the join size, and `kᵐ` is `k` raised to that exponent. `|R|` is the number of pairs in the relation used as the size term. `×` multiplies the terms. For a fixed join and a fixed degree, the multiplicative factor is constant, so the bound grows linearly with the relation size.

The Web relations that motivate the paper can have a few exceptionally frequent values. A uniform cap over every value would make such a relation appear to have a high degree, even if most of its values have very few partners. Approximate pseudo-functionality, or APF, allows a set of exceptions. The degree still bounds the number of partners for each ordinary value. For the exceptional values, a separate bound applies to the total number of pairs that they account for.

```
∑ₓ∈ₓᴮ |{y ∣ (x, y) ∈ R}| ≤ k × log(|R|)
```

The summation runs over the exceptional set `Xᴮ`, written as the subscript on `∑`. The other members of `X` form the ordinary set `Xᴳ` and satisfy the pseudo-functional bound with degree `k`. Inside the sum, `x` is a particular exceptional first argument, `y` is a second argument, and the quantity between the bars counts the partners of `x` in `R`. The right-hand side is `k` multiplied by the logarithm of the relation size `|R|`. The use of a sum makes the restriction apply to the combined exceptional mass.

For a join of two APF relations on a common argument, each join value has one of four statuses. It can be ordinary in both relations, exceptional in both, or exceptional on just one side. Where both are ordinary, the number of pairs per join value is capped by the product of the degrees. Where only one is exceptional, the ordinary side contributes its degree bound and the exceptional side contributes at most its total exceptional mass. Where both are exceptional, the product of the two exceptional-mass bounds controls the possible combinations.

```
|Q| = O(max(|R₁|, |R₂|))
```

`Q` is the output of the equijoin of `R₁` and `R₂`. The bars give the number of rows in each relation. `max` selects the larger input size, and `O` gives an asymptotic upper bound up to constant factors. This is the paper’s result for the join of two relations that are APF in the shared argument. The ordinary values can grow in number with the data, while the separate bounds keep the exceptional cases from dictating a faster order of growth.

The paper extends the reasoning to joins over a fixed collection of relations. It requires APF in all arguments used in the join, with degrees bounded by a maximum degree, and gives a condition relating the logarithms of the input sizes to the total assertion count.

```
∏₁≤ᵢ≤ₘ log(|Rᵢ|) ≤ |A|
```

`∏` multiplies one term per relation index `i`, from `1` to `m`. `Rᵢ` is the relation at index `i`, `|Rᵢ|` is its size, and `log` denotes the logarithm. `A` is the collection of ground assertions, and `|A|` counts them. `≤` states the required upper bound. With the theorem’s assumptions, including that each input relation has size at most on the order of `|A|`, the output size is on the order of `|A|` as well.

For a join of a specified size, the paper also gives a relaxed allowance for the exceptional mass. It uses this version when examining the simple case of joining two relations.

```
kᵢ × ᵐ√(|Rᵢ|)
```

`kᵢ` is the degree for relation `Rᵢ`, `i` indexes the relation, and `m` is the number of relations participating in the join. The bars give the relation size, `ᵐ√` denotes the root of order `m`, and `×` multiplies the degree by that root. In the corollary, this quantity replaces the logarithmic allowance for the exceptional mass in the joined arguments. Under those conditions, the join still has the paper’s linear size bound.

Together, the restrictions control the size of the proof forest. There are a fixed number of proof patterns, and the joins for a pattern can be kept from generating more than linearly many ground instances under the stated conditions. Network construction then follows the proof structure, adding variables and connections for the assertions and rule applications found. The probabilistic stage has its own treatment. HOLMES uses approximate belief propagation and can stop adding proofs to keep the network within a practical size. The theoretical join bounds explain the search and construction part of the scaling argument, and the runtime experiment measures how the implemented process behaved as a whole.

### Experiments and results

#### The questions and what the baseline could answer

The experiments use a TextRunner database with approximately 183 million distinct ground assertions drawn from over 117 million Web pages. WordNet contributes 159 thousand manually created assertions of category membership, part–whole relationships, and synonymy. HOLMES uses the same domain-independent rules in each domain. The authors add nutrition rules where a food can be linked to a disease through a nutrient. There are twenty queries in the evaluation. The authors chose a sample narrow enough to tag the results manually and spread it across geography, business, and nutrition.

The geography queries ask for people born in specified countries. The same template is run for nine countries, making each country a separate query. The paper’s example starts with an assertion that connects Alberto Fujimori to Lima. The presence of a geographic connection from Lima to Peru can support a result for the Peru query.

```
Q(X) :- BornIn(X, {country})
```

`Q` is the answer relation, `X` is the person to return, and `BornIn` relates that person to a place. `{country}` is a placeholder replaced by the country under consideration. `:-` connects the returned person to the condition required by the query.

This setup asks whether inference can bridge different levels of geographic description. City-level and country-level assertions are both useful, but they enter the search in different ways. An explicit country assertion meets the query condition as it stands. A city assertion needs the background relation and the applicable rule to support the same kind of answer. The test therefore puts particular weight on geographic containment rather than on the difficulty of forming a long conjunction in the query itself.

The business evaluation has two queries. The acquisition query seeks entities that acquired an entity described as developing software.

```
Q(X) :- Acquired(X, Y) ∧ Develops(Y, software)
```

`Q` is the answer relation, `X` the acquirer, and `Y` the acquired entity. `Acquired` relates them, and `Develops` relates `Y` to the fixed argument `software`. `:-` introduces the query conditions, and `∧` requires both premises. The acquired entity is the value that must agree across the assertions.

This query explicitly requires a join and can draw its premises from different pages. The headquarters query combines a location with a category check.

```
Q(X) :- HeadquarteredIn(X, USA) ∧ IS-A(X, company)
```

`Q` returns the entity `X`. `HeadquarteredIn` tests the headquarters location against the fixed argument `USA`, and `IS-A` tests membership in the category `company`. The marker `:-` introduces those conditions, and `∧` requires both. The entity `X` must be shared between the location assertion and the category assertion.

The headquarters query invites more than a join at the stated level of the predicates. A headquarters location expressed as Seattle can be connected to Washington and then to the USA. The category side can also use intermediate facts, such as Microsoft belonging to the software-company category, which in turn belongs to the company category. The system can therefore derive an assertion needed by a query condition before using that assertion in the final join.

The nine nutrition queries pair food categories with diseases. The categories are fruit, vegetable, and grain; the diseases are anemia, scurvy, and osteoporosis. Each instance of the query looks for foods in its specified category with the requested prevention relation.

```
Q(X, {disease}) :- Prevents(X, {disease}) ∧ IS-A(X, {food})
```

`Q` represents the answers, `X` is the candidate food, and `{disease}` is the disease fixed for that query. `{food}` is the placeholder for the food category. `Prevents` is the proposed relationship between the food and the disease, while `IS-A` requires the food to belong to the specified category. `:-` introduces the two conditions and `∧` links them.

The domain-specific rules are variations on the proof involving kale. One uses a claim that a food is high in a nutrient as the link to a disease-prevention assertion.

```
Prevents(X, Y) :- HighIn(X, Z) ∧ Prevents(Z, Y)
```

`X` is a food, `Y` a disease, and `Z` the nutrient connecting them. `HighIn` names the premise about the food and nutrient. `Prevents` in the body describes the asserted relationship of the nutrient to the disease, and `Prevents` in the head proposes a relationship of the food to that disease. `:-` connects the proposal to its premises and `∧` requires both.

```
Prevents(X, Y) :- Contains(X, Z) ∧ Prevents(Z, Y)
```

`X`, `Y`, and `Z` again stand for the food, disease, and connecting nutrient. `Contains` is the premise about the food’s contents. The two occurrences of `Prevents` relate the nutrient and then the food to the same disease. `:-` introduces the premises, linked by `∧`. The rule gives HOLMES another route to a candidate when the available assertion describes the food as containing the nutrient.

The authors build a baseline with both source databases and the ability to join assertions already present in them. This matters for business and nutrition because their conjunctive queries already require matches between stored relations. TextRunner itself does not perform these joins. The baseline can find an acquisition and its corresponding assertion about software development, for example. Its scope ends at the assertions already available in the databases. HOLMES can additionally derive assertions that complete a query condition. The comparison therefore measures the effect of enabling inference above a system that can already combine explicit premises through the query’s own joins.

#### Answer coverage and inference time

The authors manually tag output to estimate precision and relative recall. Precision asks how much of the returned material is correct. Relative recall provides a shared scale for comparing how much correct material the systems retrieve in the evaluation. A precision–recall curve shows how those quantities move as more of a ranked answer list is admitted. The paper reports area under that curve, abbreviated AuC, as a way to summarize their joint behavior for each domain. The quoted gains are increases over the baseline’s area.

HOLMES over the explicit-fact baseline by domain, increase in precision–recall area The reported relative increase is largest for nutrition, followed by business and geography.

**The numbers**

| System or setting | Increase in AuC % |
| --- | --- |
| HOLMES geography (this paper) | +102% |
| HOLMES business | +2,643% |
| HOLMES nutrition | +5,595% |

For the combined geography queries, the reported increase in area is +102%. The curve shows that inference allows the system to reach more correct answers, with modestly lower precision. The paper describes the business and nutrition curves in similar qualitative terms, with some loss of precision accompanying substantial gains in recall. The reported relative increases in area are +2,643% for business and +5,595% for nutrition. The table in the paper gives changes relative to the corresponding baseline. An increase in area describes the behavior of a ranked list over the evaluated range, while precision at a specific operating point would describe a particular cut through that list.

Geography shows the practical difference between a question about a country and the forms of birthplace statements available to the system. The city-level form can contribute valid answers once it is connected to the country. The authors observe that inference can especially help rarely mentioned instances. A sparse set of mentions has fewer opportunities to contain exactly the relation and level of detail asked for. A proof can use the available mention and a background assertion to reach an answer.

The runtime figures are totals for the queries within each domain, measured on the authors’ unoptimized prototype. Geography takes 55 s, business 145 s, and nutrition 64 s. The authors describe the business relations as having 100x ground assertions compared with those in the other domains and attribute the longer inference time to their greater size. The number of queries in a domain and the amount of relational data they touch are separate sources of work.

Total HOLMES inference time for the geography, business, and nutrition query sets Business takes the longest, and geography takes the least time.

**The numbers**

| System or setting | s |
| --- | --- |
| Geography, HOLMES (this paper) | 55 |
| Business, HOLMES | 145 |
| Nutrition, HOLMES | 64 |

The corpus-size experiment changes the number of Web pages available and measures total inference time for the queries in each domain. The paper plots fitted lines with coefficients of determination to characterize the relationship. Across these query sets, the observed time increases roughly linearly with corpus size. The authors also report the same qualitative pattern for several other queries they tried. This experiment addresses the shape of the growth curve. The domain totals describe the elapsed time at the reported experimental scale.

### What the ablations show

#### Enabling new conclusions changes the answer list

The paper offers a comparison with inference disabled, a corpus-size comparison, and analyses of join behavior. It reports the effect of enabling the inference mechanism as a whole. Since the baseline shares the databases and can join their explicit assertions, the recall gains show what becomes accessible when the system can supply new intermediate or final assertions through rules. A geographic derivation, for example, can satisfy the country-level condition using evidence that the baseline finds only at the city level.

The comparison also shows a cost in precision. The authors identify proofs that join on a generic term such as *company* or use a common extraction mistake such as interpreting *LLC* as a company name. A value that is easy to match can be a poor basis for concluding that two premises refer to the intended entity. A weak extraction can also be reused across many candidate proofs. In those cases, the same ability to expand an answer set creates opportunities for incorrect answers.

The comparison leaves the contributions of individual mechanisms combined. The nutrition runs include both domain-specific rules together with the general rules. The study does not report a matched run that removes one nutrition rule at a time, nor one that varies just the manually chosen rule weights. The resulting curves describe the assembled system against explicit-fact matching. The degree of contribution from a particular rule, its weight, or the probabilistic stage remains open.

#### The joined argument and the type of join change the degree

The authors examine approximate pseudo-functionality on a random sample of 500 binary relations from TextRunner. They recognize that surface variation can obscure how relations behave. Different wording may express the same relation, and synonymous strings can name the same kind of entity. Before measuring the degree, they merge synonymous relations and arguments using Resolver or the most frequent WordNet sense. Their example treats a baby described as born in a hospital and an infant described as born at an infirmary as instances of the same relation and argument concepts. [Unsupervised Resolution of Objects and Relations on the Web](https://md.research.elamur.ai/free/en/papers/yates-2007-unsupervised-resolution-objects-relations-web/)

The sample includes substantial relations. Its two largest have over 1.25 million unique instances each, and 52% of the sampled relations have more than 10,000 instances. For each argument position of each relation, the authors find the smallest degree that meets the logarithmic APF definition. They also find the smallest degree under the relaxed condition for a two-way join. Averaging over both arguments allows the analysis to describe the distribution of degrees without assuming that the first and second positions have the same behavior.

The stricter definition yields an APF degree below 496 for 80% of the sampled relations, using the paper’s averaging over argument positions. The corresponding result under the two-way condition is a degree below 65 for 80%. These are cutoffs for the same reported proportion under different conditions. The smaller cutoff for two-way joins shows why the distinction matters for these experiments. The proofs and test queries make frequent use of joins between two relations, for which the exceptional part of the degree definition can be more permissive.

#### What the size bounds leave out

Even a linear upper bound can allow expensive joins when its constant is large. The proof allows ordinary values to have as many partners as their degree permits. In the corpus, however, 83% of first arguments have only one distinct second argument. So a large part of the relation may contribute much less work than the degree bound allows. The APF degree limits the behavior of a relation as a whole, while the count of single-partner arguments helps explain how the work is distributed within the ordinary cases.

The authors also describe additional measurements of join size. According to their report, join outputs scaled linearly with the size of the corpus and fell short of the theoretical bounds by an average of two to three orders of magnitude. They observed that pattern across relations of different sizes and degrees. These measurements separate two questions. The theoretical bound asks how large the output can become under the stated restrictions. The observed sizes indicate how much of that allowance the joins used on the data the authors tried.

The comparison across corpus sizes then tests a separate observable, total inference time. It shows roughly linear growth beyond the individual join-size measurements. The APF measurements, the join-size observations, and the timing curves address distinct parts of the explanation. The first describes relations in the assertion store. The second describes combinations produced from them. The third includes the operation of the inference system that consumes those combinations.

### Limitations

#### Limits identified by the authors

The authors restrict the task to assertions expressed as simple relations. Extraction must handle such phenomena as anaphora and relative clauses where it can, and more demanding semantic features can be omitted. The paper specifically identifies quantification, counterfactuals, and temporal qualification as difficulties outside the main treatment. Such information can be decisive for determining when a statement supports an inference. Once the extractor has reduced a statement to a ground tuple, HOLMES reasons with the resulting representation.

The query language favors requests about entities and their properties or relations. Abstract or open-ended questions are a poor fit in the authors’ account. The experiments also begin with queries already written in formal notation. The demonstrated work concerns finding and scoring answers once the conditions of the query have been specified. Translating an arbitrary natural-language question into those conditions is a separate capability.

Extraction errors propagate into inference. A wrong argument, a mistaken category, or a superficially matching name can be drawn into a proof and reused. The authors’ examples of generic terms and extraction errors show how a local problem can affect the answer set. They identify this as an area for future work and also propose examining when extraction and inference might be carried out jointly at scale. In the reported system, the stages are separate.

The rules and weights also limit the scope of the conclusions. The authors set the weights by hand and provide the rules used in the experiments. They identify learning weights and acquiring new rules as future work. A weighted inference can express doubt within the system’s evidence, but the rule has to be available before that evidence can support the corresponding chain. The nutrition experiment illustrates the effect of supplying such a rule in a domain where the general rules alone do not express the desired relationship.

The authors describe bounded proof size as a strong assumption that depends on the rules and the facts. A configured limit can make search feasible while determining which chains can be reached. The authors also point out that the observed APF distribution may vary with the relations being considered. Their conclusion about prevalence comes from the sampled TextRunner relations after synonym merging. Its applicability to another extraction collection would depend on the distribution of partner counts in the arguments used for joins there.

Exact probabilistic inference is described as #P-complete. HOLMES uses approximate inference and bounds work in practice by expanding the network incrementally. Its early answers can therefore arrive with preliminary estimates. The authors also say that further work is needed to reach interactive speeds. Linear growth describes how runtime changes as the corpus grows. At the tested scale, the measured totals still take the reported number of seconds for each group of questions.

#### Limits visible in the evaluation

The twenty queries are deliberately varied, and the authors restrict their number because manual assessment is demanding. The examples are informative about their chosen types of reasoning, such as geographic containment, acquisition joins, business classification, and nutrient-based links. They give little basis for estimating the performance of HOLMES across all questions whose premises may be distributed over text. A query with another shape can lead to a different set of proof patterns and joins.

The paper reports improvements in area relative to each domain’s baseline. A large relative increase can coexist with a low starting area. Evaluating a particular use would also require precision at the answer-list cutoff that matters for that use. The geography curve illustrates the movement along the precision–recall tradeoff, and the text characterizes the other domains qualitatively. The reported metric establishes improvement in ranked retrieval on these examples while leaving the reliability of any given proposed answer to its own evidence.

Relative recall also matters to the scope of the evaluation. The system may find answers absent from the database as explicit assertions, while many true answers can remain unreachable because their premises were never extracted. The manual tagging compares outputs from the systems. It does not establish an exhaustive inventory of people, businesses, or foods that would satisfy each question in the world. Likewise, a nutrition proof shows how the rules and recorded assertions support a candidate. The experiment evaluates the inference system’s answers and does not independently test a preventive effect.

The paper’s probability estimates serve to score uncertain answers. The reported experiments focus on precision and relative recall, with no separate assessment of whether a given estimated probability corresponds to the same empirical rate of correctness. The manually chosen weights and dependence on extraction confidence are relevant to how those estimates should be read. Additional proof paths can change them, and shared inputs can couple the evidence across proofs.

Finally, the timing result concerns inference over already extracted assertions while varying corpus size for the tested queries. Preparing the assertion store is a different stage. The theory keeps the query and rules fixed and assumes bounded proofs and suitable join distributions. Changing the allowed rule depth or introducing a relation dominated by frequent join values changes the conditions that support the bound. The experiment shows how the implementation scales for the selected workloads under its configured search, and the mathematical argument identifies the conditions under which that behavior is expected.

### What came after

The later work [Constructing Datasets for Multi-hop Reading Comprehension Across Documents](https://md.research.elamur.ai/free/en/papers/welbl-2018-constructing-datasets-multi-hop-reading/) (2018) cites *Scaling Textual Inference to the Web* and addresses the problem of evidence spread across documents through dataset construction. In its title, *multi-hop* identifies a reading task with intermediate connections between the question and the answer. The across-document setting puts the distribution of that evidence at the center of the task.

HOLMES provides a concrete account of what such a connection can involve. A question can fix a country while a passage supplies only a city, making the city-to-country relation an intermediate step. Or a question can name a disease while the evidence connects a food to a nutrient and the nutrient to the disease. In HOLMES, those steps are represented by joins and rule applications over extracted assertions. The later work’s stated focus is how to construct datasets for reading comprehension when the needed steps cross document boundaries.

The citation connects work at the level of inference with work at the level of evaluation. HOLMES asks whether a system can find and score relational proofs over a Web-scale assertion store. The later dataset work makes the need to connect material across documents part of the reading task itself. That change in emphasis carries forward the motivating problem of the earlier paper. The evidence for a short answer can be distributed, and the ability to recover the answer depends on finding the intermediate connections.

## Cite

Cite as Stefan Schoenmackers, Oren Etzioni and Daniel Weld. 2008. Scaling Textual Inference to the Web. Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{schoenmackers2008scaling,
  title = {{Scaling Textual Inference to the Web}},
  author = {Stefan Schoenmackers, Oren Etzioni and Daniel Weld},
  booktitle = {Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing},
  year = {2008},
  doi = {10.3115/1613715.1613727},
  url = {https://doi.org/10.3115/1613715.1613727}
}
```

> 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)
