Latent Directions: A Simple Pathway to Bias Mitigation in Generative AI
Carolina Lopez Olmos, Alexandros Neophytou, Sunando Sengupta, Dim P. Papadopoulos
TL;DR
The paper tackles biases in text-to-image generation arising from biased datasets and the opacity of model outputs. It introduces a simple, modular debiasing method that learns a latent direction $d_Z$ from denoised latents at a chosen step $L=(L_0,\dots,L_k)$ and applies $z_T = z_T + \omega \cdot d_Z$ to the initial noise, preserving a neutral prompt while enabling linear combination of directions. A bias-understanding tool complements the method by quantifying semantic–visual attribute relations using cosine similarities and CLIP/Kosmos-2 analyses. Empirical results across four debiasing scenarios show effective mitigation (evaluated with SPD and CLIP-based metrics) without prompt changes, with potential to complement embedding-based debiasing and aid developers in auditing bias.
Abstract
Mitigating biases in generative AI and, particularly in text-to-image models, is of high importance given their growing implications in society. The biased datasets used for training pose challenges in ensuring the responsible development of these models, and mitigation through hard prompting or embedding alteration, are the most common present solutions. Our work introduces a novel approach to achieve diverse and inclusive synthetic images by learning a direction in the latent space and solely modifying the initial Gaussian noise provided for the diffusion process. Maintaining a neutral prompt and untouched embeddings, this approach successfully adapts to diverse debiasing scenarios, such as geographical biases. Moreover, our work proves it is possible to linearly combine these learned latent directions to introduce new mitigations, and if desired, integrate it with text embedding adjustments. Furthermore, text-to-image models lack transparency for assessing bias in outputs, unless visually inspected. Thus, we provide a tool to empower developers to select their desired concepts to mitigate. The project page with code is available online.
