TL;DR
When you only have observational data and hidden confounders are lurking in the background, you can't pinpoint the exact causal graph—only a massive family of plausible graphs. This paper shows how to bake that structural uncertainty directly into neural networks, allowing us to compute exact upper and lower bounds on complex "what-if" (counterfactual) questions via gradient descent rather than impossible brute-force enumeration.
What Problem Does This Paper Address?
To answer counterfactual questions—like "Would this patient have recovered had they taken the drug, given that they didn't?"—causal inference usually demands a known causal diagram. In the real world, we rarely have one; we just have observational data and the nagging certainty of unobserved (latent) confounders.
Causal discovery algorithms can analyze observational data and give us a Partial Ancestral Graph (PAG). Think of a PAG as a blurry map representing a Markov Equivalence Class (MEC): the set of all possible true causal diagrams that could have generated the same observational patterns.
If we want to guarantee valid causal conclusions from a PAG, our math must hold across every single underlying Structural Causal Model (SCM) compatible with that blurry map. Enumerating all candidate graphs is combinatorially explosive, and existing shortcuts mostly stop at simple interventions ($do$-calculus), leaving deeper counterfactual reasoning out of reach. Meanwhile, Neural Causal Models (NCMs)—which use neural networks to flexibly learn causal mechanisms and bound counterfactual queries—previously required knowing the exact causal graph upfront. How do you train an NCM when the wiring diagram itself is uncertain?
Methods
The authors bridge the gap between uncertain graphical structures and continuous optimization in three main steps:
- Taming the Graph Space: A PAG doesn't map cleanly to standard causal diagrams because hidden paths ("inducing paths") can create phantom connections. The authors define two well-behaved subsets of causal diagrams within the equivalence class: Skeleton-Matched Diagrams (SMDs), where every PAG connection is an explicit edge, and an even tighter subset called Directed-Backboned Diagrams (DBDs), which enforce directed edges wherever a PAG edge isn't strictly bidirected.
- Differentiable Adjacency Masks: Instead of searching over discrete graphs, the authors translate the rules of DBDs into continuous matrix equations over directed ($\mathbf{m}^D$) and bidirected ($\mathbf{m}^B$) adjacency masks. Certain edges are fixed by the PAG, others are free trainable parameters, and continuous equality penalties enforce acyclicity (like NOTEARS), preserve "non-collider" triples, and prevent illegal inducing paths.
- PAG-Constrained Neural Causal Models ($\mathcal{P}$-NCMs): Standard NCMs assign neural networks to represent variable relationships. Here, the authors introduce $\mathcal{P}$-NCMs, equipping NCMs with these constrained, trainable masks and a rich set of shared exogenous noise variables covering admissible bidirected cliques. To find the partial identification bounds (the tightest possible
[min, max]interval) for a counterfactual query, they train two $\mathcal{P}$-NCMs: both are forced to match the observed data distribution, while one minimizes the target query and the other maximizes it.
Datasets
The authors evaluate their method on simulated causal bounding tasks using discrete, finite endogenous variables. They construct synthetic observational datasets generated from three distinct ground-truth SCMs ($\mathcal{M}_1^*, \mathcal{M}_2^*, \mathcal{M}_3^*$) for each of four canonical 3-to-4-node PAG structures: Collider, Non-Collider, Diamond, and Visible-Edge. No external or newly curated real-world benchmark datasets are introduced.
Key Insights and Ideas
- Restricting the graphs doesn't restrict the physics: You might worry that ignoring general causal diagrams in favor of Directed-Backboned Diagrams (DBDs) throws away valid counterfactual realities. Theorem 1 proves otherwise: DBDs preserve the exact full counterfactual expressiveness of the entire equivalence class. Every valid SCM has a twin in the DBD space that produces identical counterfactual distributions.
- Bypassing intermediate abstractions: Literature usually translates PAGs into Maximal Ancestral Graphs (MAGs), and then into causal diagrams. By characterizing DBDs directly from the PAG's "signature" (its skeleton and ordered triples), the authors connect PAGs straight to SCMs.
- Turning graph theory into matrix calculus: Checking whether a graph creates an illegal "inducing path" is traditionally a discrete graph-traversal headache. Formulating this as a differentiable matrix-exponential penalty ($\mathbf{p}^{\mathcal{P}} = 0$) is the key engineering trick that lets gradient descent explore valid causal structures seamlessly.
Key Results
- Theoretical Soundness: The authors prove (Theorems 2 & 3) that the counterfactual bounds found by optimizing over $\mathcal{P}$-NCMs coincide exactly with the true theoretical bounds across all possible SCMs in the equivalence class.
- Empirical Accuracy: Across all four test PAGs and both interventional queries—like $P(y \mid do(x))$—and counterfactual queries—like $P(Z_{X=1}=1 \mid X=0)$—the $\mathcal{P}$-NCM optimization consistently recovers the analytical ground-truth upper and lower bounds with minimal error across independent runs. When a query happens to be point-identifiable (such as on the Diamond and Visible-Edge interventional tasks), the upper and lower estimates cleanly collapse onto the single true value.
Limitations and Future Work
- Scalability Bottlenecks: Two computational hurdles stand out as graphs grow larger. First, ensuring full counterfactual expressiveness requires introducing shared latent variables for every admissible bidirected clique, scaling as $O(n^k)$ for $n$ variables and max clique size $k$ (potentially exponential in dense graphs). Second, computing the inducing-path matrix constraint carries a worst-case complexity of $O(kn^5)$ for path length $k$, though sparsity helps in practice.
- Purely Observational PAGs: The current setup assumes access to the true PAG derived strictly from observational data. Future work aims to design leaner parameterizations for larger graphs and extend the framework to equivalence classes refined by experimental (interventional) data or domain background knowledge.
Summary updated