Expert-Aided Causal Discovery of Ancestral Graphs

Tiago da Silva, Bruna Bazaluk, Eliezer de Souza da Silva, António Góis, Salem Lahlou, Dominik Heider, Samuel Kaski, Diego Mesquita, Adèle Helena Ribeiro

Causal discovery—the task of uncovering cause-and-effect relationships from data—is a cornerstone of scientific inquiry. However, real-world data is messy, often hiding "latent confounders" (unobserved variables that influence multiple observed ones). Most existing methods either ignore these hidden factors or provide a single, potentially unreliable "best guess" graph that ignores expert intuition.

A new paper, "Expert-Aided Causal Discovery of Ancestral Graphs," introduces Ancestral GFlowNet (AGFN), a framework that treats causal discovery as a probabilistic sampling problem. By combining reinforcement learning with a Bayesian model for noisy expert feedback, AGFN can navigate the astronomical space of possible causal structures to find models that are both statistically sound and aligned with human (or AI) expertise.

TL;DR

AGFN is the first probabilistic causal discovery algorithm that handles hidden variables (latent confounding) while integrating noisy, iterative feedback from experts or LLMs. By using Generative Flow Networks to sample from a distribution of Ancestral Graphs, it outperforms traditional baselines and converges to the true causal structure with only a handful of expert queries.

What Problem Does This Paper Address?

Most causal discovery (CD) algorithms operate under the "causal sufficiency" assumption—the belief that there are no unobserved common causes. In fields like biology or economics, this is rarely true. To handle hidden variables, researchers use Ancestral Graphs (AGs), which use directed edges for causation and bidirected edges to represent latent confounding.

However, the space of possible AGs is significantly larger than that of standard Directed Acyclic Graphs (DAGs). As shown in Figure 1, for just six variables, there are roughly 130 million possible AGs—two orders of magnitude more than DAGs.

Figure 1: Number of AGs and DAGs per #-nodes (log-scale).

Beyond the search space, existing methods usually produce a single point estimate, failing to capture uncertainty. They also struggle to incorporate "ex-post" knowledge—feedback provided by an expert after seeing initial results—especially when that feedback is noisy or conflicting.

Methods

The authors propose a two-pronged approach:

  1. Ancestral GFlowNet (AGFN): The core is a diversity-seeking reinforcement learning agent. Instead of searching for one "perfect" graph, AGFN learns a policy to generate graphs with a probability proportional to their "reward" (typically a goodness-of-fit score like the Bayesian Information Criterion). It builds graphs edge-by-edge, using a specialized masking process to ensure every generated graph is a valid AG (see Figure 2).
  2. Expert-in-the-Loop (EITL) Pipeline: The system doesn't just work in isolation. It iteratively queries an "expert" (which could be a human or a Large Language Model like GPT-4o).
  3. Active Elicitation: It uses Bayesian experimental design to ask the expert about the specific pair of variables that would most reduce the model's uncertainty.
  4. Noisy Feedback Aggregation: Recognizing that experts (and LLMs) aren't perfect, the authors use a Bayesian model to aggregate "better-than-random" feedback, updating the AGFN's sampling policy via log-pooling.
Figure 2: Generative process for AGs. We start at a (possibly edgeless) graph Go. At each state Gt, we update the relationship between a pair of variables in Gt and proceed to the next state (blue), until every pair- wise relation has been specified. We mask out invalid actions resulting in graphs that are not ancestral (red).

Datasets

The authors validated AGFN across several settings:

  • Synthetic Motifs: Small graphs representing standard causal structures like chains, colliders, and latent confounders (e.g., "chain4", "IV", "collfork").
  • DREAM3 Challenge: 10-node gene regulatory network (GRN) datasets (Yeast and E. coli).
  • Sachs Dataset: A classic 11-node protein signaling dataset. To test latent confounding, the authors marginalized (hid) certain variables to create a more challenging discovery environment.

Key Insights and Ideas

  • AGs as a "Coarser" Knowledge Base: The authors argue that AGs are more practical for human experts. It is often easier for a scientist to say "A eventually causes B" (ancestrality) than to specify if that cause is direct or mediated by a specific hidden factor.
  • LLMs as Noisy Experts: The paper demonstrates that LLMs can serve as effective expert surrogates. While a single LLM prompt might be wrong, treating the LLM as a noisy sensor and aggregating multiple samples allows the system to filter out hallucinations and converge on the truth.
  • Active Querying Saves Money: By specifically asking about variable pairs that minimize expected entropy, the system reaches high accuracy much faster than random querying—a vital feature when human experts are expensive or LLM APIs have high costs.

Key Results

  • Superior Accuracy: AGFN consistently achieved lower Structural Hamming Distance (SHD) to the ground truth compared to strong baselines like FCI, GFCI, and DCD.
  • Efficiency: In the Sachs dataset experiments, AGFN significantly outperformed baselines after receiving fewer than four expert responses.
  • Better Fit: On the DREAM3 biological datasets, AGFN found graphs with better (lower) BIC scores than all considered baselines, proving its effectiveness in identifying high-likelihood structures in complex domains.
Figure 3: EITL probabilistic CD under latent confounding. We iteratively (i) probe an expert (Q) on the nature of the relationship between a chosen pair of variables (counterclockwise: (1, 2), (2, 3) and (3, 1)) and (ii) update our model based on the provided response (A). Histograms show marginals over edge types (∅, →, ←, ↔) throughout this refinement process (green denotes ground truth). Remarkably, our belief distribution over AGs becomes increasingly concentrated on the true AG, 1 →2 ↔3, as shown in the bottom-right graph.

Limitations and Future Work

While AGFN is a major step forward, the authors note several areas for improvement:

  • Retraining Requirements: Currently, the AGFN must be retrained for each new dataset. Developing "foundation models" for causal discovery that can generalize across datasets is a promising next step.
  • LLM Bias: There is a risk that LLMs might provide biased answers based on their training data (data leakage), potentially leading the discovery process astray if the underlying data contradicts the LLM's "prior."
  • Scalability: While AGFN handled 25-node graphs (exceeding prior GFlowNet work), scaling to hundreds or thousands of variables remains a significant computational challenge.

For those interested in exploring the intersection of RL, causality, and human-AI collaboration, the authors have released their code in a public GitHub repository.

Summary updated

BibTeX
@article{silva2026expert,
  author = {Tiago da Silva and Bruna Bazaluk and Eliezer de Souza da Silva and António Góis and Salem Lahlou and Dominik Heider and Samuel Kaski and Diego Mesquita and Adèle Helena Ribeiro},
  title = {{Expert-Aided Causal Discovery of Ancestral Graphs}},
  journal = {Information Sciences},
  year = {2026},
  doi = {10.1016/j.ins.2026.123816},
}
Figure