Introduction
In text-to-image (T2I) diffusion models, the random seed is traditionally viewed as a neutral starting point—a stochastic initialization of Gaussian noise that the model iteratively refines. While practitioners often "seed hunt" to find a version of a prompt they like, the systematic influence of these seeds has remained largely unexplored. This research moves beyond simple prompt engineering to investigate "seed engineering," revealing that seeds act as consistent "fingerprints" that dictate image quality, style, and composition across diverse prompts.
Methodology: Decoding the Seed's Fingerprint
To understand the impact of seeds, the researchers conducted an extensive empirical study involving the generation of approximately 46 million images. Their methodology focused on several key experimental pillars:
- Seed Swapping: By swapping seeds at various stages of the diffusion process, the team discovered that the initial noise (the starting seed) almost entirely controls the final content. Noise added during intermediate steps has a negligible visual impact.
- Seed Classification: The authors trained a 1,024-way classifier to predict the seed used for a given image. Remarkably, the classifier achieved >99.9% accuracy after only a few epochs, proving that seeds leave a unique, indelible mark on generated pixels.
- Feature Extraction: To interpret these differences, the study utilized Gram matrices to represent style and object segmentation to track composition, including the location, size, and depth of subjects.
The "Golden Seed" Phenomenon
The study identifies a significant performance gap between the best and worst-performing seeds. In Stable Diffusion 2.0, the top-performing seeds (dubbed "golden seeds") achieved a Fréchet Inception Distance (FID) of 21.60, compared to 31.97 for the worst. This suggests that many failures in AI-generated art are attributable to the seed rather than the prompt itself.
Beyond general quality, seeds exhibit consistent stylistic biases. Some seeds consistently produce grayscale images, while others—referred to as "border seeds"—always add photographic frames. Others, known as "sky seeds," consistently force high horizon lines regardless of the text input.
Key Results and Implications
By restricting sampling to identified "golden seeds," the researchers demonstrated a significant improvement in both FID and Human Preference Scores (HPS v2) across the board.
Furthermore, the team introduced a method for Diversified Sampling. Instead of selecting seeds at random, they used "farthest point sampling" within the style and composition feature space. This ensures that a user is presented with visually distinct options—such as one close-up and one wide shot—rather than minor variations of the same composition. Crucially, this seed selection process adds zero computational overhead to the inference process, making it a highly efficient optimization technique.
Limitations and Future Directions
While powerful, the discovery of golden seeds is currently model-specific; a seed that performs well in Stable Diffusion 2.0 may not translate to SDXL or Midjourney. Additionally, the initial discovery process is computationally expensive, requiring significant GPU resources. Future work may focus on "seed-prompt matching," identifying seeds optimized for specific categories like portraits, landscapes, or complex anatomical features like human hands.
Summary updated