arXiv:2412.16553cs.CV2024-12ICCV被引 4

解决视觉Transformer无数据量化中图像语义失真与内容贫乏问题

Semantic Alignment and Reinforcement for Data-Free Quantization of Vision Transformers

  • 通过注意力先验对齐和局部块优化,生成更真实的合成图像
  • 在ImageNet上将W4A4 ViT-B精度提升15.52%,显著优于现有方法
  • 适合关注模型压缩与隐私保护的视觉Transformer研究者

无数据量化(DFQ)可在不访问真实数据的情况下实现模型量化,缓解数据安全与隐私担忧。随着视觉Transformer(ViTs)广泛应用,其无数据量化备受关注。然而,现有方法存在两大缺陷:(1)语义失真,合成图像语义与真实图像差异显著;(2)语义不足,合成图像包含大量无内容区域与简化纹理,导致量化性能不佳。为此,本文提出SARDFQ,一种用于ViTs的语义对齐与增强无数据量化方法。为缓解语义失真,SARDFQ引入注意力先验对齐(APA),使合成图像遵循随机生成的结构注意力先验。为缓解语义不足,提出多语义增强(MSR),通过局部块优化提升合成图像的语义丰富性。此外,采用软标签学习(SL),适配多个语义目标,以支持由MSR增强的多语义图像学习。大量实验表明SARDFQ效果显著,例如在ImageNet上,W4A4 ViT-B的准确率提升15.52%。代码已开源。

原文摘要 · Abstract (English)

Data-free quantization (DFQ) enables model quantization without accessing real data, addressing concerns regarding data security and privacy. With the growing adoption of Vision Transformers (ViTs), DFQ for ViTs has garnered significant attention. However, existing DFQ methods exhibit two limitations: (1) semantic distortion, where the semantics of synthetic images deviate substantially from those of real images, and (2) semantic inadequacy, where synthetic images contain extensive regions with limited content and oversimplified textures, leading to suboptimal quantization performance. To address these limitations, we propose SARDFQ, a novel Semantics Alignment and Reinforcement Data-Free Quantization method for ViTs. To address semantic distortion, SARDFQ incorporates Attention Priors Alignment (APA), which optimizes synthetic images to follow randomly generated structure attention priors. To mitigate semantic inadequacy, SARDFQ introduces Multi-Semantic Reinforcement (MSR), leveraging localized patch optimization to enhance semantic richness across synthetic images. Furthermore, SARDFQ employs Soft-Label Learning (SL), wherein multiple semantic targets are adapted to facilitate the learning of multi-semantic images augmented by MSR. Extensive experiments demonstrate the effectiveness of SARDFQ, significantly surpassing existing methods. For example, SARDFQ improves top-1 accuracy on ImageNet by 15.52% for W4A4 ViT-B. The code is at https://github.com/zysxmu/SARDFQ.

无数据量化视觉Transformer语义增强模型压缩

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