Layer by layer, module by module: Choose both for optimal OOD probing of ViT
Not on the map. Why?
Abstract (arXiv)
Recent studies have observed that intermediate layers of foundation models often yield more discriminative representations than the final layer. While initially attributed to autoregressive pretraining, this phenomenon has also been identified in models trained via supervised and discriminative self-supervised objectives. In this paper, we conduct a comprehensive study to analyze the behavior of intermediate layers in pretrained vision transformers. Through extensive linear probing experiments across a diverse set of image classification benchmarks, we find that distribution shift between pretraining and downstream data is the primary cause of performance degradation in deeper layers. Furthermore, we perform a fine-grained analysis at the module level. Our findings reveal that standard probing of transformer block outputs is suboptimal; instead, probing the activation within the feedforward network yields the best performance under significant distribution shift, whereas the normalized output of the multi-head self-attention module is optimal when the shift is weak.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 28 of its 35 references that are in the map. First posted on arXiv 5 Mar 2026.
Builds on
28 of 35 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2016Layer Normalizationcited by 5,579
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
16 more
- 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 1,981
- 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,327
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
- 2025Perception Encoder: The best visual embeddings are not at the output of the networkcited by 315
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 293
- 2022Surgical Fine-Tuning Improves Adaptation to Distribution Shiftscited by 205
- 2024Scalable Pre-training of Large Autoregressive Image Modelscited by 115
- 2023Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuningcited by 63
- 2025Scaling Laws for Optimal Data Mixturescited by 49
- 2024SAMformer: Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attentioncited by 43
- 2025Intermediate Layer Classifiers for OOD generalizationcited by 14
- 2024MANO: Exploiting Matrix Norm for Unsupervised Accuracy Estimation Under Distribution Shiftscited by 8
- 2025Provable Benefits of In-Tool Learning for Large Language Modelscited by 4
- 2024Leveraging Gradients for Unsupervised Accuracy Estimation under Distribution Shiftcited by 3
- 2026Vision Transformer Finetuning Benefits from Non-Smooth Componentscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.