Attention Pruning: Automated Fairness Repair of Language Models via Surrogate Simulated Annealing
Not on the map. Why?
Abstract (arXiv)
This paper explores pruning attention heads as a post-processing bias mitigation method for large language models (LLMs). Modern AI systems such as LLMs are expanding into sensitive social contexts where fairness concerns become especially crucial. Since LLMs develop decision-making patterns by training on massive datasets of human-generated content, they naturally encode and perpetuate societal biases. While modifying training datasets and algorithms is expensive and requires significant resources; post-processing techniques-such as selectively deactivating neurons and attention heads in pre-trained LLMs-can provide feasible and effective approaches to improve fairness. However, identifying the optimal subset of parameters to prune presents a combinatorial challenge within LLMs' immense parameter space, requiring solutions that efficiently balance competing objectives across the frontiers of model fairness and utility. To address the computational challenges, we explore a search-based program repair approach via randomized simulated annealing. Given the prohibitive evaluation costs in billion-parameter LLMs, we develop surrogate deep neural networks that efficiently model the relationship between attention head states (active/inactive) and their corresponding fairness/utility metrics. This allows us to perform optimization over the surrogate models and efficiently identify optimal subsets of attention heads for selective pruning rather than directly searching through the LLM parameter space. This paper introduces Attention Pruning, a fairness-aware surrogate simulated annealing approach to prune attention heads in LLMs that disproportionately contribute to bias while minimally impacting overall model utility. Our experiments show that Attention Pruning achieves up to 40% reduction in gender bias and outperforms the state-of-the-art bias mitigation strategies.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 50 of its 86 references that are in the map. First posted on arXiv 20 Mar 2025.
Builds on
50 of 86 references.
References · 50
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2016Semantics derived automatically from language corpora contain human-like biasescited by 901
- 2019Are Sixteen Heads Really Better than One?cited by 816
38 more
- 2023Bias and Fairness in Large Language Models: A Surveycited by 639
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
- 2018Gender Bias in Coreference Resolutioncited by 442
- 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 412
- 2019Mitigating Gender Bias in Natural Language Processing: Literature Reviewcited by 287
- 2019Lipstick on a Pig: Debiasing Methods Cover up Systematic Gender Biases in Word Embeddings But do not Remove Themcited by 268
- 2018Gender Bias in Neural Natural Language Processingcited by 211
- 2020Detecting Emergent Intersectional Biases: Contextualized Word Embeddings Contain a Distribution of Human-like Biasescited by 167
- 2024Rephrasing the Web: A Recipe for Compute and Data-Efficient Language Modelingcited by 161
- 2020Adversarial Filters of Dataset Biasescited by 160
- 2017Fairness Testing: Testing Software for Discriminationcited by 126
- 2020UnQovering Stereotyping Biases via Underspecified Questionscited by 126
- 2021Sustainable Modular Debiasing of Language Modelscited by 100
- 2020Hate Speech Detection and Racial Bias Mitigation in Social Media based on BERT modelcited by 87
- 2021Quantifying Social Biases in NLP: A Generalization and Empirical Comparison of Extrinsic Fairness Metricscited by 83
- 2018Automated Directed Fairness Testingcited by 78
- 2024Bias in Large Language Models: Origin, Evaluation, and Mitigationcited by 77
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
- 2020Double-Hard Debias: Tailoring Word Embeddings for Gender Bias Mitigationcited by 36
- 2022MABEL: Attenuating Gender Bias using Textual Entailment Datacited by 31
- 2022Text Style Transfer for Bias Mitigation using Masked Language Modelingcited by 28
- 2022BLIND: Bias Removal With No Demographicscited by 22
- 2023Fairness-Aware Structured Pruning in Transformerscited by 22
- 2022FairNeuron: Improving Deep Neural Network Fairness with Adversary Games on Selective Neuronscited by 21
- 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
- 2021FairMask: Better Fairness via Model-based Rebalancing of Protected Attributescited by 19
- 2021The Authors Matter: Understanding and Mitigating Implicit Bias in Deep Text Classificationcited by 18
- 2022Modular and On-demand Bias Mitigation with Attribute-Removal Subnetworkscited by 18
- 2022Debiasing Masks: A New Framework for Shortcut Mitigation in NLUcited by 16
- 2023''Fifty Shades of Bias'': Normative Ratings of Gender Bias in GPT Generated English Textcited by 15
- 2023SocialStigmaQA: A Benchmark to Uncover Stigma Amplification in Generative Language Modelscited by 15
- 2023CALM : A Multi-task Benchmark for Comprehensive Assessment of Language Model Biascited by 14
- 2024NeuFair: Neural Network Fairness Repair with Dropoutcited by 11
- 2024Hey GPT, Can You be More Racist? Analysis from Crowdsourced Attempts to Elicit Biased Content from Generative AIcited by 6
- 2024FairLay-ML: Intuitive Debugging of Fairness in Data-Driven Social-Critical Softwarecited by 4
- 2023Model Debiasing via Gradient-based Explanation on Representationcited by 2
- 2023Improving Bias Mitigation through Bias Experts in Natural Language Understandingcited by 2
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Chain-of-Thought Driven Adversarial Scenario Extrapolation for Robust Language Modelscited by 4
- 2025Frustratingly Easy Task-aware Pruning for Large Language Modelscited by 1
- 2026Toward Localizing and Repairing Bias in Transformer Attention Headscited by 0
- 2026Fairness Invariants: A Relational Approach to Explaining and Mitigating Fairness Bugscited by 0
- 2026FORGE: Verification-Gated Behavioral Repair for Generative Language Modelscited by 0
- 2026FORGE: Verification-Gated Behavioral Repair for Generative Language Models4 Oct 2026
- 2026Fairness Invariants: A Relational Approach to Explaining and Mitigating Fairness Bugs26 Aug 2026
- 2026Toward Localizing and Repairing Bias in Transformer Attention Heads14 Jul 2026
- 2025Frustratingly Easy Task-aware Pruning for Large Language Models26 Oct 2025
- 2025Chain-of-Thought Driven Adversarial Scenario Extrapolation for Robust Language Models20 May 2025