Improving constraint-based discovery with robust propagation and LLM priors

Ruiqi Lyu, Alistair Turcan, Martin Jinye Zhang, Bryan WilderNeurIPS 2026

TL;DR

Figuring out cause and effect from observational data alone is notoriously fragile—one noisy statistical test early on can trigger a domino effect of backwards arrows across your entire causal graph. The authors introduce MosaCD, an algorithm that pairs filtered, hallucination-checked knowledge from Large Language Models (LLMs) with a clever mathematical twist on how causal directions propagate. By prioritizing safer statistical checks over fragile ones, it substantially boosts causal graph accuracy across 13 real-world benchmarks.

What Problem Does This Paper Address?

Imagine trying to map out a web of cause and effect—say, between smoking, tar in the lungs, and cancer—just by looking at spreadsheets of patient data. Classical "constraint-based" algorithms (like the foundational PC algorithm) do this in two steps. First, they run conditional independence (CI) tests to erase links between unrelated variables, leaving behind an undirected "skeleton" graph. Second, they figure out which way the arrows point.

To orient the arrows, classical algorithms hunt for colliders (or "v-structures"), where two independent causes point into a shared effect ($X \rightarrow Z \leftarrow Y$). Once they find a few colliders as starting "seeds," they logically propagate the remaining arrow directions across the graph.

Here is the catch: in finite, real-world datasets, statistical tests are noisy. Detecting a collider requires proving that $Z$ is absent from the conditioning sets that separate $X$ and $Y$. Because of how search algorithms work, there are vastly more opportunities to accidentally accept a noisy test that excludes $Z$, hallucinating a fake collider. Worse, because colliders are the very first seeds planted, one mistake cascades through the graph. Recently, researchers tried bringing in LLMs as "domain experts" to help orient arrows, but LLMs suffer from positional bias and hallucinations, and simply bolting them onto fragile, collider-first algorithms doesn't fix the cascading error problem.

Methods

The authors propose MosaCD, a four-step pipeline combining standard skeleton-building with two key innovations: robust LLM seeding and Seeded Propagation Rules (SPR).

  1. Skeleton Search (Standard): Use a classic algorithm (PC, PC-stable, or CPC) to build an undirected graph and record the minimal "separating sets" (variables that render two other variables independent) along with their statistical p-values.
  2. Filtered LLM Seeding (New): Instead of blindly trusting an LLM to orient edges, MosaCD feeds the LLM variable descriptions alongside the statistical separating-set evidence. To combat positional bias and hallucinations, it randomizes the multiple-choice order ("Does $X \rightarrow Y$ or $Y \rightarrow X$?") across five repeated queries. It only keeps seeds that win a majority vote under both orders, don't create causal loops, and don't contradict the statistical data.
  3. Seeded Propagation Rules / SPR (New): Classical methods orient colliders first. SPR flips the script. Starting from the high-confidence LLM seeds, it propagates arrows by prioritizing non-collider evidence ($X \rightarrow Z \rightarrow Y$, where $Z$ is in the separating set) and sorting decisions by the strongest p-values first. Only after exhausting safer non-collider propagations does it cautiously orient remaining colliders and resolve leftover conflicts.
  4. Optional Vote Completion: If a fully oriented graph is needed for evaluation, any remaining undecided edges are oriented using a topological order derived from the Step 2 LLM votes.

Datasets

