Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compression

Junyuan Hong, Jinhao Duan, Chenhui Zhang, Zhangheng Li, Chulin Xie, Kelsey Lieberman, James Diffenderfer, Brian R. Bartoldson, Ajay Kumar Jaiswal, Kaidi Xu, Bhavya Kailkhura, Dan Hendrycks, Dawn Song, Zhangyang Wang, Bo Li

Introduction

As Large Language Models (LLMs) scale, the demand for efficient deployment on consumer-grade hardware has led to the widespread adoption of compression techniques like quantization and pruning. However, while the impact of these techniques on general utility—such as accuracy on benchmarks like MMLU—is well-documented, their effect on model trustworthiness remains largely unexplored. This paper presents the first comprehensive study of "Compressed Trust," investigating whether smaller, faster models remain safe, unbiased, and robust under the pressure of extreme compression.

Methodology

The researchers conducted a massive stress test across three prominent LLM families: Llama-2 (7b, 13b, 70b) and Vicuna-13b. They evaluated these models across eight dimensions of trustworthiness using the DecodingTrust framework, covering:

  • Stereotype and Toxicity
  • Privacy (PII leaks using the Enron Mail dataset)
  • Fairness and Machine Ethics
  • Adversarial and Out-of-Distribution (OOD) Robustness

The study compared two primary compression strategies:

  1. Quantization: Reducing numerical precision to 8, 4, and 3 bits using GPTQ and AWQ algorithms.
  2. Pruning: Removing redundant connections via Magnitude pruning, SparseGPT, and Wanda (targeting 50% sparsity).

The Superiority of Quantization over Pruning

A primary finding of the study is that quantization is significantly more "trust-friendly" than pruning. While a model pruned to 50% sparsity often exhibits a sharp decline in safety metrics, 4-bit quantized models frequently maintain a safety profile nearly identical to their full-precision (16-bit) counterparts. Specifically, 4-bit Llama-2-13b models stayed within 5 points of the original model's trustworthiness scores across all tested dimensions.

Furthermore, the data suggests that compressing a larger model (e.g., a 13b model to 4 bits) often results in a model that is both more capable and more trustworthy than a smaller model (e.g., a native 7b model) trained from scratch.

The 4-Bit Sweet Spot and the 3-Bit Cliff

The research identifies 4-bit quantization as a "sweet spot" for deployment. It offers a 3.2x to 3.3x inference speedup while preserving—and sometimes even enhancing—model safety. However, pushing compression further to 3 bits leads to a "safety cliff."

At the 3-bit level, models show catastrophic failures in instruction-following and safety. This is particularly evident with the GPTQ algorithm, where models suffered a 50-point drop in toxicity resistance, essentially ignoring system prompts to remain helpful and harmless. AWQ proved to be significantly more stable than GPTQ at these extreme levels of compression.

The Utility-Safety Gap

One of the most critical warnings from the study is that "benign performance" is a poor proxy for safety. A model's MMLU score might decrease by only a few points while its safety guardrails plummet by as much as 50 points. This discrepancy suggests that evaluating models solely on general knowledge creates a dangerous blind spot; safety guardrails may crumble long before the model's utility does.

Unexpected Gains in Fairness and Ethics

In a surprising twist, moderate quantization (4-bit) actually improved scores in Ethics and Fairness for some models. For example, quantization reduced the "Equalized Odds Difference" (a measure of unfairness) by over 0.2 in few-shot settings. The authors hypothesize that compression might act as a form of regularization, filtering out "noisy" or biased associations found in the original dense weights, leading to more objective outputs.

Conclusion and Future Directions

The findings of this study provide a roadmap for the efficient yet trustworthy deployment of LLMs. While 4-bit quantization is a viable path forward, the "3-bit cliff" and the failures of pruning highlight the need for more robust compression methods.

Future work should focus on developing "Trust-Aware" compression algorithms that explicitly protect safety guardrails during the pruning or quantization process. Additionally, investigating the mechanistic reasons why quantization can improve fairness could lead to new methods for de-biasing models during the post-training phase.

Summary updated

BibTeX
@inproceedings{hong2024decoding,
  author = {Junyuan Hong and Jinhao Duan and Chenhui Zhang and Zhangheng LI and Chulin Xie and Kelsey Lieberman and James Diffenderfer and Brian R. Bartoldson and AJAY KUMAR JAISWAL and Kaidi Xu and Bhavya Kailkhura and Dan Hendrycks and Dawn Song and Zhangyang Wang and Bo Li},
  title = {{Decoding Compressed Trust: Scrutinizing the Trustworthiness of Efficient LLMs Under Compression}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=e3Dpq3WdMv},
}
Figure