Command Palette
Search for a command to run...
欠損データにおけるスコアマッチング
欠損データにおけるスコアマッチング
Josh Givens Song Liu Henry W J Reeve
概要
スコアマッチングは、拡散過程、エネルギーベースモデル、グラフィカルモデル推定など多くの分野に応用される、データ分布の学習において不可欠な手法である。これらの多数の応用があるにもかかわらず、データが不完全な場合への適用に関する研究はほとんど行われていない。本研究では、任意の座標の部分集合についてデータが部分的に欠損しうる柔軟な設定において、スコアマッチング(およびその主要な拡張手法)を欠損データに対応させる。汎用的に使用可能な2つのスコアマッチングのバリエーション、すなわち重要性重み付け(IW)に基づく手法と変分的手法を提案する。有限領域の設定において、提案するIW手法に対して有限サンプル誤差評価を提供し、特にサンプル数が少ない低次元のケースで強い性能を示すことを示す。これと補完的に、変分的手法がより複雑な高次元の設定で最も強力を発揮することを示し、実データおよびシミュレーションデータを用いたグラフィカルモデル推定タスクでその性能を実証する。
One-sentence Summary
The authors propose adapting score matching to settings with partially missing data through two variants: an importance weighting approach with finite sample bounds suited to small-sample, low-dimensional cases, and a variational approach that performs best in high-dimensional settings, demonstrated on graphical model estimation tasks with real and simulated data.
Key Contributions
- Score matching and major score-matching extensions are adapted to estimate full data scores from partially observed samples, using a mask-based formulation for arbitrary missing-coordinate sets and covering missing-completely-at-random and missing-not-at-random scenarios.
- Two missing-data objectives are introduced, an importance-weighting approach and a variational approach, with extensions to truncated, sliced, and denoising score matching and finite-sample bounds for truncated importance-weighted estimation on finite domains.
- The methods are evaluated on simulated and real data for parameter estimation and Gaussian graphical model edge detection, showing importance weighting is strongest in lower-dimensional, small-sample cases and the variational approach is strongest in more complex high-dimensional settings.
Introduction
Score matching is a flexible density-free method for learning the score function of a distribution, supporting applications such as energy based modeling, clustering, and diffusion processes. Prior work on missing data often focuses on neural network diffusion models that require artificial corruption and do not suit explicit parametric score estimation, while related generative and latent variable methods are constrained by model class, convergence uncertainty, or biased estimation. The authors leverage missing score matching, extending score matching to partially observed multidimensional data through two methods: a marginal importance weighting approach with finite sample guarantees and a marginal variational approach for higher dimensional settings. Their framework is compatible with explicit parameterizations and neural networks, and adapts classical, truncated, sliced, and denoising score matching for parameter estimation and graphical model tasks.
Dataset
-
Dataset composition and source
- The authors use yeast gene expression data introduced by Brem and Kruglyak in 2005.
- The original dataset contains expression readings for 7086 genes or ORFs measured across 262 yeast segregants.
- In the analysis, genes are treated as dimensions and segregants are treated as samples.
-
Key subset and filtering rules
- The full dataset is reduced to 106 genes.
- A gene is retained only if it is present in at least 95 percent of the samples.
- This filtering step selects genes with very high availability across the 262 segregants.
-
How the data is used
- The authors use the filtered gene expression matrix to learn relationships among genes.
- The data is used in a Gaussian graphical model estimation experiment.
- Results for this dataset are shown in Figure 7, where the Marg-Var approach is compared with other methods.
-
Processing and metadata details
- Each sample corresponds to one yeast segregant.
- Each feature or dimension corresponds to one gene or ORF.
- The main processing detail is the presence-based subset rule, which keeps only genes observed in at least 95 percent of segregants.
- No additional cropping strategy is described for this dataset.
Method
The proposed method reframes density estimation under missing observations as a marginal score matching problem. The central idea is to learn an unnormalized model density qθ:X→(0,∞) by training its score
sθ(x)=∇xlogqθ(x),rather than maximizing a marginal likelihood that would require intractable integrals over the unobserved coordinates.
The data are represented by a random vector X∈X⊆Rd. For a subset of observed coordinates λ⊆[d], the marginal score associated with q is defined as
sλ(xλ)=∇xλlog∫q(x)dx−λ.This definition ensures that the marginal score of a valid unnormalized density is itself a genuine score function. The corresponding marginal Fisher divergence is
FM(θ)=E[∥sΛ(XΛ)−sΛ;θ(XΛ)∥2],where Λ denotes the random observation pattern induced by missingness. Under regularity and identifiability assumptions, the authors derive an observable surrogate
LM(θ)=E[2∇XΛ⋅sΛ;θ(XΛ)+∥sΛ;θ(XΛ)∥2]=FM(θ)−C.A Monte Carlo estimate is then obtained from incomplete samples {XΛi(i)}i=1n:
θ^=argθminn1i=1∑n[∇XΛi(i)⋅sΛi,θ(XΛi(i))+sΛi;θ(XΛi(i))2].This formulation generalizes classical score matching to settings where the density of interest must be marginalized over unobserved variables. It also extends naturally to compactly supported distributions through a truncated marginal objective. For compact X with boundary ∂X, one introduces a coordinatewise weighting function gΛ that vanishes near the boundary. The marginal truncated Fisher divergence uses weights to suppress the influence of boundary regions:
FTM(θ)=E[gΛ(XΛ)1/2∘(sΛ(XΛ)−sΛ;θ(XΛ))2].The corresponding training objective contains both score curvature terms and boundary correction terms:
LTM(θ)=Ej∈Λ∑gΛ(XΛ)j(sΛ;θ(XΛ)j2+2∂jsΛ;θ(XΛ)j)+j∈Λ∑2∂jgΛ(XΛ)jsΛ;θ(XΛ)j.This adaptation is important because standard score matching typically requires the density to vanish at infinity, while truncated variants are needed when the support is bounded or compact.
The main computational challenge is that the marginal score
sλ;θ(xλ)=∇xλlog∫qθ(xλ,x−λ)dx−λis usually intractable. The method addresses this in two complementary ways: importance weighting and a gradient-first variational estimator.
The first approach estimates the marginal integral using an auxiliary proposal density p′ over the unobserved coordinates:
∫qθ(xλ,x−λ)dx−λ=EX−λ′∼p′[p′(X−λ′)qθ(xλ,X−λ′)].Given r independent completions X−λ′(1),…,X−λ′(r)∼p′, the marginal score is estimated by
s^λ,r;θ(xλ)=∇xλlog[r1k=1∑rp′(X−λ′(k))qθ(xλ,X−λ′(k))].These estimated marginal scores are substituted directly into the Monte Carlo marginal score matching objective. This yields a practical estimator for both ordinary marginal score matching and truncated marginal score matching. For the truncated case, finite sample error bounds can be derived with respect to the marginal objective. The bound scales roughly with
min{r,n}plog(dnrA/δ),showing that increasing the number of importance weighting samples r improves the score error. However, matching the statistical rate controlled by n requires r of order n, leading to a quadratic computational cost in the data size. In practice, small values of r are often sufficient for stable training, but the importance weighting estimator can become biased or unstable in high dimensions because the integral estimate sits inside nonlinear operations.
The second approach resolves this by deriving the parameter gradient before approximating expectations. Rather than forming an explicit marginal score estimator and then differentiating it, the authors first write the gradient of the marginal score matching objective in terms of expectations and covariances over conditional completions. A key identity states that
sθ;λ(xλ)=E′[sθ(xλ,X−λ′)λ],where E′ denotes expectation with respect to the model conditional completion distribution
X−λ′∣Xλ=xλ∼pθ(⋅∣xλ).More generally, for a function hθ, gradients of expectations can be decomposed as
∇E′[hθ(xλ,X−λ′)]=E′[∇hθ(xλ,X−λ′)]+Cov′(∇θlogqθ(xλ,X−λ′),hθ(xλ,X−λ′)).This transformation is central to the method because the difficult expectations over pθ(⋅∣XΛ) appear outside the differentiation operator. Once the gradient has been rewritten in this form, the conditional distributions and covariances can be approximated using any generative approximation scheme, rather than being tied to explicit importance weights inside a logarithm.
The resulting gradient-first objective for marginal score matching can be written as
∇θLM(θ)=EXΛ∼p2j∈Λ∑(ΨΛ(sθ(.)j2+∂jsθ(.)j)−E′[sθ(XΛ,X−Λ′)j]ΨΛ(sθ(.)j)),where the covariance-augmented expectation operator is
ΨΛ(h)=E′[∇θh(XΛ,X−Λ′)]+Cov′(∇θlogqθ(XΛ,X−Λ′),h(XΛ,X−Λ′)).A parallel expression is obtained for truncated marginal score matching by inserting the boundary weights gΛ and their derivatives:
∇θLTM(θ)=E2j∈Λ∑{gΛ(XΛ)j[ΨΛ(sθ(.)j2+∂jsθ(.)j)−E′[sθ(XΛ,X−Λ′)j]ΨΛ(sθ(.)j)]+21∂jgΛ(XΛ)jΨΛ(sθ(.)j)}.The variational module approximates the model conditional distribution pθ(x−λ∣xλ) with a tractable generative conditional
pϕ′(x−λ∣xλ).Because the target conditional depends on the current model parameters θ, the variational parameters ϕ must be updated as θ changes. The variational model is trained to minimize either a KL-style discrepancy
JKL(ϕ,θ)=E[log(qθ(XΛ,X−Λ′)pϕ′(X−Λ′∣XΛ))],or a score-fitting Fisher-style objective
JF(ϕ,θ)=E[∇X−Λ′log(qθ(XΛ,X−Λ′)pϕ′(X−Λ′∣XΛ))2],where the expectation is taken over incomplete observations XΛ drawn from the corrupted data distribution and completions drawn from the current variational conditional:
(XΛ,X−Λ′)∼pϕ′(X−Λ′∣XΛ)p(XΛ).The score-form objective has the advantage that it avoids requiring the normalizing constant of the variational approximation, because gradients of log densities are invariant to multiplicative normalizing factors.
The full training process is therefore alternating and nested. First, for a batch of incomplete observations, the method samples several completions of the missing coordinates from pϕ′(⋅∣XΛ). These completions are used to estimate the expectations and covariances appearing in the gradient-first objective. The gradient of the marginal score matching loss is then evaluated and used to update the score model parameters θ. Since changing θ changes the conditional completions that pϕ′ is trying to match, the variational parameters ϕ are also updated, typically by taking several inner gradient steps after each outer θ step. This keeps the variational conditional accurate enough to approximate the increasingly intractable model conditional as the score model changes.
The same gradient-first variational structure can be adapted to other score matching variants, including sliced and denoising score matching, and to truncated marginal objectives. The essential architectural pattern is the coupling of three components: an unnormalized score model qθ, an auxiliary or variational completion model pϕ′, and a Monte Carlo gradient estimator that avoids differentiating through intractable marginal integrals.
Experiment
The experiments evaluate the proposed importance weighting and variational marginal score matching methods against EM and a naive zeroed score approach on truncated Gaussian, non-Gaussian, and Gaussian graphical model tasks with simulated and real missing data. Across these settings, the proposed methods are generally reliable, with the variational approach showing the clearest advantage in higher-dimensional and strongly structured problems, while the naive zeroed strategy struggles as interdependence increases. These results support the conclusion that principled marginalization enables more accurate score estimation and dependency recovery under data corruption, although simpler approximations remain competitive in lower-structure or truncated Gaussian cases.