arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.19645cs.CL
收藏

K-量化及其对输出性能的影响

K-Quantization and its Impact on Output Performance

Lund University(隆德大学)

Robin Baki Davidsson, Pierre Nugues

AI总结:

本文研究了不同量化级别(2-6位)对大型语言模型(LLM)在MMLU-Pro、CRUXEval和MuSR等任务上的性能和准确性的影响,发现高精度量化(如8位Q8_0)能提升性能,但降维量化(如2位Q2_K)会带来性能损失,且不同模型和任务的响应差异显著。

摘要:

近年来,大型语言模型(LLMs)在许多自然语言处理(NLP)任务中展现出显著能力。然而,其庞大的规模常常给部署带来挑战。这需要高效的模型压缩技术,量化作为一种重要的解决方案。尽管量化具有诸多优势,但其对LLMs性能和准确性的确切影响仍然是一个活跃的研究领域。本文研究了八个LLMs在不同量化级别下的性能,重点考察了MMLU-Pro(知识处理和推理)、CRUXEval(代码理解)和MuSR(阅读理解)等任务。我们的结果表明,更高的精度(例如8位Q8_0)能带来更好的性能,但边际效益逐渐降低。激进的量化(例如2位Q2_K)通常能保持可接受的准确性,尽管某些模型会显著损失性能。我们的发现表明,虽然较低的位精度通常会降低性能,但不同模型和任务的响应差异显著。较大的模型对激进量化表现出更大的韧性,但仍然会在较低精度下经历显著下降。7-9十亿参数范围的中等大小模型在效率和资源使用之间取得了最佳平衡。这些结果为模型大小、量化和性能之间的权衡提供了见解。

英文摘要:

Recent advancements in large language models (LLMs) have shown their remarkable capacities in many NLP tasks. However, their substantial size often presents challenges for deployment. This necessitates efficient techniques for model compression, with quantization emerging as a prominent solution. Despite its benefits, the exact impact of quantization (from 2- to 6-bit) on the performance and accuracy of LLMs remains an active area of research. This paper investigates the performance of eight LLMs at various quantization levels, focusing on tasks such as MMLU-Pro for knowledge processing and reasoning, CRUXEval for code comprehension, and MuSR for reading comprehension. Our results show a consistent trend where higher precision (e.g., 8-bit Q8\_0) yields improved performance, albeit with diminishing returns. Aggressive quantization (e.g., 2-bit Q2\_K) usually retains acceptable accuracy, though some models show a substantial loss in performance. Our findings indicate that while lower bit precision generally reduces performance, the impact varies across models and tasks. Larger models show greater resilience to aggressive quantization, but can still undergo significant drops at lower precision levels. Mid-sized models in the 7-9 billion parameter range strike an optimal balance between efficiency and resource usage. Such results provide insights into the trade-offs between model size, quantization, and performance.

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

↑