alphaFeedback

WorksComputer Science

Denoising Is Stein: Moment Access and a Resource Hierarchy for Learning Hidden Structure in Diffusion Models

AI contributions
Not recorded for this paper
View details

Abstract

We study score learning from denoising pairs when the data contain a hidden non-Gaussian component. If covariance reveals the component, its subspace can be recovered directly. If covariance is isotropic, the first distinguishing moment has order k∗k^\ast, and the learner must extract that moment from clean points and their noisy views. Correlations in the denoising loss are Stein discrepancies against a baseline; for polynomial fields they determine exactly the corresponding moment differences. Averaging fresh noisy views conditional on a clean point gives an exact moment query on the clean distribution. In the covariance-matched regime, orientation-independent dictionaries satisfying an L4/L2L^4/L^2 condition need order dk∗−1d^{k^\ast-1} features, and the stated dot-product kernel ridge models need the same power in samples. Small-step online SGD on one unit has this exponent up to logarithms. A two-stage learner uses the curvature of a smoothed denoising loss to recover the hidden direction, then sharpens it and fits a scalar readout. For every even k∗k^\ast, it obtains a fixed score gain over the Gaussian baseline from O(dk∗/2log⁡d)O(d^{k^\ast/2}\log d) clean points. In the covariance-visible regime, the frozen-feature threshold occurs at dJ/J!d^J/J!, while projection onto principal components makes the fitted-model, score-risk and generated-law distributions independent of ambient dimension. In the covariance-matched experiments, the measured partial-trace overlaps are consistent with the proposed spectral transition. A width-8 network trained with clean-point reuse shows a d2d^2-like training-set threshold over d=64d=64–192192, with fixed validation and calibration overhead.

Introduction

Diffusion models estimate the score ∇log⁡pt\nabla\log p_t as Gaussian noise progressively obscures a data distribution (Ho et al., 2020; Song et al., 2021). Training provides denoising pairs (X0,Xt)(X_0, X_t): a clean point and a noisy view. The learner predicts X0X_0 from XtX_t, thereby estimating the score (Vincent, 2011). If the data have a hidden non-Gaussian direction, a successful denoiser must detect it through those pairs. The amount of data needed depends on what the learner can represent and whether it can use repeated views of the same clean point.

Existing theory studies parts of this question under different data models and resource measures. Lower bounds for random features and kernels count features or samples for fixed representations (Ghorbani et al., 2021; Mei et al., 2022); analyses of trained denoisers count fresh pairs for one architecture and optimizer ([5]); statistical-query and cryptographic lower bounds count queries or computation for arbitrary algorithms (Diakonikolas et al., 2017; Song, 2024). These results do not directly compare the cost of learning the same hidden signal across learner classes. We ask:

Which moments of a hidden structure can a denoising learner access, and how do representation size, distinct clean samples, noisy views and the learner’s access to geometry determine the cost of improving on the Gaussian score?

We study two versions of one hidden-component model. Data are X0=UZ+σ0(I−UU⊤)G0X_0 = UZ + \sigma_0(I - UU^\top)G_0 with an unknown orthonormal U∈Rd×kU \in\mathbb{R}^{d \times k}, a non-Gaussian latent vector Z∈RkZ \in\mathbb{R}^k and an independent Gaussian G0G_0. In the covariance-visible regime (σ0=0\sigma_0 = 0), the data lie on the subspace, their covariance reveals UU, and principal components recover it from k+1k + 1 points. In the covariance-matched regime, Cov⁡(Z)=σ02Ik\operatorname{Cov}(Z) = \sigma_0^2 I_k, so Cov⁡(X0)=σ02Id\operatorname{Cov}(X_0) = \sigma_0^2 I_d carries no information about UU. The first informative moment has order k∗≥3k^* \ge3, the generative exponent of the latent law. This is non-Gaussian component analysis (Diakonikolas et al., 2017; Tan and Vershynin, 2018) seen through a diffusion model.

Main results

Figure 1 shows the observable difference between the two data regimes: a line of clean points in one case, and an isotropic covariance that masks a non-Gaussian direction in the other. Table 1 summarizes the resource costs for each learner. The results follow from a moment-access calculus for the denoising loss (§ 3); Figure 2 compares the leading scales.

Two hidden-component data regimes in two dimensions

