Skip to content

Menu

WorksMathematics

Weighted Score Matching on Bounded Domains: Nonparametric Density Estimation and Interaction Graph Recovery

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_am3bhawv. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

We study nonparametric density estimation and interaction-graph recovery on bounded product domains using boundary-weighted score matching. In a canonically centered pairwise log-density model, graph edges are determined by bivariate interactions, but penalizing the univariate main effects can induce false edges. We derive the resulting shift in interaction scores and study partially penalized weighted score matching (P-WSM), which leaves main effects unpenalized. At the population level, P-WSM excludes edges between independent subsystems even when the marginal log densities are not represented exactly by the sieve. A nonparametric construction separates partial and joint penalization: throughout a common deterministic tuning interval, P-WSM recovers the graph while joint penalization selects a false edge. We also give growing-dimensional recovery conditions that do not require full-Gram invertibility. For density estimation at fixed dimension, we establish weighted Fisher-divergence rates and, under stronger basis-specific conditions, Kullback-Leibler and Hellinger rates for the normalized estimator. Simulations examine the benefits and limitations of partial penalization. An analysis of bone-marrow signaling data illustrates nonlinear conditional-association estimation.

Introduction

Bounded multivariate measurements arise in applications involving proportions, physical constraints, and normalized scientific data, including representations of single-cell cytometry measurements [1]. Two related objectives are flexible joint density estimation and identification of conditional associations. In an undirected graphical model, a missing edge represents conditional independence given the remaining variables [8, 7].

Gaussian graphical models encode conditional independence through precision matrix zeros [21]. Gaussian densities and their rectangular truncations, however, have quadratic log densities with bilinear interactions and cannot represent arbitrary nonlinear interaction functions. Fully nonparametric multivariate density estimation offers greater flexibility but faces dimensionality and boundary challenges. We therefore study density estimation and graph recovery within a nonparametric pairwise log-density model on a bounded product domain.

Let X=(X1,…,Xp)X = (X_1,\ldots,X_p) take values in Ω=Xp\Omega= \mathcal{X}^p, where X=[a,b]\mathcal{X} = [a,b], and write

log⁡p0(x)=C+∑i=1pfi(xi)+∑1≤i<j≤pfij(xi,xj).\log p_0(x) = C + \sum_{i=1}^{p} f_i(x_i) + \sum_{1 \leq i < j \leq p} f_{ij}(x_i,x_j).

Canonical centering uniquely identifies the main effects fif_i and interactions fijf_{ij}. For positive densities in this family, fij≡0f_{ij} \equiv0 is equivalent to Xi⊥Xj∣X−{i,j}X_i \perp X_j \mid X_{-\{i,j\}}. Thus graph recovery amounts to selecting the nonzero bivariate components, whereas the univariate components are nuisance parameters for edge selection.

Likelihood-based estimation generally requires evaluating an intractable normalizing constant. Score matching avoids this calculation by targeting the log-density score [4]. On bounded domains, however, the integration-by-parts boundary terms underlying classical score matching need not vanish. Coordinatewise boundary-vanishing weights remove these terms under suitable regularity conditions [11]. Combining this construction with centered sieve expansions yields a convex quadratic loss independent of the normalizing constant.

Main effects do not determine the graph, but their estimation can affect edge selection. The score-matching loss couples main-effect and interaction coefficients through its cross-Hessian. Penalizing the main effects therefore shifts the interaction scores and can cause a missing edge to be selected. This can occur even when both penalties tend to zero.

We study partially penalized weighted score matching (P-WSM), which penalizes interaction blocks and leaves main effects unpenalized. The main effects can be profiled out when their Hessian block is nonsingular. We compare P-WSM with Joint-WSM, which penalizes both types of component using the same basis, weights, loss, and interaction penalty. The comparison isolates the effect of nuisance penalization; it does not imply that leaving main effects unpenalized always improves recovery.

Our framework builds on several established developments. Log-density ANOVA connects nonparametric interaction modeling with conditional independence [6, 16] (Gu et al. 2013). Score matching has been developed for non-Gaussian graphical models and infinite-dimensional exponential families [10, 15, 14]. In particular, Janofsky [5] studies regularized score matching for nonparametric exponential-series graphical models, including model-selection theory with growing truncation. Nuisance profiling through a Schur complement also appears in generalized score matching (Yu et al. 2019, 2022). Here we study the effect of nuisance penalization on edge selection, rather than profiling as a computational device.

