TL;DR
Score-based diffusion models generate remarkable images, but unlike VAEs and GANs, they lack a native latent space for representation learning. This paper turns the standard denoising score matching objective into an unsupervised representation learner by conditioning the score network on a learned latent code $z = E_\phi(x_0)$. By altering the noise weighting across diffusion timescales, the framework provides a unique mechanism to explicitly control whether the latent space captures high-level semantics (like class identity) or fine-grained details (like stroke thickness).
What Problem Does This Paper Address?
While continuous-time score-based diffusion models (formulated via Stochastic Differential Equations, or SDEs) excel at high-fidelity generation, they do not inherently learn a compressed, reusable latent representation of data. In standard denoising score matching, the objective has a well-known irreducible non-vanishing constant—the discrepancy between the marginal score $\nabla_{x_t} \log p_t(x_t)$ and the conditional perturbation kernel $\nabla_{x_t} \log p_{0t}(x_t | x_0)$. Because the model only conditions on the noisy sample $x_t$, it cannot completely bridge this gap.
The authors set out to solve two issues: how to equip continuous-time score models with an unsupervised latent representation, and how to harness the multi-scale nature of diffusion to control the granularity of the learned features.
Methods
- Conditional Score Matching with Learned Latents: The authors parametrize a trainable encoder $E_\phi: \mathbb{R}^d \to \mathbb{R}^{d_z}$ that maps a clean input $x_0$ to a latent code $z$. The score model $s_\theta(x_t, t, E_\phi(x_0))$ takes this code as conditioning information alongside time $t$ and noisy state $x_t$.
- Exploiting the Lower Bound: Because the perturbation kernel $\nabla_{x_t} \log p_{0t}(x_t | x_0)$ depends only on $t$, $x_t$, and $x_0$, supplying $E_\phi(x_0)$ allows the network to bypass the classical non-vanishing loss floor. If $E_\phi(x_0)$ captures all necessary information about $x_0$, the training loss can theoretically drop to zero.
- Granularity Control via Noise Scheduling: The objective weights noise levels via a function $\lambda(t)$. By skewing the sampling of $t$ (or evaluating single timescales):
- At high noise levels ($\sigma(t)$ large), $x_t$ contains almost zero mutual information with $x_0$. Denoising requires the latent code to store global semantic information (e.g., object class).
- At low noise levels ($\sigma(t)$ small), $x_t$ already preserves coarse layout, forcing the latent code to encode only fine-grained, residual details.
- Regularization: The latent space is regularized using either an $L_1$ penalty (weight $10^{-5}$) or a KL-divergence penalty on a probabilistic encoder (weight $10^{-7}$).
Datasets
The authors evaluated their framework on two benchmark datasets:
- MNIST: Handwritten digits, trained at resolutions of $28 \times 28$ and $14 \times 14$.
- CIFAR-10: Natural images. Due to compute limits, most representation analysis focused on a 3-class subset (airplanes, automobiles, birds), alongside partial experiments on the full 10-class set.
No new benchmarks or datasets were introduced.
Key Insights and Ideas
- Representation learning as denoising guidance: Unlike VAEs and GANs, which learn latents by mapping codes directly to images via a decoder, this model uses the latent representation to select the vector field that steers the diffusion process toward $x_0$.
- Turning a mathematical hurdle into an asset: The non-vanishing constant in denoising score matching is typically an obstacle for hyperparameter tuning. Here, it acts as an explicit optimization gradient for the encoder: any information distilled into $z$ directly reduces that constant.
- Time/noise acts as a granularity dial: In contrast to traditional disentanglement frameworks (e.g., $\beta$-VAE), which rely on complex regularization tuning, the physical diffusion timescale directly dictates feature abstraction. Denoising near $t \approx 1$ isolates class semantics, whereas near $t \approx 0$ it captures stroke width or high-frequency textures.
Key Results
- Latent Control on MNIST:
- When sampling $t$ uniformly, a 2D latent space mapped digit class weakly while smoothly varying stroke width along $z_1$.
- When sampling uniformly across $\sigma \in [0.01, 50]$ (over-indexing on high noise), the 2D space sharply separated digit classes (Figure 3/7).
- Timescale vs. Class Disentanglement (Silhouette Score):
- Evaluating single timescales $t \in [0, 1]$ using Euclidean silhouette scores demonstrated that training exclusively on low $t$ yielded silhouette scores near $0$ (no class separation).
- Silhouette scores peaked at intermediate-to-high $t$ values ($\approx 0.7$ for MNIST reaching $\sim 0.2$ score; $\approx 0.4$ for CIFAR-10 reaching $\sim 0.08$ score) before decaying at extreme noise where perturbation distributions collapse together.
- Latent Dimensionality and Sample Stochasticity: Because reverse SDE sampling is stochastic, multiple distinct images can be generated from the same latent vector. However, increasing latent dimensions from $d_z = 2$ to $d_z = 16$ progressively eliminated this stochasticity, yielding near-deterministic reconstructions for a single code.
Limitations and Future Work
- Computational Cost and Model Scale: Due to hardware constraints, the authors used smaller architectures than state-of-the-art diffusion models, evaluated on a 3-class CIFAR-10 subset, and could not train the full 10-class CIFAR-10 model to convergence.
- Sample Quality vs. Representation Quality: Models trained heavily on high-noise regimes to optimize latent class separation required an additional fine-tuning phase with frozen encoders and uniform time-sampling to generate high-quality images.
- Future Directions: Scaling up to full-scale datasets, exploring downstream tasks (such as semi-supervised classification and clustering), and leveraging score-based representations for downstream generative manipulation.
Summary updated