Neighborhood Contrastive Learning for Novel Class Discovery

Zhun Zhong, Enrico Fini, Subhankar Roy, Zhiming Luo, Elisa Ricci +1 more
6/20/2021
cs.CVcs.AIcs.LG
contrastive-ssl

Official code: zhunzhong07/NCL (76 stars, Python, last commit 2022-12-09).

Abstract

In this paper, we address Novel Class Discovery (NCD), the task of unveiling new classes in a set of unlabeled samples given a labeled dataset with known classes. We exploit the peculiarities of NCD to build a new framework, named Neighborhood Contrastive Learning (NCL), to learn discriminative representations that are important to clustering performance.

Show full abstract

Our contribution is twofold. First, we find that a feature extractor trained on the labeled set generates representations in which a generic query sample and its neighbors are likely to share the same class. We exploit this observation to retrieve and aggregate pseudo-positive pairs with contrastive learning, thus encouraging the model to learn more discriminative representations. Second, we notice that most of the instances are easily discriminated by the network, contributing less to the contrastive loss. To overcome this issue, we propose to generate hard negatives by mixing labeled and unlabeled samples in the feature space. We experimentally demonstrate that these two ingredients significantly contribute to clustering performance and lead our model to outperform state-of-the-art methods by a large margin (e.g., clustering accuracy +13% on CIFAR-100 and +8% on ImageNet).

View on arXivView PDF

Code Implementations(1)

zhunzhong07/NCLOfficial100%

Neighborhood Contrastive Learning for Novel Class Discovery, CVPR 2021

7614Python, ShellJun 22, 20213 years ago

Similar Papers

Cite this paper

@article{zhong2021neighborhood,
  title  = {Neighborhood Contrastive Learning for Novel Class Discovery},
  author = {Zhun Zhong and Enrico Fini and Subhankar Roy and Zhiming Luo and Elisa Ricci and Nicu Sebe},
  year   = {2021},
  eprint = {2106.10731},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10731}
}

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

Discussion