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

分层高影响参数比率优化在大语言模型后训练量化中的应用

Layer-Wise High-Impact Parameter Ratio Optimization in Post-Training Quantization for Large Language Models

Department of Data Science and AI, Monash University, Australia(墨尔本大学数据科学与人工智能系);Centre for Vision, Speech and Signal Processing, University of Surrey, UK(萨里大学视觉、语音与信号处理中心)

Cuong Pham, Hoang Anh Dung, Cuong C. Nguyen, Trung Le, Gustavo Carneiro, Thanh-Toan Do

AI总结:

本文提出了一种分层高影响参数比率优化方法,通过二次优化框架确定各层的高影响参数比例,以提升大语言模型后训练量化的效率与精度。

摘要:

大语言模型(LLMs)在自然语言处理领域取得了显著进展,但其庞大的参数数量在部署过程中带来了显著的计算和内存挑战。后训练量化(PTQ)作为一种有前景的方法,能够以最小的开销缓解这些挑战。尽管现有的PTQ方法可以有效地对LLMs进行量化,但在极低的位宽下会经历显著的精度损失,这主要是由于高影响参数对量化性能有显著影响。几种方法通过识别并保留高影响参数在FP16格式中来解决这些问题。然而,它们在所有层上应用固定的高影响参数比例,忽略了层间的敏感性差异。在本文中,我们提出了一种二次优化框架,以确定层特定的高影响参数比例,同时考虑层间的依赖关系。我们对高影响参数进行中等位宽的量化,这通常会导致量化LLMs中的性能降级可忽略不计,而其余参数可以被量化到极低的位宽。在相同的资源受限预算下,这使得能够保留比那些只选择少数在FP16格式中的方法更多的高影响参数。此外,所提出的框架允许我们利用一种通常需要大量可学习参数仅用于高影响参数的先进量化方法,同时对其余部分应用计算效率高的方法。我们的方法在保持高性能的同时,实现了计算效率和模型精度之间的有效平衡。

英文摘要:

Large language models (LLMs) have significantly advanced natural language processing, but their massive parameter counts create substantial computational and memory challenges during deployment. Post-training quantization (PTQ) has emerged as a promising approach to mitigate these challenges with minimal overhead. While existing PTQ methods can effectively quantize LLMs, they experience substantial accuracy loss at extremely low bit-widths, primarily due to high-impact parameters that significantly influence quantization performance. Several approaches address these issues by identifying and retaining the high-impact parameters in FP16 format. However, they apply fixed ratios of high-impact parameters across all layers, overlooking layer-wise sensitivity variations. In this paper, we propose a quadratic optimization framework that determines layer-specific ratios of high-impact parameters while considering inter-layer dependencies. We quantize high-impact parameters to moderate bit-widths, which often result in negligible performance degradation in quantized LLMs, while the remaining parameters can be quantized to extremely low bit-widths. Under the same resource-constrained budget, this allows for preserving more high-impact parameters than methods that keep selecting a few in FP16 format. Additionally, the proposed framework allows us to leverage an advanced quantization method that often requires extensive learnable parameters solely for high-impact parameters, while applying a computationally efficient method to the rest. Our approach achieves an effective balance between computational efficiency and model accuracy while maintaining high performance compared to state-of-the-art methods.

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

↑