A Bayesian inference network (Turtle and Croft, 1990, 1991) ranks each document by the belief that observing it satisfies the information need, computed in one pass up a layered network. In INQUERY a term's belief is $0.4 + 0.6\,\mathit{ntf} \cdot \mathit{nidf}$: a BM25-like saturating term frequency times a normalized IDF, so every belief lies between 0.4 and $0.4 + 0.6\,\mathit{nidf}$. The query operators follow from link matrices: #and is a product, #or is $1 - \prod_i (1 - p_i)$ and #wsum a weighted average; the first two assume independent inputs. Because an absent term keeps belief 0.4, #and is soft. On Cranfield query 185 an #and formulation raises average precision from 0.806 to 0.834. Over all 225 queries the #sum belief reaches a mean average precision of 0.311, not significantly above BM25's 0.307 ($p = 0.12$).
Cranfield query 185 asks for experimental studies on panel flutter. BM25 ranks abstract 390 fourth, a theoretical paper titled some panel-flutter studies using piston theory. It uses three of the four query words, and BM25 has no way to hear that the searcher insists on experimental. The Binary Independence Model and BM25 both treat the query as a flat list of independent terms. Real information needs have structure: some words are required, some are alternatives, a phrase may count for more than its separate words, and some concepts matter more than others. Can a probabilistic model take that structure as input and still rank?
Bayesian inference networks, introduced to retrieval by Howard Turtle and W. Bruce Croft (1990, 1991), answer yes. Documents, terms, query concepts and the information need become nodes in a network. Ranking becomes probabilistic inference: for each document, compute the belief that observing it satisfies the information need. The model was implemented in the INQUERY system (Callan, Croft, and Harding, 1992), which performed strongly in early TREC evaluations. Its query language survives in the Indri search engine.
Here is the route. First we lay out the retrieval network. Then we estimate term beliefs and derive the query operators that combine them. Next we propagate query 185 through the network in two formulations and see what structure does to abstract 390. Finally we weigh the model's limits and follow its descendants.
Bayesian networks in brief
A Bayesian network is a directed acyclic graph whose nodes are random variables and whose edges express direct dependence. Each node has a conditional probability distribution given its parents. The joint distribution of all the variables factorizes into these local distributions. That makes it possible to represent a complicated distribution compactly, and to compute the probability of one variable given evidence about others. In general, exact inference in such networks is NP-hard (Cooper, 1990). The retrieval network escapes that cost through its structure: one document is observed at a time, the graph is layered from documents up to the information need, and each node's belief is a closed-form function of its parents' beliefs. Ranking a document is therefore a single pass up the network, as the sections below show.
The retrieval network
The Turtle-Croft network has two parts (Turtle and Croft, 1991).
The document network is built once, at indexing time:
- document nodes $d_j$, one per document, representing the event that the document is observed;
- representation nodes $r_k$, one per index term or concept, representing the event that the concept is present.
An edge from $d_j$ to $r_k$ carries the probability that the concept is present given the document. This is the term's belief in that document. The original network also has text representation nodes between the two layers, one for each form of a document's text, such as an abstract or a full text. With one text form per document, as assumed here, they can be left out.
The query network is built for each query:
- query concept nodes, which combine representation nodes according to the query's operators;
- query nodes, one for each query, when several formulations of the same need are combined;
- a single information need node $I$ at the top.
To rank documents, each document node in turn is set to true, meaning that this document is observed, with all others false. The beliefs are then propagated up through the network to compute $P(I \mid d_j)$, and documents are ranked by that belief. Only one document is observed at a time, and each representation node depends only on that document. So propagation reduces to evaluating the query's operators on the term beliefs, which is fast.
Two things remain to be specified: where the term beliefs come from, and how the operators combine them.
Estimating term beliefs
The belief that concept $r_k$ is present in document $d_j$ is estimated from term statistics, in the spirit of TF-IDF. INQUERY's default form combined a normalized term frequency and a normalized IDF with a default belief:
$$\mathrm{bel}(r_k \mid d_j) = \alpha + (1 - \alpha) \cdot \mathit{ntf}_{k,j} \cdot \mathit{nidf}_k,$$
with $\alpha = 0.4$. Here $\mathit{ntf}$ is a saturating, length-normalized term frequency between 0 and 1, and $\mathit{nidf}$ is IDF scaled to lie between 0 and 1.
The default belief means that a term absent from a document still has belief 0.4 rather than 0. Absence of a word is weak evidence that the concept is absent, since the document may express it in other words. This choice makes a strict conjunction partly satisfiable by a document that lacks one term. It softens the AND operator, in the way the worked examples below show.
The exact normalizations changed between versions. The one the INQUERY group published for its TREC-8 runs (Allan, Callan, Feng, and Malin, 2000, §1.1) is
$$\mathit{ntf}_{t,d} = \frac{\mathit{tf}_{t,d}}{\mathit{tf}_{t,d} + 0.5 + 1.5\, \frac{L_d}{L_{\mathrm{avg}}}}, \qquad \mathit{nidf}_t = \frac{\log \frac{N + 0.5}{\mathrm{df}_t}}{\log (N + 1)},$$
where $L_d$ is the length of document $d$ in words, $L_{\mathrm{avg}}$ the average length, $N$ the number of documents and $\mathrm{df}_t$ the number containing $t$. Both parts are recognizable.
- $\mathit{ntf}$ is the saturating curve of BM25, $\mathit{tf}/(\mathit{tf} + K)$, with $K = 0.5 + 1.5\, L_d / L_{\mathrm{avg}}$. $K$ is 2 for a document of average length, and more for longer ones.
- $\mathit{nidf}$ is IDF divided by $\log(N + 1)$. That is slightly more than the largest IDF any term can have, $\log(N + 0.5)$ for a term in a single document, so $\mathit{nidf}$ stays below 1.
Two consequences follow. Every belief lies between 0.4 and $0.4 + 0.6\, \mathit{nidf}_t$, so a common term can never contribute a high belief however often it occurs. And because the ceiling is set by IDF, the formula is a TF-IDF weight rescaled into a probability-like range. Turtle and Croft (1990, §3.4) showed that a weighted-sum link matrix produces exactly such a weight.
Example (the ceiling on a belief). On query 185, panel has $\mathit{nidf} = 0.474$, so its belief can never exceed about 0.685 in any abstract, however often it occurs: $0.4 + 0.6 \times 0.4745 = 0.6847$, with $\mathit{nidf}$ to four decimals, approached as $\mathit{ntf}$ nears 1. Abstract 856, with 16 occurrences, reaches 0.642, as the worked example below shows. For experiment the ceiling is only 0.518. Every belief in this model is squeezed into a narrow band above 0.4.
Query operators
The query network combines the term beliefs with operators, each a canonical form of conditional probability that avoids specifying an exponentially large table. For parent beliefs $p_1, \dots, p_n$, the main INQUERY operators are:
| Operator | Belief | Meaning |
|---|---|---|
#and |
$\prod_i p_i$ | all concepts present, treated as independent |
#or |
$1 - \prod_i (1 - p_i)$ | at least one concept present |
#not |
$1 - p$ | concept absent |
#sum |
$\frac{1}{n} \sum_i p_i$ | average evidence |
#wsum |
$\sum_i w_i p_i \,/\, \sum_i w_i$ | weighted average |
#max |
$\max_i p_i$ | strongest single concept |
With beliefs restricted to 0 and 1, #and, #or, and #not reduce to Boolean logic. With graded beliefs they give graded scores. #sum and #wsum behave like the weighted sums of the vector space model. One network thus contains the Boolean, vector space, and probabilistic approaches as special cases. That was one of the model's main theoretical attractions. Turtle and Croft (1991) also combined several formulations of the same query in one network, such as a natural language and a Boolean version. They report that the combination was more effective than either formulation alone.
A common misreading takes #and to be the Boolean AND under another name. It is not, because of the default belief. A document missing one term still has belief 0.4 for it, so the product is lowered, not zeroed. The worked examples below show how much.
Where the operator formulas come from
The formulas in the table are not chosen for convenience. Here is the idea: write down how likely the query node is to be true for every combination of its parents' states, then average over those combinations. The table of conditional probabilities is what Turtle and Croft (1990, §3.4) call a link matrix. Croft, Metzler, and Strohman (2010, §7.4.1) derive #and the same way.
The formal version. Take a query node $q$ with two parents $a$ and $b$, believed present with probabilities $p_a = 0.55$ and $p_b = 0.48$, and treat the parents as independent. Each of the four combinations of parent states has a probability, and the link matrix says how likely $q$ is to be true in each:
| $a$ | $b$ | Probability of this state | $P(q \mid a, b)$ for #and |
$P(q \mid a, b)$ for #or |
|---|---|---|---|---|
| false | false | $0.45 \times 0.52 = 0.234$ | 0 | 0 |
| false | true | $0.45 \times 0.48 = 0.216$ | 0 | 1 |
| true | false | $0.55 \times 0.52 = 0.286$ | 0 | 1 |
| true | true | $0.55 \times 0.48 = 0.264$ | 1 | 1 |
The belief in $q$ is the sum over states of the state's probability times $P(q \mid a, b)$.
- For
#andonly the last row counts, giving $0.264 = p_a p_b$. - For
#orevery row but the first counts, giving $0.216 + 0.286 + 0.264 = 0.766 = 1 - (1 - p_a)(1 - p_b)$.
The weighted sum. In a weighted-sum matrix, $q$'s probability in each state is the share of the total parent weight held by the parents that are true. With weight 2 on $a$ and 1 on $b$:
| $a$ | $b$ | Probability of this state | $P(q \mid a, b)$ for #wsum |
Product |
|---|---|---|---|---|
| false | false | 0.234 | $0/3 = 0$ | 0 |
| false | true | 0.216 | $1/3$ | 0.072 |
| true | false | 0.286 | $2/3$ | 0.191 |
| true | true | 0.264 | $3/3 = 1$ | 0.264 |
The belief is $0.072 + 0.191 + 0.264 = 0.527$, and the closed form gives the same: $(2 \times 0.55 + 1 \times 0.48)/3 = 0.527$.
Any number of parents. With $n$ parents the table has $2^n$ rows, and the belief is $\sum_{s} P(s)\, P(q \mid s)$ over all states $s$ of the parents, where $P(s)$ is the product of $p_i$ for the parents true in $s$ and $1 - p_i$ for those false. For the canonical matrices the sum collapses to the closed forms of the operator table, so the network never has to store or sum the table.
#and: $P(q \mid s) = 1$ only in the state where every parent is true, and that state has probability $\prod_i p_i$. Every other row contributes 0.#or: $P(q \mid s) = 1$ in every state but the one where every parent is false, which has probability $\prod_i (1 - p_i)$. The state probabilities sum to 1, so the rest sum to $1 - \prod_i (1 - p_i)$.#not: one parent, with $P(q \mid \text{true}) = 0$ and $P(q \mid \text{false}) = 1$, giving $1 - p$.#wsum: $P(q \mid s) = \sum_{i \text{ true in } s} w_i \big/ \sum_i w_i$. Exchange the order of the two sums: parent $i$ contributes $w_i / \sum_j w_j$ in exactly the states where it is true, and the total probability of those states is $p_i$. So the belief is $\sum_i w_i\, p_i \big/ \sum_i w_i$.#sumis the case of equal weights.
The first two collapses use the independence of the parents, through the product form of $P(s)$. That is an assumption, the same one the BIM makes. The weighted sum does not need it: its derivation used only that the states in which parent $i$ is true have total probability $p_i$, which holds whatever the dependence. The script checks all four closed forms against the full sum over $2^n$ states for $n$ up to 6.
A worked example
Before the real collection, a small example shows the operators side by side. A document has beliefs 0.62 for heat, 0.55 for transfer, and 0.48 for flux. For the query structure heat and (transfer or flux):
| Query | Belief |
|---|---|
#or(transfer flux) |
$1 - (1 - 0.55)(1 - 0.48) = 0.766$ |
#and(heat #or(transfer flux)) |
$0.62 \times 0.766 = 0.475$ |
#sum(heat #or(transfer flux)) |
$(0.62 + 0.766)/2 = 0.693$ |
#wsum(2 heat 1 #or(transfer flux)) |
$(2 \times 0.62 + 0.766)/3 = 0.669$ |
#max(heat #or(transfer flux)) |
0.766 |
Example (a soft AND). A second document contains heat with belief 0.62 but neither transfer nor flux. A Boolean AND would exclude it, and #and(heat #or(transfer flux)) does not. Both missing terms get the default belief 0.4, so #or gives $1 - 0.6 \times 0.6 = 0.64$, and #and gives $0.62 \times 0.64 = 0.397$. The document ranks below the first, which matched more of the query, at 0.475. But it is not excluded.
A real query through the network
The beliefs in the example above were chosen for illustration. With the belief formula, a real collection supplies them. Back to query 185, experimental studies on panel flutter. It has four terms after stemming and stopping, and two natural formulations:
- $q_1$ =
#sum(experiment studi panel flutter), the natural-language form, which averages the evidence; - $q_2$ =
#and(experiment panel flutter), a structured form for a searcher who insists on experiments and drops the vague studies; - $I$ =
#sum(q1 q2), the information need, combining both formulations, the kind of combination Turtle and Croft (1991) found effective.
The numbers below are computed by tools/experiments/cranfield/infnet_example.py over the 1,400 Cranfield abstracts. Lengths are in tokens after stopping ($L_{\mathrm{avg}} = 111.65$), logarithms are natural, and values are rounded to three decimals. The normalized IDFs are 0.196 for experiment, 0.244 for studi, 0.474 for panel, and 0.444 for flutter.
One belief by hand. Abstract 856 has 172 tokens and contains panel 16 times. Then:
- $\mathit{ntf} = 16 / (16 + 0.5 + 1.5 \times 172/111.65) = 16 / 18.811 = 0.851$;
- $\mathit{nidf} = \ln(1400.5/45) / \ln 1401 = 3.438 / 7.245 = 0.474$;
- the belief is $0.4 + 0.6 \times 0.851 \times 0.474 = 0.642$.
Propagation for abstract 856 is three operator evaluations. $q_1 = (0.469 + 0.494 + 0.642 + 0.612)/4 = 0.554$. $q_2 = 0.469 \times 0.642 \times 0.612 = 0.184$. $I = (0.554 + 0.184)/2 = 0.369$.
Example (abstract 390 under the structured query). Abstract 390, the theoretical paper, contains studi twice but never experiment. Under the natural-language $q_1$ it ranks fifth. Under $q_2$, which drops studi and multiplies, it falls to eleventh. The table and the paragraph after it show why. The same network, evaluated with each abstract observed in turn:
| Abstract | Judged | tf (experiment, studi, panel, flutter) | Beliefs | $q_1$ | $q_2$ | $I$ |
|---|---|---|---|---|---|---|
| 856 | relevant | 4, 5, 16, 11 | 0.469, 0.494, 0.642, 0.612 | 0.554 | 0.184 | 0.369 |
| 390 | not relevant | 0, 2, 5, 5 | 0.400, 0.479, 0.612, 0.599 | 0.522 | 0.147 | 0.335 |
| 1008 | relevant | 1, 0, 6, 4 | 0.452, 0.400, 0.635, 0.602 | 0.522 | 0.173 | 0.347 |
| 864 | not relevant | 0, 0, 5, 3 | 0.400, 0.400, 0.638, 0.601 | 0.510 | 0.154 | 0.332 |
| 859 | relevant | 0, 0, 16, 9 | 0.400, 0.400, 0.638, 0.598 | 0.509 | 0.153 | 0.331 |
Under the natural-language $q_1$, abstract 390 ranks fifth, just above relevant abstract 1008. It lacks experiment, but its studi belief compensates in the average. Under $q_2$ the missing experiment leaves 390 at the default belief 0.4, against 0.452 for the single mention in 1008. Nothing makes up for that in a product. So 390 falls to eleventh, and 1008 rises to fifth. Combining the formulations puts 390 seventh. Across all 542 abstracts that contain a query term:
| Formulation | Ranks of the 9 relevant abstracts | Average precision |
|---|---|---|
$q_1$ = #sum(experiment studi panel flutter) |
1, 2, 3, 4, 6, 9, 12, 14, 15 | 0.806 |
$q_2$ = #and(experiment panel flutter) |
1, 2, 3, 4, 5, 8, 12, 14, 15 | 0.834 |
$I$ = #sum(q1 q2) |
1, 2, 3, 4, 5, 9, 12, 14, 15 | 0.825 |
On this query, structure helps, and the combination lands between its two parts. BM25 reached 0.784 on the same 542 abstracts.
The beliefs are also strikingly compressed. Every belief in the table lies between 0.4 and 0.65, because the default belief sets the floor and the normalized IDF the ceiling. What decides the ranking is the small differences above 0.4, and the operators decide how those differences combine:
- an average lets a strong term make up for a missing one;
- a product lets a missing term, stuck at 0.4, pull the whole score down.
The belief formula also holds up as a plain ranking function. Over all 225 Cranfield queries, each turned into a #sum of its terms, it reaches a mean average precision of 0.311, against 0.307 for BM25 with default parameters. It is better on 136 queries and worse on 69. But the difference is not significant (randomization test, $p = 0.12$), so on this collection the two are equivalent.
Strengths and limits
The inference network gave retrieval a single probabilistic framework in which several kinds of evidence could be combined:
- multiple document representations;
- multiple query formulations;
- phrases and proximity operators;
- field restrictions.
Its structured query language let expert searchers state their needs precisely and still receive ranked results. That combination suited professional search well.
Its limits are the usual ones for probabilistic models. The operators assume independence among their inputs, which is no more true here than in the BIM. So the network models the structure of the query, not dependence between terms. Term beliefs come from heuristic formulas rather than estimated probabilities, with constants such as the default belief tuned by experiment. And the network's structure is fixed by the query language rather than learned.
Descendants
The model's query language and combination of evidence carried forward. Metzler and Croft (2004) combined inference networks with language models. They kept most of INQUERY's operators but estimated the beliefs at the representation nodes from smoothed language models instead of the TF-IDF formula. The combined model is presented by Croft, Metzler, and Strohman (2010, §7.4), who note in that chapter's References and Further Reading that it was implemented as the Indri search engine.
Indri's structured queries, with operators for phrases, unordered windows, weighted combinations and fields, were widely used in research. They form the basis of influential models of term dependence, which reward query terms that appear near one another. The Markov random field model of Metzler and Croft (2005) is one, and term dependence models treats it. In that sense the inference network's main legacy is a language for expressing how evidence should be combined. Learning to rank later replaced that language with combinations learned from data. The network was also applied to whole collections in place of documents: the CORI method of federated search uses it to choose which of several engines to send a query to.
The inference network is not the only Bayesian-network model of retrieval. Ribeiro-Neto and Muntz (1996) proposed a separate one, the belief network model, with a different arrangement of the document, term and query nodes. The two are distinct models, although their names are sometimes used interchangeably.
Worked problems
The course text sets no exercise on inference networks, so these problems are posed on query 185 and on the operators. The script recomputes every number.
Problem 1. Abstract 856 has 172 tokens and contains flutter 11 times. Flutter occurs in 56 of the 1,400 abstracts, and the average length is 111.65 tokens. Compute the belief of flutter in abstract 856.
The length term is $1.5 \times 172 / 111.65 = 2.3108$, so
$$\mathit{ntf} = \frac{11}{11 + 0.5 + 2.3108} = \frac{11}{13.8108} = 0.7965, \qquad \mathit{nidf} = \frac{\ln (1400.5 / 56)}{\ln 1401} = \frac{3.2192}{7.2449} = 0.4443.$$
The belief is $0.4 + 0.6 \times 0.7965 \times 0.4443 = 0.612$, the value in the table for abstract 856. Its ceiling, reached as $\mathit{ntf} \to 1$, is $0.4 + 0.6 \times 0.4443 = 0.667$.
Problem 2. Evaluate the query #wsum(3 #and(panel flutter) 1 #or(experiment studi)) for abstract 856 (beliefs 0.469, 0.494, 0.642, 0.612 for experiment, studi, panel, flutter) and for abstract 390 (0.400, 0.479, 0.612, 0.599), and say which ranks higher.
Evaluate from the inside out. For abstract 856:
#and(panel flutter)$= 0.642 \times 0.612 = 0.393$;#or(experiment studi)$= 1 - (1 - 0.469)(1 - 0.494) = 1 - 0.531 \times 0.506 = 0.731$;#wsum$= (3 \times 0.393 + 1 \times 0.731)/4 = 0.478$.
For abstract 390:
#and(panel flutter)$= 0.612 \times 0.599 = 0.367$;#or(experiment studi)$= 1 - 0.600 \times 0.521 = 0.687$;#wsum$= (3 \times 0.367 + 0.687)/4 = 0.447$.
Abstract 856 ranks higher, 0.478 against 0.447. (The script, working from unrounded beliefs, gives 0.4777 and 0.4467.) Abstract 390 lacks experiment, yet the #or still gives it 0.687, because studi is present and the absent term keeps its default belief of 0.4. An alternative inside #or is satisfied by either word.
Problem 3. Find the least and the greatest value that $q_2$ = #and(experiment panel flutter) can take on any Cranfield abstract.
Each belief lies between the default 0.4, for an absent term, and its ceiling $0.4 + 0.6\,\mathit{nidf}_t$. The ceilings are 0.5175 for experiment, 0.6847 for panel and 0.6666 for flutter. A product of positive factors is least when each factor is least and greatest when each is greatest, so
$$0.4^3 = 0.064 \;\le\; q_2 \;<\; 0.5175 \times 0.6847 \times 0.6666 = 0.236.$$
An abstract with none of the three terms scores exactly 0.064, not 0, and so is ranked, last and tied with all the others of its kind. The upper bound is never reached, since $\mathit{ntf} < 1$. The highest value on any abstract is 0.184, for abstract 856. All the discrimination of this query happens between 0.064 and 0.184.
Problem 4. Show that the operators satisfy De Morgan's law: #or(a b) equals #not(#and(#not(a) #not(b))) for all beliefs.
Let the beliefs be $p_a$ and $p_b$. Then #not(a) is $1 - p_a$ and #not(b) is $1 - p_b$. Their #and is the product $(1 - p_a)(1 - p_b)$. The outer #not gives $1 - (1 - p_a)(1 - p_b)$, which is the formula for #or(a b). The same steps with $n$ parents give $1 - \prod_i (1 - p_i)$. So the soft operators keep this law of Boolean logic exactly, at every belief and not only at 0 and 1. For the document of the soft-AND example, with both terms absent, both sides are $1 - 0.6 \times 0.6 = 0.64$.
What we have learned
An inference network turns a structured query into a calculation of belief. Term beliefs are TF-IDF weights squeezed above a default of 0.4, and the operators, derived from link matrices, collapse to products and averages. On query 185, insisting on experiment with #and sent abstract 390 from fifth to eleventh and raised average precision from 0.806 to 0.834. The default belief kept the AND soft.
Every model so far has estimated the probability of relevance, or a belief in it, from evidence about the query's terms. A different probability can also rank documents: the probability that a document's own word distribution would generate the query. Language models for retrieval build a ranking on that idea.
References
- Allan, J., Callan, J., Feng, F.-F., and Malin, D. (2000). INQUERY and TREC-8. In Proceedings of the Eighth Text REtrieval Conference (TREC-8), NIST Special Publication 500-246, 637–643. record
- Callan, J. P., Croft, W. B., and Harding, S. M. (1992). The INQUERY retrieval system. In Proceedings of the Third International Conference on Database and Expert Systems Applications (DEXA), 78–83. record
- Cooper, G. F. (1990). The computational complexity of probabilistic inference using Bayesian belief networks. Artificial Intelligence, 42(2–3), 393–405. record
- Croft, W. B., Metzler, D., and Strohman, T. (2010). Search Engines: Information Retrieval in Practice, section 7.4. Addison-Wesley. record · 12 pages
- Metzler, D., and Croft, W. B. (2004). Combining the language model and inference network approaches to retrieval. Information Processing and Management, 40(5), 735–750. record · 2 pages
- Metzler, D., and Croft, W. B. (2005). A Markov random field model for term dependencies. In Proceedings of SIGIR 2005, 472–479. record · 3 pages
- Ribeiro-Neto, B., and Muntz, R. (1996). A belief network model for IR. In Proceedings of SIGIR 1996, 253–260. record
- Turtle, H., and Croft, W. B. (1990). Inference networks for document retrieval. In Proceedings of SIGIR 1990, 1–24. record
- Turtle, H., and Croft, W. B. (1991). Evaluation of an inference network-based retrieval model. ACM Transactions on Information Systems, 9(3), 187–222. record · 2 pages
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 10 revisions