HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Self-Attention Message Passing for Contrastive Few-Shot Learning

Ojas Kishorkumar Shirekar; Anuj Singh; Hadi Jamali-Rad

Self-Attention Message Passing for Contrastive Few-Shot Learning

Abstract

Humans have a unique ability to learn new representations from just a handful of examples with little to no supervision. Deep learning models, however, require an abundance of data and supervision to perform at a satisfactory level. Unsupervised few-shot learning (U-FSL) is the pursuit of bridging this gap between machines and humans. Inspired by the capacity of graph neural networks (GNNs) in discovering complex inter-sample relationships, we propose a novel self-attention based message passing contrastive learning approach (coined as SAMP-CLR) for U-FSL pre-training. We also propose an optimal transport (OT) based fine-tuning strategy (we call OpT-Tune) to efficiently induce task awareness into our novel end-to-end unsupervised few-shot classification framework (SAMPTransfer). Our extensive experimental results corroborate the efficacy of SAMPTransfer in a variety of downstream few-shot classification scenarios, setting a new state-of-the-art for U-FSL on both miniImagenet and tieredImagenet benchmarks, offering up to 7%+ and 5%+ improvements, respectively. Our further investigations also confirm that SAMPTransfer remains on-par with some supervised baselines on miniImagenet and outperforms all existing U-FSL baselines in a challenging cross-domain scenario. Our code can be found in our GitHub repository at https://github.com/ojss/SAMPTransfer/.

Code Repositories

ojss/samptransfer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
unsupervised-few-shot-image-classification-onSAMPTransfer (Conv4)
Accuracy: 61.02
unsupervised-few-shot-image-classification-on-1SAMPTransfer (Conv4)
Accuracy: 72.52
unsupervised-few-shot-image-classification-on-2SAMPTransfer (Conv4)
Accuracy: 49.10
unsupervised-few-shot-image-classification-on-3SAMPTransfer (Conv4)
Accuracy: 65.19

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
Self-Attention Message Passing for Contrastive Few-Shot Learning | Papers | HyperAI