Three Guidelines You Should Know for Universally Slimmable Self-Supervised Learning

Yun-Hao Cao, Peiqin Sun, Shuchang Zhou
3/13/2023
cs.CVcs.LG

Official code: megvii-research/US3L-CVPR2023 (33 stars, Apache-2.0, PyTorch, last commit 2023-03-15).

Abstract

We propose universally slimmable self-supervised learning (dubbed as US3L) to achieve better accuracy-efficiency trade-offs for deploying self-supervised models across different devices. We observe that direct adaptation of self-supervised learning (SSL) to universally slimmable networks misbehaves as the training process frequently collapses. We then discover that temporal consistent guidance is the key to the success of SSL for universally slimmable networks, and we propose three guidelines for the loss design to ensure this temporal consistency from a unified gradient perspective. Moreover, we propose dynamic sampling and group regularization strategies to simultaneously improve training efficiency and accuracy. Our US3L method has been empirically validated on both convolutional neural networks and vision transformers. With only once training and one copy of weights, our method outperforms various state-of-the-art methods (individually trained or not) on benchmarks including recognition, object detection and instance segmentation. Our code is available at https://github.com/megvii-research/US3L-CVPR2023.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

PyTorch implementation of US3L (Accepted to CVPR2023)

332Shell, PythonMar 9, 20233 years agoApache-2.0
pruningpytorchself-supervised-learninguniversally-slimmable

Similar Papers

Cite this paper

@article{cao2023three,
  title  = {Three Guidelines You Should Know for Universally Slimmable Self-Supervised Learning},
  author = {Yun-Hao Cao and Peiqin Sun and Shuchang Zhou},
  year   = {2023},
  eprint = {2303.06870},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.06870v1},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.06870.svg)](https://codeofpaper.com/paper/2303.06870)

Discussion