SPARKE: Scalable Prompt-Aware Diversity Guidance in Diffusion Models via RKE Score

Mohammad Jalali, Haoyu Lei, Amin Gohari, Farzan Farnia · DOI

Introduction

While diffusion models like Stable Diffusion produce high-quality images, they often suffer from "mode collapse," where semantically similar prompts result in repetitive, low-variety outputs. Existing methods to enhance diversity typically face two major hurdles: extreme computational complexity ($O(n^3)$) and a lack of prompt sensitivity. SPARKE (Scalable Prompt-Aware Rényi Kernel Entropy) addresses these issues by introducing a scalable, prompt-aware guidance mechanism that significantly boosts diversity without sacrificing image fidelity or speed.

Methodology: Scalable and Prompt-Aware Guidance

The core innovation of SPARKE is its use of order-2 Rényi Kernel Entropy (RKE) to measure and optimize diversity within the latent space of diffusion models.

Conditional RKE Score

Unlike previous methods that enforce global diversity, SPARKE utilizes a Conditional RKE Score. By weighting image similarity with the similarity of input prompts, the model prioritizes diversity specifically among outputs generated from similar text. This ensures the model explores various interpretations of a single concept while respecting the natural differences between distinct categories.

Computational Efficiency via Order-2 Rényi Entropy

To overcome the $O(n^3)$ bottleneck of traditional entropy measures, SPARKE switches to order-2 Rényi entropy. This allows the researchers to replace expensive eigenvalue decompositions with a Frobenius norm-based calculation. This shift reduces the complexity of entropy estimation to $O(n^2)$ and, crucially, brings the cost of gradient-based optimization down to $O(n)$.

Guidance mechanisms steer the diffusion process during denoising to achieve specific objectives, such as increased diversity or fidelity.

Latent Space Guidance

SPARKE operates directly within the latent space of the Latent Diffusion Model (LDM). This is not only faster than pixel-space guidance but also results in fewer visual artifacts and lower GPU memory consumption (~20GB vs. ~35GB for ambient-space methods).

Key Results and Insights

The researchers evaluated SPARKE on benchmarks like MS-COCO 2014 and GeoDE across multiple models, including Stable Diffusion XL and PixArt-Σ.

  • Diversity and Fidelity: On Stable Diffusion 2.1, SPARKE achieved a Vendi Score of 405.51, significantly outperforming the vanilla model (369.37) and the previous state-of-the-art c-VSG (376.48), all while maintaining a high CLIPScore.
  • Scalability: SPARKE is exceptionally efficient. On an NVIDIA RTX 4090, it adds only 0.13 seconds per sample compared to unguided sampling, whereas previous methods often doubled generation time.
  • Fairness and Novelty: By conditioning diversity on prompts, SPARKE prevents models from collapsing into a single stereotypical representation, which is vital for reducing bias. Additionally, it can be used for "novelty guidance," steering the model to generate images that are intentionally distinct from a provided reference dataset.
An example of a high-fidelity image generated with SPARKE guidance, demonstrating the model's ability to maintain quality while exploring diverse visual modes.

Conclusion

SPARKE provides a practical and scalable solution for improving the diversity of generative models. By reducing computational complexity and introducing prompt-awareness, it enables high-quality, varied generation at scale, which is essential for improving the robustness and fairness of AI-generated content. Future work will explore extending this framework to other modalities, such as video and audio synthesis.

Summary updated

BibTeX
@inproceedings{jalali2025sparke,
  author = {Mohammad Jalali and Haoyu Lei and Amin Gohari and Farzan Farnia},
  title = {{SPARKE: Scalable Prompt-Aware Diversity Guidance in Diffusion Models via RKE Score}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=1YLpf8nUIq},
}
Figure