Is In-Domain Data Really Needed? A Pilot Study on Cross-Domain Calibration for Network Quantization

05/16/2021
by   Haichao Yu, et al.
0

Post-training quantization methods use a set of calibration data to compute quantization ranges for network parameters and activations. The calibration data usually comes from the training dataset which could be inaccessible due to sensitivity of the data. In this work, we want to study such a problem: can we use out-of-domain data to calibrate the trained networks without knowledge of the original dataset? Specifically, we go beyond the domain of natural images to include drastically different domains such as X-ray images, satellite images and ultrasound images. We find cross-domain calibration leads to surprisingly stable performance of quantized models on 10 tasks in different image domains with 13 different calibration datasets. We also find that the performance of quantized models is correlated with the similarity of the Gram matrices between the source and calibration domains, which can be used as a criterion to choose calibration set for better performance. We believe our research opens the door to borrow cross-domain knowledge for network quantization and compression.

READ FULL TEXT

page 4

page 5

page 7

research
05/10/2023

Post-training Model Quantization Using GANs for Synthetic Data Generation

Quantization is a widely adopted technique for deep neural networks to r...
research
11/10/2021

An Underexplored Dilemma between Confidence and Calibration in Quantized Neural Networks

Modern convolutional neural networks (CNNs) are known to be overconfiden...
research
12/14/2022

PD-Quant: Post-Training Quantization based on Prediction Difference Metric

As a neural network compression technique, post-training quantization (P...
research
02/20/2021

On Calibration and Out-of-domain Generalization

Out-of-domain (OOD) generalization is a significant challenge for machin...
research
02/20/2019

Towards Semantic Big Graph Analytics for Cross-Domain Knowledge Discovery

In recent years, the size of big linked data has grown rapidly and this ...
research
02/06/2020

On the limits of cross-domain generalization in automated X-ray prediction

This large scale study focuses on quantifying what X-rays diagnostic pre...
research
12/03/2019

The Knowledge Within: Methods for Data-Free Model Compression

Background: Recently, an extensive amount of research has been focused o...

Please sign up or login with your details

Forgot password? Click here to reset