Expert-Aided Causal Discovery of Ancestral Graphs

Tiago da Silva, Eliezer Silva, Adèle Ribeiro, António Góis, Dominik Heider, Samuel Kaski, Diego Mesquita, Mesquita, Diego, Ribeiro, Adèle Helena · DOI

Abstract

Causal discovery (CD) is an important component of many scientific applications, yet most techniques produce unreliable point estimates that often contradict expert knowledge. To mitigate this, recent research has focused on ex-ante incorporation of background knowledge into the CD process, typically under an unrealistic causal sufficiency assumption. When probing experts is costly (e.g., hidden behind expensive LLM APIs), however, ex-post model refinement that maximizes query utility is preferable. Also, when independent experts provide conflicting but better-than-random feedback, a principled aggregation method is required. In this context, we introduce the first CD algorithm that enables (i) distributional inference over ancestral graphs (AGs), which represent causal systems under latent confounding, and (ii) integration of both ex-ante and uncertain ex-post expert knowledge. Briefly, our method is a diversity-seeking reinforcement learning algorithm, termed Ancestral GFlowNet (AGFN), whose policy we iteratively refine based on a Bayesian model of the noisy expert feedback. Importantly, we prove convergence to the true AG given sufficiently accurate responses. Through validation on synthetic and realistic datasets using simulated humans and LLMs, we show AGFN is competitive with or superior to strong baselines in terms of structural Hamming distance and Bayesian Information Criterion.

Introduction

Causal discovery—the task of inferring cause-and-effect relationships from observational data—is notoriously difficult. When data is scarce, algorithms often hallucinate connections or miss real ones, a problem exacerbated by "latent confounders" (unobserved variables that influence multiple observed ones). Most existing tools provide a single "best guess" without any measure of uncertainty, leaving researchers in the dark about how much to trust the results.

Traditional causal discovery (CD) algorithms are often brittle. If a dataset is small, statistical noise can lead to "faithfulness violations," where the algorithm incorrectly identifies independence between variables. Furthermore, most methods assume "causal sufficiency"—that there are no hidden variables—which is rarely true in the real world. While some methods use Ancestral Graphs (AGs) to represent these hidden confounders, they typically lack robust uncertainty quantification.

Methodology: Ancestral GFlowNets (AGFN)

To address these challenges, we introduce Ancestral GFlowNets (AGFNs). This framework combines three powerful ideas: Generative Flow Networks, uncertainty quantification, and active expert elicitation.

Instead of using traditional MCMC (which can get stuck in local modes), AGFN uses Generative Flow Networks (GFlowNets). The algorithm learns to build graphs edge-by-edge such that the probability of sampling a specific graph is proportional to its "reward," typically a score like the Bayesian Information Criterion (BIC).

The generative process of building an Ancestral Graph using GFlowNets, showing transitions between graph states.

Active Expert Elicitation

Because AGFN samples from a distribution, it naturally represents epistemic uncertainty. The framework identifies which pair of variables has the most ambiguous relationship and "probes" an expert (human or LLM) with a specific question: "Is $X$ an ancestor of $Y$, is there a hidden confounder, or is there no relation?"

The iterative Expert-in-the-Loop (EITL) process, where the model queries an expert to resolve structural ambiguities.

This feedback is treated as a noisy Bayesian update, refining the model's beliefs without needing to retrain the entire neural network. This allows for the integration of "noisy" expert knowledge—information that is helpful but not 100% certain.

Experimental Evaluation

We validated AGFN across several challenging scenarios:

  • Synthetic Graphs: Randomly generated 5-node and 25-node graphs, including canonical structures like "colliders" and "instrumental variables" to test latent confounding.
  • Sachs Dataset: A classic real-world benchmark measuring protein signaling pathways in human immune cells.
  • DREAM3 Challenge: Gene regulatory network data for Yeast and E. coli, testing scalability to 10-node networks with high complexity.

Key Results

  • Competitive Performance: On synthetic data, AGFN's "top-3" sampled graphs consistently matched or beat state-of-the-art baselines like FCI, GFCI, and DCD in terms of Structural Hamming Distance (SHD).
  • Rapid Improvement with Feedback: In the Sachs and synthetic datasets, the expected SHD dropped sharply as more expert feedback was incorporated. A single well-placed piece of feedback often allowed AGFN to outperform all other baseline algorithms.
  • LLMs as Surrogate Experts: Experiments showed that GPT-4o can serve as a reasonably effective expert. While not perfect, its broad domain knowledge can guide the algorithm out of statistical traps.

Conclusion

AGFN represents a major step forward in causal discovery by providing a fully probabilistic framework that accounts for hidden variables and uncertainty. By enabling active elicitation from experts or LLMs, it bridges the gap between data-driven discovery and domain expertise. Future work will focus on scaling the approach to hundreds of variables and refining the model's ability to handle varying levels of expert reliability.

Summary updated

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