The authors evaluate MosaCD on 13 real-world and simulated benchmark datasets spanning 5 to 76 variables:

  • 10 classic benchmarks from BNLearn: Cancer, Asia, Child, Insurance, Water, Mildew, Alarm, Hailfinder, Hepar2, and Win95pts. To prevent the LLM from simply reciting memorized answers from its training data, cryptic variable names were rewritten into generic, human-readable descriptions.
  • 3 post-cutoff benchmarks: Covid Resp., ALZ (Alzheimer's), and Covid. Comp. These were released after the backbone LLM's (GPT-4o-mini) training cutoff specifically to test true reasoning rather than benchmark memorization.

Key Insights and Ideas

  • Combinatorics favor non-colliders: Why is SPR's "non-collider-first" rule so much safer? Through a stylized theoretical proof, the authors show it comes down to combinatorics. When testing subsets of variables of size $\ell$ in a graph of size $M$, there are simply far more candidate subsets that exclude a variable $Z$ than subsets that include $Z$. Under noisy testing, collider-first strategies have way more chances to stumble into a false positive early on.
  • One good seed goes a long way: Even without an LLM, giving SPR just one ground-truth ("oracle") edge allows it to bypass risky early collider guesses, dramatically improving graph recovery (e.g., jumping F1 score by 0.22 on the Mildew dataset).
  • Prompt-only hallucination filtering works: You don't need model weights or fine-tuning to tame LLM priors. Simple order-shuffling paired with conditional independence cross-checks filters out bad guesses—even on large graphs where raw LLM memorization completely fails.
Figure 1: Accuracy of orientation seeds. Number of true and false directions found by MosaCD LLM-based orientation seeding (Step 2) and standard PC v-structure orientation, averaged for each dataset across PC, PC-stable, and CPC skeletons.

Key Results

  • Seed Quality: Across the 13 datasets, MosaCD’s LLM seeding finds more than twice as many true causal directions as standard PC collider seeding (2.15x ratio) while slashing the false-seed error rate from 27.1% down to 5.0% (Figure 1). In standard PC skeletons, non-collider identifications were 92.2% accurate, whereas collider orientations were right only 73.1% of the time.
  • Overall Benchmark Dominance: MosaCD takes first place on 9 out of 13 datasets (including the post-cutoff datasets), achieving an average F1 score of 0.76 (vs. 0.66 for the runner-up LLM method) and lowering average Structural Hamming Distance (SHD—where lower means fewer edge errors) to 29 (vs. 32 for the next best).
  • Graceful Degradation: When variable names were intentionally scrubbed into uninformative gibberish, MosaCD simply abstained rather than hallucinating false seeds, gracefully falling back to competitive baseline performance. It also performed consistently across 7 different closed and open-source LLMs (including GPT-5, Claude Sonnet 4, and Qwen 3 32B).
Benchmark evaluation across all 13 datasets showing F1 and SHD scores

Limitations and Future Work

  • Garbage-in, garbage-out on seeds: The authors' theoretical soundness guarantee assumes an "oracle" setting. As they explicitly note, if incorrect LLM seeds slip past the statistical and cycle-checking filters in finite samples, exact recovery of the true causal graph cannot be mathematically guaranteed (and the optional Step 4 vote-completion step sits outside the formal guarantees).
  • Causal Sufficiency Assumption: Like the classical PC algorithm, MosaCD assumes causal sufficiency—meaning there are no hidden, unmeasured confounders secretly pulling the strings behind two observed variables (unlike algorithms like FCI, which account for latent confounders).
  • Future Directions: Future work is not explicitly discussed in the main text.

Summary updated

Abstract

Constraint-based causal discovery recovers causal DAG structure from conditional independence (CI) relations. Classical methods such as PC orient v-structures first, then propagate edge directions from these seeds, relying on accurate CI tests and rich separating-set searches. In practice, these conditions often fail, causing cascading orientation errors. Recent work uses large language models (LLMs) as experts to augment edge orientation when standard assumptions fail, but often treats LLM outputs as reliable or assumes stable error behavior, despite hallucinations and instability. We propose MosaCD, a constraint-based framework that robustly combines CI tests with LLM inference to obtain high-confidence orientation seeds, then propagates them with Seeded Propagation Rules (SPR), which mitigate the fragility of collider-first orientation. We prove oracle-level soundness for SPR under explicit assumptions on the skeleton, separating-set record, and seed orientations, and give a stylized finite-sample analysis showing why prioritizing non-collider evidence can reduce orientation errors. Across 13 real-world benchmarks, MosaCD and SPR achieve substantially higher accuracy than existing methods through more reliable seeds and more robust propagation.
BibTeX
@inproceedings{lyu2026improving,
  author = {Ruiqi Lyu and Alistair Turcan and Martin Jinye Zhang and Bryan Wilder},
  title = {{Improving constraint-based discovery with robust propagation and LLM priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=X5adrFr97k},
}
Figure