Contributions. Our contributions are as follows.

First, we derive the contribution of main-effect shrinkage to the interaction scores. We then construct a three-variable model with infinitely many nonzero interaction coefficients in which P-WSM recovers the graph while Joint-WSM selects a false edge throughout a common deterministic tuning interval. Both objectives attain unique minimizers throughout the interval, so the separation concerns graph selection rather than existence or uniqueness.

Second, we prove that population P-WSM excludes edges between independent subsystems, even when the main-effect sieve does not represent the marginal log densities exactly. We also establish growing-dimensional edge recovery under restricted conditioning and inactive-margin assumptions, without requiring full-Gram invertibility. Companion conditions for Joint-WSM describe when joint penalization also recovers the graph.

Third, for density estimation at fixed dimension, we obtain weighted Fisher-divergence rates for the unrestricted quadratic estimator. Weighted Poincaré inequalities and oscillation bounds give Kullback-Leibler (KL) and Hellinger rates for the exactly normalized density under stronger basis-specific conditions.

§ 2 introduces the model, estimators, and computational procedures. § 3 develops density-risk bounds and graph-recovery theory. § 4 and § 5 present simulations and an analysis of bone-marrow signaling data. § 6 concludes. Technical proofs and additional empirical results appear in the Supplementary Material.

Weighted score matching on bounded domains: modeling, estimation, and computation

Density estimation and graph recovery use the same pairwise log-density model and weighted score-matching loss. They differ in regularization: density estimation uses an unpenalized sieve fit, whereas graph recovery penalizes interaction blocks while leaving main effects unpenalized.

Pairwise interaction model and conditional independence

Let X=(X1,…,Xp)\mathbf{X}=(X_1,\ldots,X_p) be a continuous random vector on Ω=Xp\Omega=\mathcal{X}^p, where X=[a,b]\mathcal{X}=[a,b] with a<ba<b. Let p0p_0 denote its density, assumed positive almost everywhere, and suppose h0=log⁡p0∈L2(Ω)h_0=\log p_0\in L_2(\Omega). Throughout, function equalities hold almost everywhere with respect to Lebesgue measure.

Assume that h0h_0 belongs to the canonically centered pairwise ANOVA family

h0(x)=C+∑i=1pfi(xi)+∑1≤i<j≤pfij(xi,xj),x∈Ω,(1)h_0(\mathbf{x})=C+\sum_{i=1}^{p}f_i(x_i)+\sum_{1\leq i<j\leq p}f_{ij}(x_i,x_j),\qquad\mathbf{x}\in\Omega, \tag*{(1)}

where CC is determined by normalization, fi∈L2(X)f_i\in L_2(\mathcal{X}), and fij∈L2(X2)f_{ij}\in L_2(\mathcal{X}^2). The canonical centering constraints are ∫Xfi(u) du=0\int_{\mathcal{X}} f_i(u)\,\mathrm{d}u=0, ∫Xfij(u,xj) du=0\int_{\mathcal{X}} f_{ij}(u,x_j)\,\mathrm{d}u=0, and ∫Xfij(xi,u) du=0\int_{\mathcal{X}} f_{ij}(x_i,u)\,\mathrm{d}u=0 for every i<ji<j.

These constraints separate marginal structure from genuine pairwise interaction. To make this distinction precise, let AihA_i h denote averaging hh over coordinate ii under the uniform distribution on X\mathcal{X}. The commuting averaging operators generate the orthogonal projections ΠS=∏i∈S(I−Ai)∏i∉SAi\Pi_S=\prod_{i\in S}(I-A_i)\prod_{i\notin S}A_i, S⊆[p]S\subseteq[p], and the functional ANOVA decomposition h=∑S⊆[p]ΠShh=\sum_{S\subseteq[p]}\Pi_S h for h∈L2(Ω)h\in L_2(\Omega). Consequently, (1) is precisely the structural restriction ΠSh0=0\Pi_S h_0=0 for ∣S∣≥3|S|\geq3, with unique components C=Π∅h0C=\Pi_{\varnothing}h_0, fi=Π{i}h0f_i=\Pi_{\{i\}}h_0, and fij=Π{i,j}h0f_{ij}=\Pi_{\{i,j\}}h_0. In particular, the interaction components cannot absorb arbitrary main effects.

