Measuring Mechanistic Independence: Can Bias Be Removed Without Erasing Demographics?
Zhengyang Shan, Aaron Mueller
TL;DR
The paper investigates whether demographic bias in LLMs can be mitigated via inference-time, mechanistic interventions without erasing core demographic recognition. It uses a multi-task framework with sparse autoencoder–derived features to separate causally relevant demographic recognition from stereotype-driven associations, comparing attribution- and correlation-based ablations across Demo-R and Demo-L prompts. Key findings show that bias reduction is largely dimension- and task-specific: attribution-based ablations best reduce gender and race bias while preserving name recognition, whereas education bias is better tackled with correlation-based ablations, though some interventions induce prior collapse. These results highlight the contextual nature of bias encoding and suggest surgical debiasing is feasible but requires carefully matched interventions to the specific bias mechanisms and task context. The work underscores the importance of mechanistic interpretability for safe, interpretable debiasing in real-world NLP systems, and it points to future work on validating across languages and model families and on extending to broader demographic dimensions.
Abstract
We investigate how independent demographic bias mechanisms are from general demographic recognition in language models. Using a multi-task evaluation setup where demographics are associated with names, professions, and education levels, we measure whether models can be debiased while preserving demographic detection capabilities. We compare attribution-based and correlation-based methods for locating bias features. We find that targeted sparse autoencoder feature ablations in Gemma-2-9B reduce bias without degrading recognition performance: attribution-based ablations mitigate race and gender profession stereotypes while preserving name recognition accuracy, whereas correlation-based ablations are more effective for education bias. Qualitative analysis further reveals that removing attribution features in education tasks induces ``prior collapse'', thus increasing overall bias. This highlights the need for dimension-specific interventions. Overall, our results show that demographic bias arises from task-specific mechanisms rather than absolute demographic markers, and that mechanistic inference-time interventions can enable surgical debiasing without compromising core model capabilities.
