arXiv:2506.11543cs.CVcs.AI2025-06CVPR被引 22

用费舍尔信息矩阵近似提升视觉Transformer低比特量化精度

FIMA-Q: Post-Training Quantization for Vision Transformers by Fisher Information Matrix Approximation

  • 基于块级重构框架,建立KL散度与费舍尔信息矩阵的联系
  • 提出DPLR-FIM近似方法,实现快速量化损失计算
  • 在低比特下显著提升模型精度,适合部署优化场景

后训练量化(PTQ)近年来成为低成本有效的模型压缩范式,避免了耗时的重新训练。然而,现有针对视觉Transformer(ViTs)的PTQ方法在低比特量化时仍存在显著精度下降问题。本文分析了主流的赫斯蒂安引导量化损失,揭示了传统赫斯蒂安近似的局限性。基于块级重构框架,提出一种名为FIMA-Q的新方法:首先建立KL散度与费舍尔信息矩阵(FIM)的关联,实现量化损失的高效计算;进一步提出基于对角加低秩(DPLR)原理的高效FIM近似方法DPLR-FIM,构建最终量化损失。在多个代表性视觉任务及ViT架构上,于公开数据集上的广泛实验表明,该方法在低比特量化下显著优于现有最优方法,大幅提升了模型精度。代码已开源。

原文摘要 · Abstract (English)

Post-training quantization (PTQ) has stood out as a cost-effective and promising model compression paradigm in recent years, as it avoids computationally intensive model retraining. Nevertheless, current PTQ methods for Vision Transformers (ViTs) still suffer from significant accuracy degradation, especially under low-bit quantization. To address these shortcomings, we analyze the prevailing Hessian-guided quantization loss, and uncover certain limitations of conventional Hessian approximations. By following the block-wise reconstruction framework, we propose a novel PTQ method for ViTs, dubbed FIMA-Q. Specifically, we firstly establish the connection between KL divergence and FIM, which enables fast computation of the quantization loss during reconstruction. We further propose an efficient FIM approximation method, namely DPLR-FIM, by employing the diagonal plus low-rank principle, and formulate the ultimate quantization loss. Our extensive experiments, conducted across various vision tasks with representative ViT-based architectures on public datasets, demonstrate that our method substantially promotes the accuracy compared to the state-of-the-art approaches, especially in the case of low-bit quantization. The source code is available at https://github.com/ShiheWang/FIMA-Q.

量化视觉TransformerFIM低比特

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。