Define the undirected graph G0=([p],E0)G_0=([p],E_0), where E0={{i,j}:i<j, ∥fij∥L2(X2)>0}E_0=\{\{i,j\}:i<j,\ \lVert f_{ij}\rVert_{L_2(\mathcal{X}^2)}>0\}.

Proposition 1 (Pairwise interactions and conditional independence). Suppose p0>0p_0>0 almost everywhere on Ω\Omega and satisfies (1) with canonical centering. For every i<ji<j, Xi⊥Xj∣X−{i,j}X_i\perp X_j\mid X_{-\{i,j\}} if and only if fij≡0f_{ij}\equiv0. Thus G0G_0 is its conditional-independence graph.

Proof. For almost every fixed x−{i,j}\mathbf{x}_{-\{i,j\}}, the conditional log density of (Xi,Xj)(X_i,X_j) is C(x−{i,j})+ui(xi,x−{i,j})+uj(xj,x−{i,j})+fij(xi,xj)C(\mathbf{x}_{-\{i,j\}})+u_i(x_i,\mathbf{x}_{-\{i,j\}})+u_j(x_j,\mathbf{x}_{-\{i,j\}})+f_{ij}(x_i,x_j). If fij=0f_{ij}=0, exponentiation gives conditional factorization. Conversely, conditional independence and positivity make this conditional log density additive in xi,xjx_i, x_j. Applying the two-coordinate centering operator (I−Ai)(I−Aj)(I-A_i)(I-A_j) to its L2(X2)L_2(\mathcal{X}^2) slice annihilates the constant and additive terms, leaving fij=0f_{ij}=0.

This is the log-density ANOVA formulation of conditional density factorization [2, 6]. Our graph-recovery theory assumes correct pairwise specification. With higher-order log-density interactions, minimizing the population criterion instead targets a weighted-score approximation within the fitted pairwise family, when a minimizer exists; its interaction support need not equal the true conditional-independence graph. The tensor-product basis and coordinatewise boundary construction also exploit the product domain Ω\Omega; general domains require a different boundary treatment (Yu et al. 2022).

Weighted Fisher divergence

For a positive candidate density qq, write sq=∇log⁡qs_q=\nabla\log q and sq,i=∂ilog⁡qs_{q,i}=\partial_i\log q. Let g=(g1,…,gp)T\mathbf{g}=(g_1,\ldots,g_p)^{\mathsf{T}} be a deterministic nonnegative weight function such that gig_i vanishes on the faces xi=a,bx_i=a,b, with regularity as in Assumption 2. Define

Jg(p0∥q)=E0∑i=1pgi(X){sp0,i(X)−sq,i(X)}2,(2)J_g(p_0\Vert q)=\mathbb{E}_0\sum_{i=1}^{p}g_i(X)\{s_{p_0,i}(X)-s_{q,i}(X)\}^2, \tag*{(2)}

where E0\mathbb{E}_0 denotes expectation under p0p_0. The weights serve two distinct purposes: positivity in the interior preserves identification, whereas boundary behavior permits integration by parts. The first property does not require the second.

Lemma 1 (Identification through weak derivatives). Let U=(a,b)pU=(a,b)^p, and let p0,qp_0,q be normalized densities positive almost everywhere on UU. Suppose log⁡p0,log⁡q∈Wloc1(U)\log p_0,\log q\in W^{1}_{\mathrm{loc}}(U), and each gig_i is measurable, finite, and strictly positive almost everywhere. Interpreting (2) through weak derivatives, Jg(p0∥q)=0J_g(p_0\Vert q)=0 implies q=p0q=p_0 almost everywhere.

Proof. Positivity of p0gip_0g_i gives ∇(log⁡q−log⁡p0)=0\nabla(\log q-\log p_0)=0 almost everywhere. A locally Sobolev function with zero weak gradient on connected UU is constant almost everywhere. Normalization makes this constant zero.

