A Universal Representation Transformer Layer for Few-Shot Image Classification

Lu Liu, William Hamilton, Guodong Long, Jing Jiang, Hugo Larochelle
6/21/2020
cs.LGcs.CVstat.ML
transformer-attention

Official code: liulu112601/URT (104 stars, Python, last commit 2021-04-21).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

liulu112601/URTOfficial100%

ICLR 2021: A Universal Representation Transformer Layer for Few-Shot Image Classification

10418Python, ShellJun 4, 20205 years ago

Similar Papers

Cite this paper

@article{liu2020universal,
  title  = {A Universal Representation Transformer Layer for Few-Shot Image Classification},
  author = {Lu Liu and William Hamilton and Guodong Long and Jing Jiang and Hugo Larochelle},
  year   = {2020},
  eprint = {2006.11702},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.11702}
}

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

Discussion