Skip to Content

Structural Priors Learning

Context

Structural Priors Learning is a Meta-Learning algorithm that can be compared to Bagging. It is based on Data Perturbation (Smoothed Bootstrapping) for learning a bag of networks and gathering statistics about the relationships that have been found. These statistics are then used for automatically defining Structural Priors.

Once defined, the Structural Priors are used for learning a network on the original unperturbed data set. The resulting parent sets specify the factorization used to represent the data.

Loading SVG...

Example

The Body data set contains 91 records, one for each physically active individual. Its 26 variables include girth and skeletal diameter measurements, Age\mathit{Age}, Weight\mathit{Weight}, Height\mathit{Height}, Gender\mathit{Gender}, and BMI\mathit{BMI}.

Gender\mathit{Gender} is the only discrete variable. The import uses R²-GenOpt with three intervals and a minimum interval weight of 1% for each of the 25 continuous variables.

Loading SVG...
Click to Zoom

The example places Age\mathit{Age} and Gender\mathit{Gender} first in the temporal order. Set their Temporal Indices to 0 and all other indices to 1. This prevents variables in the later group from becoming parents of either node.

Edit Temporal Indices with Age and Gender set to 0 and the other 24 variables set to 1

For the Taboo runs below, we enforce both roots directly. Assign Age\mathit{Age} and Gender\mathit{Gender} to a class named Root\mathrm{Root}. In Edit Forbidden Arcs, add a rule from all nodes to that class to forbid incoming arcs.

Add Forbidden Arc with All Nodes as the start and the Root class as the end

Learning with Taboo

Start with the unconnected network and a Structural Coefficient of 1. Open Menus > Learning > Unsupervised Structural Learning > Taboo. Use a Taboo list size of 101 and leave the parent and child limits unchecked.

Taboo learning settings with a list size of 101 and both degree limits unchecked

The Console reports the MDL score before and after learning. Under the same scoring settings, a lower score indicates a better trade-off between fit and model complexity.

Use of Forbidden Arcs Total Weight: 91 Initial MDL score: 3,678.761 Final MDL score: 3,383.175

Taboo learns 21 arcs. Four nodes remain isolated along the bottom of the graph. We keep the nodes in the same positions throughout the example so you can compare the networks directly.

Loading SVG...
Click to Zoom

Perturbing the data

Open Menus > Learning > Meta Learning > Data Perturbation. Select Taboo and Delete All Arcs. Run 100 tests with a fixed seed of 31. Set both standard deviations to 0 to bring the perturbations back to the original data and keep the Structural Coefficient fixed at 1.

Data Perturbation with Taboo, Delete All Arcs, 100 tests, both standard deviations set to 0 and fixed seed 31
Initial MDL score: 3,678.761 Final MDL score: 3,361.557

At the same coefficient, perturbation finds a lower score and a network with 23 arcs. Weight\mathit{Weight} and BMI\mathit{BMI} are now both parents of Height\mathit{Height}. The same four nodes remain isolated.

Loading SVG...
Click to Zoom

Reading the Structural Coefficient Curve

With only 91 records, the MDL penalty can keep weak connections out of the network. To see how sensitive the structure is to that penalty, open Menus > Tools > Multi-Run > Structural Coefficient Analysis. Select Taboo and Delete All Arcs. Test 25 coefficients from 0.2 to 1 and enable both Compute Structure/Data Ratio and Compute Degree of Freedom Reduction Efficiency.

Structural Coefficient Analysis configured for 25 Taboo runs between 0.2 and 1 with both metrics enabled

The report shows which connections recur across those 25 runs. For example, Hip girth\mathit{Hip\ girth} and Thigh girth\mathit{Thigh\ girth} are connected in every run. The direction is Hip girth\mathit{Hip\ girth} → Thigh girth\mathit{Thigh\ girth} in 32% of runs and reversed in 68%. Click Curve in the lower-right corner.

Structural Coefficient Analysis report with arc frequencies, the two directions of the Hip girth–Thigh girth connection, and the Curve button

In the Structural Coefficient Curve window, select both metrics in the legend. The blue Structure/Data Ratio falls as the coefficient increases. The red df Reduction Efficiency rises. The vertical axis shows normalized values for each metric.

The analysis of these curves suggests using a Structural Coefficient of around 0.5.

Loading SVG...
Inspect the coefficient curve

Set Menus > Edit > Edit Structural Coefficient to 0.30 and repeat the 100-test Data Perturbation run. All 26 nodes now have at least one connection. The price of connecting the four isolated nodes is a much denser network. It has 41 arcs, and 17 nodes have two parents. With the global penalty changed, the new MDL scores are on a different scale.

Structural Complexity Influence: 0.3000 Use of Forbidden Arcs Total Weight: 91 Initial MDL score: 11,634.455 Final MDL score: 9,552.332
Loading SVG...
Click to Zoom

Learning arc-specific priors

Return to the unconnected network with both root constraints and a Structural Coefficient of 1. Open Menus > Learning > Meta Learning > Structural Priors Learning. Select Taboo, run 100 tests with a fixed seed of 31, and set the Structural Coefficient standard deviation to 1 with bounds of 0.2 and 1. Select Remove Current Structural Priors to begin with an empty set of priors.

Structural Priors Learning with Taboo, 100 tests, coefficient standard deviation 1, bounds 0.2 to 1, and fixed seed 31

BayesiaLab uses the perturbed networks to estimate a prior for each candidate arc, then learns a network on the original data using those priors. The Console reports the range and mean of the priors applied to arcs in the resulting network.

Initial MDL score: 3,678.761 Final MDL score: 3,118.625 Applied Structural Priors: min: 0.276 max: 0.994 mean: 0.638

The final network contains 24 arcs. Only three nodes have two parents, and the four nodes isolated at coefficient 1 remain isolated. With these data, the learned priors favor a smaller set of connections than the global coefficient of 0.30.

Loading SVG...
Click to Zoom

Inspecting the learned priors

Click the Structural Priors icon in the lower-right corner of the graph window. The editor lists all 296 learned priors. Its Check column helps explain which direction appears in the final network. The row for Waist girth\mathit{Waist\ girth} → Weight\mathit{Weight} has a red cross. The reverse direction, Weight\mathit{Weight} → Waist girth\mathit{Waist\ girth}, has a blue check and a prior of 0.428.

Edit Structural Priors showing the prior and Check columns for both directions between Waist girth and Weight

Click Preview to see the candidate connections together. Darker lines indicate stronger priors. Several faint lines reach the four nodes along the bottom, even though none of those nodes has an arc in the final network.

Structural Priors Preview showing strong and weak candidate connections across the perturbed networks

Click Store Priors on Arcs, confirm with OK, and turn on View > Show Arc Comments. The graph now shows one value for each retained arc. For example, Weight\mathit{Weight} → Waist girth\mathit{Waist\ girth} is labeled 0.4283, and Gender\mathit{Gender} → Biacromial diameter\mathit{Biacromial\ diameter} is labeled 0.9938. Open the figure to inspect the labels at 150% and pan across the network.

Loading SVG...
Inspect arc priors