Malik Boudiaf, Ziko Imtiaz Masud, Jérôme Rony, José Dolz, Pablo Piantanida, Ismail Ben Ayed
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. Furthermore, we propose a new alternating-direction solver for our mutual-information loss, which substantially speeds up transductive-inference convergence over gradient-based optimization, while yielding similar accuracy. 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 domain shifts and larger numbers of classes.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Image Classification | CUB 200 5-way 5-shot | Accuracy | 90.8 | TIM-GD |
| Image Classification | Mini-Imagenet 20-way (1-shot) | Accuracy | 39.3 | TIM-GD |
| Image Classification | Mini-Imagenet 10-way (5-shot) | Accuracy | 72.8 | TIM-GD |
| Image Classification | Mini-Imagenet 20-way (5-shot) | Accuracy | 59.5 | TIM-GD |
| Image Classification | Mini-Imagenet 5-way (1-shot) | Accuracy | 77.8 | TIM-GD |
| Image Classification | Mini-Imagenet 10-way (1-shot) | Accuracy | 56.1 | TIM-GD |
| Image Classification | Mini-ImageNet to CUB - 5 shot learning | Accuracy | 71 | TIM-GD |
| Image Classification | Tiered ImageNet 5-way (1-shot) | Accuracy | 82.1 | TIM-GD |
| Image Classification | Tiered ImageNet 5-way (5-shot) | Accuracy | 89.8 | TIM-GD |
| Few-Shot Image Classification | CUB 200 5-way 5-shot | Accuracy | 90.8 | TIM-GD |
| Few-Shot Image Classification | Mini-Imagenet 20-way (1-shot) | Accuracy | 39.3 | TIM-GD |
| Few-Shot Image Classification | Mini-Imagenet 10-way (5-shot) | Accuracy | 72.8 | TIM-GD |
| Few-Shot Image Classification | Mini-Imagenet 20-way (5-shot) | Accuracy | 59.5 | TIM-GD |
| Few-Shot Image Classification | Mini-Imagenet 5-way (1-shot) | Accuracy | 77.8 | TIM-GD |
| Few-Shot Image Classification | Mini-Imagenet 10-way (1-shot) | Accuracy | 56.1 | TIM-GD |
| Few-Shot Image Classification | Mini-ImageNet to CUB - 5 shot learning | Accuracy | 71 | TIM-GD |
| Few-Shot Image Classification | Tiered ImageNet 5-way (1-shot) | Accuracy | 82.1 | TIM-GD |
| Few-Shot Image Classification | Tiered ImageNet 5-way (5-shot) | Accuracy | 89.8 | TIM-GD |