English

Synergistic Self-supervised and Quantization Learning

Computer Vision and Pattern Recognition 2022-07-13 v1 Machine Learning

Abstract

With the success of self-supervised learning (SSL), it has become a mainstream paradigm to fine-tune from self-supervised pretrained models to boost the performance on downstream tasks. However, we find that current SSL models suffer severe accuracy drops when performing low-bit quantization, prohibiting their deployment in resource-constrained applications. In this paper, we propose a method called synergistic self-supervised and quantization learning (SSQL) to pretrain quantization-friendly self-supervised models facilitating downstream deployment. SSQL contrasts the features of the quantized and full precision models in a self-supervised fashion, where the bit-width for the quantized model is randomly selected in each step. SSQL not only significantly improves the accuracy when quantized to lower bit-widths, but also boosts the accuracy of full precision models in most cases. By only training once, SSQL can then benefit various downstream tasks at different bit-widths simultaneously. Moreover, the bit-width flexibility is achieved without additional storage overhead, requiring only one copy of weights during training and inference. We theoretically analyze the optimization process of SSQL, and conduct exhaustive experiments on various benchmarks to further demonstrate the effectiveness of our method. Our code is available at https://github.com/megvii-research/SSQL-ECCV2022.

Keywords

Cite

@article{arxiv.2207.05432,
  title  = {Synergistic Self-supervised and Quantization Learning},
  author = {Yun-Hao Cao and Peiqin Sun and Yechang Huang and Jianxin Wu and Shuchang Zhou},
  journal= {arXiv preprint arXiv:2207.05432},
  year   = {2022}
}

Comments

Accepted to ECCV 2022 oral

R2 v1 2026-06-25T00:50:34.824Z