The Face of a Surgeon: An Analysis of Demographic Representation in Three Leading Artificial Intelligence Text-to-Image Generators

Rohaid Ali, Oliver Y. Tang, Ian D. Connolly, Hael Abdulrazeq, Fatima N. Mirza, Rachel Lim, Benjamin R. Johnston, Michael W. Groff, Theresa Williamson, Konstantina Svokos, Tiffany J. Libby, John H. Shin, Ziya L. Gokaslan, Curtis E. Doberstein, James Zou, Wael F. AsaadmedRxiv 2023

TL;DR

This study evaluates how DALL-E 2, Midjourney, and Stable Diffusion represent surgeons, finding that while DALL-E 2 closely mirrors current attending demographics, Midjourney and Stable Diffusion significantly amplify stereotypes by depicting over 98% of surgeons as white males. Crucially, all three models fail to reflect the burgeoning diversity of the next generation of surgical trainees, highlighting a "demographic lag" in generative AI.

What Problem Does This Paper Address?

As generative AI becomes a tool for creating educational materials and public-facing content, there is a growing risk that these models will perpetuate or even worsen societal biases. In the medical field, and surgery specifically, representation matters; it influences patient trust and the career aspirations of medical students.

The authors sought to determine if leading text-to-image generators accurately reflect the real-world demographics of the surgical workforce or if they default to the "surgeon stereotype"—historically characterized as white and male. They specifically looked at the gap between "reflection" (matching current reality) and "amplification" (making a biased reality look even more homogenous).

Methods

The researchers conducted a cross-sectional analysis using a standardized prompt: “A photo of the face of a [blank],” filling the blank with eight different surgical specialties (e.g., "general surgeon," "neurosurgeon").

  • Scale: 2,400 images were generated (800 per model).
  • Geographic Testing: An additional 1,200 images were generated using country-specific prompts (USA, China, Nigeria) to see if "indirect" prompting could mitigate bias.
  • Evaluation: Seven independent reviewers classified the images by perceived gender and race, using the Chicago Face Dataset as a standardized reference to reduce subjectivity.
  • Comparison: AI outputs were statistically compared against real-world data from the Association of American Medical Colleges (AAMC) for both "Attendings" (established doctors) and "Trainees" (residents/fellows).

Datasets

  • Ground Truth Data: The study utilized the Physician Specialty Data Report and the National Graduate Medical Education (GME) Census from the AAMC (2021-2022).
  • AI Models: The latest stable versions at the time: DALL-E 2, Midjourney v5.1, and Stable Diffusion v2.1.
  • Generated Benchmark: The study produced a new dataset of 3,600 labeled images across three models, eight specialties, and four geographic prompts.

Key Insights and Ideas

  • The "Stereotype Trap": Midjourney and Stable Diffusion didn't just reflect a lack of diversity; they actively erased it. Despite women making up nearly 15% of attending surgeons and 36% of trainees, these models produced almost zero images of female surgeons (0% and 1.8% respectively).
  • DALL-E 2’s Guardrails Work: DALL-E 2 was the outlier, achieving demographic parity with real-world attending surgeons. The authors attribute this to OpenAI’s specific user-driven flagging systems and internal techniques designed to reduce bias in unspecified prompts.
  • The Trainee Disconnect: Even DALL-E 2 failed to capture the future of the profession. While it matched the demographics of older, established surgeons, it significantly underestimated the diversity of current trainees (who are much more likely to be female or non-white).
  • Inflexible Gender Bias: Interestingly, while geographic prompting (e.g., "Surgeon in Nigeria") successfully shifted the racial output of the models, it had almost no effect on gender output. The models still defaulted to male faces, suggesting that gender-based professional stereotypes are more deeply "baked" into the latent space than geographic ones.

