Skip to main content
QUICK REVIEW

[Paper Review] Qimera: Data-free Quantization with Synthetic Boundary Supporting Samples

Kanghyun Choi, Deokki Hong|arXiv (Cornell University)|Nov 4, 2021
Advanced Neural Network ApplicationsComputer Science26 citations
TL;DR

Qimera introduces boundary-supporting samples via superposed latent embeddings to improve data-free quantization, achieving state-of-the-art results across CIFAR and ImageNet benchmarks.

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.

Motivation & Objective

  • Motivate the need for data-free quantization when original training data is unavailable due to privacy or security concerns.
  • Identify that boundary-supporting samples are a missing piece in prior data-free methods.
  • Propose a generator architecture using superposed latent embeddings to synthesize boundary samples.
  • Introduce a disentanglement mapping layer and extracted embedding initialization to flatten embeddings and reflect true data distribution.

Proposed method

  • Use a generator G with superposed latent embeddings to produce synthetic samples near the decision boundary of a pretrained full-precision model P.
  • Introduce a disentanglement mapping M to flatten the embedding space before superposition, improving the boundary proximity of samples.
  • Apply an extracted embedding initialization by using the last fully connected layer weights of P as class centroids for embeddings.
  • Train G and the quantized model Q jointly with loss functions adapted from prior data-free quantization methods, favoring boundary-rich samples (and using CE-based guidance).
  • Generate samples with a mix of per-class embeddings and superposed embeddings to create boundary-supporting data without accessing real training data.

Experimental results

Research questions

  • RQ1Do synthetic samples near the full-precision model's decision boundary improve data-free quantization performance?
  • RQ2Can superposed latent embeddings generate boundary-supporting samples that better transfer boundary information to the quantized model?
  • RQ3Do disentanglement mapping and extracted embedding initialization help in shaping a flatter, more discriminative embedding space for boundary sampling?
  • RQ4How does Qimera perform across CIFAR-10/100 and ImageNet compared to prior data-free quantization methods?

Key findings

  • Qimera consistently outperforms ZeroQ, ZAQ, and GDFQ baselines across CIFAR-10, CIFAR-100, and ImageNet, often by notable margins, especially at 4w4a settings.
  • Visual and quantitative analyses show Qimera-generated samples populate boundary regions between class clusters, unlike prior generators which cluster near class centroids.
  • Ablation studies reveal superposed embeddings provide substantial gains, with additional gains from disentanglement mapping and extracted embedding initialization; ImageNet exhibits the largest gains from these components.
  • Qimera improves data-free quantization performance on large-scale datasets (ImageNet) and with larger models (ResNet-50, MobileNetV2) compared to baselines and even enhancements like Mixup/Cutmix on GDFQ.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.