NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Score-based generative models learn manifold-like structures with constrained mixing

Li Kevin Wenliang, Ben Moran

TL;DR

Score-based generative models (diffusion models) do not explicitly restrict data to low-dimensional manifolds, yet they excel at learning them. This paper shows that trained score models learn a hybrid vector field: they act like a conservative, energy-based potential in off-manifold directions (pulling noisy points back toward the data), while acting non-conservatively within the manifold to mix features across classes. Crucially, the input and output singular subspaces of this mixing remain strictly aligned with the data manifold, preventing non-conservative drift into empty ambient space.

What Problem Does This Paper Address?

Natural data like images typically concentrate near low-dimensional manifolds embedded within high-dimensional ambient space. While generative models such as VAEs and GANs explicitly enforce a low-dimensional bottleneck via latent representations, score-based models (SBMs) parameterize a vector field across the entire ambient space ($\mathbb{R}^d \to \mathbb{R}^d$).

Furthermore, a true score function $\nabla_x \log q(x)$ is a conservative vector field (the gradient of a scalar potential), but unconstrained neural networks produce non-conservative fields whose Jacobians are non-symmetric. Researchers have puzzled over why this non-conservativeness doesn't break sample generation and why forcing score networks to be conservative yields little empirical improvement. This paper explains how SBMs structurally resolve this tension.

Methods

The authors investigate the local geometry of a trained score network $g_{\sigma}(x) \approx \nabla_x \log q_{\sigma}(x)$ around generated points $x$:

  • Singular Value Decomposition (SVD) of the Score Jacobian: They decompose the Jacobian $\nabla_x g_\sigma(x) = \sum_{i=1}^d u_i(x) s_i(x) v_i(x)^\top$. Off-manifold directions correspond to large singular values (steep curvature / small variance matching the noise floor $\sigma^2$), while on-manifold directions exhibit small singular values (flat density).
  • Equivalent Conservative Field: By decomposing $\nabla g$ into a symmetric part $\nabla \tilde{g} = \frac{1}{2}(\nabla g + \nabla g^\top)$ and a skew-symmetric part, they invoke Poincaré's Lemma and the divergence theorem to prove that an equivalent energy-based field $\tilde{g}$ exists that yields identical sample path likelihoods.
  • Subspace Overlap Metric ($\Phi_n^{a,b}$): To assess whether misaligned input ($v$) and output ($u$) singular vectors kick samples off-manifold, they measure the explained variance overlap between the subspaces spanned by the top $n$ vectors of $u$, $v$, and the eigenvectors $w$ of the symmetric field $\nabla \tilde{g}$.
  • Local Dimensionality Estimation: Dimensionality $r_t$ is estimated by counting inverse singular values $s_i^{-1}$ that significantly exceed the noise floor $(1+\kappa)\sigma_t^2$.

Datasets

  • MNIST: $28 \times 28$ grayscale handwritten digits ($d = 784$).
  • Synthetic 2D Manifold: A 2D curved surface embedded in $\mathbb{R}^3$ used for schematic illustrations (Figure 1).
  • No new benchmark datasets were introduced.

Key Insights and Ideas

  • Partitioned Vector Field: The learned vector field behaves differently depending on the direction:
  • Off-manifold: Major singular vectors ($u_+, v_+$) are collinear with opposite signs ($u_i \approx -v_i$), mimicking a Gaussian score that projects noisy points orthogonally back to the manifold.
  • On-manifold: Minor singular vectors ($u_-, v_-$) are misaligned, indicating a non-conservative, rotational field.
  • Controlled Feature Mixing: The misalignment within the manifold maps one class feature into another (e.g., an input vector $v_-$ outlining a digit "5" maps to an output vector $u_-$ resembling a "6" at high noise levels). This non-conservative flow facilitates mixing between modes.
  • Subspace Confinement: Despite individual singular vectors being misaligned, the subspaces spanned by the nontrivial left singular vectors, right singular vectors, and effective energy eigenvectors substantially overlap ($\Phi_n \approx 1$). The model can rotate and mix features locally without projecting density into off-manifold ambient directions.

Key Results

  • Dynamic Dimensionality Expansion: As noise standard deviation decreases from $\sigma \approx 0.77$ ($t=0.3$) down to $\sigma \approx 0.039$ ($t=0.01$), the effective local dimensionality expands and disperses (ranging from ~20 to over 140 dimensions across samples).
  • Higher Flexibility than VAEs: A standard VAE trained on MNIST yielded an estimated local dimensionality of only $13 \pm 3$, demonstrating that SBMs maintain a much more expressive and sample-adaptive local geometry.
  • High Subspace Overlap: Across noise levels, the subspace overlap metrics $\Phi_n^{u,v}$, $\Phi_n^{u,w}$, and $\Phi_n^{v,w}$ quickly approach $1.0$ as $n$ reaches the local rank $r_t$, confirming that non-conservative dynamics are strictly bounded to the data subspace.

Limitations and Future Work

  • Small-Scale Data: Experiments are restricted to MNIST and synthetic 2D-in-3D surfaces; the authors do not evaluate high-resolution, complex datasets (e.g., ImageNet).
  • Empirical Observation vs. Theoretical Guarantee: The paper demonstrates that neural networks naturally partition the field into conservative off-manifold and non-conservative on-manifold components, but does not provide theoretical bounds or optimization proofs explaining why standard training dynamics converge to this specific decomposition.
  • Computational Overhead: Computing full Jacobians and SVDs across diffusion trajectories is computationally expensive, limiting the ease of applying this analysis as an online diagnostic tool.

Summary updated

BibTeX
@inproceedings{wenliang2022score,
  author = {Li Kevin Wenliang and Ben Moran},
  title = {{Score-based generative models learn manifold-like structures with constrained mixing}},
  booktitle = {SBM @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=eSZqaIrDLZR},
}
Figure