TL;DR
This paper introduces the first score-matching framework for causal discovery tailored specifically for discrete and categorical data. By leveraging generalized score matching and a novel "non-decreasing randomness" criterion, the authors successfully reconstruct the topological ordering of causal graphs, significantly boosting the accuracy of existing causal discovery algorithms.
What Problem Does This Paper Address?
Causal discovery aims to uncover the underlying Directed Acyclic Graph (DAG) of a system from purely observational data. This task is notoriously difficult because searching the space of all possible DAGs is an NP-hard problem. A popular workaround is ordering-based causal discovery, which breaks the problem into two steps: first, find a valid topological order of the variables (by sequentially identifying "leaf" nodes that have no outgoing edges), and second, prune the remaining edges to recover the exact graph.
Recently, score matching (which uses the gradient of the data's log-likelihood) has revolutionized ordering-based discovery for continuous data. However, standard score matching fails completely for discrete data because gradients are not well-defined for categorical variables. This paper addresses this major gap, bringing the efficiency and robustness of score-matching causal discovery to discrete datasets.
Methods
The authors extend score matching to discrete spaces using generalized score matching. Instead of standard continuous gradients, they define a discrete score function using the reciprocal of singleton conditional densities:
$$\frac{1}{p(x_i | x_{-i})}$$
To estimate these discrete scores efficiently from observational data, they employ continuous-time discrete diffusion models parameterized by a Transformer architecture.
To identify leaf nodes, the authors introduce the Non-Decreasing Randomness Condition. In continuous causal models, leaf nodes are typically found by tracking how noise variance propagates and increases along a causal path. For discrete data, the authors substitute variance with abstract measures of randomness (specifically, Schur-concave functions like Shannon entropy or negative variance). They prove mathematically (Theorem 1) that a true leaf node will maximize the expected randomness of its discrete score function.
Their algorithm, SCORE, sequentially identifies and removes leaf nodes to establish a full topological order. Additionally, they introduce a practical diagnostic test (Algorithm 2) using conditional independence tests to verify the validity of an inferred ordering based on a known maximum in-degree ($deg_{max}$).
Datasets
The method was evaluated on both synthetic and real-world discrete benchmarks:
- Synthetic Datasets: Random DAGs generated via Erdos-Rényi (ER) and Scale-Free (SF) structures, with node counts ($d$) up to 60 and variable cardinalities (number of states) ranging from 3 to 6.
- Real-World Networks: Six classic discrete Bayesian networks from the
bnlearnrepository: Earthquake ($d=5$), Sachs ($d=11$), Child ($d=20$), Insurance ($d=27$), Mildew ($d=35$), and Alarm ($d=37$).
All experiments evaluated performance using a fixed sample size of $N = 10,000$.
Key Insights and Ideas
- Randomness as the New Variance: Translating continuous causal assumptions to discrete ones requires moving away from quantitative values to probability vectors. Utilizing majorization theory and Schur-concave functions elegantly bridges this conceptual gap.
- Information Accumulation: The core assumption relies on the physical intuition that as causal effects propagate down a graph, children accumulate and amplify environmental noise, making them inherently more "random" than their parents.
- Order Regularization: Even if the inferred global ordering isn't 100% perfect, providing a partially correct topological order acts as a powerful regularizer, helping downstream edge-pruning algorithms escape local minima and avoid cyclic errors.
Key Results
Integrating the inferred topological order into standard discrete causal discovery baselines—such as the PC algorithm, Greedy Equivalence Search (GES), and Generalized Additive Models (GAM)—led to massive performance gains across the board.
- F1 Score & Structural Intervention Distance (SID): The combined approach (e.g.,
SCORE+PCorSCORE+GES) significantly outperformed standalone baselines. Higher F1 scores and lower SIDs indicate much more reliable causal graph reconstruction and safer interventional predictions. - As demonstrated in the Erdos-Rényi graph experiments, the topological divergence ($D_{top}$) remains remarkably close to zero, proving the robustness of the leaf-node detection strategy even in high-dimensional settings ($d=60$).
Limitations and Future Work
- Computational Bottleneck: The current algorithm requires retraining the continuous-time discrete diffusion model at every single iteration of the leaf-removal process. This iterative retraining makes the total search time a dominant factor.
- Scalability Improvements: The authors suggest that future work could implement adaptive masking strategies. This would allow a single neural network model to approximate scores across various missing data patterns, potentially reducing the order search complexity strictly to $O(d)$.
- Assumption Dependency: Like all causal identifiability theories, the method relies on prior structural knowledge (the non-decreasing randomness assumption), which might be violated in some real-world scenarios where children have lower entropy than their parents.
Summary updated