Key Results

  • Gender: Real-world trainees are 35.8% female. DALL-E 2 depicted 15.9%, while Midjourney and Stable Diffusion depicted 0% and 1.8% respectively ($P < 0.001$).
  • Race: Real-world attendings are 22.8% non-white. DALL-E 2 matched this closely at 22.6%. Midjourney (0.5%) and Stable Diffusion (0.6%) were statistically near-zero.
  • Black Representation: DALL-E 2 was the only model capable of generating images of Black surgeons (6.0%) without being explicitly prompted for a specific country like Nigeria.
  • Geographic Nudges: Prompting for "China" or "Nigeria" forced all models to 100% non-white representation, proving the models can generate diverse faces, but their "default" weights are heavily skewed.

Limitations and Future Work

The authors acknowledge that manual classification of race and gender is inherently subjective, though they mitigated this with multiple reviewers and validated datasets. Furthermore, AI models are "moving targets"—updates to Midjourney or DALL-E 3 (released after this study) may yield different results.

Future work should investigate why gender bias remains so resistant to geographic prompting and how training sets can be "future-proofed" to reflect the evolving demographics of a profession (like the trainee pool) rather than just its historical averages. The study concludes that without robust feedback loops and guardrails, AI risks reinforcing glass ceilings that the medical community has spent decades trying to break.

Summary updated

Abstract

Abstract Background This study investigates the accuracy of three prominent artificial intelligence (AI) text-to-image generators—DALL-E 2, Midjourney, and Stable Diffusion—in representing the demographic realities in the surgical profession, addressing raised concerns about the perpetuation of societal biases, especially profession-based stereotypes. Methods A cross-sectional analysis was conducted on 2,400 images generated across eight surgical specialties by each model. An additional 1,200 images were evaluated based on geographic prompts for three countries. Images were generated using a prompt template, “A photo of the face of a [blank]”, with blank replaced by a surgical specialty. Geographic-based prompting was evaluated by specifying the most populous countries for three continents (United States, Nigeria, and China). Results There was a significantly higher representation of female (average=35.8% vs. 14.7%, P&lt;0.001) and non-white (average=37.4% vs. 22.8%, P&lt;0.001) surgeons among trainees than attendings. DALL-E 2 reflected attendings’ true demographics for female surgeons (15.9% vs. 14.7%, P=0.386) and non-white surgeons (22.6% vs. 22.8%, P=0.919) but underestimated trainees’ representation for both female (15.9% vs. 35.8%, P&lt;0.001) and non-white (22.6% vs. 37.4%, P&lt;0.001) surgeons. In contrast, Midjourney and Stable Diffusion had significantly lower representation of images of female (0% and 1.8%, respectively) and non-white (0.5% and 0.6%, respectively) surgeons than DALL-E 2 or true demographics (all P&lt;0.001). Geographic-based prompting increased non-white surgeon representation (all P&lt;0.001), but did not alter female representation (P=0.779). Conclusions While Midjourney and Stable Diffusion amplified societal biases by depicting over 98% of surgeons as white males, DALL-E 2 depicted more accurate demographics, although all three models underestimated trainee representation. These findings underscore the necessity for guardrails and robust feedback systems to prevent AI text-to-image generators from exacerbating profession-based stereotypes, and the importance of bolstering the representation of the evolving surgical field in these models’ future training sets.
BibTeX
@misc{ali2023face,
  author = {Rohaid Ali and Oliver Y. Tang and Ian D. Connolly and Hael Abdulrazeq and Fatima N. Mirza and Rachel Lim and Benjamin R. Johnston and Michael W. Groff and Theresa Williamson and Konstantina Svokos and Tiffany J. Libby and John H. Shin and Ziya L. Gokaslan and Curtis E. Doberstein and James Zou and Wael F. Asaad},
  title = {{The Face of a Surgeon: An Analysis of Demographic Representation in Three Leading Artificial Intelligence Text-to-Image Generators}},
  year = {2023},
  doi = {10.1101/2023.05.24.23290463},
  howpublished = {medRxiv},
}
Figure