Discrete Score Matching Enables Causal Discovery from Count Data
Authors: Euijong Song, Hyewon Park, Gunwoong Park
Organizations: Department of Statistics Seoul National University, Korea · Interdisciplinary Program in Artificial Intelligence; Institute for Data Innovation in Science, Seoul National University, Korea
Count data pose a challenge for score-matching-based causal discovery: derivatives are unavailable, and simply replacing them with finite differences does not generally suffice for causal discovery. We generalize SCORE's constant-curvature criterion (Rolland et al., 2022) by conditioning on the node's value, yielding the conditional curvature score (CCS) for ordering. We also extend curvature-based parent recovery through the off-diagonal curvature score (OCS), enabling directed acyclic graph (DAG) recovery with both scores constructed from score functions for continuous data and concrete scores for counts. In the bivariate setting, zero CCS exactly characterizes a semiparametric generalized linear model (GLM) conditional form in which the conditional family need not be specified in advance, unlike in classical GLMs. For bivariate semiparametric GLM DAGs under our regularity condition, canonical-parameter nonlinearity is necessary and sufficient for identifiability. In multivariate DAGs, this nonlinearity enables DAG recovery through CCS and OCS. Our framework identifies a new class of semiparametric GLM DAGs that strictly contains the nonlinear Gaussian ANM class identified by SCORE. We introduce DISCO (DIscrete SCOre), a count-DAG recovery algorithm that estimates CCS and OCS using discrete diffusion. Experiments demonstrate accurate DAG recovery across Poisson, negative binomial, binomial, and mixed-family settings, as well as scalability to 1,000-node DAGs on a single GPU.
Figures & tables
Conditional Xj∣xPaG(j)
Conditional family
Support
Link g
Poisson(expf)
Poisson
N0
log
Poisson(softplusf)
Poisson
N0
softplus−1
NB(r,expf)
NB (r)
N0
log
Binomial(M,sigmoid(f))
Binomial (M)
{0,…,M}
μ↦logit(μ/M)
N(f,τ2)
Gaussian
R
identity
Gamma(α,expf)
Gamma (α)
(0,∞)
log
Table 1: Example conditional distributions, with index f=fj(xPaG(j)) and logistic function sigmoid . Noncanonical links can yield nonlinear η even for affine f . NB and Gamma use the mean as their second parameter, with fixed size r and shape α , respectively.
Figure 1: End-to-end F1 versus sample size on DAGs with d=100 : (a) NB with r=1 ; (b) NB with r=6 ; and (c) the mixed NB → Bin → Poi configuration. Points and error bars show the median and interquartile range. ODS (Oracle) uses the true nodewise conditional families and their fixed parameters.
Family
Constant
CCS
Gain
Poi
68.3
81.7
+13.3
NB
73.3
93.3
+20.0
Bin
80.0
83.3
+3.3
Table 2: Ordering and parent-selection comparisons ( d=50 , n=5000 ). (a) Sink-selection accuracy: Constant denotes the constant-curvature criterion; gain is in percentage points. (b) Mean F1 given the same estimated DISCO order.
d=100
d=200
d=500
d=1000
Method
F1
Total time (min)
F1
Total time (min)
F1
Total time (min)
F1
Total time (min)
DISCO
0.915
2.7
0.835
3.5
0.769
10.8
0.769
57.4
ODS (Oracle)
0.725
12.5
0.713
37.0
0.729
204.7
–
Timeout
MRS
0.786
3.5
0.763
10.8
0.742
96.3
–
Timeout
NOTEARS-MLP
0.467
174.1
–
Timeout
–
Timeout
–
Timeout
DiffAN
–
Timeout
–
Timeout
–
Timeout
–
Timeout
Table 3: Scalability on Poisson DAGs ( n=5000 ; numerical entries are medians). Timeout : runtime exceeds 240 minutes.
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
Symbol
Meaning (defined in)
G=(V,E) , ∣V∣=d
DAG and number of nodes (Sec. 2.2 )
G
estimated DAG (Sec. 6.3 )
PaG(j),ChG(j)
parents and children of j (a sink has ChG(j)=∅ )
source node
a node j with PaG(j)=∅
R⊆V
remaining node set, ancestral when obtained by recursive sink removal
GR,PR,pR
induced subgraph, marginal distribution of XR , and its density
Appendix
Table 4: Recurring symbols.
Conditional family
Conditional response
ϕ(x)
b0
Coefficients
Poi
μj=0.2+softplus(zj)
x
0.5
[0.30,0.45]
μj=exp(zj)
log(1+x)
0.4
[0.15,0.30]
NB
μj=0.2+softplus(zj)
x
0.5
[0.30,0.45]
μj=exp(zj)
log(1+x)
0.4
[0.15,0.30]
Bin
qj=Φ(zj)
x/50
−1.28
[0.50,1.00]
qj=sigmoid(zj)
x/50
−2.197
[0.60,0.90]
Appendix
Table 5: The six single-family benchmark mechanisms. Coefficients are drawn independently and uniformly from the stated intervals.
Conditional family
Criterion
Atop
F1
SHD
Poi
Constant
0.915±0.022
0.883±0.037
31.5±9.4
CCS
0.931±0.017
0.892±0.034
28.9±8.7
NB
Constant
0.907±0.019
0.763±0.070
57.9±15.5
CCS
0.931±0.017
0.792±0.066
51.2±15.4
Bin
Constant
0.899±0.028
0.884±0.027
30.8±7.7
CCS
0.901±0.027
0.877±0.031
32.3±8.4
Appendix
Table 6: DAG recovery with CCS and the constant-curvature criterion ( d=50 , n=5000 ). Entries are means ± sample standard deviations over 10 seeds. Constant denotes the constant-curvature criterion.
Raw counts
log(1+x)
Anscombe
x2+x
Method
Atop
F1
Atop
F1
Atop
F1
Atop
F1
DISCO
0.922
0.894
0.922
0.894
0.922
0.894
0.922
0.894
DISCO-NoRank
0.937
0.899
0.897
0.726
0.890
0.860
0.834
0.301
Appendix
Table 7: Invariance to strictly increasing transformations on Poisson DAGs ( d=50 , n=5000 ). Entries are medians. DISCO-NoRank omits the rank transform.
Figure 2: Extended single-family comparison across all six mechanisms and six sample sizes. Columns correspond to the Poi, NB, and Bin conditional families; the top and bottom rows use the first and second mechanisms for each family in Table 5 , respectively. Points and error bars show the median and interquartile range.
Figure 3: Mixed-family DAG recovery across six conditional-family configurations. Each panel compares DISCO with ODS (Oracle), ODS (Poi), ODS (NB), and ODS (Bin). ODS (Oracle) uses the true nodewise conditional families and their fixed parameters. Points and error bars show the median and interquartile range.
Method
d
Atop
DISCO
100
0.937
200
0.902
500
0.914
1000
0.908
ODS (Oracle)
100
0.819
200
0.816
Appendix
Table 8: Ordering accuracy in the scalability experiments at n=5000 . Entries are medians; configurations marked Timeout in Table 3 are omitted.
Setting
Conditional family
Index/configuration
Atop
F1
SHD
Single- family
Poi
Affine
0.816
0.750
49.0
Nonlinear
0.897
0.873
25.0
NB
Affine
0.841
0.788
42.5
Nonlinear
0.907
0.884
22.0
Bin
Affine
0.886
0.860
28.5
Nonlinear
0.904
0.886
23.0
Appendix
Table 9: Single-family and mixed-family DAG recovery on ER1 graphs ( d=100 , n=5000 ). Entries are medians for DISCO .
Graph
Conditional family
Atop
F1
SHD
SF1
Poi
0.784±0.065
0.705±0.091
28.6±8.5
NB
0.822±0.054
0.741±0.094
24.8±8.9
Bin
0.778±0.060
0.782±0.043
20.1±4.0
SF3
Poi
0.918±0.019
0.719±0.074
65.3±14.4
NB
0.904±0.035
0.620±0.114
82.4±19.7
Bin
0.769±0.050
0.693±0.077
71.2±14.8
Appendix
Table 10: Scale-free count-DAG recovery ( d=50 , n=5000 ). Entries are means ± sample standard deviations.
Conditional family
Atop
F1
SHD
COM–Poisson ( ν=0.5 )
0.934±0.018
0.853±0.033
37.8±8.5
COM–Poisson ( ν=1 )
0.928±0.020
0.877±0.043
32.4±10.2
COM–Poisson ( ν=2 )
0.920±0.019
0.873±0.026
33.6±6.5
Appendix
Table 11: Recovery beyond the three benchmark conditional families ( d=50 , n=5000 ). Entries are means ± sample standard deviations. The ν=1 row uses results from the corresponding Poisson experiment; graph metrics include DISCO parent selection.
Graph
Method
Gaussian
Gamma
ER1
DISCO-Cont
0.877±0.063
0.640±0.126
DiffAN
0.850±0.072
0.540±0.137
ER3
DISCO-Cont
0.866±0.041
0.718±0.021
DiffAN
0.882±0.049
0.657±0.057
Appendix
Table 12: Continuous-data ordering recovery ( d=30 , n=5000 ). Entries report Atop (higher is better) as means ± sample standard deviations.
Figure 4: Ordering and parent-edge diagnostics on the Lahman 2019–2025 q4 representation. The top row shows ODS with Poisson and negative-binomial specifications; the bottom row shows ODS with a binomial specification and DISCO . Blue arrows agree with the reference direction and orange arrows reverse it. Arrow labels report ordering support across the three runs. Solid arrows denote parent edges selected in at least two runs, whereas dashed arrows denote majority ordering without majority parent-edge selection. The reference pairs are used only for post-fit evaluation.
ODS pair
Order agreement
Edge Jaccard
Pairwise SHD
Poi–NB
0.882±0.007
0.747±0.023
16.7±1.5
Poi–Bin
0.988±0.008
0.924±0.021
4.3±1.2
NB–Bin
0.880±0.004
0.713±0.019
19.0±1.0
Appendix
Table 13: Pairwise sensitivity of ODS to the supplied conditional family on the Lahman q4 representation. Entries are mean ± standard deviation across three paired cross-validation assignments. Pairwise SHD compares two fitted directed graphs, not an estimated graph against a causal ground truth.
Representation
Boundary
AtopR7
AtopR17
q4
clipped
0.905
0.843
q4
admissible
0.762
0.804
q6
admissible
0.762
0.765
q8
admissible
0.762
0.784
raw
admissible
0.000
0.137
Appendix
Table 14: Boundary and support-resolution sensitivity of DISCO on Lahman. The first row reproduces the main q4 analysis; the remaining rows use admissible finite differences with the same DISCO training configuration.
Supplied family
AtopR7
AtopR17
Mean ∣E∣
Poi
0.333
0.412
73.7
NB
0.857
0.843
69.3
Bin
0.286
0.392
79.7
Appendix
Table 15: ODS sensitivity on the raw Lahman counts. The binomial row uses empirical nodewise support maxima and is not an oracle binomial specification.
Conditional family
Projection
Atop
F1
SHD
Projection time (s)
Poi
Amortized
0.931±0.017
0.892±0.034
28.9±8.7
92.6
Stagewise direct
0.917±0.016
0.874±0.034
34.0±9.2
511.9
Stagewise recursive
0.916±0.013
0.869±0.032
35.1±8.2
544.5
NB
Amortized
0.931±0.017
0.792±0.066
51.2±15.4
94.0
Stagewise direct
0.923±0.019
0.785±0.055
53.3±13.1
515.0
Stagewise recursive
0.924±0.021
0.788±0.053
52.6±12.9
545.2
Appendix
Table 16: Comparison of marginal concrete-score projection methods ( d=50 , n=5000 ). Recovery metrics are means ± sample standard deviations, with seeds paired across methods within each conditional family. Projection time is the mean wall-clock time for the projection stage, in seconds.
Poi
NB
Bin
Rule
F1
Prec.
Rec.
F1
Prec.
Rec.
F1
Prec.
Rec.
τZ=2,πmin=1
0.877
0.934
0.827
0.797
0.917
0.708
0.878
0.943
0.821
τZ=2,πmin=2/3
0.891
0.898
0.884
0.870
0.898
0.845
0.890
0.895
0.885
τZ=1,πmin=1
0.900
0.898
0.901
0.866
0.892
0.843
0.896
0.906
0.885
τZ=1,πmin=2/3
0.800
0.709
0.917
0.813
0.735
0.910
0.809
0.732
0.907
Appendix
Table 17: Parent-selection sensitivity for the threshold settings shown, with fixed learned orders and OCS estimates ( d=50 , n=5000 ). Entries are arithmetic means over the same seeds. Prec. and Rec. denote precision and recall against the full true DAG, including true edges excluded by the estimated order.
Conditional family
Order
Parent selector
F1
SHD
Poi
True
OCS
0.878
30.8
CAM
0.989
3.2
PCM-GAM
0.839
54.1
Estimated
OCS
0.858
37.2
CAM
0.850
46.3
PCM-GAM
0.712
105.6
Appendix
Table 18: Parent recovery under fixed orders ( d=50 , n=5000 ). Entries are arithmetic means over seeds shared by all methods and both order conditions. Metrics use the full true DAG, including edges excluded by an estimated order. Estimated denotes the shared DISCO order; OCS denotes the default DISCO parent selector.
Causal discovery from observational data is fundamental to statistics and machine learning, yet determining causal direction without interventions necessitates structural assumptions. Existing identifiability research primarily focuses on continuous variables under additive noise models, often neglecting mixed datasets containing ordinal scales, counts, and continuous measurements. This paper investigates causal discovery in Directed Acyclic Graphs (DAGs) where nodes follow either an ordinal distribution (via an ordered logit model) or a regular one-parameter exponential family distribution. We prove that the edge direction between an ordinal and an exponential family node is distributionally identifiable for generic parameter values. Our findings generalize previous Ordinal-Poisson results to the broader exponential family. Computationally, we introduce a score-based exhaustive search and a masked continuous optimization framework using DAGMA for larger graphs. Numerical results validate the theory, recovering edge orientations within a Markov equivalence class that are unidentifiable under classical structural equation models.
Sambit Mishra, Yingying Wang, Christine K. Johnson +1
University of Southern California · University of California, Davis
Continuous causal discovery typically couples representation learning with structural optimization via non-convex acyclicity penalties, which subjects solvers to local optima and restricts scalability in high-dimensional regimes. We propose a decoupled paradigm that shifts the causal discovery bottleneck from non-convex optimization to statistical score estimation. We introduce the Score-Schur Topological Sort (SSTS), an algorithm that extracts topological order directly from unconstrained generative models, bypassing constrained structure optimization. We establish that the causal hierarchy leaves a geometric signature within the score function: iterative graph marginalization is mathematically equivalent to computing the Schur complement of the Score-Jacobian Information Matrix (SJIM) under linear conditions. This translates the acyclicity constraint into an algebraic procedure with a dominant cost of O(d^3) operations. For non-linear systems, we formulate the expectation gap of Schur marginalization and introduce Block-SSTS to compress extraction depth, bounding structural error. Empirically, SSTS allows causal structural analysis on non-linear graphs up to d=1000. At this scale, our framework indicates that once the non-convex optimization bottleneck is mathematically bypassed, the structural fidelity of continuous causal discovery is bounded by the finite-sample estimation variance of the global score geometry. By reducing graph extraction to matrix operations, this work reframes scalable causal discovery from a constrained optimization problem to a statistical estimation challenge.
Rui Wu, Hong Xie
School of Computer Science and Engineering University of Science and Technology of China
Causal discovery from observational data is a fundamental yet challenging task in scientific research. While existing approaches are primarily based on conditional independence tests, structure scores, or restrictive functional assumptions, we propose Decoupled Causal Discovery (DCD), a novel decoupling-based perspective that does not rely on these methodologies. DCD directly identifies the Markov boundary (MB) by decoupling non-target variables via weighting functions, such that only variables within the MB preserve dependence with the target under the decoupled distribution. Building on this, DCD iteratively constructs the Completed Partially Directed Acyclic Graph (CPDAG) by exploiting structural asymmetries within the MBs. We establish the theoretical identifiability, soundness, and completeness of DCD. Empirical evaluations demonstrate that DCD achieves strong performance, particularly excelling in challenging noise regimes.
Zhengkang Guan, Fei Wu, Kun Kuang
College of Computer Science and Technology Zhejiang University