Diverse Text-to-Image Generation via Contrastive Noise Optimization
Byungjun Kim, Soobin Um, Jong Chul Ye
TL;DR
This work tackles limited diversity in text-to-image diffusion by proposing Contrastive Noise Optimization (CNO), a lightweight pre-processing strategy that optimizes a batch of initial noise latents $\mathbf{z}_T$ using an InfoNCE-like loss defined in Tweedie denoising space to promote diverse outputs while anchoring to a reference for fidelity. The method introduces a gamma-regularized attraction and leverages downsampling for efficiency, with stop-gradient to reduce compute. Theoretical insights extend the InfoNCE mutual information bound to include negatives, and empirical results across SD1.5, SDXL, and SD3 demonstrate a superior quality-diversity Pareto frontier with robustness to hyperparameters. CNO achieves strong diversity improvements (MSS, Vendi Score) with minimal overhead, offering a practical, model-agnostic path to richer, text-aligned generations.
Abstract
Text-to-image (T2I) diffusion models have demonstrated impressive performance in generating high-fidelity images, largely enabled by text-guided inference. However, this advantage often comes with a critical drawback: limited diversity, as outputs tend to collapse into similar modes under strong text guidance. Existing approaches typically optimize intermediate latents or text conditions during inference, but these methods deliver only modest gains or remain sensitive to hyperparameter tuning. In this work, we introduce Contrastive Noise Optimization, a simple yet effective method that addresses the diversity issue from a distinct perspective. Unlike prior techniques that adapt intermediate latents, our approach shapes the initial noise to promote diverse outputs. Specifically, we develop a contrastive loss defined in the Tweedie data space and optimize a batch of noise latents. Our contrastive optimization repels instances within the batch to maximize diversity while keeping them anchored to a reference sample to preserve fidelity. We further provide theoretical insights into the mechanism of this preprocessing to substantiate its effectiveness. Extensive experiments across multiple T2I backbones demonstrate that our approach achieves a superior quality-diversity Pareto frontier while remaining robust to hyperparameter choices.
