Aligning (Medical) LLMs for (Counterfactual) Fairness
Raphael Poulain, Hamed Fayyaz, Rahmatollah Beheshti
TL;DR
This paper addresses unfairness in medical LLMs by first rigorously profiling bias patterns across datasets, models, and prompting strategies via a counterfactual fairness framework. It then introduces a fairness-focused alignment method that leverages a teacher model and Preference Optimization within a knowledge-distillation pipeline, generating a bias-aware preference dataset through counterfactual prompts and semantic-similarity ranking. The proposed approach, implemented with LoRA-based fine-tuning and SimPO, demonstrates consistent reductions in bias across Q-Pain, Treatment Recommendation, and Triage tasks with minimal impact on overall task performance. The work highlights the importance of scalable fairness interventions in clinical AI, shows the value of model alignment to mitigate bias without sacrificing accuracy, and lays the groundwork for practical deployment in diverse medical settings.
Abstract
Large Language Models (LLMs) have emerged as promising solutions for a variety of medical and clinical decision support applications. However, LLMs are often subject to different types of biases, which can lead to unfair treatment of individuals, worsening health disparities, and reducing trust in AI-augmented medical tools. Aiming to address this important issue, in this study, we present a new model alignment approach for aligning LLMs using a preference optimization method within a knowledge distillation framework. Prior to presenting our proposed method, we first use an evaluation framework to conduct a comprehensive (largest to our knowledge) empirical evaluation to reveal the type and nature of existing biases in LLMs used for medical applications. We then offer a bias mitigation technique to reduce the unfair patterns in LLM outputs across different subgroups identified by the protected attributes. We show that our mitigation method is effective in significantly reducing observed biased patterns. Our code is publicly available at \url{https://github.com/healthylaife/FairAlignmentLLM}.
