A Framework for Task-Agnostic Counterfactual Fairness in Transformers through Activation Steering
On the map: Mechanistic interpretability → Circuits and mechanistic analysis
Abstract (arXiv)
Bias in transformer-based models is a growing concern as these architectures become more prevalent in automated decision-making systems, such as prediction models for hiring, lending, and clinical treatment recommendation. Mechanistic interpretability (MI) is a growing body of work that measures meaningful causal effects of activations on model output by identifying human-interpretable features encoded in model activations. When such features correspond to sensitive attributes, they provide a direct way to quantify the bias those attributes introduce and to causally intervene to mitigate it. However, counterfactual fairness (CF) methods have not been systematically adapted to this setting of intervening on interpretable mechanisms in transformers. We propose a framework, Mechanistic Interpretability for Counterfactual Fairness (MICF), that utilizes MI tools to reformulate CF constraints in terms of transformer activations, unifying former approaches into a single pipeline for fairness analysis in transformers. MICF does not require a prior causal model or specific transformer architecture. We evaluate MICF on real-world tabular data and show that CF can be improved across different prediction tasks.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in Circuits and mechanistic analysis, one of 13 directions in Mechanistic interpretability. Builds on 21 of its 48 references that are in the map. Submitted 30 Oct 2026.
Builds on
21 of 48 references.
Closest ancestors · 1
Same direction, newest first
Other references · 20
- 2017Attention Is All You Needcited by 62,125
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,783
- 2022Toy Models of Superpositioncited by 1,084
- 2017Counterfactual Fairnesscited by 828
- 2013Direct and Indirect Effectscited by 291
- 2024How to use and interpret activation patchingcited by 253
- 2019Model-Agnostic Counterfactual Explanations for Consequential Decisionscited by 209
- 2019The Dangers of Post-hoc Interpretability: Unjustified Counterfactual Explanationscited by 100
- 2024A Survey on Large Language Models for Critical Societal Domains: Finance, Healthcare, and Lawcited by 83
- 2024A Framework for Human Evaluation of Large Language Models in Healthcare Derived from Literature Reviewcited by 71
- 2025FairSteer: Inference Time Debiasing for LLMs with Dynamic Activation Steeringcited by 44
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 33
8 more
- 2013A Probabilistic Calculus of Actionscited by 15
- 2023Learning for Counterfactual Fairness from Observational Datacited by 14
- 2024Fairness-Accuracy Trade-Offs: A Causal Perspectivecited by 11
- 2024FairPFN: Transformers Can do Counterfactual Fairnesscited by 9
- 2021Using Causal Analysis for Conceptual Deep Learning Explanationcited by 6
- 2025The Effect of Enforcing Fairness on Reshaping Explanations in Machine Learning Modelscited by 1
- 2026Causal Pre-training Under the Fairness Lens: An Empirical Study of TabPFNcited by 1
- 2026Efficient and Interpretable Transformer for Counterfactual Fairnesscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Mechanistic Interpretability as Statistical Estimation: A Variance Analysis
- 2025nnterp: A Standardized Interface for Mechanistic Interpretability of Transformers
- 2024Mechanistic interpretability of large language models with applications to the financial services industry
- 2025Signatures of human-like processing in Transformer forward passes
- 2026Interpreting Transformers Through Attention Head Intervention
- 2026Every Component Is a Lookup: One Linear Graph for Interaction, Composition and Attribution
- 2026Mechanistic Interpretability for Neural Networks: Circuits, Sparse Features and Symbolic Reasoning
- 2026Fair Recourse for All: Ensuring Individual and Group Fairness in Counterfactual Explanations