Can SAEs reveal and mitigate racial biases of LLMs in healthcare?

Hiba Ahsan, Byron C. Wallace · DOI

Abstract

As Large Language Models (LLMs) are increasingly integrated into clinical workflows, concerns regarding the amplification of racial disparities have intensified. This study investigates the use of Sparse Autoencoders (SAEs) to interpret and mitigate racial biases within the Gemma-2 model family. We find that SAEs can expose "stereotype latents"—internal features that associate Black identity with stigmatizing concepts like incarceration and substance use—even when the model's textual explanations remain neutral. While SAE-based interventions like steering and ablation show promise in simple tasks, they face significant challenges in complex clinical scenarios due to the "entanglement" of race with other clinical concepts.

Introduction: The Opacity of Clinical LLMs

The deployment of LLMs for clinical documentation and risk assessment carries the risk of perpetuating systemic healthcare biases. Previous evaluations have demonstrated that these models often yield disparate recommendations based on a patient's race. A critical barrier to addressing this is the "black box" nature of LLMs. When a model produces a biased output, clinicians lack the tools to understand the underlying reasoning. Furthermore, "Chain-of-Thought" (CoT) explanations—where the model provides a step-by-step rationale—are frequently "unfaithful," offering professional justifications while masking internal reliance on racial stereotypes. This research explores whether Sparse Autoencoders (SAEs), a technique from mechanistic interpretability, can provide a more transparent and actionable view of these internal biases.

Methodology: Peeking Inside with Sparse Autoencoders

The researchers applied SAEs to the Gemma-2-2B and 9B models to decompose their internal activations into interpretable "latents." The methodology involved four primary phases:

  1. Latent Identification: Using linear probes to find SAE features most predictive of racial identity.
  2. Medical Re-interpretation: Recognizing that general-purpose SAE labels often fail in specialized domains, the team used Llama-3.1-70B to generate medically-grounded descriptions for these latents based on clinical corpora.
  3. Causal Validation: Employing "steering" (manually increasing latent activations) to confirm that specific features directly influence biased model outputs.
  4. Bias Mitigation: Comparing traditional anti-bias prompting against "ablation," which involves zeroing out race-related latents during the model's forward pass.

The study utilized diverse datasets, including real-world clinical notes from MIMIC-III and MIMIC-IV, the Q-Pain benchmark for pain management bias, and synthetic patient vignettes.

The "Smoking Gun": Identifying Stereotype Latents

A key discovery was the identification of a "Black latent" that transcended simple demographic identification. This feature did not merely activate on the term "African American"; it was strongly associated with stigmatizing concepts such as "incarceration," "gunshot wounds," and "cocaine use."

Visualizing the 'Black latent' in Gemma-2 models, showing activations on stigmatizing terms like 'incarcerated' and 'gunshot'.

This finding provides a mechanistic "smoking gun" for how societal biases are internalized within LLMs. It demonstrates that the model's internal representation of race is inextricably linked to negative stereotypes, which can then influence downstream clinical predictions.

Unfaithful Explanations and the CoT Trap

The study highlights a dangerous discrepancy between internal model states and external explanations. In steering experiments, when the "Black latent" was artificially boosted, the model became significantly more likely to label a patient as "at risk for belligerence." However, the model's generated CoT explanations never mentioned race, instead hallucinating clinical justifications for the increased risk. This confirms that internal activations are a more reliable indicator of model bias than the model's own self-reported reasoning.

Mitigation Strategies: Steering and Ablation

The researchers tested whether these insights could be used to "fix" the models. In simple vignette generation tasks, ablating (removing) the Black latent was highly effective. For instance, it reduced the disproportionate association of Black patients with cocaine-related stories from 88% to 46%, outperforming standard anti-bias prompting.

Effect of race-latent interventions on model predictions for various clinical conditions across Gemma-2-2B and 9B.

However, the effectiveness of this "surgical" approach diminished in complex, real-world clinical tasks. The Fractional Logit Difference Decrease (FLDD), a metric for bias removal, was often negligible (less than 3%) in realistic risk prediction scenarios.

The "Entanglement" Wall and Future Directions

The primary obstacle to SAE-based mitigation is "entanglement." In complex clinical notes, racial information is not confined to a single latent but is "smeared" across numerous features that also represent valid clinical concepts. Removing race information without degrading clinical accuracy remains a significant challenge.

Future research must address these limitations by expanding beyond binary racial categories and investigating multi-layer interventions to address "smeared" representations.

Conclusion

Sparse Autoencoders represent a powerful tool for auditing LLMs and revealing the hidden "mechanics" of racial bias in healthcare. While they expose the unfaithfulness of model explanations and provide a path for mitigation in simple tasks, they are not yet a "push-button" solution for complex clinical applications. The "entanglement" of race with clinical data underscores the need for continued research into more precise interpretability and intervention techniques to ensure AI safety in medicine.

Summary updated

BibTeX
@inproceedings{ahsan2026can,
  author = {Hiba Ahsan and Byron C. Wallace},
  title = {{Can SAEs reveal and mitigate racial biases of LLMs in healthcare?}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=HAdITwqwLH},
}
Figure