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 redefines Structural Causal Models (SCMs) as fixed-point problems over causally ordered variables, completely eliminating the need to search for or instantiate Directed Acyclic Graphs (DAGs). By combining a zero-shot topological order inference method with a transformer architecture featuring a custom "Causal Attention" mechanism, the authors deliver a highly scalable causal generative model that significantly outperforms existing baselines on out-of-distribution tasks.

What Problem Does This Paper Address?

Uncovering the underlying causal mechanisms from purely observational data—known as causal discovery—is one of the fundamental challenges in machine learning. Traditionally, this involves searching for a Directed Acyclic Graph (DAG) that represents the causal dependencies between variables.

However, this classic approach suffers from two severe bottlenecks:

  1. Combinatorial Complexity: The space of possible DAGs grows super-exponentially with the number of variables, making exact graph search an NP-hard problem.
  2. Ill-posed Optimization: Learning the functional equations of an SCM depends heavily on knowing the true DAG structure. Without it, the problem is fundamentally ill-posed.

While recent deep learning approaches (like autoregressive normalizing flows) try to bypass explicit graph search, they often introduce strict constraints (like monotonicity) that prevent them from exactly modeling standard SCMs or capturing true counterfactuals.

Methods

The authors tackle these challenges by splitting the problem into a two-stage pipeline called FiP (Fixed-Point model):

  1. Fixed-Point SCM Formulation: Instead of defining causal mechanisms via a graph, the authors prove that an SCM can be exactly reformulated as a unique fixed-point problem: $X = P^T H(PX, PN)$, where $P$ is a permutation matrix representing the topological order (TO) of the variables, and $H$ is a structural function.
  2. Amortized Topological Ordering (TO) Inference: Rather than searching through the massive space of permutations, the model amortizes the learning of TOs by training an encoder-decoder network on synthetically generated datasets. It learns to sequentially predict the "leaves" (nodes with no descendants) of the causal graph, drastically reducing complexity.
  3. Causal Attention Mechanism: Standard transformer attention uses a softmax operator, which forces attention weights across each row to sum to 1. In a causal context, this mistakenly implies that every node must have at least one parent, failing for root nodes. The authors introduce Causal Attention, which relaxes this constraint using an entropic optimal transport formulation, allowing row sums to vary between 0 and 1.

Datasets

The model was trained and evaluated on a variety of synthetic and real-world benchmarks:

  • Synthetic Datasets ($\mathbb{P}_{IN}$ and $\mathbb{P}_{OUT}$): Generated using Erdos-Renyi and Scale-Free graph models for in-distribution data ($\mathbb{P}_{IN}$), and Watts-Strogatz and Stochastic Block Models with heteroscedastic Laplacian noise for out-of-distribution evaluation ($\mathbb{P}_{OUT}$). Functional relationships included both linear (LIN) and non-linear Random Fourier Features (RFF).
  • C-Suite: A benchmark suite consisting of various continuous causal problems (e.g., lingauss, linexp, nonlingauss).
  • SynTReN: Synthetic transcriptional regulatory networks mimicking gene expression data.
  • Sachs: A widely used real-world dataset containing protein signaling measurements (11 variables, 853 samples).

Key Insights and Ideas

  • DAGs are Optional: The most profound insight is that you do not need to explicitly instantiate or search for a DAG to perform causal generative modeling. Knowing just the topological order is sufficient to uniquely recover the SCM under mild assumptions (like Additive Noise Models).
  • The Softmax Flaw in Causality: Standard attention mechanisms are fundamentally biased against causal structures containing root nodes because softmax forces parent relationships where none exist. Relaxing the row-sum constraint via partial optimal transport is an elegant fix.
  • Sequential Leaf Prediction Scales Better: Predicting full DAGs directly scales quadratically with the number of variables. By sequentially peeling away leaf nodes to deduce the topological order, the authors achieve a much more scalable amortized inference procedure.

Key Results

The combined pipeline (FiP) was evaluated against state-of-the-art baselines like AVICI, DECI, GOLEM, and GraN-DAG.

  • Causal Discovery: On out-of-distribution tasks, FiP consistently achieved the highest directed F1 scores, reaching 0.76 on LIN OUT and 0.81 on RFF OUT, outperforming the next best baseline (AVICI).
  • Generalization: As shown in the performance curves, the amortized TO model generalizes remarkably well to larger problem sizes ($d_{test} = 50$) than those seen during training ($d_{train} = 20$).
Figure 2: For each of the four test metadatasets, we plot the TOS obtained against the dimension dtest. For each curve, each point is obtained by averaging over all the test datasets of a given dimension. We also show the standard deviations.
  • Counterfactual Accuracy: FiP demonstrated superior performance in predicting counterfactual distributions, yielding significantly lower re-scaled $\ell_2$ errors compared to DECI and DoWhy.

Limitations and Future Work

  • Additive Noise Restriction: While the theoretical fixed-point framework is highly general, the practical implementation and evaluation in this paper are restricted to Additive Noise Models (ANMs). Extending the architecture to handle fully non-additive, complex noise structures remains future work.
  • Scaling to Massive Graphs: Although more scalable than traditional combinatorial searches, scaling transformers to handle causal systems with thousands or millions of variables will require integrating advanced sparse or block-wise attention techniques (e.g., FlashAttention or Ring Attention).
  • Towards Causal Foundation Models: The authors express the ultimate goal of extending this framework to a fully zero-shot SCM learning method capable of transferring causal knowledge across completely different domains.

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