HCSC: Hierarchical Contrastive Selective Coding

Yuanfan Guo, Minghao Xu, Jiawen Li, Bingbing Ni, Xuanyu Zhu +2 more
2/1/2022
101 citations
cs.CV
contrastive-ssl

Official code: hirl-team/HCSC (132 stars, Python, MIT, last commit 2022-03-22).

Abstract

Hierarchical semantic structures naturally exist in an image dataset, in which several semantically relevant image clusters can be further integrated into a larger cluster with coarser-grained semantics. Capturing such structures with image representations can greatly benefit the semantic understanding on various downstream tasks.

Show full abstract

Existing contrastive representation learning methods lack such an important model capability. In addition, the negative pairs used in these methods are not guaranteed to be semantically distinct, which could further hamper the structural correctness of learned image representations. To tackle these limitations, we propose a novel contrastive learning framework called Hierarchical Contrastive Selective Coding (HCSC). In this framework, a set of hierarchical prototypes are constructed and also dynamically updated to represent the hierarchical semantic structures underlying the data in the latent space. To make image representations better fit such semantic structures, we employ and further improve conventional instance-wise and prototypical contrastive learning via an elaborate pair selection scheme. This scheme seeks to select more diverse positive pairs with similar semantics and more precise negative pairs with truly distinct semantics. On extensive downstream tasks, we verify the superior performance of HCSC over state-of-the-art contrastive methods, and the effectiveness of major model components is proved by plentiful analytical studies. We build a comprehensive model zoo in Sec. D. Our source code and model weights are available at https://github.com/gyfastas/HCSC

View on arXivView PDF

Code Implementations(1)

hirl-team/HCSCOfficial100%
MIT

[CVPR 2022] PyTorch implementation of Hierarchical Contrastive Selective Coding (HCSC) (https://arxiv.org/abs/2202.00455)

13221PythonNov 17, 20214 years agoMIT

Similar Papers

Cite this paper

@article{guo2022hcsc,
  title  = {HCSC: Hierarchical Contrastive Selective Coding},
  author = {Yuanfan Guo and Minghao Xu and Jiawen Li and Bingbing Ni and Xuanyu Zhu and Zhenbang Sun and Yi Xu},
  year   = {2022},
  eprint = {2202.00455},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.00455}
}

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

Discussion