Skip to Content

Data Perturbation

Context

Data Perturbation is a resampling method that helps Bayesian network structure-learning algorithms escape local minima. It learns a network from each of several perturbed data sets and returns the network with the lowest MDL Score on the original data.

  1. Perturbation. Use smoothed bootstrapping to change the weights of the observations.
  2. Learning. Learn a network structure from the reweighted data.
  3. MDL Computation. Score that structure using the original observation weights.
  4. Selection. Keep the lowest-scoring network across all runs.
Loading SVG...

For each observation, or particle, the algorithm multiplies its original weight wiw_i by a random factor π\pi to obtain its perturbed weight wfw_f.

wf=π wiw_f = \pi\,w_i

BayesiaLab draws the factor from a normal distribution N(1,σ2)\mathcal{N}(1,\sigma^2) centered on 1, with standard deviation σ\sigma, and limits it to the interval from 0 to 2. A factor of 0.5 halves an observation’s weight. A factor of 1.5 increases it by half. The weight stays the same on average. Larger values of σ\sigma produce stronger perturbations. If σ\sigma is too small throughout the search, the perturbed data sets will closely resemble the original.

The Perturbation Decay Factor gradually reduces σ\sigma from 1 toward the chosen Final Standard Deviation. Stronger perturbations early in the search can help the learner escape a local minimum. Weaker perturbations later support convergence. BayesiaLab can also vary the Structural Coefficient from run to run.

Structural Priors Learning uses the same idea to estimate arc-specific priors from a collection of learned networks. It then uses those priors to learn a network on the original data.

Settings

Open Menus > Learning > Meta Learning > Data Perturbation in Modeling Mode.

  • Learning algorithm and starting structure. Select the Learning Algorithm and its options. With Taboo, choose Delete All Arcs to start learning from disconnected nodes or Keep Structure to start from the current graph.
  • Number of tests. Number of Tests controls the multi-run loop. BayesiaLab learns one network per test.
  • Particle weights. Final Standard Deviation sets the amount of weight perturbation in the last test. Set it to 0 to use the original observation weights in that test.
  • Structural Coefficient. A value of 0 for Structural Coefficient Standard Deviation keeps the network’s Structural Coefficient fixed. A positive value lets it vary around the network’s coefficient. A smaller coefficient reduces the penalty for adding arcs. A larger coefficient increases it. Click the two-gear button to calculate bounds, or enter the Minimum Structural Coefficient and Maximum Structural Coefficient directly.
  • Reproducibility. Enable Fixed Seed and enter a seed to repeat the perturbations with the same data and settings.

Example

The Body Dimensions data set from Structural Priors Learning contains 91 records and 26 variables. The starting network below contains the discretized data and 26 disconnected nodes. It has no Classes, forbidden arcs, fixed arcs, or arc-specific structural priors. All nodes have the same temporal index, and the network’s Structural Coefficient is 1.

Body Dimensions.xbl
XBL

Baseline Model

Open the downloaded network and choose Menus > Learning > Unsupervised Structural Learning > Taboo. Leave both limits on parent and child nodes unchecked, and click OK.

Taboo settings with list size 101 and both node limits unchecked.

Taboo learns 21 arcs on the original data. The Console reports the score of the disconnected starting network and the score after learning.

Loading SVG...
Taboo learning: Delete All Arcs Taboo List Size: 101 Total Weight: 91 Initial MDL score: 3,678.761 Final MDL score: 3,377.145 Total learning time: 0s

Data Perturbation Settings

With the baseline network open, choose Menus > Learning > Meta Learning > Data Perturbation. Select Taboo with the same learning settings and choose Delete All Arcs. This gives each test the same disconnected starting structure as the baseline run.

Set Number of Tests to 100 and Final Standard Deviation to 0. Set Structural Coefficient Standard Deviation to 0.2, with a minimum of 0.5 and a maximum of 1.5. Enable Fixed Seed, enter 31, and click OK.

Data Perturbation with Taboo, Delete All Arcs, 100 tests, final deviation 0, coefficient deviation 0.2, coefficient bounds 0.5 and 1.5, and fixed seed 31.

Model After Data Perturbation

BayesiaLab returns a network with 19 arcs. Its MDL Score on the original data is 3,365.53, down from 3,377.145 for the baseline. The two figures use the same node positions.

Loading SVG...
Data perturbation learning: Number of Tests: 100, Final Standard Deviation: 0, Algorithm: Taboo, Structural Coefficient Standard Deviation: 0.2, Minimum SC: 0.5, Maximum SC: 1.5 Total Weight: 91 Initial MDL score: 3,678.761 Final MDL score: 3,365.53 Total learning time: 6s