Do Deep Networks Transfer Invariances Across Classes?
Not on the map. Why?
Abstract (arXiv)
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. 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.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 44 of its 65 references that are in the map. First posted on arXiv 18 Mar 2022.
Builds on
44 of 65 references.
References · 44
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
32 more
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
- 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 987
- 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 806
- 2018Multimodal Unsupervised Image-to-Image Translationcited by 795
- 2019Large-Scale Long-Tailed Recognition in an Open Worldcited by 704
- 2018Recognition in Terra Incognitacited by 655
- 2016MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognitioncited by 621
- 2017Provable defenses against adversarial examples via the convex outer adversarial polytopecited by 564
- 2017A systematic study of the class imbalance problem in convolutional neural networkscited by 510
- 2015A Neural Algorithm of Artistic Stylecited by 480
- 2020Measuring Robustness to Natural Distribution Shifts in Image Classificationcited by 452
- 2018Deep Learning for Classical Japanese Literaturecited by 415
- 2017Wild Patterns: Ten Years After the Rise of Adversarial Machine Learningcited by 411
- 2017Data Augmentation Generative Adversarial Networkscited by 278
- 2020Long-Tailed Classification by Keeping the Good and Removing the Bad Momentum Causal Effectcited by 256
- 2015YFCC100M: The New Data in Multimedia Researchcited by 234
- 2020Rethinking the Value of Labels for Improving Class-Imbalanced Learningcited by 216
- 2017Emergence of Invariance and Disentanglement in Deep Representationscited by 213
- 2018Low-Shot Learning from Imaginary Datacited by 181
- 2020Feature Space Augmentation for Long-Tailed Datacited by 136
- 2021Model-Based Domain Generalizationcited by 103
- 2018BAGAN: Data Augmentation with Balancing GANcited by 90
- 2017The Devil is in the Tails: Fine-grained Classification in the Wildcited by 89
- 2020Meta-Learning Symmetries by Reparameterizationcited by 75
- 2020Learning Invariances in Neural Networkscited by 52
- 2020Learning perturbation sets for robust machine learningcited by 48
- 2021Adversarial Robustness with Semi-Infinite Constrained Learningcited by 39
- 2020Model-Based Robust Deep Learning: Generalizing to Natural, Out-of-Distribution Datacited by 27
- 2020When and how CNNs generalize to out-of-distribution category-viewpoint combinationscited by 22
- 2019Are Self-Driving Cars Secure? Evasion Attacks against Deep Neural Networks for Steering Angle Predictioncited by 16
- 2018Evaluating Fairness Metrics in the Presence of Dataset Biascited by 15
- 2020Medical Image Harmonization Using Deep Learning Based Canonical Mapping: Toward Robust and Generalizable Learning in Imagingcited by 7
Built on by
Citing papers per year: 2022: 5; 2023: 4; 2024: 2; 2025: 1.
12 papers.
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2022Probable Domain Generalization via Quantile Risk Minimizationcited by 66
- 2022C-Mixup: Improving Generalization in Regressioncited by 57
- 2022Discrete Key-Value Bottleneckcited by 18
- 2022Data Augmentation vs. Equivariant Networks: A Theory of Generalization on Dynamics Forecastingcited by 17
- 2023What Affects Learned Equivariance in Deep Image Recognition Models?cited by 14
- 2024Latent-based Diffusion Model for Long-tailed Recognitioncited by 14
- 2023Adversarial Training Should Be Cast as a Non-Zero-Sum Gamecited by 13
- 2025Test-Time Canonicalization by Foundation Models for Robust Perceptioncited by 5
- 2022Multi-Domain Long-Tailed Learning by Augmenting Disentangled Representationscited by 3
- 2023Learning to Transform for Generalizable Instance-wise Invariancecited by 2
- 2024Understanding the Role of Invariance in Transfer Learningcited by 1
- 2025Test-Time Canonicalization by Foundation Models for Robust Perception14 Jul 2025
- 2024Understanding the Role of Invariance in Transfer Learning5 Jul 2024
- 2024Latent-based Diffusion Model for Long-tailed Recognition6 Apr 2024
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct 2023
- 2023Learning to Transform for Generalizable Instance-wise Invariance28 Sep 2023
- 2023Adversarial Training Should Be Cast as a Non-Zero-Sum Game19 Jun 2023
- 2023What Affects Learned Equivariance in Deep Image Recognition Models?5 Apr 2023
- 2022Multi-Domain Long-Tailed Learning by Augmenting Disentangled Representations25 Oct 2022
- 2022C-Mixup: Improving Generalization in Regression11 Oct 2022
- 2022Discrete Key-Value Bottleneck22 Jul 2022
- 2022Probable Domain Generalization via Quantile Risk Minimization20 Jul 2022
- 2022Data Augmentation vs. Equivariant Networks: A Theory of Generalization on Dynamics Forecasting19 Jun 2022