arXiv:2502.13178cs.LGcs.AI2025-02被引 13

系统评测大模型后训练量化方法,揭示各策略优劣与规模-精度权衡。

Benchmarking Post-Training Quantization in LLMs: Comprehensive Taxonomy, Unified Evaluation, and Comparative Analysis

  • 构建主流量化方法的完整分类体系,按优化与补偿等策略划分。
  • 覆盖7B到70B模型、多种架构与模态,在多指标下验证量化效果。
  • 发现补偿类方法跨架构鲁棒性强,低比特量化需重新评估超大规模模型。

后训练量化(PTQ)因其高效与低资源需求,被广泛用于大语言模型压缩。然而现有研究缺乏对各类PTQ策略优势与适用场景的深入分析,且多数算法仅关注性能,忽视模型大小、性能与量化位宽间的权衡。为此,本文提出一个全新的大模型PTQ基准。首先,通过细致分析计算策略,构建涵盖优化型、补偿型等主流方法的综合分类体系;其次,在涵盖7B–70B模型规模、多种位宽、训练版本(LLaMA1/2/3/3.1)、架构(Mixtral、DeepSeekMoE、Mamba)及模态(LLaVA1.5、VILA1.5)的广泛实验中,评估多种评价指标。通过对比分析结果,总结各策略优势及模型规模与位宽的权衡关系。例如,补偿型方法在跨架构场景中表现出显著鲁棒性,且超大规模模型在极低比特下的量化效果应重新审视。最后,我们主张将补偿与其他策略结合,可实现多维度鲁棒性的最先进性能。本基准为大模型部署与未来PTQ研究提供重要参考。相关代码仓库已开源:https://github.com/zjq0455/PTQ_Benchmark。

原文摘要 · Abstract (English)

Post-training Quantization (PTQ) technique has been extensively adopted for large language models (LLMs) compression owing to its efficiency and low resource requirement. However, current research lacks a in-depth analysis of the superior and applicable scenarios of each PTQ strategy. In addition, existing algorithms focus primarily on performance, overlooking the trade-off among model size, performance, and quantization bitwidth. To mitigate these confusions, we provide a novel benchmark for LLMs PTQ in this paper. Firstly, in order to support our benchmark, we propose a comprehensive taxonomy for existing mainstream methods by scrutinizing their computational strategies (e.g., optimization-based, compensation-based, etc.). Then, we conduct extensive experiments with the baseline within each class, covering models with various sizes (7B-70B), bitwidths, training levels (LLaMA1/2/3/3.1), architectures (Mixtral, DeepSeekMoE and Mamba) and modality (LLaVA1.5 and VILA1.5) on a wide range of evaluation metrics.Through comparative analysis on the results, we summarize the superior of each PTQ strategy and modelsize-bitwidth trade-off considering the performance. For example, our benchmark reveals that compensation-based technique demonstrates outstanding cross-architecture robustness and extremely low-bit PTQ for ultra large models should be reexamined. Finally, we further accordingly claim that a practical combination of compensation and other PTQ strategy can achieve SOTA various robustness. We believe that our benchmark will provide valuable recommendations for the deployment of LLMs and future research on PTQ approaches.We conduct an repository for our benchmark at https://github.com/zjq0455/PTQ_Benchmark.

大模型量化后训练量化模型压缩性能评估

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。