A Mechanistic Framework for Removing Unwarranted Demographic Influence in Clinical LLMs

We propose Attention Surgery, a mechanistic interpretability framework for identifying and removing the specific neural pathways through which demographic tokens (like sex labels) distort clinical reasoning in LLMs, building directly on the prior YentlBench/Attention Leak work that demonstrated the problem behaviorally. The pipeline has four stages: contrastive behavioral audit → causal localization in the residual stream → extraction of demographic-influence directions → removal via orthogonal projection. The technique draws on activation patching and weight orthogonalization, analogous to "abliteration" methods used to remove refusal behavior from open models. Our proposal's central conceptual contribution is naming and framing the Selective Surgery Problem: demographic information isn't uniformly harmful in clinical contexts. Sex is irrelevant to ESI triage severity, but directly relevant to differential diagnosis of, for instance, abdominal emergencies. Any debiasing intervention that blindly removes sex-encoding damages clinical utility and the framework must thread a needle between a fairness test (sex-label perturbation no longer shifts sex-invariant outputs) and a safety test (sex-dependent reasoning survives intact where it's physiologically warranted). We argue this dual-validation requirement is genuinely novel and not addressed by existing debiasing paradigms.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-04-17
DOI
https://doi.org/10.5281/zenodo.19633293
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Mechanistic Framework for Removing Unwarranted Demographic Influence in Clinical LLMs

Inna Rytsareva
Zenodo (CERN European Organization for Nuclear Research)
Machine Learning in Healthcare
article

A Mechanistic Framework for Removing Unwarranted Demographic Influence in Clinical LLMs

Inna Rytsareva
article en

Abstract

We propose Attention Surgery, a mechanistic interpretability framework for identifying and removing the specific neural pathways through which demographic tokens (like sex labels) distort clinical reasoning in LLMs, building directly on the prior YentlBench/Attention Leak work that demonstrated the problem behaviorally. The pipeline has four stages: contrastive behavioral audit → causal localization in the residual stream → extraction of demographic-influence directions → removal via orthogonal projection. The technique draws on activation patching and weight orthogonalization, analogous to "abliteration" methods used to remove refusal behavior from open models. Our proposal's central conceptual contribution is naming and framing the Selective Surgery Problem: demographic information isn't uniformly harmful in clinical contexts. Sex is irrelevant to ESI triage severity, but directly relevant to differential diagnosis of, for instance, abdominal emergencies. Any debiasing intervention that blindly removes sex-encoding damages clinical utility and the framework must thread a needle between a fairness test (sex-label perturbation no longer shifts sex-invariant outputs) and a safety test (sex-dependent reasoning survives intact where it's physiologically warranted). We argue this dual-validation requirement is genuinely novel and not addressed by existing debiasing paradigms.

Zenodo (CERN European Organization for Nuclear Research)
Harmonic Drive (Germany) (DE)
Gender equality
Openalex Percentile: Top 13%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.