NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Differentiable Structure Learning with Partial Orders

Taiyu Ban, Lyuzhou Chen, Xiangyu Wang, Xin Wang, Derui Lyu, Huanhuan Chen

Causal discovery—the process of identifying cause-and-effect relationships from observational data—is traditionally an NP-hard problem due to the massive search space of Directed Acyclic Graphs (DAGs). Recently, a breakthrough known as differentiable structure learning (exemplified by algorithms like NOTEARS) revolutionized the field by treating graph search as a continuous optimization problem.

However, these continuous methods have historically struggled to incorporate real-world prior knowledge, such as partial orders (e.g., "Event A must happen before Event B"), which exist in discrete sequence spaces. This paper introduces a "plug-and-play" module to seamlessly integrate partial order constraints into differentiable causal discovery, achieving superior structure recovery with drastically less data.

Methodology: Augmented Acyclicity

To map discrete partial orders into continuous graph constraints without prohibitive computational costs, the authors propose a novel technique called Augmented Acyclicity:

  1. Path Prohibition: The core principle is that if $X$ precedes $Y$ in a known order, $Y$ cannot be an ancestor of $X$. Therefore, no directed path can exist from $Y$ back to $X$.
  2. The "Augmentation" Trick: Checking all $O(m^2)$ possible paths for a sequence of $m$ variables is too slow for optimization. Instead, the method finds the "transitive reduction" of the partial orders (the essential skeleton) and identifies maximal paths.
  3. Virtual Edges: The algorithm creates an "augmented" adjacency matrix by adding "virtual edges" that represent these prior orders. When the standard acyclicity constraint checks for cycles, it detects these virtual edges. Any causal path attempting to violate the prior creates a cycle in this augmented space, which the optimizer then penalizes and removes.

This approach is mathematically proven for correctness and completeness, and it easily integrates into existing algorithms like NOTEARS, NOTEARS-MLP, or DAGMA.

Datasets and Evaluation

The method was evaluated on both synthetic and real-world data:

  • Synthetic Data: Random DAGs generated using Erdös-Rényi (ER) and Scale-Free (SF) models, testing linear and non-linear relationships with Gaussian and Exponential noise.
  • Real-World Data (Sachs): A classic biological dataset measuring protein and phospholipid expression in human immune cells (11 nodes, 17 edges).

Key Results

  • Data Efficiency: The most striking insight is how effectively prior knowledge compensates for a lack of data. On the Sachs dataset, incorporating partial order priors allowed the method to achieve higher accuracy using just 50 samples compared to the baseline method requiring the full 853 samples—a greater than 90% reduction in data needs.
  • Structural Accuracy: Across synthetic tests, the Prior Partial Order (PPO) augmented algorithms consistently demonstrated lower Structural Hamming Distance (SHD)—meaning fewer errors in edge direction and existence—and higher F1 scores.
Comprehensive synthetic evaluation showing improved SHD and F1 scores across different noise types and graph structures.
  • Robustness and Adaptability: The PPO module proved highly effective even in complex, non-linear scenarios. Because it is a plug-and-play module, it successfully enhances various base algorithms without prohibitive computational overhead.
Performance of PPO integrated with NOTEARS-MLP (nonlinear data) and DAGMA (linear data with exponential noise).

Limitations and Future Work

  • Soft Constraints: Because the optimization uses an Augmented Lagrangian approach, the constraints are "soft." Extreme data contradictions might result in minor violations of the order constraint in the final output.
  • Complex Overlaps: While highly efficient for sequential chains, computational costs can increase if prior knowledge involves many overlapping, complex partial orders that resist simplification into maximal paths.
  • Prior Reliability: Incorrect prior knowledge can severely mislead the model ("garbage in, garbage out"). Future research may explore "softening" priors further or enabling the model to detect and reject likely incorrect priors based on observational data.

Summary updated

BibTeX
@inproceedings{ban2024differentiable,
  author = {Taiyu Ban and Lyuzhou Chen and Xiangyu Wang and Xin Wang and Derui Lyu and Huanhuan Chen},
  title = {{Differentiable Structure Learning with Partial Orders}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=B2cTLakrhV},
}
Figure