HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Prototypical Contrastive Learning of Unsupervised Representations

Junnan Li Pan Zhou Caiming Xiong Steven C.H. Hoi

Prototypical Contrastive Learning of Unsupervised Representations

Abstract

This paper presents Prototypical Contrastive Learning (PCL), an unsupervised representation learning method that addresses the fundamental limitations of instance-wise contrastive learning. PCL not only learns low-level features for the task of instance discrimination, but more importantly, it implicitly encodes semantic structures of the data into the learned embedding space. Specifically, we introduce prototypes as latent variables to help find the maximum-likelihood estimation of the network parameters in an Expectation-Maximization framework. We iteratively perform E-step as finding the distribution of prototypes via clustering and M-step as optimizing the network via contrastive learning. We propose ProtoNCE loss, a generalized version of the InfoNCE loss for contrastive learning, which encourages representations to be closer to their assigned prototypes. PCL outperforms state-of-the-art instance-wise contrastive learning methods on multiple benchmarks with substantial improvement in low-resource transfer learning. Code and pretrained models are available at https://github.com/salesforce/PCL.

Code Repositories

salesforce/MoPro
pytorch
Mentioned in GitHub
salesforce/PCL
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
contrastive-learning-on-imagenet-1kResNet50 (v2)
ImageNet Top-1 Accuracy: 67.6
contrastive-learning-on-imagenet-1kResNet50
ImageNet Top-1 Accuracy: 61.5
self-supervised-image-classification-onPCL (ResNet-50)
Number of Params: 25M
Top 1 Accuracy: 65.9%
semi-supervised-image-classification-on-1PCL (ResNet-50)
Top 5 Accuracy: 75.6%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Prototypical Contrastive Learning of Unsupervised Representations | Papers | HyperAI