Figure 1. Two hidden-component data regimes in two dimensions. (a) Clean points X0=uZX_0 = uZ lie on a line; blue points are their noisy views at t=0.3t = 0.3, and short arrows connect selected pairs. The line is visible in the clean covariance. (b) The clean covariance is I2I_2. Blue and orange mark the mixture components only for illustration; their labels are not observed by the learner. (c) In the covariance-matched example, the clean marginal along uu (orange) differs from its moment-matched Gaussian (dashed black) even though their means and variances agree. Diffusion at t=0.3t = 0.3 weakens that difference (blue).

Resource hierarchy plot comparing clean points with ambient dimension

Figure 2. The covariance-matched rows of Table 1 on one scale, for k∗=4k^* = 4 and the two-component mixture with μ=0.8\mu= 0.8. Lines are the leading terms of the theorems, with the constants 2/κ~22/\tilde{\kappa}^{2} (full reuse) and vt/κˉt2v_t/\bar{\kappa}_t^{2} (one view, at t∗t^*) of Theorem 6.5; the logarithm is normalized to one at d=64d = 64. The red line is the dictionary-size threshold d3/6d^3/6 of the frozen barrier, whose exponent the kernel and online-SGD lower bounds share. Markers are measured 50% training-set thresholds from § 7.2; they exclude the fixed 65,536 validation and calibration points, and cover only d=64d = 64–192192.

Contributions. The Stein–Tweedie identity expresses each residual correlation as a discrepancy between the noisy law and a baseline (Theorem 3.1); on polynomial fields, these correlations recover exactly the corresponding moment differences (Theorem 3.2). Thus a fitted Gaussian baseline removes the moments it matches, shifting the first accessible signal in the covariance-visible mixture from degree two to degree four (Theorem 3.4, Corollary 3.6). Conditioning on the clean point gives an exact clean-data moment query (Lemma 3.3). Averaging fresh noisy views of one point reduces the forward-process variance of the corresponding gradient estimate. Diffusion acts on the hidden coordinate through an Ornstein–Uhlenbeck noise operator; the static signal-to-noise ratio of the best low-degree correlation peaks at the time in Theorem 3.8.

For an orientation-independent dictionary, the covariance-visible mixture has a sharp feature threshold at d3/6d^3/6, with higher odd-degree steps at dJ/J!d^J/J! (Theorems 4.5, 4.9). For one hidden direction, a one-sided change of measure identifies the height of the first step (Theorem 4.13). The covariance-matched model gives the dk∗−1d^{k^*-1} exponent for dictionaries satisfying the stated L4/L2L^4/L^2 condition (Theorem 4.21). Kernel ridge regression on noisy inputs has the same sample exponent under the conditions of Theorem 5.2; for the exponential kernel this includes every ridge (Lemma 5.3). When covariance reveals the subspace, principal-component projection instead yields fitted-model, score-risk and generated-law distributions independent of ambient dimension (Theorems 4.15, 4.16).

Learning the covariance-matched direction can be cheaper than fixing a representation in advance. Small-step online SGD on one unit needs dk∗−1d^{k^*-1} steps up to log⁡2d\log^2 d (Corollary 6.2), while the statistical-query bound gives tolerance d−k∗/4+o(1)d^{-k^*/4+o(1)} under its output-norm assumption (Proposition 6.3). Averaging rr noisy views of each clean point, one gradient step of the matrix score model recovers the direction from O((1+(ιt−1)/r)dk∗/2log⁡d)O((1+(\iota_t-1)/r)d^{k^*/2}\log d) clean points for even k∗k^* (Theorem 6.5). The same partial-trace matrix is the curvature created by Gaussian smoothing of a single-unit loss (Proposition 6.7). A learner that uses this curvature, sharpens the direction and fits a scalar readout obtains a fixed score gain with O(dk∗/2log⁡d)+O(d)+O(1)O(d^{k^*/2}\log d)+O(d)+O(1) clean points (Theorem 6.8). For k∗=4k^*=4, this separates it from the restricted learner classes above by one power of dd, up to logarithms and under their stated hypotheses (Corollary 6.9).

The experiments check the predicted barriers and invariances in the covariance-visible regime. In the covariance-matched regime, the partial trace’s measured overlaps are consistent with the proposed spectral transition within Monte Carlo error. A width-8 network trained with clean-point reuse has a d2d^2-like training-set threshold over d=64d=64–192192, with fixed validation and calibration overhead (§ 7).

Related work

Low-dimensional structure in diffusion models. Chen et al. (2023a) give score approximation and estimation rates for data on a linear subspace, Oko et al. (2023) prove minimax optimality of diffusion estimators over Besov classes, and Li and Yan (2024) show that samplers adapt to unknown intrinsic dimension. Given an accurate score, sampling error is controlled by Chen et al. (2023b) and Benton et al. (2024). These are upper bounds for adaptive estimators; our lower bounds identify what restricted classes lack, and our upper bounds count each resource separately.

