NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Weighted Sampling for Online Causal Discovery

Arnab Bhattacharyya, Philips George John, Sayantan Sen, Naganand YadatiNeurIPS 2026

TL;DR

Finding the true causal structure of a system requires poking it with experiments—which in the real world often arrive as a messy, unstructured stream of data rather than a neat, static dataset. This paper introduces an algorithm that learns causal graphs online from arbitrary streams of experimental data, dodging the field's notorious super-exponential computational bottlenecks. By pairing classic online learning with clever graph dynamic programming, it efficiently predicts how a system will react to brand-new interventions, complete with rigorous finite-time guarantees.

What Problem Does This Paper Address?

Imagine trying to map the gene regulatory network of a cell. Observational data is cheap, so you have plenty of it. However, correlation isn't causation: purely observational data can only narrow down the true Directed Acyclic Graph (DAG) to a Markov Equivalence Class (MEC)—a bucket of graphs that have the same skeleton of connections, with several arrows left unoriented because they produce identical statistical footprints.

To orient those remaining arrows, you need interventional data (e.g., knocking out specific genes via CRISPR and watching what happens). Traditionally, causal discovery assumes either a static batch of data or an "active" algorithm that gets to choose the next experiment.

Reality is rarely that tidy. Experimental data often trickles in sequentially from different labs, historical logs, or ongoing clinical trials. You don't choose the sequence of interventions; you just observe the stream and try to update your causal model on the fly. Doing this exact updating is brutally hard—the number of valid DAGs inside a single MEC can grow super-exponentially with the number of nodes. Standard Bayesian methods either choke on $O(3^n)$ runtimes or resort to approximations (like MCMC) that lose finite-time theoretical guarantees.

Methods

The authors reframe causal discovery as an adversarial online sequence prediction problem, unfolding in two stages:

  1. Observational Phase: Using abundant observational data, they identify the MEC—represented as a partially directed graph (CPDAG)—and pre-compute conditional probabilities. Assuming bounded in-degree (a cap on how many parents a single node can have), this restricts the search space to valid graph extensions of that CPDAG.
  2. Online Interventional Phase: As arbitrary interventions stream in, the algorithm maintains dynamic weights over candidate DAGs using Randomized Weighted Majority (RWM)—a classic online learning workhorse. DAGs that accurately predict the incoming interventional outcomes keep their weight; poor predictors get exponentially down-weighted.

To sample a DAG proportional to its weight without enumerating a super-exponential number of graphs, the authors exploit score decomposability: a DAG's total weight neatly factors into local parent-child weights at each node. Extending recent uniform DAG-counting techniques, they break the unoriented parts of the graph into chordal components and run a divide-and-conquer dynamic program.

In uniform counting, internal node orderings of a root clique of size $|S|$ are a trivial $|S|!$. With custom weights, every permutation yields a different score. To avoid factorial blowup, the authors embed a Held-Karp style subset dynamic program (famous from the Traveling Salesperson Problem) to aggregate weights across subsets, paired with a sink-to-source backtracking sampler.

Datasets

  • Synthetic Linear Gaussian Graphs: 32 random Erdős-Rényi graphs where the CPDAG is estimated from 100,000 observational samples, followed by 600 online interventional training rounds and 400 held-out test rounds.
  • Sachs Protein-Signalling Dataset: A classic real-world biological dataset used to validate reweighting DAG extensions from limited interventional samples.
  • Bounded-Width Scalability Benchmarks: Synthetic CPDAGs structured as the $k$-th power of a path ($k \in \{2, 3, 4\}$) scaling up to $n = 5000$ variables to isolate and stress-test exact partition calculation and sampling runtimes.

Key Insights and Ideas

  • Bypassing the Bayesian Bottleneck: Instead of tracking a traditional static Bayesian posterior, framing the task via adversarial online learning yields non-asymptotic, finite-time sublinear regret—meaning the algorithm's average prediction error rapidly converges toward the single best causal graph in hindsight, even if nature (or a chaotic lab schedule) picks interventions adversarially.
  • Held-Karp Saves the Clique: Upgrading uniform graph counting to weighted graph sampling isn't free, because node permutations inside cliques suddenly matter. Realizing that a node's parent set within a subset only depends on which nodes came before it—not their internal order—allows a clean TSP-style subset DP to crush a factorial problem down to exponential-in-treewidth/indegree, keeping overall runtime polynomial in $n$.
  • Math for Unseen Interventions: Using an online-to-batch conversion, the authors prove out-of-distribution generalization. If your training stream sufficiently covers a "verifying set" of interventions, your learned model has bounded KL-divergence error on completely unseen interventions, governed quantitatively by a covariate shift constant.

Key Results

  • Competitive Predictive Accuracy: On synthetic data (even with imperfectly estimated observational CPDAGs, having a mean structural Hamming distance of 1.31), the RWM mixture achieves a held-out negative log-likelihood per node of $2.0972 \pm 0.0058$, improving over uniform MEC mixtures ($2.0985$) and closely trailing the GIES baseline ($2.0936$) and the omniscient True-DAG oracle ($2.0918$).
  • Massive Scalability: On bounded-width CPDAGs, the exact normalizer computation and drawing 1,000 weighted DAG samples scales to $n = 5,000$ variables in under 30 seconds. By contrast, a restricted hill-climbing baseline (bnlearn hc) takes several minutes at $n=5,000$ and times out past 600 seconds for width $k=4$.

Limitations and Future Work

  • No Hidden Confounders: The method assumes causal sufficiency (no unobserved variables pulling strings behind the scenes). Extending these polynomial-time updates to Ancestral Graphs (MAGs/PAGs) is an open challenge.
  • Exact Observational Skeletons: Computational efficiency relies on locking in a single CPDAG first. While experiments show resilience to minor estimation errors, jointly weighting graphs across multiple uncertain CPDAGs when observational data is scarce remains unsolved.
  • Passive vs. Active Learning: The algorithm gracefully accepts whatever interventions are thrown at it, which begs the next question: if it could choose the next experiment, could a bandit-style policy actively minimize the covariate shift constant for specific downstream tasks?

Summary updated

BibTeX
@inproceedings{bhattacharyya2026weighted,
  author = {Arnab Bhattacharyya and Philips George John and Sayantan Sen and Naganand Yadati},
  title = {{Weighted Sampling for Online Causal Discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=m8tnzuLcen},
}
Figure