Hurtful words: quantifying biases in clinical contextual word embeddings
The DOI matches its Crossref record; 46 of the 46 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Given that NLP-based techniques have shown biases against under-represented subpopulations in both medical 32 and non-medical 33 domains, the automatic labeler could potentially be a large source of bias.”
From Underdiagnosis bias of artificial intelligence algorithms applied to chest radiographs in under-served patient populations (2021) · cites this paper as [32]
In the citing paper
“Following best practice 16,32 for FPR, FNR and FDR estimation, we select a single threshold for all groups, which maximizes the F1 score.”
From Underdiagnosis bias of artificial intelligence algorithms applied to chest radiographs in under-served patient populations (2021) · cites this paper as [32]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing
Benjamini, Y., & Hochberg, Y. (1995) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.2517-6161.1995.tb02031.x · Cited by 109,482
Glove: Global Vectors for Word Representation
Pennington, J., Socher, R., & Manning, C. (2014) · Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.3115/v1/d14-1162 · Cited by 34,071
Advances in neural information processing systems 7
(1996) · Computers & Mathematics with Applications · doi:10.1016/s0898-1221(96)90463-0 · Cited by 14,281
Deep Contextualized Word Representations
Peters, M., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., & Zettlemoyer, L. (2018) · Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers) · doi:10.18653/v1/n18-1202 · Cited by 11,983
Le Gall, J.-R. (1993) · JAMA: The Journal of the American Medical Association · doi:10.1001/jama.270.24.2957 · Cited by 7,773
XLNet: Generalized Autoregressive Pretraining for Language Understanding
Yang, Z., Dai, Z., Yang, Y., Carbonell, J., Salakhutdinov, R., & Le, Q. V. (2019) · arXiv · doi:10.48550/arxiv.1906.08237 · Cited by 6,687 · cited 1×
“This is especially concerning with the growth of large pretrained contextual embeddings models, such as variants of the BERT architecture [16, 40, 50, 52, 67].”
BackgroundA Survey on Bias and Fairness in Machine Learning
Mehrabi, N., Morstatter, F., Saxena, N., Lerman, K., & Galstyan, A. (2019) · arXiv · doi:10.48550/arxiv.1908.09635 · Cited by 5,812
A Survey on Bias and Fairness in Machine Learning
Mehrabi, N., Morstatter, F., Saxena, N., Lerman, K., & Galstyan, A. (2022) · ACM Computing Surveys · doi:10.1145/3457607 · Cited by 5,812
Model Cards for Model Reporting
Mitchell, M., Wu, S., Zaldivar, A., Barnes, P., Vasserman, L., Hutchinson, B., Spitzer, E., Raji, I. D., & Gebru, T. (2019) · Proceedings of the Conference on Fairness, Accountability, and Transparency · doi:10.1145/3287560.3287596 · Cited by 2,681
Research works printed but not linked: 31
- Artificial Intelligence in Medicine. January 2020
- Drug development gets big data analytics boost. January 2020
- Emily Alsentzer, John R Murphy, Willie Boag, Wei-Hung Weng, Di Jin, Tristan Naumann, Matthew A Mcdermott, arXiv:1904.03323Publicly Available Clinical BERT Embeddings. 2019. 2019
- Triply cursed: racism, homophobia and HIV-related stigma are barriers to regular HIV testing, treatment adherence and disclosure among young Black gay men. Emily A Arnold, Gregory M Rebchook, Susan M Kegeles, Culture, health & sexuality. 162014. 2014
- Christine Basta, Marta R Costa-Jussà, Noe Casas, arXiv:1904.08783Evaluating the underlying gender bias in contextualized word embeddings. 2019. 2019arXiv preprint
- Data Decisions and Theoretical Implications when Adversarially Learning Fair Representations. Alex Beutel, Jilin Chen, Zhe Zhao, Ed H Chi, arXiv:1707.000752017. 2017
- Man is to computer programmer as woman is to homemaker? debiasing word embeddings. Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, Adam T Kalai, Advances in Neural Information Processing Systems. 2016
- Gender shades: Intersectional accuracy disparities in commercial gender classification. Joy Buolamwini, Timnit Gebru, Conference on fairness, accountability and transparency. 2018
- Pre-Training with Whole Word Masking for Chinese BERT. Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Ziqing Yang, Shijin Wang, Guoping Hu, arXiv:1906.081012019. 2019
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova, Proceedings of the 2019 Conference of the North American Chapter. Long and Short Papers. the 2019 Conference of the North American ChapterHuman Language Technologies20191
- Effect of language on heart attack and stroke awareness among US Hispanics. Annette Dubard, Joanne Garrett, Ziya Gizlice, 2006. 200630American journal of preventive medicine
- Harrison Edwards, Amos Storkey, arXiv:1511.05897Censoring representations with an adversary. 2015. 2015arXiv preprint
- Yanai Elazar, Yoav Goldberg, arXiv:1808.06640Adversarial removal of demographic attributes from text data. 2018. 2018arXiv preprint
- Trends in racial disparities for injured patients admitted to trauma centers. Turner M Laurent G Glance, Dana B Osler, Wayne Mukamel, Yue Meredith, Feng Li, Andrew W Qian, Dick, Health services research. 482013. 2013
- Equality of opportunity in supervised learning. Moritz Hardt, Eric Price, Nati Srebro, Advances in neural information processing systems. 2016
- Fairness Without Demographics in Repeated Loss Minimization. Tatsunori Hashimoto, Megha Srivastava, Hongseok Namkoong, Percy Liang, International Conference on Machine Learning. 2018
- MIMIC-III, a freely accessible critical care database. Tom J Alistair Ew Johnson, Lu Pollard, H Shen, Mengling Lehman Li-Wei, Mohammad Feng, Benjamin Ghassemi, Peter Moody, Leo Szolovits, Roger G Anthony Celi, Mark, Scientific data. 31600352016. 2016
- Keita Kurita, Nidhi Vyas, Ayush Pareek, Alan W Black, Yulia Tsvetkov, arXiv:1906.07337Measuring Bias in Contextualized Word Representations. 2019. 2019arXiv preprint
- Deep learning. Yann Lecun, Yoshua Bengio, Geoffrey Hinton, nature. 5214362015. 2015
- Biobert: pre-trained biomedical language representation model for biomedical text mining. Jinhyuk Lee, Wonjin Yoon, Sungdong Kim, Donghyeon Kim, Sunkyu Kim, Chan Ho So, Jaewoo Kang, arXiv:1901.087462019. 2019arXiv preprint
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, Veselin Stoyanov, arXiv:1907.11692RoBERTa: A Robustly Optimized BERT Pretraining Approach. 2019. 2019arXiv preprint
- Gender and age differences in chief complaints of acute myocardial infarction (Worcester Heart Attack Study). Kerry A Milner, Viola Vaccarino, Amy L Arnold, Marjorie Funk, Robert J Goldberg, The American journal of cardiology. 932004. 2004
- Bias in artificial intelligence. Gregory S Nelson, North Carolina medical journal. 802019. 2019
- Language models are unsupervised multitask learners. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, OpenAI Blog. 12019. 2019
- Laleh Seyyed-Kalantari, Guanxiong Liu, Matthew Mcdermott, Marzyeh Ghassemi, arXiv:2003.00827CheXclusion: Fairness gaps in deep chest X-ray classifiers. 2020. 2020arXiv preprint
- Clinical intervention prediction and understanding with deep neural networks. Harini Suresh, Nathan Hunt, Alistair Johnson, Leo Anthony Celi, Peter Szolovits, Marzyeh Ghassemi, Machine Learning for Healthcare Conference. 2017
- High-performance medicine: the convergence of human and artificial intelligence. Eric J Topol, Nature medicine. 25442019. 2019
- Machine learning in medicine: Addressing ethical challenges. Effy Vayena, Alessandro Blasimme, Glenn Cohen, PLoS medicine. 15e10026892018. 2018
- Tianlu Wang, Jieyu Zhao, Kai-Wei Chang, Mark Yatskar, Vicente Ordonez, arXiv:1811.08489Adversarial Removal of Gender from Deep Image Representations. 2018. 2018arXiv preprint
- Learning fair representations. Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, Cynthia Dwork, International Conference on Machine Learning. 2013
- Jieyu Zhao, Yichao Zhou, Zeyu Li, Wei Wang, Kai-Wei Chang, arXiv:1809.01496Learning gender-neutral word embeddings. 2018. 2018arXiv preprint
Cited by
On the Dangers of Stochastic Parrots: Can Language Models Be Too Big? 🦜
Bender, E. M., Gebru, T., McMillan-Major, A., & Shmitchell, S. (2021) · Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency · doi:10.1145/3442188.3445922 · Cited by 6,988
Large language models encode clinical knowledge
Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al. (2023) · Nature · doi:10.1038/s41586-023-06291-2 · Cited by 4,083
Large Language Models Encode Clinical Knowledge
Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al. (2022) · arXiv · doi:10.48550/arxiv.2212.13138 · Cited by 4,083
On the Opportunities and Risks of Foundation Models
Bommasani, R., Hudson, D. A., Adeli, E., Altman, R., Arora, S., von Arx, S., Bernstein, M. S., Bohg, J., Bosselut, A., Brunskill, E., et al. (2021) · arXiv · doi:10.48550/arxiv.2108.07258 · Cited by 2,676
The false hope of current approaches to explainable artificial intelligence in health care
Ghassemi, M., Oakden-Rayner, L., & Beam, A. L. (2021) · The Lancet Digital Health · doi:10.1016/s2589-7500(21)00208-9 · Cited by 1,724
Self-citation
Metadata
- Authors
- Zhang, H., Lu, A. X., Abdalla, M., McDermott, M., & Ghassemi, M.
- Affiliations
- University of Toronto (CA)
- Massachusetts Institute of Technology (US)
- Venue
- Proceedings of the ACM Conference on Health, Inference, and Learning
- Publisher
- ACM
- Published
- 2020-04-02
- Pages
- 110-120
- OpenAlex
- W3011762034
- Cited by
- 122
- References
- 38
- Citations by year
- 2026: 8 · 2025: 19 · 2024: 24 · 2023: 22 · 2022: 17 · 2021: 25 · 2020: 7
- FWCI
- 6.68
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- ACM Conference on Health, Inference, and Learning (CHIL) (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
- Physical Sciences › Computer Science › Artificial Intelligence › Ethics and Social Impacts of AI
- Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
- Keywords
- algorithmic bias, contextual word embeddings, BERT, clinical notes, MIMIC-III, marginalized communities, fairness, clinical prediction, performance gap, gender, language, ethnicity, insurance status, adversarial debiasing, clinical language models
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.