Q-Pain: A Question Answering Dataset to Measure Social Bias in Pain Management

Cécile Logé, Emily Ross, David Yaw Amoah Dadey, Saahil Jain, Adriel Saporta, Andrew Y. Ng, Pranav Rajpurkar

TL;DR

The authors introduce Q-Pain, a curated benchmark of 55 clinical vignettes designed to measure racial and gender biases in medical question answering (QA) systems recommending pain treatment. Evaluating GPT-2 and GPT-3 within an intersectional framework reveals statistically significant disparities in treatment recommendations, where minority women—particularly Black women—face the highest probability of being denied appropriate pain management.

What Problem Does This Paper Address?

Pain management in clinical medicine suffers from well-documented human biases: studies repeatedly show that Black patients and women are significantly more likely to receive inadequate treatment or be denied analgesics entirely. As large language models (LLMs) are increasingly explored for healthcare applications (such as triage hotlines or clinical decision support), there is an urgent risk that these models will inherit and amplify systemic clinical biases.

Prior NLP bias benchmarks have predominantly focused on general open-domain QA or diagnostic prediction accuracy. This paper addresses the lack of benchmarks assessing harmful discrimination in treatment recommendations—specifically whether and at what dosage to prescribe pain medication.

Methods

The authors designed an experimental evaluation protocol and statistical framework:

  • Controlled Vignette Prompting: Clinical scenarios were structured as few-shot prompts preceded by three standardized, gender-neutral, race-neutral "closed" examples covering all potential outcomes (No, Yes - Low dose, Yes - High dose).
  • Demographic Rotation: For each clinical vignette, patient identity was systematically rotated across 8 demographic profiles (4 races: Asian, Black, Hispanic, White $\times$ 2 genders: man, woman). First names were drawn from the top representative names in Harvard Dataverse's demographic name dataset, keeping all clinical facts (symptoms, severity, age) strictly identical.
  • Logit-Probability Metric: Rather than merely inspecting decoded text at temperature 0 (which consistently outputs "Yes"), the authors extracted the model’s underlying conditional next-token probabilities: specifically focusing on $P(\text{"No."})$ (the propensity to deny indicated pain treatment) and $P(\text{"Low"})$ dosage.
  • Intersectional Statistical Testing: To prevent spurious conclusions across 28 simultaneous pairwise subgroup comparisons, the authors used paired two-tailed t-tests with Bonferroni corrections ($\alpha = 0.002$) and 99.8% confidence intervals.

Datasets

  • Q-Pain (Introduced): A dataset of 55 clinical vignettes spanning five medical contexts (Acute Non-Cancer, Acute Cancer, Chronic Non-Cancer, Chronic Cancer, and Post-Operative Pain). Each context contains 10 "Yes" scenarios (where clinical guidelines dictate prescribing medication) and 1 "No" scenario. The dataset was authored by a clinical expert and clinically validated by two independent internal medicine physicians.
  • Demographic Aspects of First Names: A dataset of 4,250 first names from Harvard Dataverse used to assign culturally representative names across racial and gender subgroups.

Key Insights and Ideas

  • Decoding Can Mask Harmful Latent Bias: At greedy decoding (temperature 0), GPT-3 recommended treating every patient because $P(\text{"No."})$ never exceeded 50%. However, the underlying probability distribution demonstrated clear demographic stratification.
  • Disparities Compound at the Intersection: Evaluating race or gender independently obscured deeper disparities. Black patients faced a 3.6% higher denial probability than White patients, and women faced a 3.6% higher denial probability than men. At the intersection, Black women faced a 7% higher denial probability overall (and up to 11% higher in Acute Cancer Pain) compared to White men.
  • Model Scaling Does Not Eliminate Bias: GPT-3 exhibited conclusive disparities across 12 of 28 subgroup comparisons, compared to 7 of 28 in GPT-2. Larger model scale improved grammatical fluency and justification coherence, but broadened disparate treatment patterns.

Key Results

  • GPT-3 Intersectional Bias: 19 of 28 subgroup comparisons were statistically significant ($p < 0.05$), and 13 survived the Bonferroni threshold ($p < 0.002$). Nine comparisons had $p < 0.0001$, five of which involved Black women.
  • Denial Propensities: Average $P(\text{"No."})$ was lowest for White men (24.8%) and highest for Black women (26.6%).
  • GPT-2 vs. GPT-3 Comparison: GPT-2 showed pronounced bias against Asian men (e.g., Asian Man vs. Hispanic Man showed a 1.8%–4.3% difference in denial probability), whereas GPT-3 consistently disadvantaged minority women across multiple comparisons.
  • Qualitative Findings: Both models occasionally dropped Asian names and defaulted back to placeholder identifiers like "Patient C."

Limitations and Future Work

  • Dataset Scale: With 55 scenarios yielding 400 evaluated open prompts, the dataset is relatively small; expanding to ~500 vignettes would yield higher statistical power.
  • Demographic Scope: Gender is treated as binary and race as four mutually exclusive groups, excluding other minoritized identities, socioeconomic status, and non-binary individuals.
  • Name Confounders: Names chosen by demographic frequency may not carry the same associations as names chosen via validated implicit association tests.
  • Neutral vs. Provocative Prompts: The study only tested neutral closed prompts. Future work is needed to evaluate model robustness when prompts intentionally include biased clinical commentary.

Summary updated

BibTeX
@inproceedings{loge2021q,
  author = {Cécile Logé and Emily Ross and David Yaw Amoah Dadey and Saahil Jain and Adriel Saporta and Andrew Y. Ng and Pranav Rajpurkar},
  title = {{Q-Pain: A Question Answering Dataset to Measure Social Bias in Pain Management}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=Ud1K-l71AI2},
}
Figure