Skip to content

Spec2^2R: Recovering Emergent Properties in Supervised Vision Transformers

Adam Wróbel, Jacek Tabor, Bartosz Zieliński, Marcin Przewięźlikowski

cs.CV

Abstract

Vision Transformers (ViTs) have achieved strong performance across computer vision tasks, but the quality of their learned representations differs drastically depending on the training paradigm. While self-supervised ViTs often demonstrate emergent properties, such as object-aligned patch representations and attention maps, supervised ViTs typically lack these properties, even when trained with strong data augmentations. Understanding the origin of this difference is important for explaining and controlling the object-level structure. To investigate it, we perform a spectral analysis of supervised and self-supervised models, and identify a key distinction: MLP layers in supervised ViTs introduce high-frequency variations into patch representations, disrupting their spatial organization. Motivated by this finding, we propose Spec2^2R, a lightweight spectral regularization method that fine-tunes the MLP layers of pretrained supervised ViTs. Spec2^2R recovers object-aligned patch representations and attention maps, while improving adversarial robustness and preserving competitive classification accuracy.

Create a lesson