arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13178cs.LGcs.AI
收藏

大语言模型训练后量化基准测试:综合分类、统一评估与对比分析

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

Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));Illinois Institute of Technology(伊利诺伊理工学院)

Jiaqi Zhao, Ming Wang, Miao Zhang, Yuzhang Shang, Xuebo Liu, Yaowei Wang, Min Zhang, Liqiang Nie

AI总结:

针对现有大语言模型训练后量化(PTQ)研究缺乏场景适配分析与多维度权衡的问题,本文提出含综合分类体系的PTQ基准,通过多模型、多维度实验总结策略优势与规模-位宽规律,验证补偿类方法的跨架构鲁棒性并给出实用组合方案,为LLM部署与PTQ研究提供参考。

摘要:

训练后量化(Post-Training Quantization, PTQ)技术因其高效性和低资源需求,已被广泛用于大语言模型(Large Language Models, LLMs)的压缩。然而,当前研究缺乏对每种PTQ策略的优势及适用场景的深入分析。此外,现有算法主要聚焦于性能,忽视了模型大小、性能与量化位宽之间的权衡关系。为解决这些问题,本文提出了一个面向大语言模型PTQ的新型基准测试框架。首先,为支撑该基准,我们通过梳理现有主流方法的计算策略(如基于优化的方法、基于补偿的方法等),提出了一套综合分类体系。随后,我们针对每类方法的基线开展了大量实验,覆盖不同规模(7B-70B)、位宽、训练阶段(LLaMA1/2/3/3.1)、架构(Mixtral、DeepSeekMoE和Mamba)及模态(LLaVA1.5和VILA1.5)的模型,并采用了多维度的评估指标。通过对实验结果的对比分析,我们总结了各类PTQ策略的优势,以及考虑性能时的模型规模-位宽权衡规律。例如,基准测试显示基于补偿的技术展现出优异的跨架构鲁棒性,而超大规模模型的极低位宽PTQ效果有待重新审视。最后,我们进一步提出,将补偿策略与其他PTQ策略进行实用组合,可在多种鲁棒性维度上达到SOTA(当前最优)水平。我们相信该基准将为大语言模型的部署及PTQ方法的未来研究提供有价值的参考。我们已在https://github.com/zjq0455/PTQ_Benchmark 搭建了该基准的代码仓库。

英文摘要:

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.

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

↑