MinorityPrompt: Text to Minority Image Generation via Prompt Optimization

Soobin Um, Jong Chul Ye · OpenReview

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.

Introduction

Modern text-to-image (T2I) models excel at generating realistic images but often suffer from a "majority bias." Techniques like Classifier-Free Guidance (CFG) push generations toward high-density regions of the data distribution to ensure high quality, which frequently leads models to default to stereotypes—for instance, associating specific professions with certain genders or races. These models struggle to produce unique visual compositions or represent the "long tail" of the data distribution.

These "minority instances"—samples residing in low-density regions of the text-conditional data manifold—are essential for fairness in AI, data augmentation, and creative applications. Existing solutions often require external classifiers or fail to maintain the original prompt's semantic integrity when attempting to force diversity.

Methodology

The MinorityPrompt framework addresses these issues through online prompt optimization. Instead of modifying model weights or the entire text embedding, the framework appends learnable placeholder tokens to the user's prompt.

Token-based Optimization

During the diffusion sampling process, the embeddings of these learnable tokens are iteratively refined to maximize a specific objective function. This approach preserves the original prompt's semantics while allowing the placeholder to steer the model toward rare features.

Likelihood-based Objective

The authors derived a specialized solver that approximates the target log-likelihood of the data. Unlike previous minority samplers, this objective avoids relying on CFG-based predictions, which can be off-manifold, and ensures smooth gradient flow by removing unnecessary stop-gradient operations.

Example of a minority sample generated by MinorityPrompt, showcasing rare cultural and contextual features.

Adaptive Timestep Annealing

The optimization utilizes an annealing schedule for the internal noise timestep ($s$). This adaptive approach significantly outperforms fixed-timestep methods used in prior research.

Experimental Setup

The method was evaluated using 10,000 randomly selected captions from the MS-COCO validation set. Testing spanned several pretrained backbones, including Stable Diffusion v1.5, v2.0, and SDXL-Lightning, to demonstrate robustness across different architectures.

Results and Discussion

The results indicate that T2I models already contain the information necessary to generate diverse samples, but standard sampling math (like DDIM + CFG) effectively hides them in favor of high-probability results.

Quantitative Performance

On SDXL-Lightning, MinorityPrompt achieved a Likelihood score of 0.5457 (where lower is better for minority generation), outperforming standard DDIM (0.6082) and SGMS (0.5462). Crucially, it maintained competitive text-alignment scores (ClipScore).

Bias Mitigation and Uniqueness

Qualitative results demonstrate that the model effectively counteracts demographic biases. For example, it generates a wider variety of ages and ethnicities for common prompts. In a user study with 23 participants, MinorityPrompt was ranked highest in both "Uniqueness" (4.28/5) and "Text Alignment" (4.21/5).

MinorityPrompt enables the generation of diverse demographic groups, such as these individuals in military uniform sitting on a bench.

Conclusion

MinorityPrompt successfully unlocks the creative "long tail" of pretrained models. While the method introduces computational overhead—taking approximately 6.2 seconds per sample on an A100 GPU compared to 1.1 seconds for DDIM—it provides a powerful tool for generating rare and diverse images. Future work will focus on developing faster approximations of the likelihood objective to make minority sampling viable for real-time applications.

Summary updated

BibTeX
@inproceedings{um2025minorityprompt,
  author = {Soobin Um and Jong Chul Ye},
  title = {{MinorityPrompt: Text to Minority 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