Many-Class Few-Shot Learning on Multi-Granularity Class Hierarchy

Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, Chengqi Zhang
6/28/2020
cs.LGstat.ML
transformer-attention

Official code: liulu112601/MahiNet (12 stars, last commit 2018-12-23).

Abstract

We study many-class few-shot (MCFS) problem in both supervised learning and meta-learning settings. Compared to the well-studied many-class many-shot and few-class few-shot problems, the MCFS problem commonly occurs in practical applications but has been rarely studied in previous literature.

Show full abstract

It brings new challenges of distinguishing between many classes given only a few training samples per class. In this paper, we leverage the class hierarchy as a prior knowledge to train a coarse-to-fine classifier that can produce accurate predictions for MCFS problem in both settings. The propose model, "memory-augmented hierarchical-classification network (MahiNet)", performs coarse-to-fine classification where each coarse class can cover multiple fine classes. Since it is challenging to directly distinguish a variety of fine classes given few-shot data per class, MahiNet starts from learning a classifier over coarse-classes with more training data whose labels are much cheaper to obtain. The coarse classifier reduces the searching range over the fine classes and thus alleviates the challenges from "many classes". On architecture, MahiNet firstly deploys a convolutional neural network (CNN) to extract features. It then integrates a memory-augmented attention module and a multi-layer perceptron (MLP) together to produce the probabilities over coarse and fine classes. While the MLP extends the linear classifier, the attention module extends the KNN classifier, both together targeting the "few-shot" problem. We design several training strategies of MahiNet for supervised learning and meta-learning. In addition, we propose two novel benchmark datasets "mcfsImageNet" and "mcfsOmniglot" specially designed for MCFS problem. In experiments, we show that MahiNet outperforms several state-of-the-art models on MCFS problems in both supervised learning and meta-learning.

View on arXivView PDF

Code Implementations(1)

TKDE: Many-Class Few-Shot Learning on Multi-Granularity Class Hierarchy

120Dec 23, 20187 years ago

Similar Papers

Cite this paper

@article{liu2020manyclass,
  title  = {Many-Class Few-Shot Learning on Multi-Granularity Class Hierarchy},
  author = {Lu Liu and Tianyi Zhou and Guodong Long and Jing Jiang and Chengqi Zhang},
  year   = {2020},
  eprint = {2006.15479},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.15479}
}

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

Discussion