Minority-Focused Text-to-Image Generation via Prompt Optimization

Soobin Um, Jong Chul Ye

Abstract

We investigate the generation of minority samples using pretrained text-to-image (T2I) latent diffusion models. Minority instances, in the context of T2I generation, can be defined as ones living on low-density regions of text-conditional data distributions. They are valuable for various applications of modern T2I generators, such as data augmentation and creative AI. Unfortunately, existing pretrained T2I diffusion models primarily focus on high-density regions, largely due to the influence of guided samplers (like CFG) that are essential for high-quality generation. To address this, we present a novel framework to counter the high-density-focus of T2I diffusion models. Specifically, we first develop an online prompt optimization framework that encourages emergence of desired properties during inference while preserving semantic contents of user-provided prompts. We subsequently tailor this generic prompt optimizer into a specialized solver that promotes generation of minority features by incorporating a carefully-crafted likelihood objective. Extensive experiments conducted across various types of T2I models demonstrate that our approach significantly enhances the capability to produce high-quality minority instances compared to existing samplers. Code is available at https://github.com/soobin-um/MinorityPrompt.

1. Introduction

Modern text-to-image (T2I) models like Stable Diffusion have transformed creative workflows, yet they are fundamentally limited by a "popularity bias." Trained on massive datasets like LAION, these models naturally gravitate toward high-density regions of the data distribution. When a user provides a prompt, standard sampling techniques—such as DDIM and Classifier-Free Guidance (CFG)—act as mathematical magnets, pulling the generation toward the most "common" or "average" visual interpretation.

This density focus results in two primary challenges. First, it perpetuates demographic biases; prompts like "a doctor" or "a person at a festival" often default to specific ages, genders, or ethnicities over-represented in the training data. Second, it stifles creative diversity, as models struggle to generate unique or "long-tail" visual features. While existing solutions often require expensive retraining or external classifiers, we introduce MinorityPrompt, a training-free framework that unlocks these hidden minority instances during the generation process itself.

2. Methodology: Online Prompt Optimization

MinorityPrompt introduces a novel approach called Online Prompt Optimization. Rather than modifying the entire text embedding—which often degrades the original prompt's meaning—the framework appends learnable placeholder tokens (e.g., "S") to the user's input.

2.1 Inference-Time Dynamics

During the denoising process, the model iteratively updates the embedding of these "S" tokens. This optimization happens intermittently (e.g., every $N$ steps) to balance computational efficiency with generative quality. Because only the appended tokens are optimized, the core semantics of the original prompt remain intact, while the "S" tokens act as modifiers that invoke rare features.

2.2 Likelihood as a Compass

The "secret sauce" of MinorityPrompt is a specialized objective function derived from the mathematical approximation of log-likelihood. By maximizing this objective, the solver pushes the latent representation away from "boring" high-density areas and into "unique" low-density regions. Essentially, if the model finds a reconstruction "surprising" or "difficult," it is likely a minority sample. This allows for the generation of highly creative and unique scenes.

A fantasy-themed generation illustrating the creative diversity enabled by navigating toward low-density regions of the data distribution.

3. Experimental Results and Insights

We evaluated MinorityPrompt using Stable Diffusion v1.5, v2.0, and the high-speed SDXL-Lightning model, testing against 10,000 captions from the MS-COCO validation set.

3.1 Diversity and Alignment

Quantitatively, MinorityPrompt consistently produced samples with lower log-likelihood (measured in bits per dimension) compared to standard DDIM, proving it successfully reaches the "long tail" of the distribution. Crucially, it outperformed previous minority-sampling methods like SGMS in CLIPScore, indicating that the generated images stayed truer to the user's text prompt even as they explored rare features.

3.2 Bias Mitigation and Creativity

Qualitatively, the model showed a remarkable ability to counter demographic biases. For prompts that typically default to a single demographic, MinorityPrompt naturally generated a wider range of ages, ethnicities, and styles. Furthermore, the method proved effective even on distilled, few-step models, producing high-fidelity results for specific subjects.

High-quality generation of a specific subject, demonstrating the model's ability to capture detailed long-tail features.

4. Discussion and Future Work

While MinorityPrompt significantly enhances diversity, there is an inherent tension between "common beauty" and "unique rarity." The authors noted a slight compromise in perceived image quality (measured by PickScore) when pushing too aggressively into minority regions. Additionally, while the intermittent schedule helps, online optimization remains slower than standard one-pass sampling. Future work will explore applying this framework to multi-subject scenes and different generative architectures beyond diffusion.

5. Conclusion

MinorityPrompt provides a robust, training-free mechanism for diversifying T2I generation. By leveraging the model's internal understanding of likelihood, it successfully navigates the data manifold to uncover rare and creative instances that standard guidance methods typically overlook.

Summary updated

BibTeX
@inproceedings{um2025minority,
  author = {Soobin Um and Jong Chul Ye},
  title = {{Minority-Focused Text-to-Image Generation via Prompt Optimization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=s2oKvroGMr},
}
Figure