QuEPT:具有单次校准的弹性精度变换器多比特切换
QuEPT: Quantized Elastic Precision Transformers with One-Shot Calibration for Multi-Bit Switching
AI总结:
QuEPT通过单次校准实现多比特切换,结合多比特标记融合和级联低秩适配器提升后训练量化性能。
摘要:
弹性精度量化通过一次优化过程实现多比特部署,适用于多种量化场景。然而,与Transformer架构相关的高存储和优化成本,使得弹性量化研究仍有限,尤其是在大语言模型中。本文提出QuEPT,一种高效的后训练方案,通过在小数据片段上进行一次校准,重建块状多比特误差。它可以通过级联不同低秩适配器动态适应各种预定义的比特宽度,并支持在不重复优化的情况下实时切换均匀量化和混合精度量化。为了提高精度和鲁棒性,我们引入多比特标记融合(MB-ToMe),在不同比特宽度下动态融合标记特征,提高切换过程中的鲁棒性。此外,我们提出了多比特级联低秩适配器(MB-CLoRA),以加强比特宽度组之间的相关性,进一步提高QuEPT的整体性能。大量实验表明,QuEPT在性能上与现有最先进的后训练量化方法相当或更好。我们的代码可在https://github.com/xuke225/QuEPT上获得。
英文摘要:
Elastic precision quantization enables multi-bit deployment via a single optimization pass, fitting diverse quantization scenarios.Yet, the high storage and optimization costs associated with the Transformer architecture, research on elastic quantization remains limited, particularly for large language models.This paper proposes QuEPT, an efficient post-training scheme that reconstructs block-wise multi-bit errors with one-shot calibration on a small data slice. It can dynamically adapt to various predefined bit-widths by cascading different low-rank adapters, and supports real-time switching between uniform quantization and mixed precision quantization without repeated optimization. To enhance accuracy and robustness, we introduce Multi-Bit Token Merging (MB-ToMe) to dynamically fuse token features across different bit-widths, improving robustness during bit-width switching. Additionally, we propose Multi-Bit Cascaded Low-Rank adapters (MB-CLoRA) to strengthen correlations between bit-width groups, further improve the overall performance of QuEPT. Extensive experiments demonstrate that QuEPT achieves comparable or better performance to existing state-of-the-art post-training quantization methods.Our code is available at https://github.com/xuke225/QuEPT
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。