Thus, weights may vanish at the boundary without compromising identification. This is a qualitative statement: it does not by itself bound density error by weighted score error or guarantee well-conditioned estimation.

For candidate potentials satisfying the conditions of Supplementary Lemma S.1, integration by parts eliminates the unknown score of p0p_0 Liu et al. [11]:

References

  1. [1]Bendall, S. C., Simonds, E. F., Qiu, P., Amir, E.-a. D., Krutzik, P. O., Finck, R., Bruggner, R. V., Melamed, R., Trejo, A., Ornatsky, O. I. et al. (2011), ‘Single-cell mass cytometry of differential immune and drug responses across a human hematopoietic continuum’, Science 332(6030), 687–696.DOI
  2. [2]Dawid, A. P. (1979), ‘Conditional independence in statistical theory’, Journal of the Royal Statistical Society: Series B (Methodological) 41(1), 1–15.DOI
  3. [4]Hyvärinen, A. (2005), ‘Estimation of non-normalized statistical models by score matching’, Journal of Machine Learning Research 6, 695–709.
  4. [5]Janofsky, E. (2018), ‘Learning high-dimensional graphical models with regularized quadratic scoring’. arXiv:1809.05638.arxiv.org/abs/1809.05638
  5. [6]Jeon, Y. & Lin, Y. (2006), ‘An effective method for high-dimensional log-density anova estimation, with application to nonparametric graphical model building’, Statistica Sinica 16(2), 353–374.
  6. [7]Jordan, M. (2004), ‘Graphical models’, Statistical Science 19(1), 140–155.
  7. [8]Lauritzen, S. L. (1996), Graphical models, Vol. 17, Clarendon Press.
  8. [9]Leday, G. G. & Richardson, S. (2019), ‘Fast bayesian inference in large gaussian graphical models’, Biometris 75(4), 1288–1298.DOI
  9. [10]Lin, L., Drton, M. & Shojaie, A. (2016), ‘Estimation of high-dimensional graphical models using regularized score matching’, Electronic journal of statistics 10(1), 806–854.DOI
  10. [11]Liu, S., Kanamori, T. & Williams, D. J. (2022), ‘Estimating density models with truncation boundaries using score matching’, Journal of Machine Learning Research 23(186), 1–38.
  11. [12]Mardia, K. V., Hughes, G., Taylor, C. C. & Singh, H. (2008), ‘A multivariate von mises distribution with applications to bioinformatics’, Canadian Journal of Statistics 36(1), 99–109.DOI
  12. [13]Ravikumar, P., Lafferty, J., Liu, H. & Wasserman, L. (2009), ‘Sparse additive models’, Journal of the Royal Statistical Society Series B: Statistical Methodology 71(5), 1009–1030.
  13. [14]Sriperumbudur, B., Fukumizu, K., Gretton, A., Hyv, A., Kumar, R. et al. (2017), ‘Density estimation in infinite dimensional exponential families’, Journal of Machine Learning Research 18(57), 1–59.
  14. [15]Sun, S., Kolar, M. & Xu, J. (2015), ‘Learning structured densities via infinite dimensional exponential families’, Advances in neural information processing systems 28.
  15. [16]Tan, K. M., Lu, J., Zhang, T. & Liu, H. (2019), ‘Layer-wise learning strategy for nonparametric tensor product smoothing spline regression and graphical models’, Journal of machine learning research 20(119), 1–38.
  16. [17]Wainwright, M. J. (2006), ‘Sharp thresholds for high-dimensional and noisy recovery of sparsity’, arXiv preprint math/0605740.arxiv.org/abs/math/0605740
  17. [18]Williams, D. R. (2021), ‘Bayesian estimation for gaussian graphical models: Structure learning, predictability, and network comparisons’, Multivariate Behavioral Research 56(2), 336–352.DOI
  18. [21]Yuan, M. & Lin, Y. (2007), ‘Model selection and estimation in the gaussian graphical model’, Biometrika 94(1), 19–35.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Table 1

1 / 13

Pick where to look, or just type