Improving Contrastive Learning by Visualizing Feature Transformation

Rui Zhu, Bingchen Zhao, Jingen Liu, Zhenglong Sun, Chang Wen Chen
8/6/2021
cs.CV
contrastive-ssl

Official code: DTennant/CL-Visualizing-Feature-Transformation (90 stars, Jupyter Notebook, last commit 2021-10-11).

Abstract

Contrastive learning, which aims at minimizing the distance between positive pairs while maximizing that of negative ones, has been widely and successfully applied in unsupervised feature learning, where the design of positive and negative (pos/neg) pairs is one of its keys. In this paper, we attempt to devise a feature-level data manipulation, differing from data augmentation, to enhance the generic contrastive self-supervised learning.

Show full abstract

To this end, we first design a visualization scheme for pos/neg score (Pos/neg score indicates cosine similarity of pos/neg pair.) distribution, which enables us to analyze, interpret and understand the learning process. To our knowledge, this is the first attempt of its kind. More importantly, leveraging this tool, we gain some significant observations, which inspire our novel Feature Transformation proposals including the extrapolation of positives. This operation creates harder positives to boost the learning because hard positives enable the model to be more view-invariant. Besides, we propose the interpolation among negatives, which provides diversified negatives and makes the model more discriminative. It is the first attempt to deal with both challenges simultaneously. Experiment results show that our proposed Feature Transformation can improve at least 6.0% accuracy on ImageNet-100 over MoCo baseline, and about 2.0% accuracy on ImageNet-1K over the MoCoV2 baseline. Transferring to the downstream tasks successfully demonstrate our model is less task-bias. Visualization tools and codes https://github.com/DTennant/CL-Visualizing-Feature-Transformation .

View on arXivView PDF

Code Implementations(1)

Improving Contrastive Learning by Visualizing Feature Transformation, ICCV 2021 Oral

9010Jupyter Notebook, PythonJul 30, 20215 years ago

Similar Papers

Cite this paper

@article{zhu2021improving,
  title  = {Improving Contrastive Learning by Visualizing Feature Transformation},
  author = {Rui Zhu and Bingchen Zhao and Jingen Liu and Zhenglong Sun and Chang Wen Chen},
  year   = {2021},
  eprint = {2108.02982},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.02982}
}

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

Discussion