Do Deep Networks Transfer Invariances Across Classes?

Allan Zhou, Fahim Tajwar, Alexander Robey, Tom Knowles, George J. Pappas +2 more
3/18/2022
cs.CVcs.LG

Official code: AllanYangZhou/generative-invariance-transfer (26 stars, Python, last commit 2022-02-27).

Abstract

To generalize well, classifiers must learn to be invariant to nuisance transformations that do not alter an input's class. Many problems have "class-agnostic" nuisance transformations that apply similarly to all classes, such as lighting and background changes for image classification.

Show full abstract

Neural networks can learn these invariances given sufficient data, but many real-world datasets are heavily class imbalanced and contain only a few examples for most of the classes. We therefore pose the question: how well do neural networks transfer class-agnostic invariances learned from the large classes to the small ones? Through careful experimentation, we observe that invariance to class-agnostic transformations is still heavily dependent on class size, with the networks being much less invariant on smaller classes. This result holds even when using data balancing techniques, and suggests poor invariance transfer across classes. Our results provide one explanation for why classifiers generalize poorly on unbalanced and long-tailed distributions. Based on this analysis, we show how a generative approach for learning the nuisance transformations can help transfer invariances across classes and improve performance on a set of imbalanced image classification benchmarks. Source code for our experiments is available at https://github.com/AllanYangZhou/generative-invariance-transfer.

View on arXivView PDF

Code Implementations(1)

261Python, ShellFeb 27, 20224 years ago

Similar Papers

Cite this paper

@article{zhou2022deep,
  title  = {Do Deep Networks Transfer Invariances Across Classes?},
  author = {Allan Zhou and Fahim Tajwar and Alexander Robey and Tom Knowles and George J. Pappas and Hamed Hassani and Chelsea Finn},
  year   = {2022},
  eprint = {2203.09739},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09739}
}

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

Discussion