Fixed representations and kernels. Random-feature and kernel models in high dimension fit only polynomial components of degree ℓ\ell with dℓ≪Nd^\ell\ll N features or samples (Ghorbani et al., 2019, 2021; Mei et al., 2022), and the spectrum of inner-product kernel matrices in polynomial regimes is described by Misiakiewicz (2022) and Lu and Yau (2022). For denoising score matching, George et al. (2026) derive precise learning curves for random features and George and Macris (2026) extend them to manifold data. Here the inputs are non-Gaussian along a hidden direction, and the barrier applies to every orientation-blind dictionary with arbitrary coefficients. For one hidden direction, it also gives the exact risk height relative to the moment-matched Gaussian denoiser.

Exponents, statistical queries and non-Gaussian component analysis. The information exponent governs online SGD for single-index models (Ben Arous et al., 2021), and the generative exponent governs statistical-query and low-degree algorithms (Damian et al., 2024). Statistical-query lower bounds for non-Gaussian component analysis are due to Diakonikolas et al. (2017) and Diakonikolas et al. (2024), spectral algorithms to Vempala and Xiao (2011) and Tan and Vershynin (2018), and score estimation for such data is cryptographically hard in general (Song, 2024). Bardone et al. [5] show that a denoiser trained online on a mixed cumulant model learns pair-wise statistics at linear cost and the fourth cumulant at cubic cost, defining a diffusion information exponent; Székely et al. (2024) report a quadratic sample threshold for supervised networks in a spiked cumulant model. Our Theorem 3.2 identifies the generative exponent as the relevant one for denoising, and Corollary 3.6 gives a mechanism for the staged learning of Bardone et al. [5].

Tensor methods, smoothing and reuse. The fourth-moment tensor of non-Gaussian component data is a spiked tensor, for which unfolding reaches dk/2d^{k/2} (Montanari and Richard, 2014) and gradient descent or Langevin dynamics from random starts needs dk−1d^{k-1} (Ben Arous et al., 2020). Gaussian smoothing reaches the unfolding threshold for tensor PCA (Anandkumar et al., 2017) and the dk/2d^{k/2} rate for online single-index learning (Damian et al., 2023); SGD can be viewed as optimizing a smoothed objective (Kleinberg et al., 2018). Reusing batches changes what gradient methods can learn in supervised two-layer networks (Dandi et al., 2024; Lee et al., 2024). A link between one gradient step of a diffusion objective and a spectral method was made for a covariance spike by Shah et al. (2023). Here the conditional Stein identity connects reuse to the denoising loss, and the curvature created by smoothing is the partial-trace statistic. The resulting two-stage learner has explicit costs for clean points, noisy views and arithmetic.

Stein’s method and score matching. Theorem 3.1 is a standard consequence of Stein’s lemma and Tweedie’s formula (Robbins, 1956; Efron, 2011); its supremum over a unit ball of fields is a Stein discrepancy (Gorham and Mackey, 2015), and the equivalence of denoising score matching with score matching is due to Hyvärinen (2005) and Vincent (2011). We use this identity to compare what different denoising learners can extract from the same hidden-component model.

Setting, learners and resources

Diffusion pairs, denoisers and baselines

Fix a time t>0t>0 and write a=at=e−ta=a_t=e^{-t}, h=ht=1−e−2th=h_t=1-e^{-2t}. For clean data X0∼P0X_0\sim P_0 on Rd\mathbb{R}^d with all moments finite and an independent G∼N(0,Id)G\sim N(0,I_d), the noisy view is

Xt=atX0+htG,X_t=a_tX_0+\sqrt{h_t}G,

the time-tt marginal of the Ornstein–Uhlenbeck process dXt=−Xt dt+2 dBtdX_t=-X_t\,dt+\sqrt{2}\,dB_t. Write PtP_t for its law, ptp_t for its density, mt(x)=E[X0∣Xt=x]m_t(x)=\mathbb{E}[X_0\mid X_t=x] for the denoiser and st=∇log⁡pts_t=\nabla\log p_t for the score. Tweedie’s formula (Robbins, 1956; Efron, 2011) gives

st(x)=atmt(x)−xht,(1)s_t(x)=\frac{a_tm_t(x)-x}{h_t}, \tag*{(1)}

