Skip to main content
QUICK REVIEW

[论文解读] Qimera: Data-free Quantization with Synthetic Boundary Supporting Samples

Kanghyun Choi, Deokki Hong|arXiv (Cornell University)|Nov 4, 2021
Advanced Neural Network ApplicationsComputer Science被引用 26
一句话总结

Qimera 通过叠加潜在嵌入来引入边界支撑样本,以改进无数据量化,在 CIFAR 和 ImageNet 基准上实现最先进的结果。

ABSTRACT

Model quantization is known as a promising method to compress deep neural networks, especially for inferences on lightweight mobile or edge devices. However, model quantization usually requires access to the original training data to maintain the accuracy of the full-precision models, which is often infeasible in real-world scenarios for security and privacy issues. A popular approach to perform quantization without access to the original data is to use synthetically generated samples, based on batch-normalization statistics or adversarial learning. However, the drawback of such approaches is that they primarily rely on random noise input to the generator to attain diversity of the synthetic samples. We find that this is often insufficient to capture the distribution of the original data, especially around the decision boundaries. To this end, we propose Qimera, a method that uses superposed latent embeddings to generate synthetic boundary supporting samples. For the superposed embeddings to better reflect the original distribution, we also propose using an additional disentanglement mapping layer and extracting information from the full-precision model. The experimental results show that Qimera achieves state-of-the-art performances for various settings on data-free quantization. Code is available at https://github.com/iamkanghyunchoi/qimera.

研究动机与目标

  • 在原始训练数据由于隐私或安全等原因不可用时,说明需要无数据量化的动机。
  • 指出边界支撑样本是先前无数据方法中的缺失环节。
  • 提出使用叠加潜在嵌入的生成器架构来合成边界样本。
  • 引入一个解耦映射层和提取嵌入初始化,以展平嵌入并反映真实数据分布。

提出的方法

  • 使用带有叠加潜在嵌入的生成器 G 产生接近预训练全精度模型 P 决策边界的合成样本。
  • 引入解耦映射 M 在叠加前展平嵌入空间,以提高样本的边界接近性。
  • 通过使用 P 的最后一层全连接权重作为嵌入的类质心来实施提取嵌入初始化。
  • 与先前的无数据量化方法的损失函数联合训练 G 和量化模型 Q,偏向于边界丰富样本(并使用 CE-based 指引)。
  • 以每类别嵌入和叠加嵌入的混合生成样本,从而在不访问真实训练数据的情况下创建边界支撑数据。

实验结果

研究问题

  • RQ1合成样本接近全精度模型的决策边界是否能提升无数据量化的性能?
  • RQ2是否能用叠加潜在嵌入生成的边界支撑样本更好地把边界信息传递给量化模型?
  • RQ3解耦映射和提取嵌入初始化是否有助于塑造更扁平、在边界采样中更具判别性的嵌入空间?
  • RQ4相较于先前的无数据量化方法,Qimera 在 CIFAR-10/100 和 ImageNet 的表现如何?

主要发现

  • Qimera 在 CIFAR-10、CIFAR-100 和 ImageNet 上始终优于 ZeroQ、ZAQ 和 GDFQ 基线,通常有显著的提升,尤其在 4w4a 设置下。
  • 可视化与定量分析显示 Qimera 生成的样本位于类别簇之间的边界区域,与将样本聚集在类别质心附近的先前生成器不同。
  • 消融研究显示叠加嵌入提供显著增益,解耦映射和提取嵌入初始化带来额外增益;ImageNet 在这些组件上获得的增益最大。
  • Qimera 在大型数据集(ImageNet)和更大模型(ResNet-50、MobileNetV2)的无数据量化性能方面优于基线,甚至优于如 GDFQ 的 Mixup/Cutmix 等增强方法。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。