arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.04965cs.CL
收藏

超越困惑度:LLM压缩的多维度安全评估

Beyond Perplexity: Multi-dimensional Safety Evaluation of LLM Compression

Kahlert School of Computing, University of Utah(犹他大学卡勒特计算学院);Google DeepMind(谷歌DeepMind);Scientific Computing and Imaging Institute, University of Utah(犹他大学科学计算与成像研究所)

Zhichao Xu, Ashim Gupta, Tao Li, Oliver Bentham, Vivek Srikumar

AI总结:

本文研究了模型压缩对LLM安全性的多维度影响,发现不同压缩方法对退化危害、表征危害等有不同影响,强调需在压缩LLM开发中整合安全评估。

摘要:

日益普及的模型压缩技术使得大语言模型(LLMs)能够部署于实际应用中。由于这种向本地部署发展的趋势,压缩后的LLMs将与大量人群交互。先前的压缩工作通常优先考虑保持困惑度,这与训练损失直接类似。压缩方法对模型行为其他关键方面的影响——特别是安全性——需要系统性评估。为此,我们沿着四个维度研究模型压缩的影响:(1) 退化危害,即生成中的偏见和毒性;(2) 表征危害,即判别性任务中的偏见;(3) 方言偏见;以及(4) 语言建模和下游任务性能。我们考察了广泛的LLM压缩技术,包括非结构化剪枝、半结构化剪枝和量化。我们的分析表明,压缩可能导致意想不到的后果。尽管压缩可能无意中缓解LLMs的退化危害,但它仍可能加剧表征危害。此外,增加压缩对不同受保护群体产生分歧影响。最后,不同压缩方法具有截然不同的安全影响:例如,量化主要保持偏见,而剪枝则迅速退化。我们的发现强调了将安全评估整合到压缩LLMs开发中的重要性,以确保其在实际应用中的可靠性。

英文摘要:

Increasingly, model compression techniques enable large language models (LLMs) to be deployed in real-world applications. As a result of this momentum towards local deployment, compressed LLMs will interact with a large population. Prior work on compression typically prioritize preserving perplexity, which is directly analogous to training loss. The impact of compression method on other critical aspects of model behavior\, -- \,particularly safety\, -- \,requires systematic assessment. To this end, we investigate the impact of model compression along four dimensions: (1) degeneration harm, i.e., bias and toxicity in generation; (2) representational harm, i.e., biases in discriminative tasks; (3) dialect bias; and(4) language modeling and downstream task performance. We examine a wide spectrum of LLM compression techniques, including unstructured pruning, semi-structured pruning, and quantization. Our analysis reveals that compression can lead to unexpected consequences. Although compression may unintentionally alleviate LLMs' degeneration harm, it can still exacerbate representational harm. Furthermore, increasing compression produces a divergent impact on different protected groups. Finally, different compression methods have drastically different safety impacts: for example, quantization mostly preserves bias while pruning degrades quickly. Our findings underscore the importance of integrating safety assessments into the development of compressed LLMs to ensure their reliability across real-world applications.\footnote{Our implementation and results are available here: \url{https://github.com/zhichaoxu-shufe/Beyond-Perplexity-Compression-Safety-Eval}}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