Papers
arxiv:2607.28319

Fairness Pruning: Locating Demographic Bias in GLU-MLP Layers via Differential Activations

Published on Jul 30
· Submitted by
Pere Martra
on Jul 31
Authors:
,
,

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

Paper submitter

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

Paper submitter

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

Sign up or log in to comment

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

Cite arxiv.org/abs/2607.28319 in a model README.md to link it from this page.

Datasets citing this paper 2

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2607.28319 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.