Boosting Differentiable Causal Discovery via Adaptive Sample Reweighting

An Zhang, Fangfu Liu, Wenchang Ma, Zhibo Cai, Xiang Wang, Tat-Seng ChuaarXiv 2023 · DOI

Introduction

Causal discovery—the process of inferring directed acyclic graphs (DAGs) from observational data—is a cornerstone of scientific inquiry. Recently, the field has seen a significant shift toward differentiable score-based methods, such as the NOTEARS algorithm, which transform the discrete search for a DAG into a continuous optimization problem. While these methods offer impressive efficiency, they are often hampered by two critical issues: the tendency to learn spurious correlations from "easy-to-fit" samples and a failure to account for data heterogeneity without explicit domain labels.

To address these challenges, we introduce ReScore (Reweighted Score), a model-agnostic framework designed to enhance the performance of existing differentiable DAG learners through a bilevel optimization scheme.

The Problem: Spuriousness and Heterogeneity

Standard differentiable methods often over-exploit samples that are easily explained by simple correlations. This leads to the inclusion of "spurious edges"—relationships that look like causation but are actually just noise or coincidental patterns.

Furthermore, most models assume data homogeneity, implying that all observations originate from a single distribution. In practice, data is often collected across diverse environments or time periods. When noise distributions vary across these environments, standard models fail because they attempt to optimize for a non-existent "average" case. Existing solutions for heterogeneous data typically require expensive domain annotations to distinguish between environments, a requirement that is often impractical in real-world scenarios.

The ReScore Framework

ReScore functions as a wrapper around almost any existing differentiable DAG learner. Its core innovation is a bilevel optimization strategy that adaptively reweights data samples based on their informativeness:

  • The Inner Loop (Weight Optimization): For a fixed DAG model, the framework searches for a set of sample weights that maximize the loss. This identifies "hard-to-fit" samples that the current model is failing to explain. These samples are often the most causally informative, containing the specific variance needed to distinguish true causal directions (e.g., $A \to B$ vs. $B \to A$).
  • The Outer Loop (DAG Optimization): The DAG learner is then updated to minimize this reweighted loss. By forcing the learner to focus on difficult, informative samples, the model is less likely to be led astray by easy-to-fit spurious edges.

To prevent the model from focusing entirely on extreme outliers or pure noise, ReScore introduces a cutoff threshold ($\tau$). This ensures the weights stay within a reasonable range, maintaining the statistical identifiability of the causal structure.

Experimental Evaluation

The researchers evaluated ReScore using a comprehensive suite of benchmarks, including synthetic graphs (Erdos-Renyi and Scale-Free) with 10 to 50 nodes, and both linear and nonlinear structural equation models.

Handling Heterogeneity

In a custom setup where 10% of the data originated from a "disadvantaged" group with different noise scales, ReScore demonstrated its ability to handle distribution shifts. It effectively "discovers" hidden data groups, automatically assigning higher weights to underrepresented samples. In these tests, ReScore outperformed state-of-the-art methods like CD-NOD and DICD, despite those methods having the advantage of knowing the ground-truth domain labels.

Real-World Success: The Sachs Dataset

On the Sachs dataset—a classic benchmark consisting of flow cytometry data measuring protein signaling pathways—ReScore provided consistent boosts. It improved the Structural Hamming Distance (SHD) of NOTEARS-MLP from 16 to 13 and GOLEM from 15 to 14, identifying more correct biological edges with fewer false positives.

Key Results and Insights

  • Structural Accuracy: On synthetic data, ReScore reduced the SHD—a measure of error in the graph—by 3% to 60% compared to the original backbone methods.
  • Plug-and-Play Utility: Because it is a wrapper around the optimization process, ReScore works seamlessly with various backbones like NOTEARS, GOLEM, and GraN-DAG.
  • Harder is Better: The fundamental insight of ReScore is that samples the model finds difficult to fit are often the most "causally informative," whereas easy samples may only confirm simple correlations.

Limitations and Future Work

While ReScore is a powerful booster, it remains reliant on its underlying backbone; if a DAG learner is fundamentally incapable of handling a specific high-dimensional graph, ReScore cannot entirely compensate. Additionally, while the $\tau$ threshold mitigates outliers, extremely high levels of pure noise can still potentially confuse the adaptive weighting mechanism. Future research will focus on extending the current theoretical proofs for identifiability from linear systems to complex nonlinear deep learning models.

Summary updated

BibTeX
@misc{zhang2023boosting,
  author = {An Zhang and Fangfu Liu and Wenchang Ma and Zhibo Cai and Xiang Wang and Tat-Seng Chua},
  title = {{Boosting Differentiable Causal Discovery via Adaptive Sample Reweighting}},
  year = {2023},
  eprint = {2303.03187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.03187},
}
Figure