Abstract
Diffusion models rely on a high-dimensional latent space of initial noise seeds, yet it remains unclear whether this space contains sufficient structure to predict properties of the generated samples, such as their classes. In this work, we investigate the emergence of latent structure through the lens of confidence scores assigned by a pre-trained classifier to generated samples. We show that while the latent space appears largely unstructured when considering all noise realizations, restricting attention to initial noise seeds that produce high-confidence samples reveals pronounced class separability. By comparing class predictability across noise subsets of varying confidence and examining the class separability of the latent space, we find evidence of class-relevant latent structure that becomes observable only under confidence-based filtering. As a practical implication, we discuss how confidence-based filtering enables conditional generation as an alternative to guidance-based methods.
Introduction
Diffusion models map a high-dimensional latent space of Gaussian noise to a complex data distribution. However, the relationship between an initial noise seed and its corresponding generated sample has historically been poorly understood. A central question remains: is the latent space an unstructured collection of noise, or does it contain geometric structures that dictate the properties—such as the class label—of the final image?
This research addresses the challenge of predicting an image's class directly from its initial noise seed. By employing deterministic samplers and a novel filtering technique, the authors demonstrate that the latent space actually possesses a hidden, class-aligned structure that is obscured when viewing the distribution as a whole.
Methodology
To isolate the relationship between seeds and images, the study utilizes DDIM, a deterministic sampler that guarantees a unique 1-to-1 mapping between a noise seed and a generated image. This avoids the stochasticity of standard samplers like DDPM, which injects random noise at every step and breaks the seed-to-image correspondence.
The core innovation is Confidence-Based Filtering:
- Generation and Scoring: Random noise seeds are sampled to generate images, which are then passed through a pre-trained classifier. The classifier's "confidence" (the margin between the top two logits) is recorded.
- Stratification: Seeds are binned into ten confidence levels, from Level 1 (highest) to Level 10 (lowest).
- Latent Classification: Lightweight multi-layer perceptrons (MLPs) are trained directly on the raw noise seeds to predict the final image's class, testing how well predictability transfers across confidence levels.
Key Results and Insights
The experiments, conducted on the MNIST dataset, reveal that latent structure is highly dependent on sample confidence.
The Lens of Confidence
When looking at the entire latent space, it appears as an unstructured blob. However, filtering by confidence acts as a lens. High-confidence seeds share a coherent, predictable structure, while low-confidence seeds act as idiosyncratic "filler" in the gaps between high-confidence clusters. A latent classifier trained and tested on Level 1 seeds achieved 53.42% accuracy in predicting the final digit, compared to only 20.31% for a model trained on all seeds (where random chance is 10%).
Determinism vs. Stochasticity
The choice of sampler is critical. As shown in the comparative heatmaps, the latent structure is effectively unlearnable when using stochastic samplers like DDPM. The injection of noise during the sampling process destroys the predictable relationship between the initial seed and the final class.
Discussion and Future Work
These findings suggest a new paradigm for conditional generation. Rather than modifying the diffusion model itself, one can train a classifier on high-confidence seeds to predict outcomes. This allows for sampling random noise and only executing the computationally expensive diffusion process on seeds predicted to yield the desired target class with high confidence.
While currently validated on MNIST, future work will focus on scaling this framework to higher-resolution datasets and more complex diffusion architectures. Additionally, exploring more efficient sampling strategies could reduce the computational overhead required to train the initial latent classifiers.
Summary updated