TaskNorm: Rethinking Batch Normalization for Meta-Learning

John Bronskill, Jonathan Gordon, James Requeima, Sebastian Nowozin, Richard E. Turner
3/6/2020
96 citations
stat.MLcs.LG

Official code: cambridge-mlg/cnaps (163 stars, Python, MIT, last commit 2021-01-14).

Abstract

Modern meta-learning approaches for image classification rely on increasingly deep networks to achieve state-of-the-art performance, making batch normalization an essential component of meta-learning pipelines. However, the hierarchical nature of the meta-learning setting presents several challenges that can render conventional batch normalization ineffective, giving rise to the need to rethink normalization in this setting.

Show full abstract

We evaluate a range of approaches to batch normalization for meta-learning scenarios, and develop a novel approach that we call TaskNorm. Experiments on fourteen datasets demonstrate that the choice of batch normalization has a dramatic effect on both classification accuracy and training time for both gradient based and gradient-free meta-learning approaches. Importantly, TaskNorm is found to consistently improve performance. Finally, we provide a set of best practices for normalization that will allow fair comparison of meta-learning algorithms.

View on arXivView PDF

Code Implementations(1)

MIT

Code for: "Fast and Flexible Multi-Task Classification Using Conditional Neural Adaptive Processes" and "TaskNorm: Rethinking Batch Normalization for Meta-Learning"

16321PythonOct 1, 20195 years agoMIT

Similar Papers

Cite this paper

@article{bronskill2020tasknorm,
  title  = {TaskNorm: Rethinking Batch Normalization for Meta-Learning},
  author = {John Bronskill and Jonathan Gordon and James Requeima and Sebastian Nowozin and Richard E. Turner},
  year   = {2020},
  eprint = {2003.03284},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.03284}
}

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

Discussion