Abstract
Inference acceleration techniques like quantization and pruning are essential for deploying Large Language Models (LLMs) efficiently. However, these optimizations are not a "free lunch." This study reveals that such techniques significantly and unpredictably alter model bias, often amplifying demographic stereotypes. The findings suggest that fairness evaluations must be performed on a case-by-case basis after a model has been compressed, as efficiency gains may come at the cost of ethical alignment.
Introduction
Modern LLMs are massive, making them slow and expensive to run on standard hardware. To address this, researchers employ inference acceleration strategies—such as quantization (reducing numerical precision) and pruning (removing weights)—to make models smaller and faster. While these techniques generally preserve predictive performance (e.g., accuracy on multiple-choice tests), their impact on demographic bias is poorly understood. This paper investigates whether these efficiency gains inadvertently exacerbate social biases, potentially making models unsafe for deployment despite their speed.
Methodology and Datasets
The authors evaluated three popular open-source models—LLaMA-2-7B, LLaMA-3.1-8B, and Mistral-7B-v0.3—across several acceleration strategies:
- Quantization: Weight quantization (INT4, INT8, and activation-aware AWQ) and Key-Value (KV) cache quantization.
- Pruning: The "Wanda" method for both unstructured pruning (50% weight removal) and structured pruning (2:4 sparsity).
- Evaluation Metrics: The study analyzed text generations using six bias metrics, including CrowSPairs (stereotypical preference), GlobalOpinionQA (diverse viewpoints), and WorldBench (factual recall disparities across regions).
Notably, the authors introduced DiscrimEvalGen, a novel dataset designed to overcome the limitations of the original DiscrimEval. While the original task only measured the probability of a "Yes/No" token, DiscrimEvalGen forces the model to choose between specific individuals (e.g., a man, a woman, or a non-binary person) and explain its reasoning. This provides a more realistic look at decision-making bias in complex scenarios.
Key Insights
The Unpredictability of Compression
A central finding of the study is that there is no universal rule for how acceleration affects bias. A strategy that reduces bias in LLaMA-2 might significantly increase it in Mistral. This unpredictability necessitates rigorous post-compression testing for every specific model-strategy pair.
Weight vs. Cache Quantization
Quantizing model weights (e.g., AWQ) has a much more drastic and erratic impact on bias than quantizing the KV-cache. KV-cache quantization remained remarkably robust and stable across most tests, suggesting it may be a safer path for maintaining fairness during optimization.
The Hidden Costs of Pruning
While structured pruning sometimes appeared to "reduce" bias, this was often a byproduct of model degradation. In many cases, the model became too repetitive or nonsensical to express coherent views, which artificially lowered bias scores. For LLaMA-3.1, structured pruning caused the "non-dictionary word rate" (gibberish) to jump from 11% to 25%.
Results and Analysis
AWQ quantization emerged as a frequent "worst offender," leading to massive increases in bias. For example, on the DiscrimEval task, AWQ quantization caused a 123% increase in bias for LLaMA-2.
Furthermore, in the WorldBench dataset, pruning and AWQ quantization increased the "error gap" between different regions, meaning the models became even less reliable at recalling facts about non-Western countries. Even the use of developer-prescribed "chat templates" (like [INST]...[/INST]), while helpful, failed to eliminate the significant bias shifts caused by aggressive quantization.
Conclusion and Future Work
The study highlights a critical trade-off between model efficiency and fairness. The authors acknowledge that their focus was limited to post-training methods and demographic bias. Future research should explore Quantization-Aware Training (QAT), which might yield more stable results by integrating fairness constraints directly into the optimization process. Ultimately, the industry requires "bias-aware" compression techniques to ensure that as models become faster, they do not become more discriminatory.
Summary updated