Layer by layer, module by module: Choose both for optimal OOD probing of ViT

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Odonnat, Ambroise, Feofanov, Vasilii, Chapel, Laetitia, Tavenard, Romain, Redko, Ievgen
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915837644898304
author Odonnat, Ambroise
Feofanov, Vasilii
Chapel, Laetitia
Tavenard, Romain
Redko, Ievgen
author_facet Odonnat, Ambroise
Feofanov, Vasilii
Chapel, Laetitia
Tavenard, Romain
Redko, Ievgen
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_05280
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Layer by layer, module by module: Choose both for optimal OOD probing of ViT
Odonnat, Ambroise
Feofanov, Vasilii
Chapel, Laetitia
Tavenard, Romain
Redko, Ievgen
Computer Vision and Pattern Recognition
Machine Learning
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.
title Layer by layer, module by module: Choose both for optimal OOD probing of ViT
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2603.05280