GES Algorithm — Greedy Equivalence Search for Causal Discovery

Statistics
Introduced by
David Maxwell Chickering
Year
2002
Type
Score-based causal structure learning algorithm
Family
Causal discovery

What does it do?

Greedy Equivalence Search (GES) is a score-based algorithm for learning causal structure from observational data.

Introduced by David Maxwell Chickering in 2002, it searches over Markov equivalence classes of directed acyclic graphs (DAGs), which are represented as completed partially directed acyclic graphs (CPDAGs). Under causal sufficiency and causal faithfulness, GES is shown to recover the true equivalence class in the large-sample limit.

The intuition behind the method

Many different DAGs imply exactly the same conditional independencies, so the data can only identify a class of graphs, not a single one. GES works at this level: it scores candidate structures with a decomposable criterion and moves between equivalence classes rather than between individual DAGs. The search has two stages. A forward stage adds edges greedily while the score improves, which tends to include too many edges. A backward stage then removes edges greedily while the score improves, which can delete the spurious ones. The final result is reported as a CPDAG, which shows which edge orientations the data determine and which remain open.

History

GES was introduced by David Maxwell Chickering in 2002 in the Journal of Machine Learning Research, in the article 'Optimal structure identification with greedy search'. Its main idea is to search over equivalence classes of DAGs rather than individual DAGs.

When to use it

Use GES when you have observational data, can reasonably assume that no hidden common causes of the measured variables exist (causal sufficiency), and want a method with a consistency result for recovering the equivalence class. Choose a score that matches the data type: BDe for discrete data, and a linear-Gaussian BIC score for continuous data that is approximately Gaussian and linear. GES is less appropriate when hidden common causes are plausible, since FCI is designed for that case. It is also a poor fit when the number of variables is very large, because the space of graphs grows rapidly with the number of variables. For strongly non-Gaussian linear data, LiNGAM-based methods are often preferred.

Limitations and considerations

  • Causal sufficiency is assumed: unmeasured common causes or selection bias can produce incorrect edges and orientations.
  • The search is greedy, so with finite samples it can stop at a local optimum of the score rather than the global best graph.
  • Results depend on a correctly specified decomposable score; a score matched to the wrong distributional form, such as a linear-Gaussian BIC on strongly non-Gaussian data, can bias the recovered structure.
  • The faithfulness assumption can be violated in deterministic or near-deterministic systems, in which case some true edges may be omitted.

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

Strengths

  • Consistency result: under causal faithfulness and causal sufficiency, the output converges to the true Markov equivalence class as the sample size grows.
  • Score-based search does not chain many conditional independence test decisions, which is the source of the multiple-testing accumulation that constraint-based methods such as PC must manage.
  • The backward phase can remove edges added during the forward phase, so the final structure is not limited to the first set of additions.
  • The output is a CPDAG, which makes explicitly visible which edge orientations are identified from the data and which are not.

Applications

  • Reconstruction of gene regulatory networks from gene expression data.
  • Exploring causal relations among macroeconomic indicators in applied economic research.
  • Learning structural causal models from clinical and epidemiological records.
  • Benchmarking causal discovery algorithms on synthetic and real-world datasets.

How it works

How it works

1

Starting from the empty graph, GES proceeds in greedy steps. At each step it adds the single edge, moving between equivalence classes, whose insertion gives the largest increase in a decomposable score such as BIC or BDe. The phase stops when no single edge addition improves the score. The search is stepwise, not a global maximisation over all graphs, so the result is the outcome of a particular sequence of greedy choices and is not guaranteed to be the best-scoring graph for a given sample.

Formula
\hat{G}_1 = \arg\max_{G} \sum_{i} S(X_i, \mathrm{Pa}_G(X_i))
2

Starting from the graph produced by the forward phase, GES greedily removes the single edge whose deletion gives the largest score increase, again restricted to deletions that keep the graph within a valid equivalence class. The phase stops when no deletion improves the score. Like the forward phase, it is a stepwise search rather than a global optimisation. Its purpose is to remove edges that the forward phase added without sufficient support.

Formula
\hat{G}_2 = \arg\max_{G \subseteq \hat{G}_1} \sum_{i} S(X_i, \mathrm{Pa}_G(X_i))
3

After both phases, the final DAG is converted to its CPDAG representation with standard orientation rules. The CPDAG represents the whole Markov equivalence class: edges that are directed in it are the same across all DAGs in the class, while undirected edges are orientations the data do not determine.

Formula
\mathcal{C} = \mathrm{CPDAG}(\hat{G}_2)

Common pitfalls

  • Reading undirected edges in the CPDAG as associations without direction: an undirected edge means its orientation is not determined by the data, and the edge is still a causal link candidate.
  • Applying GES to data with plausible hidden common causes without switching to a latent-variable method such as FCI or an FCI-based GES variant.
  • Using the linear-Gaussian BIC score on non-Gaussian or nonlinear data without checking distributional assumptions; a nonlinear or non-Gaussian score variant should be considered in that case.
  • Treating the output from a single run on a small sample as a definitive causal graph; resampling-based checks such as bootstrap aggregation are advisable before drawing firm conclusions.

Frequently asked questions

How does GES differ from the PC algorithm?

Both target the same CPDAG output, but GES is score-based and PC is constraint-based, relying on conditional independence tests. Because GES does not chain many test decisions, its errors do not accumulate in the same way. Which performs better depends on the sample size, graph sparsity and data type, so neither is a general winner. Both are often compared as benchmarks in causal discovery studies.

Is GES guaranteed to find the globally optimal graph?

No. Under causal faithfulness and sufficiency, GES is shown to recover the correct Markov equivalence class asymptotically. In finite samples the greedy search can stop at a local optimum of the score, so an asymptotic guarantee does not imply that the output is the best graph for a given dataset.

Can GES handle non-Gaussian or non-linear data?

The classical GES uses a linear-Gaussian BIC score and is not consistent for non-linear or non-Gaussian data without modification. Extensions such as kernel-based score variants address this, usually at higher computational cost and with weaker theoretical guarantees. For strongly non-Gaussian linear data, LiNGAM-based methods are often preferred.

Related methods

Sources

  1. Chickering, D. M. (2002). Optimal structure identification with greedy search. Journal of Machine Learning Research, 3, 507–554.

    Open publication reference