Bayesian Genetic Algorithm — Probabilistic model-guided evolutionary optimization

Decision Sciences
Introduced by
Pelikan, M., Goldberg, D. E., & Cantu-Paz, E.
Year
1999
Type
Evolutionary metaheuristic with Bayesian probabilistic model
Family
Simulation / optimization

What does it do?

This page describes the Bayesian Optimization Algorithm (BOA) of Pelikan, Goldberg and Cantu-Paz (1999), an Estimation of Distribution Algorithm (EDA), under the non-standard label "Bayesian Genetic Algorithm" (BGA).

Instead of crossover and mutation, each generation fits a Bayesian network to the selected high-fitness individuals and draws new offspring from that model. The network can represent dependencies among decision variables, which standard crossover and mutation do not model explicitly. Whether this helps over a simple GA depends on the problem.

The intuition behind the method

In a classical genetic algorithm, crossover recombines parent solutions without regard to how variables depend on one another, and it can separate variables that work well together. A Bayesian GA instead asks, after each selection step, which joint distribution over solutions best accounts for the top-ranked individuals. It fits a Bayesian network to those winners, encoding conditional dependencies among decision variables, and draws new candidates from that distribution. The search therefore follows the dependency structure seen in elite solutions rather than recombining them blindly. This is intended to help on problems with strong variable interactions, although whether the modelling cost pays off depends on the problem.

History

The Bayesian Optimization Algorithm (BOA) was introduced by Pelikan, Goldberg, and Cantu-Paz at GECCO 1999 and is the model-based method this page describes. BOA belongs to the family of Estimation of Distribution Algorithms (EDAs), which are covered in the 2002 edited volume by Larranaga and Lozano. "Bayesian Genetic Algorithm" is a non-standard label for this approach rather than the name used in the original literature.

When to use it

Consider this approach when decision variables interact strongly (epistasis), so that standard crossover may break useful combinations, when the problem has block-like structure such as scheduling, feature selection or configuration choices, and when evaluations are costly enough that spending effort on model learning is justified. The dependency model is intended for such problems, but its benefit over a simple GA is problem-dependent and should be checked empirically. Avoid it when the objective is separable or nearly so, because model learning then adds cost without a structural payoff. Avoid it also when the population must be small, since the network learner needs enough selected individuals to estimate dependencies, and when run time per generation is critical. If a simple GA or a gradient-based optimizer already performs well, there is little reason to switch.

Limitations and considerations

  • Learning a Bayesian network in every generation adds computation on top of evaluation and selection, so the cost per generation is higher than in a classical GA.
  • The model is only as good as the selected set: a small population gives poor estimates of both the dependency structure and the conditional probabilities.
  • Structure learning for Bayesian networks is computationally hard in general, so practical implementations use heuristic search that may not recover the true dependency graph.
  • If the objective contains no useful variable interactions, the modelling effort yields no search benefit.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models dependencies among variables explicitly, so offspring can keep combinations of variables that appear together in elite solutions instead of relying on crossover to preserve them by chance.
  • On epistatic problems, sampling from a joint model of elite solutions may reduce the disruption of useful variable combinations that blind crossover causes.
  • The learned network is an inspectable summary of which variable relationships characterise high-quality solutions.
  • Discrete, continuous and mixed variables can be handled by choosing a suitable network parameterisation, though each choice carries its own modelling assumptions.
  • The dependency structure is learned from the selected data rather than specified in advance, so the user does not have to encode the interaction structure by hand.

Applications

  • Combinatorial scheduling and resource allocation, where decisions interact
  • Feature selection when features are statistically dependent
  • Engineering design with coupled parameters, such as circuit or structural design
  • Hyperparameter tuning of machine learning pipelines when each evaluation is expensive
  • Supply chain configuration where decisions about nodes and capacities constrain one another

How it works

How it works

1

Generate an initial population of N candidate solutions uniformly at random (or using domain-specific seeding) over the decision-variable space. Evaluate each individual using the objective (fitness) function.

2

Score all individuals in the current population with the fitness function f(x) and rank them from best to worst. For minimization problems lower f(x) is better; for maximization problems higher f(x) is better.

3

Retain the top-k individuals, typically k = N/2, as the selected set S. This selection pressure directs the Bayesian model toward high-fitness regions of the search space.

4

Fit a Bayesian network B over S by learning the directed acyclic graph structure, for example by greedy search scored with BIC or MDL, and estimating the conditional probability tables. B encodes the dependencies among decision variables observed in the elite solutions. A BIC score has the form log-likelihood of S under the network minus a penalty proportional to the number of free parameters times log|S|.

5

Draw N new candidate solutions by ancestral sampling from the learned network B: visit variables in topological order and sample each variable from its conditional distribution given its already-sampled parents. Use the offspring to replace the old population or its non-selected portion, and evaluate their fitness.

6

Merge or replace the population, update the best-found solution, and check the stopping criteria: maximum number of generations, a fitness threshold, or convergence of the Bayesian model (for example, the learned edge set staying unchanged for several consecutive generations). If the criteria are not met, return to the evaluate step.

Common pitfalls

  • A population that is too small makes the learned network unreliable, and sampling from it can then converge to suboptimal regions.
  • Applying this method to a separable or nearly linear objective spends effort on model learning without improving the search.
  • A flexible scoring criterion with weak priors can overfit a small elite set, producing dependencies that do not reflect the fitness landscape and misleading the sampling.
  • Selection pressure needs balancing: too few elite individuals starve the model of data, while too many dilute the fitness signal the model is meant to capture.
  • Sampling from a model fitted to a narrow elite set can collapse diversity and cause premature convergence. Possible remedies are keeping a fraction of the old population or enforcing a minimum spread in the sampling distribution.

Frequently asked questions

How does a Bayesian Genetic Algorithm differ from a standard Genetic Algorithm?

A standard GA uses crossover and mutation operators that recombine solutions without regard to variable dependencies. The method described here (BOA, an EDA) replaces those operators with a Bayesian network learned from elite individuals, so offspring are sampled from a distribution that explicitly models how variables interact in high-quality solutions.

Is BGA the same as Bayesian optimization?

No. Bayesian optimization (BO) uses a surrogate model (e.g., a Gaussian process) of the fitness landscape to pick the next evaluation point via an acquisition function. Here "Bayesian" refers only to a Bayesian network model of the distribution of good solutions, not to Bayesian inference over the fitness function as in BO. The algorithm generates an entire population of new candidates per generation.

What population size is recommended for BGA?

No population-size rule is given here, so no value should be treated as standard. The population must be large enough that the network learner has enough selected individuals to estimate dependencies reliably. Problems with more decision variables generally need more data to learn the same dependency structure. As a qualitative check, compare the learned network structure across generations and runs; if it changes substantially, increase the population size.

Can BGA handle continuous variables?

Yes, with a suitable model class. Continuous variables can be modelled with conditional Gaussian or other mixed network types, or they can be discretized, which trades precision for modelling simplicity.

When does BGA fail to outperform a simple GA?

On separable or near-separable fitness landscapes (no meaningful variable interactions), the model-learning overhead produces no benefit and a well-tuned standard GA will be faster and equally accurate.

Related methods

Sources

  1. Pelikan, M., Goldberg, D. E., & Cantu-Paz, E. (1999). BOA: The Bayesian optimization algorithm. In Proceedings of the Genetic and Evolutionary Computation Conference (GECCO-1999), pp. 525–532. Morgan Kaufmann.

    Open publication reference
  2. Larranaga, P., & Lozano, J. A. (Eds.) (2002). Estimation of Distribution Algorithms: A New Tool for Evolutionary Computation. Kluwer Academic Publishers, Boston.

    ISBN: 9781461352747