Introduction
Text-to-image (T2I) models, such as Stable Diffusion, have revolutionized digital content creation but are known to inherit and amplify societal biases present in their training data. For instance, a prompt for "a CEO" may disproportionately generate images of a specific demographic. While previous state-of-the-art methods like ITI-GEN attempted to address this through "prompt learning"—learning inclusive tokens from reference images to ensure diverse outputs—they often suffered from a significant trade-off: a marked degradation in image quality. This paper introduces FairQueue, a framework that rethinks the timing of fairness interventions to preserve image fidelity while achieving superior demographic distribution.
The Problem: The "Noise" in Inclusive Tokens
Previous approaches to fairness relied on learning special tokens from sets of reference images representing different groups. However, researchers discovered that these learned prompts are inherently "noisy." When a model learns a token from a picture of a "smiling person," it does not just capture the concept of a smile; it inadvertently absorbs the specific pose, lighting, background, and artifacts of the reference image.
Through cross-attention analysis—visualizing which parts of a prompt the AI focuses on during generation—the authors found that these noisy tokens cause the model to focus on random background areas rather than the primary subject. This interference is particularly destructive during the early stages of the denoising process, leading to images that appear as vague cartoons or contain messy artifacts.
The FairQueue Framework
FairQueue is built on the insight that the image generation process has distinct phases. By performing experiments switching between human-written "Hard Prompts" (HP) and learned fair prompts at different time steps, the researchers identified a critical "Global Structure" window. The first 15–20% of the denoising process determines the overall layout and structural integrity of the image. If a noisy prompt is used during this window, the image quality is permanently compromised.
To solve this, FairQueue utilizes two primary mechanisms:
- Prompt Queuing: The generation begins with a clean, simple "Base Prompt" (e.g., "A headshot of a person") to establish a high-quality global structure. Once the structural foundation is set (after the first ~20% of steps), the model switches to the learned "Fair Prompt" to inject specific sensitive attributes like skin tone, age, or gender.
- Attention Amplification: Because the fair prompt is only active for a portion of the generation process, its influence can sometimes be too subtle. FairQueue introduces a scaling factor ($c$) to the attention maps of the fair tokens. This acts as a "volume knob," ensuring that the desired diversity attributes are clearly expressed in the final image without needing to be present from the start.
Experimental Results
The researchers evaluated FairQueue against the CelebA, FairFace, and FAIR Benchmark datasets, focusing on facial attributes and demographic representation. The results demonstrated that FairQueue effectively breaks the perceived trade-off between fairness and quality.
- Superior Image Quality: In the "Smiling" attribute category, FairQueue achieved an Frechet Inception Distance (FID) score of 80.02, significantly outperforming ITI-GEN’s 88.63 (where lower scores indicate higher quality).
- Enhanced Fairness: FairQueue reached near-perfect fairness in complex categories. For the "High Cheekbones" attribute, it reduced the Fairness Discrepancy (FD) from 318e-3 to a remarkable 4.92e-3.
- Human Preference: In blind A/B testing, human evaluators preferred images generated by FairQueue over the previous state-of-the-art 98.7% of the time, citing better semantic preservation and fewer visual artifacts.
Conclusion and Future Work
FairQueue demonstrates that timing is a critical variable in fair AI generation. By protecting the initial structural phase of image synthesis from noisy learned tokens, the framework allows for the creation of diverse, representative imagery that maintains professional-grade quality.
While FairQueue represents a major advancement, challenges remain regarding the data requirements for learning fair tokens and the potential for "attribute entanglement," where changing one trait (like age) may unintentionally shift another (like gender). Future research will focus on reducing the reliance on large reference datasets and further de-noising learned tokens to streamline the fairness pipeline.
Summary updated