and every denoiser estimate m^\widehat{m} defines a score estimate s^=(atm^−x)/ht\widehat{s}=(a_t\widehat{m}-x)/h_t. Then E∥s^(Xt)−st(Xt)∥2=(at/ht)2E∥m^(Xt)−mt(Xt)∥2\mathbb{E}\lVert\widehat{s}(X_t)-s_t(X_t)\rVert^2=(a_t/h_t)^2\mathbb{E}\lVert\widehat{m}(X_t)-m_t(X_t)\rVert^2, so score risk and denoiser risk differ by the factor (at/ht)2(a_t/h_t)^2. Regressing X0X_0 on XtX_t is denoising score matching (Vincent, 2011): for any ff,

E∥X0−f(Xt)∥2=E∥X0−mt(Xt)∥2+E∥mt(Xt)−f(Xt)∥2.\mathbb{E}\lVert X_0-f(X_t)\rVert^2=\mathbb{E}\lVert X_0-m_t(X_t)\rVert^2+\mathbb{E}\lVert m_t(X_t)-f(X_t)\rVert^2.

Baselines and the Stein operator. A baseline is a law Q0Q_0 with finite moments, with diffused law QtQ_t, smooth positive density qtq_t and denoiser mtQm_t^Q. Learners in this paper improve on a baseline: they fit mtQ+fm_t^Q+f and are judged by how much of the residual mt−mtQm_t-m_t^Q the correction ff captures. The Langevin–Stein operator of QtQ_t acts on C1C^1 vector fields by TQtφ=div⁡φ+⟨∇log⁡qt,φ⟩\mathcal{T}_{Q_t}\varphi=\operatorname{div}\varphi+\langle\nabla\log q_t,\varphi\rangle; for Qt=N(mˉ,C)Q_t=N(\bar{m},C), TQtφ=div⁡φ−⟨C−1(x−mˉ),φ⟩\mathcal{T}_{Q_t}\varphi=\operatorname{div}\varphi-\langle C^{-1}(x-\bar{m}),\varphi\rangle.

Hermite notation. Hej\mathrm{He}_j is the probabilists’ Hermite polynomial and hj=Hej/j!h_j = \mathrm{He}_j/\sqrt{j!} its orthonormal version under N(0,1)N(0,1). For x∈Rdx \in\mathbb{R}^d, Hej(x)\mathrm{He}_j(x) also denotes the degree-jj Hermite tensor, the symmetric jj-tensor-valued polynomial with Hej(x)[w⊗j]=Hej(wTx)\mathrm{He}_j(x)[w^{\otimes j}] = \mathrm{He}_j(w^\mathsf{T}x) for unit ww. Under N(0,I)N(0,I) it satisfies the isometry E Hej(x)[A] Hej(x)[B]=∑π⟨A,πB⟩\mathbb{E}\,\mathrm{He}_j(x)[A]\,\mathrm{He}_j(x)[B] = \sum_{\pi}\langle A,\pi B\rangle, summed over the j!j! permutations of tensor slots. For even k∗=2p+2k^* = 2p+2 the partial trace is the matrix

Mp(x)=Hek∗(x)[⋅,…,⋅,I⊗p]∈Rd×d;M1(x)=H(x)=(∣x∣2−d−4)xxT−(∣x∣2−d−2)I.M_p(x) = \mathrm{He}_{k^*}(x)[\cdot,\ldots,\cdot,I^{\otimes p}] \in\mathbb{R}^{d\times d}; \qquad M_1(x) = \mathcal{H}(x) = (|x|^2-d-4)xx^\mathsf{T}-(|x|^2-d-2)I.

Two data regimes

References

  1. [1]Anima Anandakumar, Yuan Deng, Rong Ge, and Hossein Mobahi. Homotopy analysis for tensor PCA. In Conference on Learning Theory, 2017. URL https://arxiv.org/abs/1610.09322.
  2. [2]Kendall Atkinson and Weimin Han. Spherical Harmonics and Approximations on the Unit Sphere: An Introduction, volume 2044 of Lecture Notes in Mathematics. Springer, Berlin, Heidelberg, 2012. doi: 10.1007/978-3-642-25983-8.DOI
  3. [4]Dominique Bakry, Ivan Gentil, and Michel Ledoux. Analysis and Geometry of Markov Diffusion Operators, volume 348 of Grundlehren der mathematischen Wissenschaften. Springer, Cham, 2014.DOI
  4. [5]Lorenzo Bardone, Claudia Merger, and Sebastian Goldt. A theory of learning data statistics in diffusion models, from easy to hard. In International Conference on Machine Learning, 2026. URL https://arxiv.org/abs/2603.12901.

Paper details

vlnc:W_45vcnhcv
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents