Introduction
As Large Language Models (LLMs) are increasingly compressed via quantization and pruning to run on consumer-grade hardware, a critical question arises: how do these optimizations affect the model's social behavior? While the impact on performance metrics like accuracy and perplexity is well-documented, the effect on demographic bias remains poorly understood. This study investigates whether making models faster inadvertently makes them more biased, revealing that inference acceleration can significantly and unpredictably alter a model's fairness profile.
Methodology
The researchers evaluated three prominent open-source models—LLaMA-2-7B, LLaMA-3.1-8B, and Mistral-7B-v0.3—under various acceleration regimes:
- Quantization: Techniques included standard 4-bit and 8-bit weights (Bitsandbytes), Activation-aware Weight Quantization (AWQ), and Key-Value (KV) cache quantization.
- Pruning: The Wanda method was applied for both unstructured (50% weight removal) and structured (2:4 sparsity) pruning.
- Decoding and Prompting: The study compared "greedy" vs. "sampling" decoding and the use of official chat templates vs. raw prompts.
Evaluation Benchmarks
The models were tested across six bias benchmarks, including CrowSPairs, GlobalOpinionQA, WorldBench, and DT-Stereotyping. Notably, the authors introduced DiscrimEvalGen, a dataset designed to force models to choose between candidates of different genders (man, woman, non-binary) in a single prompt. This approach captures subtle preferences and refusal behaviors more effectively than independent evaluations.
Key Insights: The Unpredictability of Bias Shifts
The study's primary finding is the lack of a universal trend; bias shifts are highly specific to the interaction between model architecture, training data, and the chosen compression algorithm.
- Weight vs. Cache Robustness: Quantizing model weights (long-term knowledge) leads to drastic and erratic bias shifts. Conversely, quantizing the KV-cache (short-term conversational memory) proved remarkably robust, maintaining stable fairness profiles.
- The Illusion of Fairness in Pruning: While pruning sometimes appeared to reduce bias, this was often a side effect of model degradation. As models became incoherent or repetitive, their "fairness" scores improved simply because they ceased to provide functional, biased responses.
- Refusal Patterns: Accelerated models showed an increased tendency to refuse answering. In forced-choice scenarios, Mistral and LLaMA-3.1 initially favored non-binary individuals, though this preference often vanished under aggressive pruning.
Quantitative Results
The data highlights significant outliers in bias escalation. Specifically, AWQ Quantization frequently caused massive increases in bias scores within the DiscrimEval and DiscrimEvalGen tasks compared to the base models.
As shown in the results, structured pruning (2:4) often yielded the lowest bias scores but rendered models nearly unusable, with LLaMA-3.1 failing to provide valid responses in up to 96% of cases. Furthermore, while 8-bit and KV-cache quantization occasionally improved factual recall in the WorldBench dataset, pruning and AWQ exacerbated disparities in recall across different regional and income groups.
Conclusion and Future Work
The findings underscore that a "safe" base model cannot be assumed to remain unbiased after optimization. The authors advocate for integrating bias evaluation as a standard component of the model compression pipeline.
Future research should expand this scope to include:
- Quantization-Aware Training (QAT): Investigating if training models specifically for lower precision can mitigate these bias shifts.
- Model Scaling: Determining if larger models (70B+) are more resilient to compression-induced bias due to higher parameter redundancy.
- Broader Demographics: Extending the analysis to political, religious, and other intersectional biases.
Ultimately, as we strive for efficient AI, we must ensure that speed does not come at the cost of equity.
Summary updated