训练后量化(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.
OmniOpt: Taxonomy, Geometry, and Benchmarking of Modern Optimizers
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai University(上海大学);Westlake University(西湖大学);Shanghai Jiao Tong University(上海交通大学);UCAS(中国科学技术大学);Zhejiang University(浙江大学);Southern University of Science and Technology(南方科技大学)
Charting the European LLM Benchmarking Landscape: A New Taxonomy and a Set of Best Practices
Jožef Stefan Institute(乔塞夫·斯塔芬研究所);University of Ljubljana(卢布尔雅那大学);Faculty of Arts, University of Ljubljana(艺术学院,卢布尔雅那大学);Faculty of Computer and Information Science, University of Ljubljana(计算机与信息科学学院,卢布尔雅那大学);Institute of Contemporary History(现代史研究所)
Michigan State University(密歇根州立大学);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);McGill University(麦吉尔大学);University of Utah(犹他大学);ETH Zürich(苏黎世联邦理工学院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Helmholtz Zentrum München(慕尼黑亥姆霍兹中心)
Radiology's Last Exam (RadLE): Benchmarking Frontier Multimodal AI Against Human Experts and a Taxonomy of Visual Reasoning Errors in Radiology
Centre for Responsible Autonomous Systems in Healthcare (CRASH) Lab, Koita Centre for Digital Health(负责任的自主医疗系统中心(CRASH)实验室、Koita数字健康中心);Ashoka University(阿什oka大学);Independent Researcher(独立研究者);Koita Centre for Digital Health(Koita数字健康中心)
Benchmarking Multi-Agent LLM Architectures for Financial Document Processing: A Comparative Study of Orchestration Patterns, Cost-Accuracy Tradeoffs and Production Scaling Strategies
Department of Computer Science and Engineering(计算机科学与工程系);New York University(纽约大学);New York, NY 10012(纽约市NY 10012)
Fine-tuning LLaMA 2 interference: a comparative study of language implementations for optimal efficiency
Synergy University(协同大学);BGC Trust University(BGC信托大学);Chittagong University of Engineering and Technology(吉大港工程技术大学);Samarkand State University(撒马尔罕国立大学);Military Institute of Science and Technology (MIST)(科技军事学院);Sonargaon University(索纳冈大学)
Reasoning in a Combinatorial and Constrained World: Benchmarking LLMs on Natural-Language Combinatorial Optimization
Eindhoven University of Technology(埃因霍温理工大学);Brandenburg University of Technology(勃兰登堡工业大学);Nanyang Technological University(南洋理工大学);Delft University of Technology(代尔夫特理工大学);Southeast University(东南大学)
FinTagging: Benchmarking LLMs for Extracting and Structuring Financial Information
Georgia Institute of Technology(佐治亚理工学院);Columbia University(哥伦比亚大学);California State University(加州州立大学);University of Montreal(蒙特利尔大学);Carnegie Mellon University(卡内基梅隆大学);Rensselaer Polytechnic Institute(莱斯利理工学院);The University of Manchester(曼彻斯特大学);Harvard University(哈佛大学)
CXPMRG-Bench: Pre-training and Benchmarking for X-ray Medical Report Generation on CheXpert Plus Dataset
School of Computer Science and Technology, Anhui University(安徽大学计算机科学与技术学院);First Affiliated Hospital of Anhui University of Chinese Medicine(安徽中医药大学第一附属医院)
A Survey and Benchmarking of Spatial-Temporal Traffic Data Imputation Models
Key Laboratory of Big Data and Artificial Intelligence in Transportation, Ministry of Education, and School of Computer Science and Technology, Beijing Jiaotong University(大数据与人工智能交通运输关键实验室、教育部,计算机科学与技术学院,北京交通大学);Department of Computer Science, Aalborg University(计算机科学系,奥尔堡大学);Beijing Key Laboratory of Traffic Data Mining and Embodied Intelligence, School of Computer Science and Technology, Beijing Jiaotong University(北京交通大数据挖掘与具身智能关键实验室,计算机科学与技术学院,北京交通大学)
CANDY: Benchmarking LLMs' Limitations and Assistive Potential in Chinese Misinformation Fact-Checking
School of Cyber Science and Engineering, Sichuan University, China(四川大学网络科学与工程学院);College of Computer Science, Sichuan University, China(四川大学计算机学院);Institute of Data Science, National University of Singapore, Singapore(新加坡国立大学数据科学研究所)
Comparative Study of Neighbor-based Methods for Local Outlier Detection
School of Software, Shandong University(山东大学软件学院);School of Mathematics and Computer, Shantou University(汕头大学数学与计算机学院);School of Chemistry and Life Sciences, Suzhou University of Science and Technology(苏州科技大学化学与生命科学学院)
Beyond FLOPs: Benchmarking Real Inference Acceleration of LLM Pruning under a GEMM-Centric Taxonomy
Ningbo Institute of Digital Twin, Eastern Institute of Technology, Ningbo(宁波数字孪生研究院,东方理工大学(宁波));Department of Computing, The Hong Kong Polytechnic University(香港理工大学计算学系);Munich Center for Machine Learning, LMU Munich(慕尼黑大学机器学习慕尼黑中心)
Taxonomy of Benchmarks in Graph Representation Learning
Michigan State University(密歇根州立大学);Mila(米拉人工智能研究所);Université de Montréal(蒙特利尔大学);University of Utah(犹他大学);ETH Zürich(苏黎世联邦理工学院);University of California, Los Angeles(加州大学洛杉矶分校);Helmholtz Munich(亥姆霍兹慕尼黑中心);TU Munich(慕尼黑工业大学)