---
title: "Adaptive Probabilistic Networks with Hidden Variables (1997)"
description: "Adaptive probabilistic networks learn from incomplete observations by reusing inference to fit a known graph, including one with hidden variables."
canonical: "https://research.elamur.ai/free/en/papers/binder-1997-adaptive-probabilistic-networks-hidden-variables/"
---
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/binder-1997-adaptive-probabilistic-networks-hidden-variables/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [1997](https://md.research.elamur.ai/free/en/papers/1997/) / Adaptive Probabilistic Networks with Hidden Variables

# Adaptive Probabilistic Networks with Hidden Variables

Paper · 1997 · John Binder, Daphne Koller, Stuart Russell et al.

**Authors:** John Binder, [Daphne Koller](https://md.research.elamur.ai/free/en/authors/daphne-koller/), [Stuart Russell](https://md.research.elamur.ai/free/en/authors/stuart-russell/) and Keiji Kanazawa · **Year:** 1997 · **Venue:** Machine Learning · **Licence:** No open licence stated (free-to-read copy; rights reserved) — text kept private

Cited by **10** papers in our library of more than 163,000 papers whose bibliographies we read · Machine Learning

- [PDF](https://link.springer.com/content/pdf/10.1023/A:1007421730016.pdf)
- [DOI 10.1023/a:1007421730016](https://doi.org/10.1023/a:1007421730016)

## Summary

An expert may know which factors influence an outcome and still be unable to put reliable numbers on those influences. An insurer, for example, can distinguish factors that affect accident risk from events that determine whether a policyholder files a claim. Its records reveal some of those events and leave others unknown. Binder and colleagues ask how to learn the probabilities in a Bayesian network when its graph is already known and the available observations are incomplete. The graph supplies assumptions about which variables depend on one another. The data supply evidence about how strong those dependencies are.

Their adaptive probabilistic network algorithm, or APN, learns by increasing the probability the network assigns to the training observations. For each case, it uses the current network to infer how probable each combination of a variable and its parents is, given whatever was observed. Those probabilities reveal how changing a local parameter would affect the likelihood of the case. The authors show that standard inference procedures already calculate the information needed for this step. The same network that answers queries about missing values can therefore supply the information needed to improve its parameters, including parameters for variables that never appear directly in the records.

The experiments use data generated by known networks, which lets the authors test what happens when they preserve or discard particular structural assumptions. In a small example, the representation with a hidden variable requires 45 independent parameters, while an equivalent representation over the observable variables requires 708. The compact representation learns to predict the outputs from fewer cases. In the car-insurance experiment, an APN given the generating graph reaches held-out conditional cross-entropy of about 2.0 from about 500 training cases. The paper puts the requirement for an APN without that graph at roughly 200,000 cases for the same error level. Feedforward neural networks learn some of the predictive regularities quickly, then improve slowly after reaching an error of about 2.2.

The same gradient calculation also supports conditional probabilities governed by a smaller set of shared parameters. A noisy-OR representation connects the probabilities for different combinations of causes. A dynamic network can reuse the same transition and observation parameters across successive time slices. Both restrictions improve learning in the corresponding experiments. The authors derive an extension for continuous variables as well, where the gradient involves integrating over possible values of a variable and its parents. The empirical result is about sample efficiency under useful structural assumptions. The continuous extension and the cost of computing the gradients raise separate questions.

## Deep dive: Adaptive Probabilistic Networks with Hidden Variables

Adaptive probabilistic networks learn from incomplete observations by reusing inference to fit a known graph, including one with hidden variables. · about 36 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 experts can specify and what records can reveal

A Bayesian network describes uncertainty about a collection of variables. In the paper’s diagnostic example, smoking, lung cancer and the outcome of an X-ray are separate variables. A network can express the assumption that, once lung cancer status is known, smoking supplies no further information about the X-ray outcome. This still allows smoking to affect the probability of lung cancer and, through that relationship, the probability of a particular X-ray result. The graph specifies the conditions under which some pieces of information cease to matter for a given probability.

That distinction gives the graph practical value. A full joint distribution would describe the probability of every combination of values in the domain. Adding variables rapidly expands the number of combinations. A Bayesian network uses a directed graph without cycles to break up that distribution. Each node has a conditional distribution for its own value given the values of the nodes with arrows into it, called its parents. Once the parents are specified, the node is conditionally independent of its other non-descendants. In a network where each node has only a few parents, a small local distribution can take the place of many entries in a global table.

The authors argue that people frequently have an easier time supplying those qualitative relationships than supplying the corresponding probabilities. A physician may know which diseases can produce a symptom without knowing how frequently the symptom occurs for every relevant combination of conditions. In addition, the numerical relationships may change while the qualitative structure remains useful. Learning the numbers from observations makes it possible to retain expert knowledge about the domain while adapting the network to the cases it encounters.

The missing information in the records can be just as important as the missing numbers in the network. A medical record may omit a test, and even at the end of treatment the disease may be uncertain. Some variables, such as a syndrome used to account for a group of findings, may be meaningful parts of the network even when they are never measured directly. The paper treats hiddenness as a property of the available observations. A variable can be known for some cases, missing for others, or hidden throughout. The graph and the set of possible values for each variable are assumed to be known in advance.

#### Why keep a variable that cannot be seen?

A hidden variable can matter because someone wants to query it. A system may need to infer a possible cause from its effects, in which case a representation that includes the cause gives the query an explicit target. There is also a reason to keep a hidden variable even when all the queries concern visible outcomes. Several parts of a problem may be linked through a shared intermediate variable. Eliminating that variable by summing over its possible values gives a valid distribution over what can be observed, but writing that distribution with explicit conditional tables may require many more parameters.

This difference concerns how a family of distributions is represented. A compact graph with a hidden variable can express correlations among visible variables using a small collection of local probabilities. An observable-only graph may have to accommodate those correlations with larger tables and more direct dependencies. Both representations can describe the same observable probabilities at particular parameter settings. When those settings have to be learned, however, the compact representation tells the learner in advance that many apparent degrees of freedom are related.

A graph is one source of such restrictions. The conditional distributions can carry another. An explicit table distinguishes every configuration of a node’s parents. If each parent has an independent opportunity to produce an effect, many of the entries can instead be calculated from a short list of failure probabilities. The paper illustrates the scale of this distinction with the CPCS network. It uses 8,254 parameters with representations such as noisy-OR and noisy-MAX. The authors give 133,931,430 as the number it would require with explicit conditional tables. This is an illustration of representation size, separate from the paper’s experimental evidence about prediction.

#### The starting point for learning

For a known graph and fully observed cases, each record can be assigned to the relevant row of every conditional table. The counts can then be used to update the probabilities. The paper describes earlier Bayesian updating methods that use Dirichlet priors, which place distributions over the probabilities in each row. If the graph is unknown and the records are complete, the earlier work the authors review usually searches among possible graphs, frequently greedily. The table-fitting problem can be solved for each candidate graph.

Neither procedure handles missing entries simply by counting observed configurations. With an unobserved parent, the learner may be unsure which row a case bears on. With an unobserved child, it may be unsure which outcome within that row should receive credit. The network itself can supply probabilities for the alternatives, but those probabilities depend on the parameters that the learner is still trying to estimate. This dependence makes inference part of fitting.

The related work includes several ways of dealing with that problem. Laskey drew on learning methods for Boltzmann machines. Neal derived likelihood gradients for sigmoid and noisy-OR networks. Golmard and Mallet, and Kwoh and Gillies, studied gradients for more restricted graph structures using a squared-error criterion. The authors locate their own contribution in the factorization of the joint distribution. The derivative argument works with explicit tables on general Bayesian network graphs, and a chain rule extends it when the tables depend on other parameters.

The paper also discusses expectation maximization, or EM, as a way to maximize likelihood with missing data. In a network with explicit tables, its expectation step uses the same posterior probabilities over a child and its parents that APN needs. Its maximization step uses those probabilities as expected counts and updates the rows. With shared or otherwise constrained parameters, that second step can itself become an optimization problem. The paper describes prior work that combines EM and conjugate-gradient optimization, and leaves open how the latter compares with EM as a general choice for these networks.

### The method, step by step

#### Represent each variable through its parents

Consider a case in which a patient’s X-ray result is observed, along with some other findings, but the underlying disease is unknown. A current network can assign probabilities to the possible disease states in that case. It can also assign probabilities to combinations of a disease state and the values of variables that directly influence it. APN uses the second kind of inference because a conditional table entry describes exactly such a combination. A probability for the disease alone does not specify which row of its table is involved.

To see why this calculation is enough, start with a record in which all the variables are known. The probability of that record is a product. Each variable supplies the factor for its observed value under its observed parent assignment.

```
P(x₁, …, xₙ) = ∏ᵢ P(xᵢ | Parents(Xᵢ))
```

Here P denotes probability, Xᵢ is the variable at node i, and xᵢ is the value assigned to it in the record. The indices run over the n variables. Parents(Xᵢ) on the right stands for the values assigned in the same record to the parents of Xᵢ. The vertical bar means conditioning, and ∏ multiplies the indicated local probabilities. A node with no parents contributes its unconditional probability.

For an explicit conditional probability table, or CPT, the entries are the adjustable quantities. The paper indexes each entry by the node, one of its possible values, and a configuration of its parents.

```
wᵢⱼₖ ≡ P(Xᵢ = xᵢⱼ | Uᵢ = uᵢₖ)
```

The symbol ≡ defines wᵢⱼₖ. The index i selects the node Xᵢ, j selects its value xᵢⱼ, and k selects the joint assignment uᵢₖ to the parent variables Uᵢ. The vector w contains all such entries. For a fixed i and k, varying j gives the probabilities in one row. These entries must be non-negative and sum to 1.

A case with missing values has many possible complete assignments. Its probability is the sum of the probabilities of the assignments that agree with the observations. If the disease is missing, for example, both disease states can contribute to the probability of the recorded findings. The parameter update should reflect how probable those alternatives are under the current network, given the evidence in that case.

Fitting an adaptive probabilistic network The steps in order.

#### Turn the probability of the data into an objective

The authors assume that the training cases are independent draws. The observations within a case can be dependent, as the graph describes. The assumption concerns how different cases were generated. The probability of the training set under the current network is therefore the product of the individual case probabilities. Taking the natural logarithm makes the product a sum and preserves the parameter settings that maximize it.

```
ln P_w(D) = ∑ₗ₌₁ᵐ ln P_w(Dₗ)
```

Here D is the training set, Dₗ is its case indexed by l, and m is the number of cases. P_w means probability under the network with parameters w. The natural logarithm is written ln, and ∑ adds the contributions across cases. Each Dₗ specifies only the variables recorded in that case. The remaining variables are summed out when calculating its probability.

The basic objective is maximum likelihood. The paper motivates it by treating parameter settings as equally likely in advance. The graph still supplies substantial prior knowledge by restricting which distributions can be expressed, even without a preference for particular numerical settings within that graph. The authors distinguish this setup from maximum a posteriori fitting, which can express such preferences.

```
P_w(D) P(w)
```

In this alternative objective, P_w(D) is the likelihood and P(w) is the prior over parameter settings w. Maximizing the product chooses a setting by both criteria. The paper also distinguishes this from a full Bayesian treatment, which would account for uncertainty about w when predicting by integrating predictions over the posterior distribution of w. The main derivation learns a single parameter setting.

The gradient records how rapidly the objective changes as each parameter changes. Since the log likelihood is additive, a parameter’s derivative can be found by summing case derivatives. Applying the derivative of the logarithm separates each term into a change in the probability of the evidence and the probability itself.

```
∂ ln P_w(D) / ∂wᵢⱼₖ = ∑ₗ₌₁ᵐ [∂P_w(Dₗ) / ∂wᵢⱼₖ] / P_w(Dₗ)
```

The symbol ∂ denotes partial differentiation. On the left, wᵢⱼₖ is the entry whose effect is being measured. On the right, the numerator is the derivative of the probability assigned to case Dₗ, and the denominator is that case’s probability. The sum runs over all m cases. These derivatives are calculated before correcting for the fact that table entries in the same row have to move together.

#### Recover the derivative from a posterior

Focus on one entry in one local table. In the expansion of a case probability into complete assignments, a term contains that entry exactly when the assignment gives the specified value to the child and the specified values to its parents. Each such term contains the entry as a single factor. With the other entries held fixed for differentiation, the derivative retains just those terms and removes the factor from each of them.

The sum of the retained terms, before removing the factor, is the joint probability of the observed case and the specified child and parent values. Dividing by the case probability turns it into a posterior probability. Dividing by the table entry removes the factor whose effect is being measured. This gives the central formula for a positive table entry and evidence with positive probability.

```
∂ ln P_w(Dₗ) / ∂wᵢⱼₖ = P_w(Xᵢ = xᵢⱼ, Uᵢ = uᵢₖ | Dₗ) / wᵢⱼₖ
```

The numerator on the right is the posterior probability of the entire local configuration, meaning the probability after conditioning on the observations Dₗ. Xᵢ and Uᵢ identify the child and its parents, and xᵢⱼ and uᵢₖ are the assignments associated with the entry wᵢⱼₖ. The left side is the contribution from this case to the derivative of the log likelihood with respect to that entry.

A fully observed case places all its posterior mass on the child and parent values it records. For an incomplete case, several entries may receive contributions from the same record. Observations elsewhere in the graph can affect the posterior weight of each local configuration. This explains the sense in which the gradient computation is local. Once inference has incorporated the evidence, the node needs only the joint posterior for itself and its parents and the relevant entry in its own table. Obtaining that posterior may require calculations across the graph.

Clustering methods for exact inference supply the required information in a particularly direct form. They group variables into sets called cliques and compute posterior distributions for those sets. A child and all of its parents appear together in a clique. Summing out the other members gives the required posterior. The authors used the Hugin package, which implements clustering-based inference, for most of their inference calculations.

The authors also describe using approximate inference. Likelihood weighting and other stochastic simulation procedures can supply estimates of the probabilities needed for the gradient. The paper suggests using rough estimates early in optimization and spending more computation on inference as the parameters approach a maximum. This is a proposed way to manage computation. The main learning curves measure prediction at different training sizes.

#### Update the probabilities within their constraints

An unconstrained gradient step would move each table entry independently and could change the total probability in a row. The paper’s basic update projects the gradient onto the surface on which each row sums to 1. Within a row, the gradient component shared equally among all entries points perpendicular to that surface. Subtracting the row’s average component leaves a direction whose components add to zero.

```
g̃ᵢⱼₖ = gᵢⱼₖ − (1/J) ∑ⱼ′ gᵢⱼ′ₖ
```

Here gᵢⱼₖ is the unprojected derivative of the training log likelihood for entry wᵢⱼₖ, and g̃ᵢⱼₖ is its projected counterpart. The node i and parent assignment k are fixed. The index j′ runs over the J possible child values, so the second term is the mean of the derivatives in that row. Subtracting that mean preserves the total probability when taking a step along the projected vector. The step must also keep each entry in the allowed interval.

```
w ← w + αg̃
```

The arrow means replacing the current parameter vector w. The vector g̃ collects the projected derivatives, and α is the step size. This is the simple gradient-ascent version of APN. In the basic algorithm, iterations stop when the projected update becomes negligible. In the experiments, the authors use an adaptation of conjugate-gradient optimization with repeated searches along chosen directions, the Polak–Ribière rule for determining those directions, and a heuristic stopping condition. The optimization is adapted to keep the probabilities in range.

The paper also gives a way to encode the probability constraints in the parameters themselves. In this version the learner adjusts auxiliary variables, and the probabilities are calculated from them.

```
wᵢⱼₖ = βᵢⱼₖ² / ∑ⱼ′ βᵢⱼ′ₖ²
```

The auxiliary parameter βᵢⱼₖ controls the probability for child value j in row k at node i. The denominator adds the squared auxiliary parameters over all child values j′ in that row. Provided the row’s denominator is positive, the result is non-negative and the probabilities sum to 1. The paper also mentions softmax, which uses exponentials of the auxiliary parameters in place of the squares. In either case the derivative with respect to the actual adjustable parameters follows by differentiating through the mapping.

#### Learn parameters that govern several probabilities

An explicit table gives each row its own probabilities. The authors’ extension treats those probabilities as outputs of a function of a parameter vector. A parameter can affect many entries in a table or can be used by several nodes. Repeated instances of a clinical test, for example, can use the same probabilities even when their outcomes differ. Learning then needs to account for evidence from every use of a shared parameter.

```
∂ ln P_w(D) / ∂λₚ = ∑ᵢ,ⱼ,ₖ (∂ ln P_w(D) / ∂wᵢⱼₖ)(∂wᵢⱼₖ / ∂λₚ)
```

The vector λ contains the parameters that can be adjusted, and λₚ is the one indexed by p. Each wᵢⱼₖ is now a differentiable function of λ. The first factor in each summand is the derivative with respect to the corresponding CPT entry, calculated using the child and parent posterior. The second factor measures how changing λₚ changes that entry. The sum includes all indices i, j and k, but unaffected entries contribute zero.

The chain rule keeps inference and the design of the local distribution separate. Changing from one family of conditional distributions to another changes how the entries and their derivatives are computed. The inference procedure still supplies the posterior probability of each relevant configuration. When the parameterization already produces valid rows, the separate projection used for explicit entries is unnecessary. Any constraints on the new parameters themselves still matter.

#### Use noisy-OR to relate rows in a conditional table

A noisy-OR node represents an effect that can be produced by any of several causes. In the paper’s example, cold, flu and malaria can each cause fever. A present cause can fail to produce the effect. The failure associated with one cause is assumed independent of the failures associated with the others. With no leak term, the listed causes are assumed to account for every occurrence of the effect. A leak can represent causes outside the list.

For the example, cold alone produces fever with probability 0.4, flu alone with probability 0.8, and malaria alone with probability 0.9. The associated failure probabilities are 0.6, 0.2 and 0.1. When flu and malaria are both present and cold is absent, the probability of no fever is 0.02, because both present causes must fail. The probability of fever in that row is 0.98. Those rows share their parameters with the rows for each cause in isolation.

```
wᵢⱼₖ = { ∏ₚ∈Tᵢₖ qᵢₚ      if xᵢⱼ = F
         { 1 − ∏ₚ∈Tᵢₖ qᵢₚ  if xᵢⱼ = T
```

Here Xᵢ is the binary effect, xᵢⱼ is its selected value, and F and T denote false and true. The set Tᵢₖ contains the parents that are true in parent assignment k. The index p identifies a parent, and qᵢₚ is the probability that this parent, when it is the sole active cause, fails to produce the effect. The product ∏ multiplies the failure probabilities of the active parents. Its value for an empty set is 1, giving certainty to the false outcome when no cause is active.

The derivative is equally local. An absent cause has no influence on that row. For a present cause, changing its failure probability changes the probability of no effect in proportion to the chance that all the other present causes fail.

```
∂wᵢⱼₖ / ∂qᵢₚ = { 0                       if p ∉ Tᵢₖ
                  { ∏ᵣ∈Tᵢₖ∖{p} qᵢᵣ        if p ∈ Tᵢₖ and xᵢⱼ = F
                  { −∏ᵣ∈Tᵢₖ∖{p} qᵢᵣ       if p ∈ Tᵢₖ and xᵢⱼ = T
```

The index r enumerates the active parents other than p, denoted by Tᵢₖ∖{p}, and qᵢᵣ is the failure probability for parent r. The symbol ∉ means the parent is absent from the active set. The derivative changes sign between F and T because the probabilities are complementary. Inserting these derivatives into the chain rule allows APN to adjust the failure probabilities directly. Other nodes can still use explicit tables or different conditional distributions.

#### Reuse the same parameters across time

A dynamic probabilistic network represents a process as a sequence of time slices. A slice contains variables for the state at that time and for observations the state can produce. The state evolution probabilities describe how the process moves forward. The sensor probabilities describe how observations arise from the state. Both can be expressed with local conditional distributions even when the overall state and observation each have several components.

The paper considers the usual assumption that the relevant local probabilities stay the same over time. The variables describe different events in different slices, but copies of the same conditional distribution have a common parameter.

```
wᵢⱼₖₜ = λᵢⱼₖ for all t
```

Here t is a time-slice index, and wᵢⱼₖₜ is the conditional entry for variable type i, child value j and parent assignment k in that slice. The parameter λᵢⱼₖ is shared by all the instances of that entry. Inference can yield different posterior probabilities in different slices because the evidence differs.

```
∂ ln P_w(D) / ∂λᵢⱼₖ = ∑ₜ ∂ ln P_w(D) / ∂wᵢⱼₖₜ
```

The log likelihood ln P_w(D) is that of the training data under the network. The sum collects the derivative from each time slice t that uses the shared entry. The derivative of each linked entry with respect to λᵢⱼₖ is 1. Entries outside the group have derivative 0. The equation pools learning signals over time without assuming that the inferred states themselves are identical.

The contrast with a hidden Markov representation is about how a state is described. A hidden Markov network has a single state variable per time slice and a single variable for the observation. Its state values can enumerate combinations that a factored dynamic network represents with several variables. If each component interacts directly with few others, separate local tables can capture that pattern economically. By contrast, a state space where each state has few possible successors can be represented naturally by a sparse transition table. The paper uses a stochastic robot moving on a grid to illustrate this latter kind of sparsity.

In the paper’s scaling argument, n bits of state information require O(2ⁿ) states in the single-state representation. That representation can use O(2ⁿ) transition parameters with a constant number of successors per state, or O(2²ⁿ) in the dense case. A dynamic network with n state variables and a constant bound on the number of parents can use O(n) parameters in the locally structured case. The dense dynamic case can also require O(2²ⁿ). In this notation O denotes asymptotic order as n grows. The relevant feature is the pattern of dependencies, since the ability to split a state into components alone does not guarantee a small transition description.

#### Replace tables with densities for continuous variables

For a continuous child, a local factor is a conditional density. For a child with a continuous parent, the conditional distribution can depend on any value of that parent. The paper writes the local conditional factor as a function of a child value and a parent assignment, with a finite vector of parameters. A Gaussian distribution, for instance, can describe a continuous outcome through its mean and variance. The mean can vary with the values of the parents.

The analogy with the discrete gradient is to average a local derivative over possible child and parent configurations. Continuous values are integrated. Discrete values in a hybrid family are summed. For a parameter affecting one local family, the paper’s continuous expression is as follows.

```
∂ ln P_w(Dₗ) / ∂λₚ
  = ∫⋯∫ [p_w(x,u | Dₗ) / w_λ(x,u)] [∂w_λ(x,u) / ∂λₚ] dx du
```

Here x is a possible value of the child, u is a joint assignment to its parents, and λₚ is the parameter being adjusted. The function w_λ(x,u) gives the local conditional density of x given u. The function p_w(x,u | Dₗ) gives the joint posterior density of the family after observing case Dₗ. The integrals range over the continuous child and parent values, with dx and du indicating the variables of integration. The discrete counterpart uses posterior masses for the corresponding discrete values. The ratio and local derivative play the same roles as in the discrete chain-rule calculation. The paper obtains the expression by differentiating under the integral used to find the probability of the observations.

The conditional Gaussian example uses the price of fruit, the size of the crop, and whether a price support mechanism is in effect. Within either setting of the discrete support variable, the mean price is a linear function of the crop size. The slopes, intercepts and spreads can differ between the support settings. In the general form, the continuous parents are collected in a vector.

```
p(x | u,z) = [1 / (σ_z √(2π))] exp[−(1/2)((x − (a_z · u + b_z))/σ_z)²]
```

In this expression p is a conditional density, x is the child value, u is the vector of continuous parent values, and z is the assignment to the discrete parents. The vector a_z contains the slopes for that assignment, the dot denotes the scalar product, and b_z is the intercept. Together they give the conditional mean. The positive σ_z is the standard deviation, π is the circle constant, √ denotes a square root, and exp is the exponential function. In the fruit example the crop amount supplies the continuous parent value, and the support setting selects the coefficients.

The derivatives for the mean parameters have a simple form. The factor that enters the integral can be expressed using the residual, meaning the difference between the candidate child value and its conditional mean.

```
∂p(x | u,z) / ∂b_z = p(x | u,z) [x − (a_z · u + b_z)] / σ_z²
```

The derivative here is with respect to b_z, the intercept for discrete assignment z. Its right side is the density times the residual scaled by the variance σ_z². The values x and u and the slope vector a_z have the same meanings as in the conditional density. In the likelihood gradient the leading density cancels with the local density in the denominator, leaving the scaled residual to be averaged using the family posterior for the applicable discrete assignment.

```
∂p(x | u,z) / ∂a_zm = p(x | u,z) [x − (a_z · u + b_z)] u_m / σ_z²
```

Here a_zm is the slope associated with component m of the continuous parent vector for discrete assignment z, and u_m is the value of that component. The remaining symbols describe the same density, mean and variance as before. The extra parent value appears because changing a slope changes the mean by an amount that depends on the parent value. In the likelihood calculation this derivative also contributes only through the relevant discrete parent configuration.

#### Handle a continuous parent of a discrete outcome

Conditional Gaussian networks admit exact inference through an extension of clustering, but their restrictions exclude discrete children of continuous parents. The paper’s fruit example also has a purchase decision. Whether the consumer buys the fruit is discrete, while its price is continuous. A simple rule can give different purchase probabilities on either side of a price threshold.

```
P(Buys? = T | Price = x) = { q₁  if x ≤ a
                           { q₂  if x > a
```

Here T is the true value of the purchase indicator, x is the price, a is the threshold, and q₁ and q₂ are the purchase probabilities for the two price ranges. The symbols ≤ and > specify the ranges. The probabilities q₁ and q₂ can be varied smoothly with the threshold held fixed. Changing the threshold itself can switch a price from one branch to the other, so the paper’s differentiation procedure cannot directly adjust that parameter in the discontinuous rule.

A smooth response allows the probability of purchase to change gradually as price changes. The authors discuss sigmoid and probit choices. They interpret a probit rule through normally distributed variation in the buyer’s price comparison. Written for the outcome of declining to buy, the local probability is the cumulative probability of a normal distribution evaluated at the price.

```
w(F,x) = ∫₋∞ˣ N_μ,σ(x′) dx′
```

The notation w(F,x) denotes the probability of the false purchase outcome F at price x. The function N_μ,σ is a normal density with mean μ and standard deviation σ. The integration variable is x′, and the integral runs from negative infinity to x. The upper limit connects the price to the probability of the discrete outcome.

```
∂w(F,x) / ∂μ = −N_μ,σ(x)
```

The left side is the change in the false-outcome probability with respect to the normal mean μ, holding the price x and standard deviation σ fixed. The right side is the negative normal density at that price. Moving the mean upward reduces the cumulative probability at the fixed price. The derivative can be used in the chain rule in the same way as derivatives for the other local distributions.

Obtaining a local derivative and computing the complete likelihood gradient are separate tasks. A hybrid graph can make the posterior difficult to compute, and the posterior may offer no convenient expression to integrate. The paper proposes using stochastic simulation to approximate the posterior and to help approximate the integral using sampled assignments. It presents this as a way to extend the framework to more general combinations of variable types. The numerical behavior of that proposal remains an open part of the paper’s account.

### Experiments and results

#### What the experiments measure

The experiments study how prediction changes as the learner receives more training cases. The authors generate observations from a target network, then separate training data from test data. Because the generating network is known, they can train an APN with the same structure and compare it with learners that have fewer structural constraints. The training cases supply observed values instead of the generating probabilities. The test evaluates predictions about designated output variables given designated input evidence.

APN is fit as a joint distribution estimator. It can be queried with different choices of evidence and outputs, but the evaluation gives it a particular prediction task so that it can be compared with a feedforward neural network. The score is an average negative log likelihood for the output values that actually occurred, conditional on the inputs in each test case. This statistic, an estimate of conditional cross-entropy, evaluates probabilities rather than merely checking whether the most probable answer was correct. A method that puts very little probability on an observed output configuration receives a large error on that case.

```
Ĥ(D′,P_w) = −(1/m′) ∑ₗ₌₁ᵐ′ ln P_w(yₗ | eₗ)
```

Here D′ is the test set, m′ is its size, and l indexes test cases. The value eₗ denotes the observed inputs for case l, and yₗ denotes its observed output assignment. P_w(yₗ | eₗ) is the probability the learned network gives that output assignment given those inputs. The sum averages the negative natural logarithm across the test cases. Lower values indicate that the observed outputs received greater conditional probability on this measure.

```
H(P*,P_w) = −∑ₑ,ᵧ P*(e,y) ln P_w(y | e)
```

In this expression H is the population conditional cross-entropy, P* is the generating distribution, and P_w is the learned distribution. The symbols e and y are possible input and output assignments. The sum weights each negative log conditional probability by the chance P*(e,y) that the generating process produces the corresponding pair. The test statistic estimates this quantity from observed pairs.

When there are several output variables, the desired probability is for their joint assignment. The authors obtain it from a Bayesian network by applying the probability chain rule. Successive predictions can therefore condition on the earlier output values as well as the original evidence.

```
P_w(y | e) = ∏ᵢ P_w(yᵢ | e,y₁,…,yᵢ₋₁)
```

Here y is the complete output assignment and e is the input assignment. The index i runs through the output variables in a chosen order. The value yᵢ is the assigned value of output i, and y₁ through yᵢ₋₁ are the output values earlier in that order. The product combines the successive conditional probabilities into the joint prediction. The feedforward comparison approximates the joint probability by multiplying its separate output marginals. Its output groups use softmax so that the values in each group form a normalized distribution for the corresponding variable.

#### How the training comparisons were run

In the main methodology, training-set sizes ranged from 0 to 5000 cases. At a given size the authors drew 10 training sets, sampling with replacement from the training data. They tried five random parameter initializations for each set. The run selected for test evaluation was the one with the best predictions on the training set, and the reported curve averages over the training sets at each size. Trying multiple starts addresses sensitivity to initialization, which matters when hidden values make the likelihood surface difficult to optimize.

Both the APN and feedforward training procedures used an early stopping rule. The authors stopped tuning the parameters as soon as cross-entropy began to rise on the 10% of the available training data they used to measure it. The feedforward networks were trained with a cross-entropy update and used a separate indicator unit for each value of an input or output variable. The authors report several choices of hidden-layer size. They tried choosing that size by cross-validation, but found the computation too expensive under their evaluation procedure.

The comparisons answer two related questions. Training APN on two different graph structures keeps the learning framework in common and changes the assumptions it can use. Comparing APN with a feedforward network asks what happens when the available prior knowledge is represented differently and the prediction mechanisms also differ. The two comparisons therefore support different conclusions about the source of any performance gap.

#### A hidden node in a small generating network

The first target is the network the authors call 3–1–3. Its hidden variable has two values, and the observable variables have three values each. Its observable-only counterpart, called 3–3, is constructed through arc reversal and removal of the hidden node. Both can express the observable distribution of the target. The 3–1–3 version retains the intermediate variable and needs fewer independent probabilities to do so.

Independent parameter counts for the small 3–1–3 generating network Keeping the hidden variable gives a more compact representation of the observable distribution.

**The numbers**

| System or setting | independent parameters |
| --- | --- |
| Observable-only 3–3 network | 708 |
| APN with the generating 3–1–3 graph (this paper) | 45 |

The prediction curves favor the APN that retains the hidden node. The authors also train 9–N–9 feedforward networks with N set to 1, 3, 5 or 10. Here N is the number of units in the hidden layer, and the other two positions describe the input and output widths. The plotted comparison shows the settings with 1, 3 and 5 hidden units. The network with 1 hidden unit reaches a relatively high error quickly. The larger hidden layers converge more slowly. The APN with the generating graph performs somewhat better than the neural networks in this comparison. The authors suggest that its ability to represent correlations among outputs helps explain the difference.

The important comparison is between the two APNs. Both receive observations from the same target and use the same kind of probabilistic learning. With the generating graph, the learner estimates the relationships around a shared hidden variable. With the observable-only graph, it must recover the same visible patterns using a larger collection of table entries. The parameter counts quantify the change in representation. The learning curves show the accompanying difference in held-out prediction as evidence accumulates.

#### A larger network for car-insurance risk

The second target describes insurance risk. It has 27 nodes, only 15 of which are observable, and over 1400 parameters. Three observable variables are designated as outputs. The models compared include feedforward neural networks and two APNs, one using the generating graph and one using a 12–3 structure similar to the small observable-only alternative. The insurance figure shows feedforward hidden layers of size 1, 5 and 10.

The authors report that the APN using the generating structure reaches a test cross-entropy of about 2.0 after about 500 training cases. They put the requirement for the 12–3 APN at roughly 200,000 cases to reach the same level. The latter is an approximate requirement stated in their discussion. The training-set range described for the main experimental methodology extends to 5000 cases, so the larger figure should be read with that distinction in mind.

Approximate training cases to reach test cross-entropy of about 2.0 on generated insurance data The generating graph reduces the amount of data the APN needs to reach the reported prediction error.

**The numbers**

| System or setting | training cases |
| --- | --- |
| APN with the 12–3 graph | 200,000 |
| APN with the generating graph (this paper) | 500 |

For the reported hidden-layer settings, the feedforward networks rapidly reach a conditional cross-entropy error of about 2.2 on the insurance prediction task. Their error decreases slowly after that. The authors describe similar behavior for pruned decision trees and nearest-neighbor learning. Their interpretation is that these methods pick up the dominant regularity that most people never make a claim, but make slower progress on the more intricate patterns. The APN given the generating structure has a direct way to express the dependencies behind those patterns and reaches a lower error with fewer observations.

The insurance result supplies a measure of learning in cases, rather than simply a measure of how large the graph is. The cross-entropy values also make clear what improved. The learner assigned greater joint conditional probability to the held-out output configurations. The experiment does not translate the cross-entropy into a classification accuracy or a measure of the financial quality of insurance decisions.

#### Smaller conditional distributions and factored state

The noisy-OR experiment generates observations from a graph in which nodes with multiple parents use noisy-OR conditional distributions. One learner is given that form, and the other uses ordinary conditional tables. Both use APN. The comparison asks about the benefit of knowing how different rows of the local distributions are related, on top of knowing which parents affect each node.

Parameter counts on the generated noisy-OR network The noisy-OR representation shares parameters across parent configurations and needs fewer adjustable quantities.

**The numbers**

| System or setting | parameters |
| --- | --- |
| APN with explicit conditional tables | 59 |
| APN with noisy-OR distributions (this paper) | 22 |

The paper reports faster learning of the output predictions for the noisy-OR representation. The parameter counts explain the concrete difference in the estimation task. The explicit-table version can represent the generating distribution but has to learn probabilities separately across parent configurations. The noisy-OR version receives their relationship as an assumption. The prediction figure compares test cross-entropy over observed cases, while the parameter counts compare the size of the representations.

For the dynamic experiment, the generating network describes an abstract version of DNA splicing. The comparison is with a hidden Markov representation containing 32 possible hidden states and 8 possible observation values. Both networks are trained using APN with shared parameters across time. The generating structure represents state and observation in terms of components and gives the learner the local dependency pattern among them. The hidden Markov alternative groups the components into values of a single state and a single observation variable.

The output-prediction curves favor the structured dynamic network as the number of observations grows. This extends the empirical pattern to a temporal setting. Reusing parameters across time is common to the two representations being compared. The advantage reported for the generating structure concerns the additional decomposition of the transition and observation probabilities within that shared temporal scheme.

### What the ablations show

#### Keeping the same learning rule while changing the graph

The two APN comparisons in the small and insurance experiments are the closest tests of the paper’s main structural claim. The small comparison is especially informative because the observable-only graph comes from eliminating the hidden node while preserving the observable distribution. It can describe the target distribution. Its disadvantage is that it must search within a broader set of distributions with more independently adjustable entries. The corresponding comparison in the insurance experiment shows how pronounced the sample difference can become when the generating process has considerably more local structure.

These results support keeping a hidden variable when it provides a well-chosen description of dependence. In the small experiment, evidence concerning some observable variables can help estimate probabilities associated with the shared intermediate variable, which also governs other observables. The larger representation can express the eventual relationship directly. It has less information about how evidence for one pattern should constrain estimates elsewhere. The controlled change is therefore more specific than adding or removing a hidden unit. It changes the relationship among the probabilities the learner has to estimate.

#### Separating graph knowledge from table knowledge

The noisy-OR comparison leaves the graph in place and removes information about the form of certain tables. This isolates a different kind of prior knowledge. The shared failure probabilities let observations from one set of active causes inform predictions for another set. A full table can fit those configurations independently, so it must get more of that information from the records. The learning curves show the value of sharing when the generating mechanism obeys the assumed form.

The experiment does not isolate individual noisy-OR assumptions. Independent inhibition and reliable coverage of causes enter the representation together. The outcome therefore supports the usefulness of the specified family for this target. It gives no separate estimate for how the learner would fare if causes interacted, if unrepresented causes mattered, or if the chosen leak mechanism were inadequate.

#### Factoring a hidden state

The temporal comparison preserves the idea that the same process recurs across time and varies the state representation. The hidden Markov alternative can enumerate the combinations present in the factored network. The factored representation instead builds the transition probabilities from local influences. The comparison supports the authors’ argument that enumerating state values can obscure regularities that are simple when expressed separately for the state components.

The paper’s analysis of sparse transitions qualifies the interpretation of that result. A process with few possible successors per state can have an economical hidden Markov representation. The more relevant distinction in the experiment is that the generating dependencies are sparse in their component representation. Choosing a factorization that captures that sparsity changes the number and organization of the probabilities to be learned.

#### What the feedforward comparisons isolate

Varying hidden-layer width shows how the selected feedforward system responds to capacity. In the small experiment, the narrow setting reaches a relatively high error quickly and the larger settings learn more slowly. In the insurance experiment, the tested widths behave similarly around the early drop in error. These findings help characterize the baselines. They do not supply a controlled comparison of equally informed learners, since a choice of layer width does not give the feedforward network the target graph.

The output representation also differs. APN evaluates a joint probability that can reflect correlations among the outputs. The feedforward score combines separately predicted marginals. The authors suggest this difference contributes to APN’s advantage in the small experiment. The paper does not vary the ability to represent output dependence in isolation, so that explanation remains an interpretation. The APN-to-APN graph comparisons more directly connect the outcome to the prior structure.

### Limitations

#### Limits stated by the authors

The authors study parameter learning with a fixed graph and fixed variable domains. In particular, the learner is already told that the hidden variables exist and what values they can take. Choosing how many hidden states to include, inventing a missing variable, or deciding which arrows belong in the graph would require a search over structures. The authors discuss APN as a possible fitting step within that broader search. Their experiments do not evaluate such a system.

They also distinguish local optimization from finding the best parameter setting globally. The gradient describes the direction of improvement near the current parameters, and the conjugate-gradient implementation uses a heuristic stopping condition. Multiple random starts provide several opportunities to find a good solution, with training performance guiding the choice. The paper leaves the general comparison between conjugate-gradient optimization and EM unresolved. In particular, the fact that they can use the same posterior information says little by itself about which will reach a given fit in less time.

Exact inference can be expensive. The local gradient formula depends on a posterior supplied by the inference engine, and exact inference in general Bayesian networks is computationally hard. The locality result explains what the parameter update needs once inference has been done. It does not remove the work of obtaining that posterior. The paper focuses on how prediction varies with the number of training cases and leaves the computational costs of different inference and optimization choices for future study.

The continuous extension has its own restrictions. Exact inference is available in the conditional Gaussian class discussed by the authors, where the allowed parent and child relationships are restricted. More general hybrid networks present both an inference problem and an integration problem. The authors propose stochastic simulation to address them and say that their expectation about the quality of the numerical integration still needs verification. The discrete, noisy-OR and temporal experiments do not provide evidence of the same quality for that extension.

The paper also acknowledges the imbalance in the feedforward comparison. The structured APN receives prior knowledge embodied in the graph. The baseline has no equivalent encoding of that knowledge. The authors consider whether a similarly arranged feedforward network would help and discuss obstacles involving the meaning of its dependencies and which units can receive evidence. Those arguments explain why copying the shape of the graph would not automatically make the two systems comparable. The experiments leave the performance of an appropriately informed alternative open.

#### Limits visible in the experimental setup

The targets generate the evaluation data. This makes the experiments particularly suited to asking how much a known structure helps when it describes the underlying process. An expert-supplied graph in practice can be incomplete or can assert conditional independences that fail. The reported curves do not measure sensitivity to incorrect arrows, an unsuitable set of hidden variables, or errors in the conditional parameterization. The sample savings depend on the restrictions preserving enough of the relationships that matter for the task.

This also limits what the paper establishes about car insurance and the temporal example. The car-insurance experiment uses records generated by the insurance network, while the dynamic experiment uses a network for an abstract splicing process. The numbers quantify prediction under those generators. The study reports neither performance on a collection of actual policyholder records nor performance on an observational splicing task. The examples show how domain-shaped representations behave in controlled comparisons.

The prediction measure evaluates observable outcomes. A network can predict them well without recovering every generating parameter or identifying a unique interpretation for its hidden states. The experiments ask whether the structure helps a learner assign better probabilities to selected outputs as data accumulate. They do not test whether inferred hidden values match the generating values, or whether similar observable performance can arise from distinct internal parameter settings.

There is also a difference between the fitting objective and the test objective. APN uses the likelihood of the observed training configurations, while the reported test score conditions on designated inputs and evaluates designated outputs. The authors note that joint distribution fitting can require estimating probabilities a conditional predictor would not need. Conversely, the comparison neural network scores joint outcomes through a product of marginal predictions. The experiment establishes how these particular procedures perform on the chosen score, with both distinctions in place.

Finally, the paper’s strongest evidence concerns learning curves for particular structures. A smaller representation can encode valuable constraints and can also exclude useful relationships if its assumptions are wrong. The experiments demonstrate the former under data-generating structures the authors specify. They do not by themselves establish a general quantitative rule connecting the number of parameters, the complexity of inference, and the number of cases needed to reach a chosen prediction error.

### What came after

The paper closes with several research directions that its experiments leave open. One is to analyze sample complexity theoretically, asking how the amount of data needed for a given quality of prediction depends on the class of networks. The authors point to work by Friedman and Yakhini and by Dasgupta as early results on that question, and describe extensions to dynamic and continuous networks as in progress. Those studies address a different question from reading a training requirement off a particular learning curve.

Another direction is to learn when only part of the graph is known. The authors suggest fitting the parameters of each structural candidate with APN. They connect that possibility to work by Friedman and Goldszmidt on local structure in conditional distributions. In the account given here, such structure can change the penalty for adding an arc because a new parent need not require another full expansion of a conditional table. This connects the parameterization choices studied in the paper with a broader problem of choosing the graph itself.

The authors also point to preliminary work by Koller and Pfeffer on fitting parameters for first-order probabilistic rules. The connection is that a compact rule representation can govern many individual distributions, giving a learner shared quantities to estimate. That extends the motivation for tying parameters across time or across conditional-table rows. These connections describe work the authors discuss and questions they leave open at publication. An account of subsequent papers that took up the APN method is unavailable.

## Cite

Cite as John Binder, Daphne Koller, Stuart Russell and Keiji Kanazawa. 1997. Adaptive Probabilistic Networks with Hidden Variables. Machine Learning.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1023/a:1007421730016](https://doi.org/10.1023/a:1007421730016)

```bibtex
@inproceedings{binder1997adaptive,
  title = {{Adaptive Probabilistic Networks with Hidden Variables}},
  author = {John Binder, Daphne Koller, Stuart Russell and Keiji Kanazawa},
  booktitle = {Machine Learning},
  year = {1997},
  doi = {10.1023/a:1007421730016},
  url = {https://doi.org/10.1023/a:1007421730016}
}
```

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