Meta-ProtoNet · ALVR 2021

Learning to Learn Semantic Factors in Heterogeneous Image Classification

Boyue Fan   ·   Zhenting Liu

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.

Source tasks adapt the embedding parameters using factorization loss; a held-out target task provides the outer optimization objective.
Meta-ProtoNet’s bilevel training procedure. Source tasks shape the latent factor space; a held-out target task guides the model toward transferable representations. Diagram from the paper.

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

  1. Simulate a change in classes. Sample multiple tasks with non-overlapping classes and hold one out as the target task.
  2. Learn semantic factors. Use sigmoid embeddings and an unsupervised entropy-based factorization loss to encourage near-binary representations on the source tasks.
  3. Optimize for transfer. Evaluate the adapted network on the target task, using classification and factorization losses to update the original parameters.
  4. 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.

Cross-domain accuracy (%) · reported in Table 1 of the paper
Evaluation taskProtoNetMeta-ProtoNetGain (pp)
miniImageNet → CUB · 1-shot36.6040.61+4.01
miniImageNet → CUB · 5-shot54.3656.12+1.76
miniImageNet → SUN · 1-shot46.3149.38+3.07
miniImageNet → SUN · 5-shot66.2168.80+2.59
CUB → miniImageNet · 1-shot29.2233.58+4.36
CUB → miniImageNet · 5-shot38.7343.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
Within-dataset accuracy (%) · reported in Table 2 of the paper
Evaluation taskProtoNetMeta-ProtoNetGain (pp)
miniImageNet · 1-shot46.1547.87+1.72
miniImageNet · 5-shot65.5666.05+0.49
CUB · 1-shot48.2153.30+5.09
CUB · 5-shot57.8065.37+7.57
SUN · 1-shot55.7058.79+3.09
SUN · 5-shot67.3273.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.

@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}
}