Abstract
Quantization is essential for deploying Large Language Models (LLMs) on resource-constrained hardware, yet its impact on model trustworthiness remains under-explored. This study evaluates how Post-Training Quantization (PTQ) affects adversarial robustness, fairness, and ethics. We identify significant performance "cliffs" at low bit-widths and introduce Precision-Ensemble Voting, a method that aggregates outputs from mixed-precision variants. Our approach improves trustworthiness metrics by up to 5.8% while maintaining a memory footprint lower than full-precision models.
Introduction
The rapid adoption of Large Language Models (LLMs) has necessitated aggressive compression techniques like quantization to fit models onto consumer-grade GPUs. While metrics like MMLU and perplexity are standard for evaluating quantization success, they often fail to capture "trustworthiness"—a model's resilience to adversarial attacks, its demographic biases, and its reliability on out-of-distribution (OOD) data. As LLMs move into high-stakes domains, ensuring these safety guardrails remain intact during compression is paramount.
Benchmarking Trustworthiness in Quantized LLMs
We systematically evaluated the LLaMA-2-13B-Chat model using two prominent PTQ methods: AWQ and GPTQ. Testing across 3-bit, 4-bit, and 8-bit precisions revealed that while 8-bit quantization is largely "safety-neutral," lower bit-widths introduce significant instability.
The Small Model Paradox
A surprising finding in our benchmarks was the "Small Model Paradox." In several trustworthiness dimensions, the dense 7B model outperformed the larger 13B model. For instance, in adversarial robustness tests (AdvGLUE++), the 7B model exhibited higher scores than its 13B counterpart, suggesting that larger models may be more sensitive to subtle lexical perturbations that trigger incorrect or unsafe responses.
In contrast, general knowledge benchmarks like MMLU follow the expected scaling laws, where the 13B model consistently outperforms the 7B model, regardless of the quantization level.
Precision-Ensemble Voting
To address the reliability gaps found in low-bit models, we propose Precision-Ensemble Voting. This technique leverages the observation that different quantization levels (3-bit, 4-bit, 8-bit) tend to fail on different inputs. By running these variants in parallel and using a majority voting mechanism—with the 8-bit model serving as a tie-breaker—we can filter out idiosyncratic errors.
The pipeline consists of four stages:
- Quantization: Generating multiple bit-width variants of a single dense model.
- Generation: Parallel inference across all variants.
- Filtering: Removing invalid or refusal-based outputs.
- Voting: Selecting the final answer via unweighted majority vote.
Results and Discussion
Our Precision-Ensemble approach achieved a 5.8% improvement in trustworthiness metrics over the 13B dense baseline. Notably, AWQ demonstrated superior robustness over GPTQ at ultra-low bit-widths (3-bit), where GPTQ often suffered from abrupt performance collapses and high refusal rates.
The ensemble method provides a superior Pareto frontier for deployment. While it requires more compute than a single 4-bit model, the combined memory requirement of 3, 4, and 8-bit weights is still significantly lower than a single 16-bit FP16 model, offering a path toward safe yet efficient LLM deployment.
Conclusion and Future Work
Quantization is not a "one-size-fits-all" process; its impact on safety and ethics is distinct from its impact on general accuracy. Precision-Ensemble Voting offers a robust mitigation strategy for the risks introduced by low-bit compression. Future research should explore the applicability of these findings to multi-modal models and investigate hardware-software co-design to optimize the execution of mixed-precision ensembles.
Summary updated