A separability-based approach to quantifying generalization: which layer is best?
Not on the map. Why?
Abstract (arXiv)
Generalization to unseen data remains poorly understood for deep learning classification and foundation models, especially in the open set scenario. How can one assess the ability of networks to adapt to new or extended versions of their input space in the spirit of few-shot learning, out-of-distribution generalization, domain adaptation, and category discovery? Which layers of a network are likely to generalize best? We provide a new method for evaluating the capacity of networks to represent a sampled domain, regardless of whether the network has been trained on all classes in that domain. Our approach is the following: after fine-tuning state-of-the-art pre-trained models for visual classification on a particular domain, we assess their performance on data from related but distinct variations in that domain. Generalization power is quantified as a function of the latent embeddings of unseen data from intermediate layers for both unsupervised and supervised settings. Working throughout all stages of the network, we find that (i) high classification accuracy does not imply high generalizability; and (ii) deeper layers in a model do not always generalize the best, which has implications for pruning. Since the trends observed across datasets are largely consistent, we conclude that our approach reveals (a function of) the intrinsic capacity of the different layers of a model to generalize. Our code is available at https://github.com/dyballa/generalization
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 36 of its 44 references that are in the map. First posted on arXiv 2 May 2024.
Builds on
36 of 44 references.
References · 36
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2018On First-Order Meta-Learning Algorithmscited by 1,003
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
24 more
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2023ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoderscited by 703
- 2019A Closer Look at Few-shot Classificationcited by 679
- 2018Deep Visual Domain Adaptation: A Surveycited by 634
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
- 2017Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Uglycited by 536
- 2021MetaFormer Is Actually What You Need for Visioncited by 523
- 2017Sharp Minima Can Generalize For Deep Netscited by 462
- 2021Towards Out-Of-Distribution Generalization: A Surveycited by 431
- 2019Contrastive Adaptation Network for Unsupervised Domain Adaptationcited by 407
- 2016Unsupervised Pixel-Level Domain Adaptation with Generative Adversarial Networkscited by 307
- 2013Zero-Shot Learning Through Cross-Modal Transfercited by 237
- 2019Learning to Discover Novel Visual Categories via Deep Transfer Clusteringcited by 223
- 2022Generalized Category Discoverycited by 209
- 2016Learning Deep Representations of Fine-grained Visual Descriptionscited by 182
- 2020A Review of Generalized Zero-Shot Learning Methodscited by 159
- 2021Contrastive Embedding for Generalized Zero-Shot Learningcited by 94
- 2015Predicting Deep Zero-Shot Convolutional Neural Networks using Textual Descriptionscited by 64
- 2023No Representation Rules Them All in Category Discoverycited by 61
- 2020Iterative label cleaning for transductive and semi-supervised few-shot learningcited by 40
- 2014A Unified Perspective on Multi-Domain and Multi-Task Learningcited by 33
- 2020Zero Shot Domain Generalizationcited by 12
- 2019Tackling Partial Domain Adaptation with Self-Supervisioncited by 9
- 2018Adaptive Deep Learning through Visual Domain Localizationcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 1.
5 papers.
- 2025Intermediate Layer Classifiers for OOD generalizationcited by 14
- 2024Spectral regularization for adversarially-robust representation learningcited by 2
- 2025Revisiting Generalization Power of a DNN in Terms of Symbolic Interactionscited by 1
- 2025An Interpretable Representation Learning Approach for Diffusion Tensor Imagingcited by 1
- 2026Understanding Generalization from Embedding Dimension and Distributional Convergencecited by 1
- 2026Understanding Generalization from Embedding Dimension and Distributional Convergence30 Jan 2026
- 2025An Interpretable Representation Learning Approach for Diffusion Tensor Imaging25 May 2025
- 2025Intermediate Layer Classifiers for OOD generalization7 Apr 2025
- 2025Revisiting Generalization Power of a DNN in Terms of Symbolic Interactions14 Feb 2025
- 2024Spectral regularization for adversarially-robust representation learning27 May 2024