Skip to main content
QUICK REVIEW

[Paper Review] OpenCon: Open-world Contrastive Learning

Yiyou Sun, Yixuan Li|arXiv (Cornell University)|Aug 4, 2022
Domain Adaptation and Few-Shot LearningComputer Science15 citations
TL;DR

This paper proposes OpenCon, a novel open-world contrastive learning framework that jointly learns compact representations for both known and novel classes using a prototype-based strategy and pseudo-positive pairs. It achieves state-of-the-art performance, outperforming the prior SOTA method ORCA by 11.9% and 7.4% on novel and overall ImageNet accuracy, respectively, while being theoretically grounded in an EM algorithm interpretation.

ABSTRACT

Machine learning models deployed in the wild naturally encounter unlabeled samples from both known and novel classes. Challenges arise in learning from both the labeled and unlabeled data, in an open-world semi-supervised manner. In this paper, we introduce a new learning framework, open-world contrastive learning (OpenCon). OpenCon tackles the challenges of learning compact representations for both known and novel classes and facilitates novelty discovery along the way. We demonstrate the effectiveness of OpenCon on challenging benchmark datasets and establish competitive performance. On the ImageNet dataset, OpenCon significantly outperforms the current best method by 11.9% and 7.4% on novel and overall classification accuracy, respectively. Theoretically, OpenCon can be rigorously interpreted from an EM algorithm perspective--minimizing our contrastive loss partially maximizes the likelihood by clustering similar samples in the embedding space. The code is available at https://github.com/deeplearning-wisc/opencon.

Motivation & Objective

  • To address the challenge of learning robust representations in open-world settings where both known and novel classes coexist in unlabeled data.
  • To enable simultaneous representation learning and novelty discovery without requiring prior knowledge of novel class counts.
  • To overcome the limitations of closed-world assumptions in existing contrastive and semi-supervised learning methods.
  • To develop a unified, end-to-end trainable framework compatible with both CNN and Transformer architectures.

Proposed method

  • Introduces a prototype-based learning strategy where class prototypes are updated dynamically from evolving representations to distinguish known from novel classes in unlabeled data.
  • Generates pseudo-positive pairs based on the closest prototype, enabling contrastive learning that clusters similar samples within the same predicted class.
  • Employs a contrastive loss function that encourages compact clustering of representations for both known and novel classes by aligning samples with the same approximated label.
  • Uses an expectation-maximization (EM) perspective to interpret the optimization process, showing that minimizing the loss partially maximizes likelihood through clustering.
  • Supports end-to-end training and is compatible with various deep learning architectures, including CNNs and Transformers.
  • Incorporates out-of-distribution (OOD) detection via distance to the nearest known-class prototype, enabling implicit novelty discovery.

Experimental results

Research questions

  • RQ1How can a representation learning framework effectively distinguish between known and novel classes when both appear in unlabeled data?
  • RQ2Can a contrastive learning approach be designed to simultaneously learn compact representations for known classes and discover novel classes without supervision?
  • RQ3What is the theoretical connection between the proposed contrastive loss and clustering or likelihood maximization in open-world learning?
  • RQ4How does the prototype-based strategy improve performance compared to existing methods in open-world semi-supervised learning?
  • RQ5Can the framework generalize well when the number of novel classes is unknown at training time?

Key findings

  • On the ImageNet dataset, OpenCon achieves 11.9% higher novel class accuracy and 7.4% higher overall accuracy compared to the previous SOTA method ORCA.
  • OpenCon performs competitively even without knowing the number of novel classes in advance, matching or slightly outperforming oracle settings where the number is provided.
  • Extensive ablation studies confirm the effectiveness of both the prototype-based strategy and the pseudo-positive pair generation mechanism.
  • The framework demonstrates strong generalization across different architectures, including CNNs and Transformers.
  • Theoretical analysis shows that minimizing the contrastive loss corresponds to likelihood maximization via clustering, providing a rigorous EM-based interpretation.
  • Distance to the closest known-class prototype serves as an effective OOD detection signal, with performance comparable to established methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.