arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05280cs.CVcs.LGstat.ML
收藏

逐层、逐模块:为优化ViT的OOD探测选择两者

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

Inria(法国国家信息与自动化研究所);com(42网络);IRISA(法国雷恩信息与自动化系统研究所);Univ. Rennes 2(雷恩第二大学)

Ambroise Odonnat, Vasilii Feofanov, Laetitia Chapel, Romain Tavenard, Ievgen Redko

AI总结:

本文研究了ViT中不同层和模块在OOD探测中的表现,发现中间层和模块级激活在不同分布偏移下具有不同优势。

摘要:

最近的研究发现,基础模型的中间层往往比最终层产生更具判别性的表示。虽然最初归因于自回归预训练,这种现象也已在通过监督和判别自监督目标训练的模型中被识别。在本文中,我们进行了一项全面研究,分析预训练视觉变换器中中间层的行为。通过在多样化的图像分类基准上进行广泛的线性探测实验,我们发现预训练与下游数据之间的分布偏移是深度层性能下降的主要原因。此外,我们还进行了细粒度的模块级分析。我们的发现表明,标准探测变换器块输出的性能是次优的;相反,在显著的分布偏移下,探测馈前网络中的激活会产生最佳性能,而当偏移较弱时,归一化输出的多头自注意力模块是最佳的。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