[Paper Review] Hurtful Words: Quantifying Biases in Clinical Contextual Word Embeddings
This paper investigates biases in clinical BERT embeddings fine-tuned on MIMIC-III notes, using log probability bias scores and fairness metrics across gender, language, ethnicity, and insurance status. It finds significant performance disparities favoring majority groups, with models generating more harmful recommendations for marginalized patients, and cautions against adversarial debiasing as a complete solution.
In this work, we examine the extent to which embeddings may encode marginalized populations differently, and how this may lead to a perpetuation of biases and worsened performance on clinical tasks. We pretrain deep embedding models (BERT) on medical notes from the MIMIC-III hospital dataset, and quantify potential disparities using two approaches. First, we identify dangerous latent relationships that are captured by the contextual word embeddings using a fill-in-the-blank method with text from real clinical notes and a log probability bias score quantification. Second, we evaluate performance gaps across different definitions of fairness on over 50 downstream clinical prediction tasks that include detection of acute and chronic conditions. We find that classifiers trained from BERT representations exhibit statistically significant differences in performance, often favoring the majority group with regards to gender, language, ethnicity, and insurance status. Finally, we explore shortcomings of using adversarial debiasing to obfuscate subgroup information in contextual word embeddings, and recommend best practices for such deep embedding models in clinical settings.
Motivation & Objective
- To investigate whether clinical contextual word embeddings encode biases related to protected attributes such as gender, language, ethnicity, and insurance status.
- To quantify disparities in model behavior using both log probability bias scores and fairness metrics across downstream clinical prediction tasks.
- To evaluate the effectiveness of adversarial debiasing in mitigating subgroup biases in clinical BERT representations.
- To highlight risks of deploying biased models in healthcare, especially in high-stakes clinical decision support systems.
- To recommend best practices for developing fair, reliable, and equitable NLP systems in clinical settings.
Proposed method
- Fine-tuned a BERT model initialized from SciBERT on 1.5 million clinical notes from the MIMIC-III dataset to create a clinical BERT baseline.
- Used a fill-in-the-blank task with real clinical note templates to compute log probability bias scores for gender pronouns, measuring model confidence in associating gender with medical contexts.
- Evaluated fairness across 50+ downstream clinical prediction tasks using three fairness definitions: demographic parity, equality of opportunity for positive and negative classes.
- Applied adversarial debiasing during fine-tuning to obfuscate protected attribute information in representations, assessing its impact on fairness and performance.
- Compared model behavior across protected groups using qualitative analysis of generated clinical recommendations under varying race and gender prompts.
- Treated ICD-9 codes as gold-standard labels for downstream tasks, though acknowledged potential label bias and errors in billing-based coding.
Experimental results
Research questions
- RQ1To what extent do clinical BERT embeddings encode biased relationships between protected attributes (e.g., gender, race) and clinical conditions?
- RQ2How do performance disparities manifest across protected groups in downstream clinical prediction tasks using BERT representations?
- RQ3Can adversarial debiasing effectively reduce subgroup performance gaps in clinical NLP models?
- RQ4What is the impact of pretraining on clinical notes on the model’s confidence in gendered associations within medical text?
- RQ5How do log probability bias scores vary between male and female pronouns in clinical contexts after fine-tuning on MIMIC-III?
Key findings
- Clinical BERT models exhibit statistically significant performance disparities across protected groups, with higher accuracy for majority groups in gender, language, ethnicity, and insurance status.
- Log probability bias scores increased after fine-tuning on clinical notes, indicating that the model became more confident in associating gender with specific medical conditions beyond biological associations.
- The model generated more harmful or less appropriate clinical recommendations for African American patients compared to White patients in fill-in-the-blank tasks, even when clinical context was held constant.
- Adversarial debiasing did not fully eliminate performance gaps and may obscure rather than remove underlying biases, raising concerns about its reliability in clinical settings.
- The study found that biases in embeddings are not solely due to data imbalance but are amplified by the model’s ability to learn and encode stereotypical associations from clinical text.
- Fairness definitions such as demographic parity were found to be problematic in healthcare, where clinical outcomes must not be compromised for fairness at the expense of patient safety.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.