TL;DR
Learning causal graphs from data gets vastly easier when you give your algorithm a head start—like telling it that Variable A happens before Variable B. Existing gradient-based methods enforce these "partial-order" hints by checking every possible ordering path individually, causing runtimes to explode when hints overlap and branch. PACO replaces that combinatorial checklist with a single, elegant matrix-masking operation, delivering identical theoretical guarantees and matching accuracy while slashing runtimes by orders of magnitude on complex priors.
What Problem Does This Paper Address?
Causal discovery aims to map out cause-and-effect relationships as a Directed Acyclic Graph (DAG)—a network of arrows with no closed loops. Historically a brute-force combinatorial search, modern frameworks like NOTEARS turned DAG discovery into a smooth, differentiable optimization problem using matrix exponentials, letting us learn graphs via standard gradient descent.
Often, scientists already know some ordering rules before touching the data—for instance, a drug treatment precedes a patient's recovery, or an upstream protein triggers a downstream cascade. Crucially, knowing $i$ precedes $j$ ($i \prec j$) doesn't mean $i$ directly causes $j$; it means the learned graph cannot contain any directed path leading backward from $j$ to $i$.
Simple edge masks can't stop indirect multi-hop detours, and naively gluing the prior graph onto the learned graph creates false cycles. Recent "path-decomposition" methods (like PPO) solved this by breaking the prior knowledge into individual maximal chains and running a separate cycle-check for every single chain. That works beautifully for one chain, but when priors have tiers or multiple interacting branches, the number of paths grows combinatorially—turning per-step gradient updates into a massive computational bottleneck.
Methods
Instead of decomposing prior knowledge into separate paths, PACO (Partial-order-Augmented Continuous Optimization) checks all ordering rules simultaneously in one global pass.
In standard continuous DAG learning, taking the matrix exponential of the squared adjacency matrix, $\exp(W \circ W)$, naturally counts weighted walks of all lengths between nodes: its diagonal detects cycles, while off-diagonal entry $(j, i)$ is positive if and only if there is a directed path from $j$ to $i$.
Here is what PACO introduces on top of standard frameworks:
- Masked Reachability Penalty: The authors compute the strict transitive closure ($O^+$) of the prior—a binary matrix cataloging every implied $i \prec j$ relationship (excluding the diagonal). PACO then takes the inner product of $(O^+)^\top$ and $\exp(W \circ W)$. Any forbidden backward path $j \leadsto i$ lights up a positive penalty; when all priors are respected, the term is strictly zero.
- Single-Block Adjoint Gradient: Prior work shied away from direct reachability penalties assuming the gradients would be too expensive. PACO bypasses this using Higham’s block-augmentation identity, computing both the reachability penalty and its exact Fréchet-adjoint gradient inside a single $2d \times 2d$ matrix exponential. The dominant $\mathcal{O}(d^3)$ matrix-function cost is completely independent of how many paths the prior induces.
- Plug-and-Play Backbones: PACO wraps neatly into a standard augmented-Lagrangian optimizer alongside linear NOTEARS, log-determinant DAGMA, and nonlinear NOTEARS-MLP.
Datasets
Following established differentiable causal discovery benchmarks, PACO is evaluated on:
- Synthetic Benchmarks: Erdős–Rényi (ER) and Scale-Free (SF) random graphs with $d \in \{20, 30, 50, 100\}$ nodes, linear (Gaussian and exponential noise) and nonlinear (
mim) structural equation models, tested across single-chain and multi-chain partial-order regimes. - Sachs Protein-Signaling Dataset: A standard real-world biological dataset ($d = 11$ variables, evaluated at sample sizes $n \in \{50, 100, 500, 853\}$) measuring protein and phospholipid expression levels.
No new datasets are introduced; synthetic configurations mirror the prior PPO benchmark for paired comparisons.
Key Insights and Ideas
- Exact Feasible-Set Equivalence: PACO isn't an approximation. The authors prove (Theorem 1) that PACO’s zero-penalty set admits the exact same family of valid DAGs as path-decomposition methods.
- Same Destination, Smoother Landscape: Even though PACO and PPO share the same exact zero-set, their finite-tolerance optimization landscapes differ. When path counts climb, PPO struggles to jointly satisfy dozens or hundreds of competing path-augmented constraints at once, occasionally violating the supplied prior. PACO's unified global penalty maintained 100% prior obedience across every completed synthetic run.
- Decoupling Topology from Compute: A tiered partial order over 100 variables can easily induce over 10,000 maximal paths. By operating on the transitive closure mask rather than path lists, PACO makes dense, multi-chain domain knowledge computationally practical.
Key Results
- Massive Multi-Path Speedups: At $d=50$ with ~100 induced paths, PACO is 10.7× faster than PPO on linear NOTEARS, 8.0× faster on DAGMA, and 37.8× faster on NOTEARS-MLP. Scaling to $d=100$ with $>10,000$ paths, PACO finishes in ~187 seconds while PPO hits time limits—a $\ge$644× speedup.
- Matched or Cleaner Structural Recovery: Across synthetic settings, PACO matches or slightly beats PPO on Structural Hamming Distance (SHD) and F1—for example, improving 5-chain DAGMA SHD at $d=50$ from 46.12 down to 39.36.
- Real-World Gains: On the Sachs dataset ($n=853$, 11-node chain prior), PACO reduces SHD from 11.0 (PPO) to 9.0 (vs. 12.0 unconstrained) and boosts F1 from 0.44 to 0.64.
Limitations and Future Work
- No Free Lunch on Single Chains: When a prior has only a single maximal path ($|\mathcal{P}(O^-)| = 1$), PACO’s $2d \times 2d$ Fréchet derivative overhead makes it slightly slower than path decomposition (up to $2.51\times$ at $d=50$, or 305s vs. 197s at $d=100$). Its speed advantage is strictly a multi-path phenomenon.
- Consistent Priors Required: While PACO degrades gracefully if priors are incomplete, it assumes priors are accurate. A wrong prior ($i \prec j$ when $j$ actually causes $i$) strictly forbids the true causal direction; handling noisy priors will require softer constraint formulations.
- Causal Sufficiency: Like the NOTEARS family, PACO assumes no hidden confounders. Extending masked reachability to latent-confounder graphs (such as maximal ancestral graphs) is left for future work.
Summary updated