A Fixed-Point Approach for Causal Generative Modeling

Meyer Scetbon, Joel Jennings, Agrin Hilmkil, Cheng Zhang, Chao Ma

TL;DR

This paper introduces a novel framework that treats Structural Causal Models (SCMs) as fixed-point problems on ordered variables, bypassing the need to explicitly search for Directed Acyclic Graphs (DAGs). By combining an amortized, zero-shot topological order inferrer with a specialized Transformer architecture featuring "Causal Attention," the authors achieve state-of-the-art performance in causal discovery and counterfactual reasoning, particularly on out-of-distribution data.

The Challenge of Causal Modeling

Causal modeling typically relies on Structural Causal Models (SCMs) and their graphical counterparts, Directed Acyclic Graphs (DAGs). However, learning these models from observational data is notoriously difficult for two main reasons:

  1. Combinatorial Complexity: Searching the space of all possible DAGs is an NP-hard problem. As the number of variables grows, the search space explodes exponentially.
  2. Identifiability: Recovering the exact functional mechanisms of an SCM is often an ill-posed problem unless the underlying graph is already known.

Existing deep learning approaches often try to predict the entire graph at once or use autoregressive flows. However, these methods either struggle to scale, fail to guarantee acyclicity, or do not perfectly map back to the formal definition of an SCM, making downstream tasks like counterfactual inference unreliable.

The FiP Framework: A Two-Stage Generative Approach

The authors propose a two-stage generative framework called FiP (Fixed-Point) to overcome these limitations.

1. Fixed-Point Formalism

Instead of defining an SCM via a graph, the authors define it as a fixed-point problem: $X = H(X, N)$, where $X$ represents observed variables and $N$ represents exogenous noise. They prove mathematically that if the function $H$ satisfies specific Jacobian constraints—essentially being strictly lower-triangular with respect to $X$ and diagonal with respect to $N$ under a specific ordering—it is equivalent to a standard SCM.

2. Amortized Topological Order (TO) Inference

Rather than searching for individual edges, the framework first finds the Topological Order (the sequence in which causes precede effects). They train a model ($d$-TOE) to predict the "leaves" of a graph (nodes with no children) from observational data. By iteratively identifying and removing leaves, they reconstruct the full ordering. Crucially, this model is trained on synthetic data but performs "zero-shot" inference on new, unseen datasets.

3. Causal Attention & Transformer Architecture

To learn the functional relationships ($H$), the authors design a Transformer-based autoencoder. Standard attention mechanisms use a softmax function that forces every node to attend to at least one other node. This is problematic for "root" nodes (causes that have no parents).

To resolve this, they introduce Causal Attention, a new attention mechanism based on a relaxation of entropic optimal transport. This allows rows in the attention matrix to sum to less than or equal to one, naturally accommodating root nodes. Furthermore, they prove that this architecture is a universal approximator for the fixed-point SCMs defined in their formalism.

Key Insights

  • Order is Easier than Edges: The core insight is that finding a valid topological ordering makes recovering the SCM much more manageable. Specific edges can subsequently be "read off" from the Jacobian of the learned function $H$.
  • The Softmax Limitation: Recognizing that standard attention is biased against root nodes is a subtle but vital observation. "Causal Attention" provides a mathematically grounded way to let the model decide a node has no parents.
  • Weakest Recovery Conditions: The paper establishes the weakest known conditions for uniquely recovering an SCM given its topological order, providing a strong theoretical foundation for this two-stage approach.

Experimental Results

The authors evaluated their model on a mix of synthetic (PIN, POUT) and real-world benchmarks (C-Suite, SynTReN, Sachs).

Zero-shot generalization performance of the TO inference model across different graph sizes and distributions.
  • Superior OOD Generalization: On out-of-distribution synthetic tasks (RFF OUT), FiP achieved a directed F1 score of 0.81, significantly outperforming baselines like AVICI (0.74) and DECI (0.74).
  • Zero-Shot Scaling: As shown in the results, the TO inference model trained on smaller graphs generalized remarkably well to 50, 100, and even 200-node graphs without retraining, maintaining high Topological Order Scores (TOS).
  • Counterfactual Accuracy: In counterfactual prediction tasks, FiP reduced the re-scaled $\ell_2$ error by roughly 35-50% compared to the next best-performing models (DECI and DoWhy-AVICI) across various settings.
  • Real-World Performance: On the Sachs dataset (protein signaling measurements), FiP maintained competitive F1 scores, demonstrating its robustness to the noise and complexities of real biological data.

Limitations and Future Work

While the formalism is general, the current implementation of the SCM learning stage focuses on Additive Noise Models (ANM). Extending this to more complex, non-additive noise is a natural next step. Additionally, while more efficient than combinatorial search, Transformers still face quadratic complexity with respect to the number of variables. Exploring linear-time attention mechanisms (like FlashAttention) could help scale the framework to thousands or millions of variables. Finally, because the zero-shot TO inference relies on synthetic training data, performance may degrade if real-world data distributions diverge wildly from the synthetic generators.

Summary updated

BibTeX
@inproceedings{scetbon2024fixed,
  author = {Meyer Scetbon and Joel Jennings and Agrin Hilmkil and Cheng Zhang and Chao Ma},
  title = {{A Fixed-Point Approach for Causal Generative Modeling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=JpzIGzru5F},
}
Figure