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

Mix-QViT:由层重要性与量化敏感度驱动的混合精度视觉Transformer量化方法

Mix-QViT: Mixed-Precision Vision Transformer Quantization Driven by Layer Importance and Quantization Sensitivity

Rochester Institute of Technology(罗切斯特理工学院)

Navin Ranjan, Andreas Savakis

AI总结:

本研究提出可解释性驱动的混合精度视觉Transformer量化框架Mix-QViT,结合层重要性与量化敏感度分配位宽,还提出通道级裁剪量化方法降低离群值影响,在多种模型和精度下均取得优于现有技术的量化效果。

摘要:

本文提出Mix-QViT,这是一种由可解释性驱动的MPQ(混合精度量化)框架,它基于两项准则为每一层系统分配位宽:其一是层重要性,通过逐层相关性传播(Layer-wise Relevance Propagation, LRP)评估,用于确定每一层对最终分类结果的贡献程度;其二是量化敏感度,通过在保持其他层处于基线精度的前提下,评估以不同精度量化每一层对性能的影响来确定。此外,针对训练后量化(post-training quantization, PTQ),我们提出一种裁剪后的通道级量化方法,旨在通过消除严重的通道间差异,降低LayerNorm后激活中极端离群值的影响。我们通过在多个数据集上将Mix-QViT应用于ViT、DeiT和Swin Transformer模型来验证所提方法。PTQ实验结果表明,固定位宽和混合位宽方法均优于现有技术,尤其在3位、4位和6位精度下表现突出。此外,在量化感知训练中,Mix-QViT在2位混合精度下取得了更优性能。

英文摘要:

In this paper, we propose Mix-QViT, an explainability-driven MPQ framework that systematically allocates bit-widths to each layer based on two criteria: layer importance, assessed via Layer-wise Relevance Propagation (LRP), which identifies how much each layer contributes to the final classification, and quantization sensitivity, determined by evaluating the performance impact of quantizing each layer at various precision levels while keeping others layers at a baseline. Additionally, for post-training quantization (PTQ), we introduce a clipped channel-wise quantization method designed to reduce the effects of extreme outliers in post-LayerNorm activations by removing severe inter-channel variations. We validate our approach by applying Mix-QViT to ViT, DeiT, and Swin Transformer models across multiple datasets. Our experimental results for PTQ demonstrate that both fixed-bit and mixed-bit methods outperform existing techniques, particularly at 3-bit, 4-bit, and 6-bit precision. Furthermore, in quantization-aware training, Mix-QViT achieves superior performance with 2-bit mixed-precision.

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

↑