Unleashing the Power of Contrastive Self-Supervised Visual Models via Contrast-Regularized Fine-Tuning

Yifan Zhang, Bryan Hooi, Dapeng Hu, Jian Liang, Jiashi Feng
2/12/2021
cs.CVcs.LG
contrastive-ssl

Official code: YifanZhang07/Core-tuning (21 stars, Python, last commit 2022-12-17).

Abstract

Contrastive self-supervised learning (CSL) has attracted increasing attention for model pre-training via unlabeled data. The resulted CSL models provide instance-discriminative visual features that are uniformly scattered in the feature space.

Show full abstract

During deployment, the common practice is to directly fine-tune CSL models with cross-entropy, which however may not be the best strategy in practice. Although cross-entropy tends to separate inter-class features, the resulting models still have limited capability for reducing intra-class feature scattering that exists in CSL models. In this paper, we investigate whether applying contrastive learning to fine-tuning would bring further benefits, and analytically find that optimizing the contrastive loss benefits both discriminative representation learning and model optimization during fine-tuning. Inspired by these findings, we propose Contrast-regularized tuning (Core-tuning), a new approach for fine-tuning CSL models. Instead of simply adding the contrastive loss to the objective of fine-tuning, Core-tuning further applies a novel hard pair mining strategy for more effective contrastive fine-tuning, as well as smoothing the decision boundary to better exploit the learned discriminative feature space. Extensive experiments on image classification and semantic segmentation verify the effectiveness of Core-tuning.

View on arXivView PDF

Code Implementations(1)

This repository is the official implementation of Unleashing the Power of Contrastive Self-Supervised Visual Models via Contrast-Regularized Fine-Tuning (NeurIPS21).

210PythonOct 12, 20213 years ago

Similar Papers

Cite this paper

@article{zhang2021unleashing,
  title  = {Unleashing the Power of Contrastive Self-Supervised Visual Models via Contrast-Regularized Fine-Tuning},
  author = {Yifan Zhang and Bryan Hooi and Dapeng Hu and Jian Liang and Jiashi Feng},
  year   = {2021},
  eprint = {2102.06605},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.06605}
}

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/2102.06605.svg)](https://codeofpaper.com/paper/2102.06605)

Discussion