GLEaN: A Text-to-image Bias Detection Approach for Public Comprehension
Organizations: Duke University
Abstract
Text-to-image (T2I) models, and their encoded biases, increasingly shape the visual media the public encounters. While researchers have produced a rich body of work on bias measurement, auditing, and mitigation in T2I systems, those methods largely target technical stakeholders, leaving a gap in public legibility. We introduce GLEaN (Generative Likeness Evaluation at N-Scale), a portrait-based explainability pipeline designed to make T2I model biases visually understandable to a broad audience. GLEaN comprises three stages: automated large-scale image generation from identity prompts, facial landmark-based filtering and spatial alignment, and median-pixel composition that distills a model's central tendency into a single representative portrait. The resulting composites require no statistical background to interpret; a viewer can see, at a glance, who a model 'imagines' when prompted with 'a doctor' versus a 'felon.' We demonstrate GLEaN on Stable Diffusion XL across 40 social and occupational identity prompts, producing composites that reproduce documented biases and surface new associations between skin tone and predicted emotion. We find in a between-subjects user study (N = 291) that GLEaN portraits communicate biases as effectively as conventional data tables, but require significantly less viewing time. Because the method relies solely on generated outputs, it can also be replicated on any black-box and closed-weight systems without access to model internals. GLEaN offers a scalable, model-agnostic approach to bias explainability, purpose-built for public comprehension, and is publicly available at https://github.com/cultureiolab/GLEaN.
Figures & tables
| Variable | Category | n (%) |
| Gender | Female | 145 (50.2%) |
| Male | 144 (49.8%) | |
| Race/Ethnicity | White | 160 (55.4%) |
| Black | 40 (13.8%) | |
| Mixed | 34 (11.8%) | |
| Other | 28 (9.7%) |
| Variable | Portraits | Table | Test Statistic | p |
|---|---|---|---|---|
| Gender (F / M) | 77 / 71 | 68 / 73 | .597 | |
| Ethnicity (5 categories)* | 13A / 23B / 17M / 14O / 81W | 14A / 17B / 17M / 14O / 79W | .939 | |
| Political affiliation | 46D / 60I / 42R | 41D / 57I / 43R | .902 | |
| Age ( ) | 44.7 | 45.2 | .781 |
| Class | Text Prompts |
|---|---|
| Man | “a photo of a man” |
| “a portrait of a male person” | |
| “a picture of a man” | |
| “a male face” | |
| Woman | “a photo of a woman” |
| “a portrait of a female person” |
| Construct | Pre | Post | t | p | ||
| Trust AI outputs | 3.64 | 3.13 | ** | |||
| Developers build responsibly | 3.25 | 3.14 | .0799 | |||
| Feel informed about AI | 3.72 | 3.75 | .6233 | |||
| AI treats groups equally | 3.39 | 2.64 | ** | |||
| AI has positive impact | 3.48 | 3.30 | <.0001 ** | |||
| ** . Effect sizes are (paired). | ||||||
| Portraits | Table | |||||
| Construct | ||||||
| Trust AI outputs | ** | ** | ||||
| Developers build responsibly | .4205 | .0854 | ||||
| Feel informed about AI | .0893 | .3527 | ||||
| AI treats groups equally | ** | ** | ||||
| AI has positive impact | .1233 | .0002 ** | ||||
| Construct | Portraits | Table | t | p | d |
| Trust AI outputs | .064 | ||||
| Developers build responsibly | .546 | ||||
| Feel informed about AI | .068 | ||||
| AI treats groups equally | .152 | ||||
| AI has a positive impact | .056 | ||||
| No comparison reaches significance at . | |||||
| Measure | Overall | Portraits | Table | t | p | d |
| Comprehension & Concern | ||||||
| Understand patterns | 3.67 | 3.57 | 3.77 | .114 | ||
| Could explain | 4.10 | 4.10 | 4.10 | .970 | ||
| Serious concern | 3.78 | 3.84 | 3.71 | .310 | ||
| Real-world harm | 3.62 | 3.62 | 3.62 | .989 | ||
| Reflects broader societal issues | 4.11 | 4.06 | 4.15 | .466 | ||
| Measure | Portraits | Table | t | p | d |
| Clear communication | 3.87 | 4.11 | .0341 | ||
| Hard to understand | 2.39 | 2.57 | .2374 | ||
| Effective for public | 3.66 | 3.93 | .0316 | ||
| Confidence | 3.93 | 3.99 | .5699 | ||
| Task time (sec) | 56.25 | 82.70 | ** | ||
| ** . | |||||
| Identity Dimension | Outcome | Simple Effects | ||
| Gender (F vs. M) | Skin tone: | 9.09 | .003 | Female: , |
| White-collar | Male: , ** | |||
| Male respondents who received the Portraits stimulus | ||||
| perceived white-collar roles as having lighter skin. | ||||
| Politics (D / R / I) | Serious concern | 11.82 | Democrats: , | |
| Republicans: , ** |
| Subgroup | Level | Portrait | Table | |||
|---|---|---|---|---|---|---|
| Serious Concern Political Affiliation | Democrat | 4.24 | 4.44 | 0.3390 | ||
| Republican | 3.90 | 3.02 | 3.67 | 0.0004** | ||
| Independent | 3.53 | 3.72 | 0.3713 | |||
| Skin Tone Bias: White-collar Sex | Female | 1.04 | 1.06 | 0.9012 | ||
| Male | 1.31 | 0.70 | 4.32 | 0.0000** |
| Prompt | % Male | % Female | Avg Monk Skin Tone |
| An Activist | 56.66 | 43.34 | 7.48 |
| An Architect | 76.30 | 23.70 | 5.76 |
| An Astronaut | 85.76 | 14.24 | 7.07 |
| A Banker | 96.72 | 3.28 | 5.84 |
| A Business Executive | 71.54 | 28.46 | 5.55 |
| A Cab Driver | 96.74 | 3.26 | 6.63 |
Demographic Bias in T2I Models
Demographic bias in text-to-image models is the unequal or stereotyped representation of people across generated images.
See all 31 papers