Intermediate Layer Classifiers for OOD generalization
Not on the map. Why?
Abstract (arXiv)
Deep classifiers are known to be sensitive to data distribution shifts, primarily due to their reliance on spurious correlations in training data. It has been suggested that these classifiers can still find useful features in the network's last layer that hold up under such shifts. In this work, we question the use of last-layer representations for out-of-distribution (OOD) generalisation and explore the utility of intermediate layers. To this end, we introduce textitIntermediate Layer Classifiers (ILCs). We discover that intermediate layer representations frequently offer substantially better generalisation than those from the penultimate layer. In many cases, zero-shot OOD generalisation using earlier-layer representations approaches the few-shot performance of retraining on penultimate layer representations. This is confirmed across multiple datasets, architectures, and types of distribution shifts. Our analysis suggests that intermediate layers are less sensitive to distribution shifts compared to the penultimate layer. These findings highlight the importance of understanding how information is distributed across network layers and its role in OOD generalisation, while also pointing to the limits of penultimate layer representation utility. Code is available at https://github.com/oshapio/intermediate-layer-generalization
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 51 of its 67 references that are in the map. First posted on arXiv 7 Apr 2025.
Builds on
51 of 67 references.
References · 51
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2014Deep Learning Face Attributes in the Wildcited by 3,693
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2019Invariant Risk Minimizationcited by 1,854
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
38 more
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
- 2014How transferable are features in deep neural networks?cited by 1,225
- 2020In Search of Lost Domain Generalizationcited by 1,054
- 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 809
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 719
- 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
- 2020Measuring Robustness to Natural Distribution Shifts in Image Classificationcited by 454
- 2019A Large-scale Study of Representation Learning with the Visual Task Adaptation Benchmarkcited by 425
- 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 381
- 2019Intrinsic dimension of data representations in deep neural networkscited by 282
- 2020Gradient Starvation: A Learning Proclivity in Neural Networkscited by 267
- 2022Surgical Fine-Tuning Improves Adaptation to Distribution Shiftscited by 205
- 2019Learning De-biased Representations with Biased Representationscited by 199
- 2019RUBi: Reducing Unimodal Biases in Visual Question Answeringcited by 185
- 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 183
- 2022Correct-N-Contrast: A Contrastive Approach for Improving Robustness to Spurious Correlationscited by 172
- 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
- 2019Enhancing Adversarial Example Transferability with an Intermediate Level Attackcited by 140
- 2020What shapes feature representations? Exploring datasets, architectures, and trainingcited by 126
- 2023Change is Hard: A Closer Look at Subpopulation Shiftcited by 120
- 2021Salient ImageNet: How to discover spurious features in Deep Learning?cited by 114
- 2018Predicting the Generalization Gap in Deep Networks with Margin Distributionscited by 113
- 2021On the Role of Neural Collapse in Transfer Learningcited by 100
- 2022A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Otherscited by 85
- 2022Head2Toe: Utilizing Intermediate Representations for Better Transfer Learningcited by 83
- 2022Domain-Adjusted Regression or: ERM May Already Learn Features Sufficient for Out-of-Distribution Generalizationcited by 69
- 2021Which Shortcut Cues Will DNNs Choose? A Study from the Parameter-Space Perspectivecited by 57
- 2023Towards Last-layer Retraining for Group Robustness with Fewer Annotationscited by 54
- 2019Dimensionality compression and expansion in Deep Neural Networkscited by 38
- 2023The Tunnel Effect: Building Data Representations in Deep Neural Networkscited by 34
- 2020Cross-Domain Few-Shot Learning by Representation Fusioncited by 32
- 2022How Robust is Unsupervised Representation Learning to Distribution Shift?cited by 24
- 2024Do Deep Neural Network Solutions Form a Star Domain?cited by 6
- 2024A separability-based approach to quantifying generalization: which layer is best?cited by 5
- 2023TLDR: Text Based Last-layer Retraining for Debiasing Image Classifierscited by 2
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2025: 5; 2026: 9.
14 papers.
Sort:
By area:
- 2025Does Data Scaling Lead to Visual Compositional Generalization?cited by 13
- 2025Diffusion Classifiers Understand Compositionality, but Conditions Applycited by 7
- 2026A Brain-like Synergistic Core in LLMs Drives Behaviour and Learningcited by 6
- 2025On the rankability of visual embeddingscited by 4
- 2026Deep Models, Shallow Alignment: Uncovering the Granularity Mismatch in Neural Decodingcited by 4
- 2025The Generalization Ridge: Information Flow in Natural Language Generationcited by 2
- 2025Rethinking the Use of Vision Transformers for AI-Generated Image Detectioncited by 2
- 2026Layer by layer, module by module: Choose both for optimal OOD probing of ViTcited by 2
- 2026Fast Wireless Foundation Models with Early-Exitscited by 1
- 2026DIRCR: Dual-Inference Rule-Contrastive Reasoning for Solving RAVENscited by 0
- 2026Vertical Fusion: Condensing Internal Representations for Robust ViT Classificationcited by 0
- 2026Representation Trajectories Matters: Complementary Evidence for OOD Detection and Image Classificationcited by 0
- 2026The Layer Mystery of VLA: An Information-Theoretical Analysis of VLA Latent Interface28 Sep 2026
- 2026Not All Layers Are Equal: Dynamic Layer Routing for Reliable CLIP OOD Detection30 Jul 2026
- 2026Representation Trajectories Matters: Complementary Evidence for OOD Detection and Image Classification29 Jul 2026
- 2026Vertical Fusion: Condensing Internal Representations for Robust ViT Classification11 Jul 2026
- 2026Fast Wireless Foundation Models with Early-Exits28 Jun 2026
- 2026DIRCR: Dual-Inference Rule-Contrastive Reasoning for Solving RAVENs19 Apr 2026
- 2026Layer by layer, module by module: Choose both for optimal OOD probing of ViT5 Mar 2026
- 2026Deep Models, Shallow Alignment: Uncovering the Granularity Mismatch in Neural Decoding29 Jan 2026
- 2026A Brain-like Synergistic Core in LLMs Drives Behaviour and Learning11 Jan 2026
- 2025Rethinking the Use of Vision Transformers for AI-Generated Image Detection4 Dec 2025
- 2025Does Data Scaling Lead to Visual Compositional Generalization?9 Jul 2025
- 2025The Generalization Ridge: Information Flow in Natural Language Generation7 Jul 2025
2 more
- 2025On the rankability of visual embeddings4 Jul 2025
- 2025Diffusion Classifiers Understand Compositionality, but Conditions Apply23 May 2025
- 2026Fast Wireless Foundation Models with Early-Exitscited by 1
- 2026Fast Wireless Foundation Models with Early-Exits28 Jun 2026
- 2025Does Data Scaling Lead to Visual Compositional Generalization?cited by 13
- 2026A Brain-like Synergistic Core in LLMs Drives Behaviour and Learningcited by 6
- 2025On the rankability of visual embeddingscited by 4
- 2026Deep Models, Shallow Alignment: Uncovering the Granularity Mismatch in Neural Decodingcited by 4
- 2025The Generalization Ridge: Information Flow in Natural Language Generationcited by 2
- 2025Rethinking the Use of Vision Transformers for AI-Generated Image Detectioncited by 2
- 2026Layer by layer, module by module: Choose both for optimal OOD probing of ViTcited by 2
- 2026Vertical Fusion: Condensing Internal Representations for Robust ViT Classificationcited by 0
- 2026Representation Trajectories Matters: Complementary Evidence for OOD Detection and Image Classificationcited by 0
- 2026Not All Layers Are Equal: Dynamic Layer Routing for Reliable CLIP OOD Detectioncited by 0
- 2026Not All Layers Are Equal: Dynamic Layer Routing for Reliable CLIP OOD Detection30 Jul 2026
- 2026Representation Trajectories Matters: Complementary Evidence for OOD Detection and Image Classification29 Jul 2026
- 2026Vertical Fusion: Condensing Internal Representations for Robust ViT Classification11 Jul 2026
- 2026Layer by layer, module by module: Choose both for optimal OOD probing of ViT5 Mar 2026
- 2026Deep Models, Shallow Alignment: Uncovering the Granularity Mismatch in Neural Decoding29 Jan 2026
- 2026A Brain-like Synergistic Core in LLMs Drives Behaviour and Learning11 Jan 2026
- 2025Rethinking the Use of Vision Transformers for AI-Generated Image Detection4 Dec 2025
- 2025Does Data Scaling Lead to Visual Compositional Generalization?9 Jul 2025
- 2025The Generalization Ridge: Information Flow in Natural Language Generation7 Jul 2025
- 2025On the rankability of visual embeddings4 Jul 2025