Fairness Pruning: Locating Demographic Bias in GLU-MLP Layers via Differential Activations
Abstract
This work presents Fairness Pruning, a lightweight structural intervention method designed for the management and future mitigation of demographic bias in large language models (LLMs). As a foundational empirical validation of this method, this work focuses on causal bias localization. Using minimally contrastive prompt pairs and inference-time activation capture, the method identifies neurons that react differentially when processing demographic attributes in GLU architectures, evaluating the signal at the down_proj input. Empirical evaluation was conducted on models of up to 3 billion parameters (Llama-3.2 family and Salamandra-2B), combining standardized benchmark evaluation with qualitative text generation experiments. Results demonstrate that zeroing the identified neurons alters how the model responds to associated demographic variables. However, rather than producing flat mitigation, the intervention causes bidirectional bias destabilization: because BiasScore is unsigned, candidate sets mix neurons that push toward and against the stereotype, and the net effect on aggregate bias depends on which sign dominates. The intervention is extremely surgical: zeroing at most 40 neurons in Llama-3.2-1B (less than 0.031% of total MLP width) achieves a mean retention of 99.49% in reasoning and general knowledge capabilities. These findings empirically confirm that demographic bias processing and model capabilities operate on dissociable circuits, establishing the methodological foundations for transitioning from blind zeroing toward directional behavior modulation.
Community
Changing 5 neurons is enough to modify an LLM's response. 🧠
We locate neurons that respond differentially to demographic attributes using contrastive prompt pairs. No additional training required, runs on consumer hardware — the same used for model inference.
Experiments zeroing from 1 to 40 neurons maintain 99.49% capability on general benchmarks (in the 40-neuron case). In models from 1B to 3B, zeroing out 5 neurons has been enough to significantly alter biased responses.
his is the first paper in a broader research line. The next step is moving from blind zeroing to directional steering, incorporating a signed BiasScore that separates amplifier neurons from regulator neurons.
All code, datasets, and results are openly available.
GitHub: https://github.com/peremartra/fairness-pruning
Datasets:
https://huggingface.co/datasets/oopere/fairness-pruning-pairs-en
https://huggingface.co/datasets/oopere/fairness-pruning-pairs-es
Changing 5 neurons is enough to modify an LLM's response.
We locate neurons that respond differentially to demographic attributes using contrastive prompt pairs. No additional training required, runs on consumer hardware — the same used for model inference.
Experiments zeroing from 1 to 40 neurons maintain 99.49% capability on general benchmarks (in the 40-neuron case). In models from 1B to 3B, zeroing out 5 neurons has been enough to significantly alter biased responses.
This is the first paper in a broader research line. The next step is moving from blind zeroing to directional steering, incorporating a signed BiasScore that separates amplifier neurons from regulator neurons.
All code, datasets, and results are openly available.
💻 GitHub: https://github.com/peremartra/fairness-pruning
🤗 Datasets:
https://huggingface.co/datasets/oopere/fairness-pruning-pairs-en
https://huggingface.co/datasets/oopere/fairness-pruning-pairs-es
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Toward Localizing and Repairing Bias in Transformer Attention Heads (2026)
- Statistically Grounded Sparse-Feature Interventions for Activation-Space Control in Large Language Models (2026)
- How Does Alignment Tuning Shape Representations of Sycophancy and Related Cue-Induced Biases in LLMs? (2026)
- Symbolic Mechanistic Data Attribution: Tracing Training Influence to Learned Behavioral Policies (2026)
- To Compare, or Not to Compare: On Methodological Practices in Evaluating Social Bias (2026)
- CausalGate: Causal Importance Distillation for Transformer Module Pruning (2026)
- Faithfulness to Refusal: A Causal Audit of Neuron Selectors (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2607.28319 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 2
oopere/fairness-pruning-pairs-en
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper