Manuscript Offprint

arXiv:2609.02496

Debias-SparseGPT: Bias-Aware Pruning for Large Language Models

Irina Proskurina, Guillaume Metzler, Antoine Gourru, Julien Velcin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Model compression techniques such as pruning and quantization facilitate the efficient deployment and acceleration of Large Language Models (LLMs). However, recent studies show that weight sparsification methods, such as SparseGPT, can amplify existing biases in models, with outputs varying significantly depending on persona cues in the prompt. In this paper, we introduce Debias-SparseGPT, a post-training pruning method incorporating representational debiasing using a second-order term defined over demographically contrasting inputs. We perform empirical validation of our method over a wide range of generative LLMs. Across models and sparsity regimes (25%, 50%, and structured 2:4 sparsity), Debias-SparseGPT consistently reduces pruning-induced bias compared to SparseGPT while preserving model perplexity and zero-shot accuracy. Under the most restrictive 2:4 structured sparsity pattern, which most aggressively degrades model quality, augmenting the calibration set with long-context, content-rich examples further improves both downstream performance and fairness. Overall, Debias-SparseGPT advances the bias-performance trade-off while preserving the computational efficiency of sparse models.

1 Introduction

Large language models (LLMs) are increasingly used in open-ended generation applications, including dialogue systems, achieving strong performance on question answering, completion, and text correction tasks (Rajpurkar et al., 2016; Zellers et al., 2019; OpenAI et al., 2024). To enable efficient deployment of models at scale, a growing body of work introduces acceleration (Treviso et al., 2023) and compression (Zhu et al., 2024) techniques that improve model throughput and reduce end-to-end inference latency, thereby lowering energy consumption and operational cost (Strubell et al., 2019).

Figure

Figure 1: Illustration of bias amplification induced by LLaMA-3.1-8B model compression and its mitigation with Debias-SparseGPT. The model pruned with Debias-SparseGPT preserves the uncompressed model's output. ≠\neq denotes responses generated by the compressed (pruned) models.

Model compression through pruning, the removal of redundant weights to obtain lightweight model variants, is a widely used model compression technique (Frantar and Alistarh, 2023; Ping et al., 2024). Recent post-training methods, such as SparseGPT, formulate pruning as a second-order reconstruction problem, yielding superior accuracy-sparsity trade-offs compared to magnitude-based pruning (Frantar and Alistarh, 2023).

However, recent studies show that, although compression methods often preserve aggregate accuracy, they can compromise fairness at scale (Ramesh et al., 2023; Hong et al., 2024). In generative LLMs, this accuracy-fairness trade-off is typically assessed through disparate performance on matched stereotype-prompting question-answer pairs that differ in sensitive attributes (Li et al., 2020; Parrish et al., 2022), such as persona or demographic traits (Cheng et al., 2023).

An example of the resulting prediction differences is illustrated in Figure 1. Although prior works show that pruning can degrade performance on question-answering benchmarks designed to as-

MethodWeight UpdateCalib. DataBias-AwarePruning MetricComplexity
Magnitude✗✗✗∣Wij∣|W_{ij}|O(1)O(1)
Wanda✗✓✗∣Wij∣∥Xj∥2|W_{ij}| \| \mathbf{X}_j \|_2O(dhidden2)O(d_{hidden}^2)
SparseGPT✓✓✗Wij2[(XX⊤+λI)−1]jj\frac{W_{ij}^2}{[(\mathbf{X}\mathbf{X}^\top + \lambda \mathbf{I})^{-1}]_{jj}}O(dhidden3)O(d_{hidden}^3)
Debias-SparseGPT✓✓✓Wij2[(X0X0⊤+X1X1⊤+2ΔXΔX⊤+λI)−1]jj\frac{W_{ij}^2}{[(\mathbf{X}_0\mathbf{X}_0^\top + \mathbf{X}_1\mathbf{X}_1^\top + 2\Delta\mathbf{X}\Delta\mathbf{X}^\top + \lambda \mathbf{I})^{-1}]_{jj}}O(dhidden3)O(d_{hidden}^3)

Table 1: Comparison of pruning algorithms. Debias-SparseGPT is the only debias-aware second-order pruning method, introducing a bias-sensitive Hessian given the paired inputs of text X0X_0 and X1X_1, while preserving SparseGPT's computational complexity.

sess biases in output answers, no methods have, to our knowledge, been proposed to mitigate these effects during the compression of LLMs. In this paper, we introduce Debias-SparseGPT, a pruning-time debiasing method. Our contributions are as follows: 1) We introduce a theoretically grounded solution, Debias-SparseGPT,¹ to the problem of debiasing LLMs during model compression. 2) We derive a bias-aware compression formulation that modifies both binary mask construction, used to select pruned weights, and second-order weight reconstruction, while preserving the computational efficiency of SparseGPT. 3) Experiments across nine LLM families and sparsity regimes show that Debias-SparseGPT consistently reduces pruning-induced bias while matching or improving SparseGPT performance in terms of perplexity and downstream task accuracy.

Content warning: This article contains illustrative examples of stereotypical and offensive language involving demographic groups, used as inputs to the debiasing-compression objective.

References (37)

  • Song Han, Huizi Mao, and William J. Dally. 2016. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. Preprint, arXiv:1510.00149. (opens arXiv in a new tab)
  • Sara Hooker, Nyalleng Moorosi, Gregory Clark, Samy Bengio, and Emily Denton. 2020. Characterising bias in compressed models. Preprint, arXiv:2010.03058. (opens arXiv in a new tab)
  • Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations
  • HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
  • Curran Associates, Inc
  • Guangxuan Xu and Qingyuan Hu. 2022. Can model compression improve NLP fairness. Preprint, arXiv:2201.08542. (opens arXiv in a new tab)
  • Association for Computational Linguistics
  • Michael Zhu and Suyog Gupta. 2017. To prune, or not to prune: exploring the efficacy of pruning for model compression. Preprint, arXiv:1710.01878. (opens arXiv in a new tab)
  • Let $\mathbf{w} = \text{vec}_r(\mathbf{W})$, $\hat{\mathbf{w}} = \text{vec}_r(\hat{\mathbf{W}})$, and $\Delta \mathbf{w} = \hat{\mathbf{w}} - \mathbf{w} = \text{vec}_r(\Delta \mathbf{W})$
  • Under this assumption, only the quadratic term remains
  • This yields the constrained problem:
  • (9), for the Debias-SparseGPT objective in Eq
  • Our usage of models complies with their respective licenses, which are listed in Table 8
  • We use the group-balanced BBQ set released for the HELM leaderboard (Kaiyom et al., 2024) with the original BBQ metric implementation
  • We use the implementation provided by Sun et al
  • The metric is defined as the percentage of cases in which the stereotypical sentence is assigned a higher likelihood than the anti-stereotypical one: Likelihood($x_{\text{stereo}}$) > Likelihood($x_{\text{anti}}$)
  • The same calibration data are used for Wanda, SparseGPT, and Debias-SparseGPT to ensure a consistent comparison across data-dependent pruning methods
  • IT denotes instruction-tuned models
  • Carbon footprint per 1M generated tokens is estimated assuming a carbon intensity of 0.033 kgCO₂e/kWh, using the Optimum-Benchmark implementation.¹²
  • We first extend the comparison under 1:4 semi-structured sparsity to six additional model families and then provide category-level and uncertainty evaluation for selected models
  • Across all six models, models compressed with Debias-SparseGPT achieve higher UnQover accuracy and lower DTO scores relative to SparseGPT while maintaining comparable perplexity and downstream-task performance
  • The models are evaluated separately on the UnQover benchmark for each question category (Religion, Nationality, Race, and Gender)
  • Qwen exhibits higher confidence for correct predictions and lower entropy, indicating lower predictive uncertainty than LLaMA
  • Predictive entropy is computed from the model probabilities over candidate answers as $H(p) = -\sum_i p_i \log p_i$
  • We find that across less-restrictive sparsity settings, Debias-SparseGPT generally preserves SparseGPT downstream performance while improving UnQover accuracy
  • CP = CrowS-Pairs
  • >Qwen-2.5-7B-Instruct</td></tr><tr><td>Dense</td><td>-</td><td>-</td><td>7.14</td><td>56.99</td><td>68.71</td><td>73.17</td><td>86.30</td><td>60.82</td><td>0.291</td></tr><tr><td rowspan=
  • SS + UltraChat
  • Overall, models compressed with Debias-SparseGPT generally achieve higher UnQover accuracy than models compressed with SparseGPT while maintaining comparable perplexity and downstream accuracy
  • For each group category $\mathcal{G} \in \{\text{gender}, \text{race}, \text{religion}\}$, we construct a calibration subset consisting of the corresponding minimal contrastive pairs from StereoSet
  • ><tr><td rowspan=
  • Among the category-specific StereoSet subsets, religion-calibration achieves the highest average UnQover accuracy and the lowest DTO, while full StereoSet calibration yields the lowest perplexity and outperforms CrowS-Pairs across all reported metrics
  • First, we evaluate generations from compressed models conditioned on inputs from the RealToxicityPrompts benchmark (Gehman et al., 2020), following prior work studying the impact of model compression on toxicity and safety (Xu and Hu, 2022; Xu et al., 2024; Hong et al., 2024)
  • We report the proportion of generated responses classified as unsafe by LLaMA Guard 3-1B; lower values are better
  • Generation is performed using deterministic greedy decoding with temperature set to zero
  • Both models are compressed using the same calibration data, consisting of full StereoSet and 256 examples from UltraChat
  • Both models are compressed under 2:4 semi-structured sparsity using the same StereoSet and UltraChat calibration data