Arrow: A Foundation Model for Causal Discovery

Ryan Thompson, He Zhao, Daniel M. Steinberg, Edwin V. BonillaarXiv 2026

TL;DR

Arrow is a new transformer-based foundation model that achieves zero-shot causal discovery on observational tabular data in a single forward pass. By factorizing graph generation into an undirected skeleton and a topological order, Arrow guarantees valid directed acyclic graph (DAG) outputs by construction while outperforming existing methods at a fraction of the computational cost.

What Problem Does This Paper Address?

Causal discovery—the process of uncovering cause-and-effect relationships from purely observational data—is a fundamental challenge across science and machine learning. Traditionally, this is solved using task-specific methods that run compute-intensive optimizations or statistical tests from scratch for every new dataset.

Recently, researchers have turned to pretrained neural models to learn generalizable inference procedures from synthetic data. However, existing pretrained models suffer from a critical "trilemma": they rarely achieve zero-shot inference, guaranteed acyclic (DAG) outputs, and broad pretraining diversity all at once. For instance, many models output graphs that contain invalid causal loops (cycles), requiring slow post-processing search steps. Arrow is designed to jointly solve all three requirements.

Methods

Arrow’s core innovation lies in its skeleton–order factorization and its tailored transformer architecture.

1. Skeleton–Order Factorization

Instead of predicting a directed graph directly, Arrow breaks the problem into two simpler, independent components:

  • An undirected skeleton ($A$), which identifies which variables are connected.
  • A topological order ($\pi$), which ranks the nodes from cause to effect.

By multiplying the skeleton by an order-consistency mask induced by $\pi$, the resulting directed graph is mathematically guaranteed to be acyclic (a valid DAG) without needing any explicit constraints or penalties during inference.

2. Architecture

As shown in the architecture diagram below, Arrow processes tabular data through four distinct stages:

Figure 2: Architecture of Arrow. The model embeds an input dataset via scalar projection and three transformer stages for within-observation variable interaction, within-variable observation aggrega- tion, and global contextualization. Skeleton and order heads predict undirected edge probabilities and node scores, yielding directed edge probabilities for training and predicted DAGs for inference.
  1. Scalar Projection: Maps individual data entries into continuous vectors.
  2. Observation Transformer: Allows variables within the same observation to interact.
  3. Variable Transformer: Aggregates data across observations using a fixed number of learned "summary tokens" ($m=16$). This keeps the computational complexity linear with respect to the number of samples ($O(n)$), avoiding the typical $O(n^2)$ bottleneck of standard attention.
  4. Context Transformer: Performs global contextualization across all variable embeddings.

Finally, two separate prediction heads output the undirected edge probabilities and node order scores.

3. Composite Likelihood Training

Training a model on exact DAG likelihoods is usually intractable because it requires summing over a combinatorially explosive number of valid topological orders. Arrow bypasses this by optimizing an end-to-end differentiable directed edge composite likelihood. The authors prove theoretically that minimizing this pairwise objective perfectly recovers the true underlying latent distribution under correct model specification.

Datasets

Arrow is trained using a task-streaming strategy, meaning it continuously encounters fresh, procedurally generated synthetic datasets rather than a fixed training set. Over its training lifecycle, it samples more than 100 million unique causal tasks.

  • Pretraining Distribution: Spans multiple graph families (Erdős–Rényi, scale-free), functional forms (linear and nonlinear MLPs), noise models (Gaussian, Uniform, Beta), and dataset shapes ($n \in [100, 2000]$ observations, $p \in [2, 100]$ variables).
  • Evaluation Benchmarks:
    • In-distribution synthetic data to evaluate scaling behaviors.
  • Out-of-distribution (OOD) synthetic data featuring unseen structures like small-world graphs, spline functions, and gamma noise.
  • Semi-synthetic data from the Bayesian Network Repository (e.g., ECOLI70, ARTH150).
  • Real-world data: The classic Sachs et al. (2005) flow cytometry dataset mapping protein signaling networks.

Key Insights and Ideas

  • Acyclicity by Design, Not Constraint: Instead of fighting cycles using continuous optimization penalties (like NO TEARS or DAGMA), Arrow bakes acyclicity directly into the model's output space via permutation sorting.
  • The Power of Pairwise Marginals: A key theoretical takeaway (Theorem 1) is that the sum and log-ratio of pairwise directed edge marginals are sufficient to fully reconstruct both the skeleton and the topological order. This justifies using a simple composite edge loss instead of a complex joint graph loss.
  • Data Diversity Trumps Realism: Even though Arrow is trained purely on synthetic mathematical simulations, exposing it to massive structural diversity allows it to generalize zero-shot to real biological data (Sachs) without any fine-tuning.

Key Results

Arrow establishes a new state-of-the-art on the accuracy–runtime Pareto frontier for causal discovery.

Figure 1: Accuracy and runtime on out-of-distribution synthetic causal discovery tasks generated from small-world graphs, spline functions, and gamma noise, with n ∈{100, . . . , 2000} observations and p ∈{2, . . . , 100} variables. Dashed lines trace the Pareto frontier, marking non-dominated methods.
  • Speed: Arrow performs graph predictions in milliseconds to sub-seconds. It is roughly 100× to 1000× faster than strong task-specific baselines like DAGMA and SDCD, and significantly faster than pretrained aggregator models like SEA.
  • Accuracy: On out-of-distribution synthetic and semi-synthetic datasets, Arrow consistently achieves the lowest normalized Structural Hamming Distance (nSHD) and the highest Average Precision (AP) and F1 scores.
  • Robustness to Shape: Arrow maintains stable performance even as the number of variables ($p$) scales up to 100, outperforming baseline models whose accuracy degrades rapidly on larger graphs.

Limitations and Future Work

Despite its strong performance, the authors note several limitations:

  • Computational Scaling: Arrow's complexity scales quadratically with the number of variables ($O(np^2 + p^2)$). While highly efficient for $p \le 100$, additional modifications are required to scale to thousands of variables.
  • Causal Assumptions: The model currently assumes causal sufficiency (no unobserved latent confounders) and acyclicity (no feedback loops). Real-world systems often violate these assumptions.
  • Future Directions: The authors point to extending the skeleton-order framework to handle latent confounding, integrating interventional data alongside observational data, and scaling up to larger tabular foundation sizes as immediate next steps.

Summary updated

BibTeX
@misc{thompson2026arrow,
  author = {Ryan Thompson and He Zhao and Daniel M. Steinberg and Edwin V. Bonilla},
  title = {{Arrow: A Foundation Model for Causal Discovery}},
  year = {2026},
  eprint = {2605.07204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.07204},
}
Figure