Mutual-Information Based Few-Shot Classification

Malik Boudiaf, Ziko Imtiaz Masud, Jérôme Rony, Jose Dolz, Ismail Ben Ayed +1 more
6/23/2021
cs.CV

Official code: mboudiaf/TIM (123 stars, MIT, last commit 2023-05-23). 1 more implementation below.

Abstract

We introduce Transductive Infomation Maximization (TIM) for few-shot learning. Our method maximizes the mutual information between the query features and their label predictions for a given few-shot task, in conjunction with a supervision loss based on the support set. We motivate our transductive loss by deriving a formal relation between the classification accuracy and mutual-information maximization. Furthermore, we propose a new alternating-direction solver, which substantially speeds up transductive inference over gradient-based optimization, while yielding competitive accuracy. We also provide a convergence analysis of our solver based on Zangwill's theory and bound-optimization arguments. TIM inference is modular: it can be used on top of any base-training feature extractor. Following standard transductive few-shot settings, our comprehensive experiments demonstrate that TIM outperforms state-of-the-art methods significantly across various datasets and networks, while used on top of a fixed feature extractor trained with simple cross-entropy on the base classes, without resorting to complex meta-learning schemes. It consistently brings between 2 % and 5 % improvement in accuracy over the best performing method, not only on all the well-established few-shot benchmarks but also on more challenging scenarios, with random tasks, domain shift and larger numbers of classes, as in the recently introduced META-DATASET. Our code is publicly available at https://github.com/mboudiaf/TIM. We also publicly release a standalone PyTorch implementation of META-DATASET, along with additional benchmarking results, at https://github.com/mboudiaf/pytorch-meta-dataset.

View on arXivView PDF

Code Implementations(2)

mboudiaf/TIMOfficial100%
MIT

(NeurIPS 2020) Transductive Information Maximization for Few-Shot Learning https://arxiv.org/abs/2008.11297

12320Shell, PythonJun 10, 20203 years agoMIT
few-shotfew-shot-classifcationfew-shot-learningmutual-informationneurips-2020+2 more
PyTorch

A non-official 100% PyTorch implementation of META-DATASET benchmark for few-shot classification

598Python, MakefileFeb 2, 20213 years ago
few-shot-classifcationfew-shot-learningmeta-datasetpytorchtfrecorddataset

Similar Papers

Cite this paper

@article{boudiaf2021mutualinformation,
  title  = {Mutual-Information Based Few-Shot Classification},
  author = {Malik Boudiaf and Ziko Imtiaz Masud and Jérôme Rony and Jose Dolz and Ismail Ben Ayed and Pablo Piantanida},
  year   = {2021},
  eprint = {2106.12252},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.12252}
}

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

Discussion