Meta-ProtoNet · ALVR 2021
Learning to Learn Semantic Factors in Heterogeneous Image Classification
Second Workshop on Advances in Language and Vision Research
June 2021 · Pages 34–38
The idea: learn reusable visual factors, then adapt them to new recognition tasks with very few labeled examples—even when the training and testing tasks have different classes or domains.
Overview
Few-shot image classification asks a model to recognize new classes from only a handful of labeled examples. A challenge is that training and test tasks can have disjoint label spaces and different visual characteristics.
Meta-ProtoNet extends Prototypical Networks with a training procedure that simulates this mismatch. It learns a latent factor space that can adapt to heterogeneous tasks, combining a factorization objective with bilevel optimization.
How it works
- Simulate a change in classes. Sample multiple tasks with non-overlapping classes and hold one out as the target task.
- Learn semantic factors. Use sigmoid embeddings and an unsupervised entropy-based factorization loss to encourage near-binary representations on the source tasks.
- Optimize for transfer. Evaluate the adapted network on the target task, using classification and factorization losses to update the original parameters.
- Adapt at test time. Take one gradient step with the factorization loss on a new task, then classify queries using class prototypes in the adapted space.
Results
The paper evaluates 5-way, 1-shot and 5-shot classification on miniImageNet, CUB, and SUN, with 15 query examples per class. Results average 2,000 sampled test tasks using a shared four-layer ConvNet backbone and no training data augmentation.
| Evaluation task | ProtoNet | Meta-ProtoNet | Gain (pp) |
|---|---|---|---|
| miniImageNet → CUB · 1-shot | 36.60 | 40.61 | +4.01 |
| miniImageNet → CUB · 5-shot | 54.36 | 56.12 | +1.76 |
| miniImageNet → SUN · 1-shot | 46.31 | 49.38 | +3.07 |
| miniImageNet → SUN · 5-shot | 66.21 | 68.80 | +2.59 |
| CUB → miniImageNet · 1-shot | 29.22 | 33.58 | +4.36 |
| CUB → miniImageNet · 5-shot | 38.73 | 43.83 | +5.10 |
Gains are absolute percentage-point differences from the Prototypical Network baseline. These are the paper’s reported experiments, not new runs.
See conventional few-shot results
| Evaluation task | ProtoNet | Meta-ProtoNet | Gain (pp) |
|---|---|---|---|
| miniImageNet · 1-shot | 46.15 | 47.87 | +1.72 |
| miniImageNet · 5-shot | 65.56 | 66.05 | +0.49 |
| CUB · 1-shot | 48.21 | 53.30 | +5.09 |
| CUB · 5-shot | 57.80 | 65.37 | +7.57 |
| SUN · 1-shot | 55.70 | 58.79 | +3.09 |
| SUN · 5-shot | 67.32 | 73.90 | +6.58 |
Meta-ProtoNet improves on the original Prototypical Network across all twelve reported conventional and cross-domain settings. See the paper for the full baseline comparisons and experimental details.
Citation
Download BibTeX@inproceedings{fan-liu-2021-learning,
title = {Learning to Learn Semantic Factors in Heterogeneous Image Classification},
author = {Fan, Boyue and Liu, Zhenting},
booktitle = {Proceedings of the Second Workshop on Advances in Language and Vision Research},
month = jun,
year = {2021},
address = {Online},
publisher = {Association for Computational Linguistics},
url = {https://aclanthology.org/2021.alvr-1.6/},
doi = {10.18653/v1/2021.alvr-1.6},
pages = {34--38}
}