BaseTransformers: Attention over base data-points for One Shot Learning

Mayug Maniparambil, Kevin McGuinness, Noel O'Connor
10/5/2022
cs.CVcs.AIcs.LG

Official code: mayug/BaseTransformers (13 stars, Python, MIT, last commit 2024-03-20).

Abstract

Few shot classification aims to learn to recognize novel categories using only limited samples per category. Most current few shot methods use a base dataset rich in labeled examples to train an encoder that is used for obtaining representations of support instances for novel classes.

Show full abstract

Since the test instances are from a distribution different to the base distribution, their feature representations are of poor quality, degrading performance. In this paper we propose to make use of the well-trained feature representations of the base dataset that are closest to each support instance to improve its representation during meta-test time. To this end, we propose BaseTransformers, that attends to the most relevant regions of the base dataset feature space and improves support instance representations. Experiments on three benchmark data sets show that our method works well for several backbones and achieves state-of-the-art results in the inductive one shot setting. Code is available at github.com/mayug/BaseTransformers

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains the pytorch code for our BMVC 2022 paper "BaseTransformers: Attention over base data-points for One Shot Learning".

133Python, ShellOct 4, 20222 years agoMIT

Similar Papers

Cite this paper

@article{maniparambil2022basetransformers,
  title  = {BaseTransformers: Attention over base data-points for One Shot Learning},
  author = {Mayug Maniparambil and Kevin McGuinness and Noel O'Connor},
  year   = {2022},
  eprint = {2210.02476},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.02476}
}

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

Discussion