mlsanityData to 14 Oct 2026

Intermediate Layer Classifiers for OOD generalization

arXiv 2504.05461 ↗First posted 7 Apr 2025cs.LGcited by 14

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  5. 2016Densely Connected Convolutional Networkscited by 6,720
  6. 2014Deep Learning Face Attributes in the Wildcited by 3,693
  7. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
  8. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  9. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  10. 2019Invariant Risk Minimizationcited by 1,854
  11. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  12. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
38 more
  1. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
  2. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
  3. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  4. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
  5. 2014How transferable are features in deep neural networks?cited by 1,225
  6. 2020In Search of Lost Domain Generalizationcited by 1,054
  7. 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 809
  8. 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 719
  9. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
  10. 2020Measuring Robustness to Natural Distribution Shifts in Image Classificationcited by 454
  11. 2019A Large-scale Study of Representation Learning with the Visual Task Adaptation Benchmarkcited by 425
  12. 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 381
  13. 2019Intrinsic dimension of data representations in deep neural networkscited by 282
  14. 2020Gradient Starvation: A Learning Proclivity in Neural Networkscited by 267
  15. 2022Surgical Fine-Tuning Improves Adaptation to Distribution Shiftscited by 205
  16. 2019Learning De-biased Representations with Biased Representationscited by 199
  17. 2019RUBi: Reducing Unimodal Biases in Visual Question Answeringcited by 185
  18. 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 183
  19. 2022Correct-N-Contrast: A Contrastive Approach for Improving Robustness to Spurious Correlationscited by 172
  20. 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
  21. 2019Enhancing Adversarial Example Transferability with an Intermediate Level Attackcited by 140
  22. 2020What shapes feature representations? Exploring datasets, architectures, and trainingcited by 126
  23. 2023Change is Hard: A Closer Look at Subpopulation Shiftcited by 120
  24. 2021Salient ImageNet: How to discover spurious features in Deep Learning?cited by 114
  25. 2018Predicting the Generalization Gap in Deep Networks with Margin Distributionscited by 113
  26. 2021On the Role of Neural Collapse in Transfer Learningcited by 100
  27. 2022A Whac-A-Mole Dilemma: Shortcuts Come in Multiples Where Mitigating One Amplifies Otherscited by 85
  28. 2022Head2Toe: Utilizing Intermediate Representations for Better Transfer Learningcited by 83
  29. 2022Domain-Adjusted Regression or: ERM May Already Learn Features Sufficient for Out-of-Distribution Generalizationcited by 69
  30. 2021Which Shortcut Cues Will DNNs Choose? A Study from the Parameter-Space Perspectivecited by 57
  31. 2023Towards Last-layer Retraining for Group Robustness with Fewer Annotationscited by 54
  32. 2019Dimensionality compression and expansion in Deep Neural Networkscited by 38
  33. 2023The Tunnel Effect: Building Data Representations in Deep Neural Networkscited by 34
  34. 2020Cross-Domain Few-Shot Learning by Representation Fusioncited by 32
  35. 2022How Robust is Unsupervised Representation Learning to Distribution Shift?cited by 24
  36. 2024Do Deep Neural Network Solutions Form a Star Domain?cited by 6
  37. 2024A separability-based approach to quantifying generalization: which layer is best?cited by 5
  38. 2023TLDR: Text Based Last-layer Retraining for Debiasing Image Classifierscited by 2

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 9.

14 papers.

Sort:

By area: