HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

A Universal Representation Transformer Layer for Few-Shot Image Classification

Lu Liu William Hamilton Guodong Long Jing Jiang Hugo Larochelle

A Universal Representation Transformer Layer for Few-Shot Image Classification

Abstract

Few-shot classification aims to recognize unseen classes when presented with only a small number of samples. We consider the problem of multi-domain few-shot image classification, where unseen classes and examples come from diverse data sources. This problem has seen growing interest and has inspired the development of benchmarks such as Meta-Dataset. A key challenge in this multi-domain setting is to effectively integrate the feature representations from the diverse set of training domains. Here, we propose a Universal Representation Transformer (URT) layer, that meta-learns to leverage universal features for few-shot classification by dynamically re-weighting and composing the most appropriate domain-specific representations. In experiments, we show that URT sets a new state-of-the-art result on Meta-Dataset. Specifically, it achieves top-performance on the highest number of data sources compared to competing methods. We analyze variants of URT and present a visualization of the attention score heatmaps that sheds light on how the model performs cross-domain generalization. Our code is available at https://github.com/liulu112601/URT.

Code Repositories

liulu112601/URT
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
few-shot-image-classification-on-meta-datasetURT
Accuracy: 72.15
few-shot-image-classification-on-meta-dataset-1URT
Mean Rank: 2.85

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
A Universal Representation Transformer Layer for Few-Shot Image Classification | Papers | HyperAI