betaFeedback

WorksComputer Science

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

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.

Introduction

Vision Transformers (ViTs) [7] have become a widely adopted architecture for visual representation learning [11]. ViTs represent images as sequences of patch tokens, which interact through self-attention layers [26]. As these representations evolve across transformer blocks, patch tokens can develop semantic structure, forming object-aligned clusters in the final representation [1, 3, 18]. Such ViT properties are particularly interesting because they often emerge without any explicit supervision at the level of individual image patches.

Self-supervised ViTs such as DINO [3, 16, 23] provide a clear example, with object-aligned patch representations and attention maps that directly support correspondence [9, 15], tracking [6, 17], and object discovery [29]. Supervised ViTs [2, 7, 24, 25], despite their strong classification performance, show much weaker object-level structure. This raises a question: What limits the emergence of object-aligned representations in supervised ViTs, and can these properties be recovered?

To investigate it, we use Fourier analysis to follow how the spatial frequency content of patch representations evolves across the blocks of DINO and supervised DeiTIII [25], when projected onto dominant directions of final patch representations (Figure 2). The two models follow opposite trajectories: DINO progressively refines its representations into object-aligned structure, whereas DeiT-III accumulates high-frequency variations that disrupt it. We trace this difference to the MLP layers of supervised ViTs.

Evolution of spatial structure across ViT blocks

Figure 2. Evolution of spatial structure across ViT blocks. Patch representations from all 12 blocks are visualized as RGB projections onto the top three principal components of the final layer activation. DINO [3] (top) refines object-aligned structure with each layer, while DeiT-III [25] (middle) progressively introduces high-frequency spatial variations. Spec2{}^{2}R[DeiT-III] (bottom) restores object-aligned structure through MLP and classification head fine-tuning.

Motivated by this finding, we introduce Spec2^{2}R, a lightweight spectral regularization that discourages the growth of high spatial frequencies across blocks by fine-tuning only the MLP layers and classification head of a pretrained supervised ViT. Although all attention parameters remain frozen, Spec2^{2}R improves the object alignment of attention maps, with DeiT-III and DeiT-Distilled [24] surpassing DINO at the final block (Figure 1). Together with consistent gains on downstream tasks and in adversarial robustness, these results suggest that object-aligned structure is neither exclusive to self-supervised training nor at odds with image-level classification. Instead, it depends on how spatial frequencies evolve across transformer blocks, and can be recovered in pretrained supervised ViTs within a small fraction of a single ImageNet epoch.

Figure 1. Effect of Spec2^{2}R regularization on DeiT-III-B/16 [25]. By fine-tuning only the MLP layers and classification head of a pretrained model, Spec2^{2}R improves object alignment in both patch representations and attention maps. These improvements translate into better downstream performance and adversarial robustness while preserving competitive classification accuracy.

Contributions. Our main contributions are:

  • A spectral analysis of ViT blocks, identifying MLP layers as a major source of excessive high frequencies in supervised ViTs.

  • Spec2^{2}R, a lightweight spectral regularization that fine-tunes only MLP layers and the classification head.

  • Consistent improvements in attention alignment, patch representations, and adversarial robustness across supervised ViTs, with competitive classification accuracy.

Related Works

ViT Representations. The original ViT [7] demonstrated strong image classification performance through large-scale supervised pretraining. DeiT [24] introduced data-efficient training and CNN-based knowledge distillation, while DeiT-III [25] introduced a simplified augmentation-based training recipe. FlexiViT [2] extended training to variable patch sizes, enabling flexible spatial tokenization. Despite these advances, supervised ViTs often show weaker object alignment and lower performance on patch-level downstream tasks than self-supervised models. DINO [3] introduced self-distillation for learning visual representations without labels, achieving emergent object-level structure in patch representations and attention maps despite the absence of explicit patch-level supervision. DINOv2 [16] combined image-level and patch-level self-distillation with large-scale training to produce general-purpose visual features. DINOv3 [23] introduced Gram anchoring to preserve dense feature quality during extended training. In this work, we use the original DINO as our self-supervised reference, as its object-level properties emerge without the additional training mechanisms used in later versions.

Understanding ViT Representations. Previous works have studied the mechanisms shaping ViT representations. Wang et al. [28] showed that self-attention tends to suppress high-frequency components of patch representations, potentially leading to oversmoothing in deep transformers. Darcet et al. [5] identified high-norm tokens that emerge in low-information image regions. Denoising Vision Transformers [30] attributed grid-like patterns in patch representations to positional embeddings structure. More recently, Shi et al. [22] investigated how global information aggregation can encourage background patches to encode object-level semantics. Together, these works highlight several mechanisms affecting the spatial organization of ViT features. Our analysis instead examines how individual transformer components affect the spatial frequency content of intermediate representations along the dominant directions of final patch features.

Improving ViT Representations. Several approaches have managed to improve the spatial structure and semantic quality of ViT features. SelfPatch [32] encourages local semantic consistency through patch-level self-supervised learning. Register tokens [5] provide additional capacity for internal information processing, reducing artifacts in dense feature maps. SimPool [19] improves object alignment of attention maps through learnable attention-based pooling. Denoising Vision Transformers [30] learns an additional network to remove positional artifacts from pretrained features, while ClearCLIP [13] improves dense CLIP [20] representations by modifying the contribution of residual features. Unlike these approaches, Spec2^{2}R directly refines pretrained supervised ViTs through lightweight MLP fine-tuning, without modifying attention parameters or introducing additional inference-time modules. Our method constrains radial frequency expansion along dominant feature directions while preserving the model’s classification behavior.

Spectral Analysis

Our goal is to identify which transformer components may limit the emergence of object-aligned patch representations in supervised ViTs compared to self-supervised models such as DINO [3]. Supervised ViTs are known to produce lower-quality attention maps than their self-supervised counterparts [3, 19], and both their attention maps and patch representations appear spatially noisy, with fine-grained variations that do not follow object boundaries (Figure 1). Since such noise corresponds to high spatial frequencies, we use Fourier analysis to study the spectral dynamics of patch representations, i.e., how their spatial frequency content evolves across transformer blocks.

Preliminaries

To provide the foundation for our analysis and the Spec2{}^{2}R regularization (§ 4), we first introduce the notation and measures used to characterize the dynamics of patch representations across transformer blocks. Additional mathematical details are provided in Appendix § 8.

Residual stream. Our analysis focuses on intermediate patch representations produced by ViT blocks. Let V≅Rt×dV \cong\mathbb{R}^{t \times d} denote the space of patch representations, where tt is the number of patch tokens and dd is the embedding dimension. Each ViT block FiF_i consists of a residual attention branch FiattnF_i^{\mathrm{attn}} followed by a residual MLP branch FimlpF_i^{\mathrm{mlp}}, such that Fi=Fimlp∘FiattnF_i = F_i^{\mathrm{mlp}} \circ F_i^{\mathrm{attn}}. Given an initial representation X0∈VX_0 \in V, a sequence of kk blocks produces Xi+1=Fi(Xi)X_{i+1} = F_i(X_i). We refer to the sequence (Xi)i=0k(X_i)_{i=0}^{k} as the residual stream.

Spectral measures. To characterize changes in spatial frequencies across the residual stream, we consider the radial and angular spectra of the two-dimensional Fourier amplitude spectrum. Let F2D(Z)\mathcal{F}_{2D}(Z) denote the 2D Fourier transform of a spatial representation ZZ, defined over the frequency domain Ω⊂R2\Omega\subset\mathbb{R}^{2}. For any measurable subset S⊆ΩS \subseteq\Omega, we define its accumulated amplitude spectrum as:

Φ(Z,S):=∫S∣F2D(Z)(ω)∣ dω(1)\Phi(Z,S) := \int_{S} \left\lvert\mathcal{F}_{2D}(Z)(\omega) \right\rvert\, \mathrm{d}\omega \tag*{(1)}

The radial and angular spectra are then defined by choosing appropriate interval sets:

Φr(Z,B):=Φ(Z,{ω∈Ω:∥ω∥2∈B})\Phi_r(Z,B) := \Phi\left(Z,\left\{\omega\in\Omega: \lVert\omega\rVert_2 \in B\right\}\right)
Φθ(Z,B):=Φ(Z,{ω∈Ω:arg⁡(ω)∈B})(2)\Phi_\theta(Z,B) := \Phi\left(Z,\left\{\omega\in\Omega: \arg(\omega) \in B\right\}\right) \tag*{(2)}

where BB denotes radial or angular frequency intervals, respectively. The radial spectrum Φr\Phi_r quantifies how spectral amplitude is distributed between low and high spatial frequencies, while the angular spectrum Φθ\Phi_\theta quantifies its distribution across orientations, providing complementary information.

Spectral Dynamics

Building on the spectral measures, we analyze how the residual stream (Xi)i=0k(X_i)_{i=0}^{k} evolves along the dominant directions of the final layer patch representations XkX_k. We compare self-supervised DINO with supervised DeiT-III, with consistent observations across additional architectures reported in the Appendix § 9.

Residual stream projection. For each image, we identify the dominant feature directions of the final-layer patch representations XkX_k through PCA, selecting the three principal components associated with the largest singular values. These components form a reference basis Bk\mathcal{B}_k. We then project each intermediate representation XiX_i onto this basis, obtaining the projected residual stream ([Xi]Bk)i=0k([X_i]_{\mathcal{B}_k})_{i=0}^{k}. As visualized in Figure 2, while DINO projection progressively refines object-aligned structure, DeiT-III introduces high-frequency variations at block 55, progressively disrupting its spatial representation along Bk\mathcal{B}_k.

Radial Moment Trajectory. To quantify these observations, we reshape each projected representation [Xi]Bk[X_i]_{\mathcal{B}_k} into a spatial grid of size g×g×∣Bk∣g \times g \times\lvert\mathcal{B}_k\rvert and compute the sum-normalized radial spectrum Φ~r\widetilde{\Phi}_r, independently for each PCA component. We then summarize the frequency distribution at each block by the first radial moment, averaged across the reference directions:

μr(i):=1∣Bk∣∑b∈BkEr∼Φ~r([Xi]b)[r](3)\mu_r^{(i)} := \frac{1}{\lvert\mathcal{B}_k\rvert} \sum_{b \in\mathcal{B}_k} \mathbb{E}_{r \sim\widetilde{\Phi}_r([X_i]_b)}[r] \tag*{(3)}

We refer to the resulting sequence (μr(i))i=0k(\mu_r^{(i)})_{i=0}^{k} as the radial moment trajectory, which describes the evolution of the expected radial frequency across transformer blocks.

As shown in Figure 3 (top), DINO shows a decreasing radial moment across early blocks (1-7), followed by an approximately non-increasing trend, whereas DeiT-III progressively shifts toward higher spatial frequencies. These contrasting trajectories show that the two models differ not only in their final patch representations, but also in how their representations evolve across transformer blocks. This observation is consistent with the qualitative differences in Figure 2, where DINO progressively refines spatial structure while DeiT-III develops high-frequency variations.

Figure 3. Radial moment dynamics across ViT blocks. Top: Radial moment trajectories averaged over the ImageNet-1K [21] validation set. Middle and bottom: Changes in radial moment induced by MLP and attention residual branches (FimlpF_i^{\mathrm{mlp}} and FiattnF_i^{\mathrm{attn}}). DeiT-III [25] MLPs increase the radial moment (red region), producing the accumulating spatial variations.

To identify which components of each ViT block FiF_i contribute to changes in the radial moment trajectory, we measure the difference in radial moment before and after each residual branch (FiattnF_i^{\mathrm{attn}} and FimlpF_i^{\mathrm{mlp}}). As shown in Figure 3 (middle and bottom), attention branch contributions remain approximately non-positive in both DINO and DeiT-III. In contrast, DeiT-III shows consistently positive MLP branch contributions in blocks 5-8, shifting the representations toward higher spatial frequencies. We observe that similar MLP behavior repeats across other supervised ViTs (see Appendix § 9).

Angular similarity.

While the radial moment captures changes in spatial frequency magnitude, it does not describe how spectral amplitude is distributed across spatial orientations (see Equation (2)). To complement the radial analysis, we measure the cosine similarity between sum-normalized angular spectra Φ~θ\widetilde{\Phi}_{\theta} before and after each ViT block:

sθ(i):=1∣Bk∣∑x∈Bkcos⁡(Φ~θ([Xi−1]b),Φ~θ([Xi]b))(4)s_{\theta}^{(i)} := \frac{1}{|\mathcal{B}_k|}\sum_{\mathbf{x}\in\mathcal{B}_k}\cos\left(\widetilde{\Phi}_{\theta}([X_{i-1}]_b),\widetilde{\Phi}_{\theta}([X_i]_b)\right) \tag*{(4)}

This similarity quantifies the stability of the angular spectrum Φ~θ\widetilde{\Phi}_{\theta} along the projected residual stream {[Xi]Bk}i=0k\left\{[X_i]_{\mathcal{B}_k}\right\}_{i=0}^{k}.

As shown in Figure 4, both DINO and DeiT-III maintain high angular similarity between their blocks, starting above 0.93 for sθ(1)s_{\theta}^{(1)} and progressively increasing over 0.99. This shows that despite their contrasting radial dynamics, both models preserve their angular distribution of spectral amplitude between successive blocks, suggesting that this stability is a useful constraint when correcting radial frequency expansion.

Angular spectrum similarity across ViT blocks

Figure 4. Angular spectrum similarity across ViT blocks. Box plots of cosine similarity between normalized angular spectra before and after each transformer block, for DINO [3] and DeiT-III [25]. Despite contrasting radial dynamics (see Figure 3), both models maintain high angular similarity, motivating its preservation during spectral regularization.

Conclusions.

Our analysis shows contrasting radial dynamics despite stable angular spectra in both DINO and DeiT-III. While DINO progressively reduces the radial moment, DeiT-III increases it through high-frequency variations introduced by its MLP branches. These findings are consistent across all considered ViTs (see Appendix § 9), and motivate our spectral regularization, which limits radial frequency expansion while preserving the angular similarity across successive transformer blocks.

Spec2R

We introduce Spec2^{2}R, a lightweight spectral regularization method that promotes DINO-like spatial organization in the patch representations of pretrained supervised ViTs. Following our analysis from the previous section, our fine-tuning is restricted to the MLP branches and classification head, while all remaining parameters remain frozen.

Radial non-expansion. Motivated by the positive MLP contributions shown in our analysis, the first regularization term of Spec2^{2}R penalizes increases in the radial moment across successive transformer blocks, independently for each PCA component:

Lr:=1∣Bk∣∑i=1k∑b∈Bk[μr,b(i)−sg⁡[μr,b(i−1)]]+(5)\mathcal{L}_{r} := \frac{1}{\lvert\mathcal{B}_{k} \rvert} \sum_{i=1}^{k} \sum_{b \in\mathcal{B}_{k}} \left[\mu_{r,b}^{(i)} - \operatorname{sg}\left[\mu_{r,b}^{(i-1)}\right]\right]_{+} \tag*{(5)}

Here, μr,b(i)\mu_{r,b}^{(i)} denotes the first radial moment of the bb-th projected component, and sg⁡[⋅]\operatorname{sg}[\cdot] denotes the stop-gradient operator, which we also apply to per-image reference PCA basis Bk\mathcal{B}_{k} (see Equation (3)).

Angular preservation. The second component of Spec2^{2}R encourages the preservation of angular spectrum similarity across the projected residual stream. Following the high angular similarity observed in both DINO and DeiT-III, we minimize the cosine distance between normalized angular spectra before and after each ViT block:

Lθ:=∑i=1k[1−sθ(i)](6)\mathcal{L}_{\theta} := \sum_{i=1}^{k} \left[1 - s_{\theta}^{(i)}\right] \tag*{(6)}

Similarly to the previous objective, we apply the stop gradient operator sg⁡[⋅]\operatorname{sg}[\cdot] on the reference basis Bk\mathcal{B}_{k} and on the angular spectrum of input activation Φ~θ([Xi−1]b)\widetilde{\Phi}_{\theta}([X_{i-1}]_{b}) (see Equation (4)). This constraint discourages changes in the angular distribution of the spectral amplitude while allowing the radial moment trajectory to adjust. It also helps prevent the performance degradation observed with radial regularization alone, as demonstrated in Appendix § 10.

Fine-tuning objective. To preserve the predictive behavior of the pretrained model, we use the Kullback-Leibler divergence [10] between the output probability distributions of the fine-tuned and original models, denoted by LKL\mathcal{L}_{\mathrm{KL}}. The final fine-tuning objective combines the distillation term with the radial non-expansion and angular preservation losses:

LSpec2R:=λKLLKL+λrLr+λθLθ(7)\mathcal{L}_{\mathrm{Spec}^{2}\mathrm{R}} := \lambda_{\mathrm{KL}}\mathcal{L}_{\mathrm{KL}} + \lambda_{r}\mathcal{L}_{r} + \lambda_{\theta}\mathcal{L}_{\theta} \tag*{(7)}

where λKL\lambda_{\mathrm{KL}}, λr\lambda_{r} and λθ\lambda_{\theta} control the contributions of the loss terms.

Experiments

Experimental Setup

Models. To cover diverse supervised training strategies, we select three ViT-B/16 models: DeiT-III [25], DeiT-Distilled [24], and FlexiViT [2]. DeiT-III uses training recipe based on a simplified data augmentation pipeline. DeiT-Distilled uses knowledge distillation from a CNN teacher through an additional token. FlexiViT uses varying patch sizes to support flexible spatial tokenization. Additionally, we use self-supervised DINO [3] as a reference due to its analogous role in our analysis from § 3.

Fine-tuning. We fine-tune only the MLP layers and classification head, keeping all remaining parameters frozen. We use Adam optimizer [12] with a batch size of 64 and a two-stage optimization procedure. The first stage runs for approximately 300 steps with a lower KL loss weight. Once the losses plateau, we reset the optimizer and continue for approximately 1,000 steps with a reduced learning rate and increased KL loss weight to better preserve classification performance. The full optimization schedule and model-specific hyperparameters are provided in the Appendix § 11.

Evaluation. We evaluate patch representation quality across three complementary downstream tasks. (i) Semantic correspondence measures the semantic consistency of patch representations across images. (ii) Temporal tracking evaluates instance consistency of patch representations across video frames. (iii) Object discovery assesses the ability to identify structured object regions from patch representations. We also assess the object alignment of CLS-token attention maps, measure classification performance and adversarial robustness of fine-tuned models.

Attention Alignment

Despite keeping attention branches frozen, Spec2^{2}R visibly improves the object alignment of CLS-token attention maps, as shown in Figure 6. In this section, we evaluate these improvements quantitatively.

Qualitative comparison of final-layer CLS-token attention

Figure 6. Qualitative comparison of final-layer CLS-token attention. CLS-token attention maps averaged across heads on ImageNet-1K [21] images for DINO [3], DeiT-III [25], and Spec2^{2}R [DeiT-III]. Despite keeping attention parameters frozen, Spec2^{2}R[DeiT-III] improves object-alignment of attention maps, allowing DeiT-III to produce more object-aligned attention maps than DINO.

Benchmarks. The Energy Pointing Game (EPG) [27] on ImageNet-1K [21] measures the fraction of attention concentrated within ground-truth object bounding boxes, assessing whether the model attends to relevant object regions.

For a more precise evaluation of spatial alignment, we follow the DINO protocol on PASCAL VOC [8], measuring intersection-over-union (IoU) between attention-based foreground masks and ground-truth segmentation masks. For both metrics, we evaluate attention maps at every transformer block, selecting the attention head with the highest alignment score. We report results for the final block and the best-performing block across the network, including its index (see Table 1). Results for all blocks are provided in the Appendix § 12.

ModelImageNet-1K (EPG)PASCAL VOC (IoU)
Last ↑\uparrowBest ↑\uparrowBest BlockLast ↑\uparrowBest ↑\uparrowBest Block
DINO-B/1678.8982.941030.9539.206
DeiT-III-B/1666.0978.19917.0443.848
+ Spec2^{2}R85.8485.841240.1646.118
Δ\Delta+19.75+7.65+23.12+2.27
DeiT-Distilled-B/1664.1576.89914.6535.716
+ Spec2^{2}R79.4381.481033.2636.636
Δ\Delta+15.28+4.59+18.61+0.92
FlexiViT-B/1665.4373.791021.7241.108
+ Spec2^{2}R74.7877.451137.6042.938
Δ\Delta+9.35+3.66+15.88+1.83

Table 1. Object alignment of CLS-token attention. We evaluate the best attention head using Energy Pointing Game (EPG) [27] on ImageNet-1K [21] and foreground intersection-over-union (IoU) on PASCAL VOC [8]. We report performance at the final transformer block (Last), the highest performance across blocks (Best), and the corresponding block index (Best Block).

Results. As shown in Table 1, Spec2^2R improves attention alignment across all three supervised models on both benchmarks. The largest improvements are observed for DeiT-III, with final-block EPG increasing by 19.75 points and IoU by 23.12 points. Its best-block scores also improve by 7.65 and 2.27 points, allowing DeiT-III to surpass DINO on both benchmarks for both final and best blocks. For DeiT-Distilled, Spec2^2R improves final-block EPG and IoU by 15.28 and 18.61 points, surpassing DINO at the final block on both benchmarks. Its best-block scores also improve, narrowing the gap to DINO. FlexiViT shows similar improvements, with final-block EPG and IoU increasing by 9.35 and 15.88 points. This allows FlexiViT to surpass DINO on PASCAL VOC at both final and best blocks, while reducing the gap on ImageNet-1K.

Patch Representation Quality

Following Spec2^2R fine-tuning, we observe a clear qualitative improvement in the object alignment of PCA projections of patch representations (see Figure 5). We next assess these improvements quantitatively across downstream tasks.

Qualitative comparison of final-layer patch representations

Figure 5. Qualitative comparison of final-layer patch representations. RGB visualizations of the top three principal components of patch tokens on ImageNet-1K [21] images for DINO [3], DeiT-III [25], and Spec2^{2}R [DeiT-III]. Spec2^{2}R removes high-frequency artifacts from DeiT-III representations and improves object alignment, producing representations similar to DINO.

Semantic Correspondence.

Benchmarks. To assess whether patch representations contain consistent semantic correspondences between different instances of the same object category, we measure the Percentage of Correct Keypoints (PCK) [31] on SPair-71k [15] and PF-PASCAL [9], at thresholds of 0.05, 0.10, and 0.20.

Results. As shown in Table 2, Spec2^2R consistently improves semantic correspondence across both datasets and all PCK thresholds. For DeiT-Distilled, the largest gains are observed on PF-PASCAL, with improvements of 1.91, 4.14, and 3.61 points at thresholds of 0.05, 0.10, and 0.20. These improvements allow DeiT-Distilled to surpass DINO at all three thresholds on PF-PASCAL, as well as at two of three thresholds on SPair-71k. DeiT-III also shows significant gains, especially at higher PCK thresholds, improving by up to 5.93 points on SPair-71k and 7.62 points on PF-PASCAL. FlexiViT improves across all thresholds, with gains of up to 3.86 and 7.63 points on SPair-71k and PF-PASCAL. Although DeiT-III and FlexiViT remain below DINO, both narrow the performance gap.

ModelSPair-71k 0.05 ↑SPair-71k 0.10 ↑SPair-71k 0.20 ↑PF-PASCAL 0.05 ↑PF-PASCAL 0.10 ↑PF-PASCAL 0.20 ↑DAVIS J\mathcal{J} ↑DAVIS F\mathcal{F} ↑DAVIS J&F\mathcal{J}\&\mathcal{F} ↑MOSE J\mathcal{J} ↑MOSE F\mathcal{F} ↑MOSE J&F\mathcal{J}\&\mathcal{F} ↑VOC07 ↑VOC12 ↑COCO20K ↑
DINO-B/1611.8126.9946.2128.5851.4169.5160.6963.8662.2831.6338.4335.0357.3762.5448.20
DeiT-Distilled-B/1611.3127.3748.1627.1749.6368.6859.7962.1960.9930.2337.0533.6452.6256.2245.72
+ Spec2^2R11.7228.3950.0629.0853.7772.2960.6062.8561.7331.6738.3635.0154.4459.3546.12
Δ\Delta+0.41+1.02+1.90+1.91+4.14+3.61+0.81+0.66+0.74+1.44+1.31+1.37+1.82+3.13+0.40
DeiT-III-B/167.7719.6037.4619.7638.3657.8354.3055.5154.9127.8434.2531.0521.2122.5414.98
+ Spec2^2R9.2222.9543.3922.4545.9865.2457.0458.6757.8630.8236.6333.7235.6640.3528.63
Δ\Delta+1.45+3.35+5.93+2.69+7.62+7.41+2.74+3.16+2.95+2.98+2.38+2.67+14.45+17.81+13.65
FlexiViT-B/169.2022.2341.2622.3743.8763.5058.0160.1959.1031.2137.3534.2811.1414.799.28
+ Spec2^2R9.6524.1445.1226.1450.5071.1358.0460.2059.1231.8737.5934.7340.9946.7432.36
Δ\Delta+0.45+1.91+3.86+3.77+6.63+7.63+0.03+0.01+0.02+0.66+0.24+0.45+29.85+31.95+23.08

Table 2. Table 2. Evaluation of patch representations across downstream tasks. Semantic correspondence is evaluated using PCK [31] at three thresholds on SPair-71k [15] and PF-PASCAL [9]. Temporal tracking is evaluated on DAVIS [17] and MOSE [6] using J\mathcal{J}, F\mathcal{F}, and their mean. Object discovery is evaluated using TokenCut [29] CorLoc on PASCAL VOC07, VOC12 [8], and COCO20K [14]. Δ\Delta denotes the absolute improvement over the corresponding pretrained model in percentage points.

Temporal Tracking.

Benchmarks. We evaluate temporal tracking on DAVIS [17] and MOSE [6], measuring region similarity (J\mathcal{J}), contour accuracy (F\mathcal{F}), and their mean (J&F\mathcal{J}\&\mathcal{F}). We follow the DINO evaluation protocol for DAVIS, resizing frames of all videos to a shorter side of 480 pixels. Additionally, for MOSE we follow the DINOv3 setup, using a randomly selected 20% subset (301 videos) of the fully annotated training split. The IDs of the selected videos are provided in the Appendix § 14 for reproducibility.

Results. As shown in Table 2, Spec2^2R improves temporal tracking performance across both datasets for all three supervised models. DeiT-Distilled achieves performance close to DINO, with J&F\mathcal{J}\&\mathcal{F} improving by 0.74 points on DAVIS and 1.37 points on MOSE. On MOSE, DeiT-Distilled surpasses DINO in region similarity and achieves nearly identical J&F\mathcal{J}\&\mathcal{F} (35.01 vs. 35.03). DeiT-III shows larger gains, improving J&F\mathcal{J}\&\mathcal{F} by 2.95 points on DAVIS and 2.67 points on MOSE, reducing the gap to DINO. FlexiViT starts with relatively strong DAVIS performance and shows only marginal improvements (+0.02 points), while achieving a larger gain of 0.45 points on MOSE.

Object Discovery.

Benchmarks. To assess the ability of patch representations to separate objects from the background, we evaluate unsupervised object discovery using TokenCut [29] on PASCAL VOC07, VOC12 [8], and COCO20K [14]. We report Correct Localization (CorLoc), measuring the percentage of images in which the predicted object bounding box overlaps the ground-truth box with an IoU of at least 0.5.

Results. As shown in Table 2, Spec2^{2}R improves object discovery performance across all three datasets and supervised models. The largest gains are observed for FlexiViT, with CorLoc increasing by 29.85, 31.95, and 23.08 points on VOC07, VOC12, and COCO20K. DeiT-III also shows substantial improvements of 14.45, 17.81, and 13.65 points across the same datasets. DeiT-Distilled achieves smaller but consistent gains of 1.82, 3.13, and 0.40 points, reaching the closest performance to DINO. Although none of the supervised models surpass DINO, these results demonstrate significant improvements in object discovery, particularly for models with initially weak patch representations.

Classification and Adversarial Robustness

Classification Performance. To assess whether improvements in patch representations come at the cost of classification performance, we evaluate ImageNet-1K [21] accuracy. As shown in Figure 7, Spec2^{2}R largely preserves classification performance across all three supervised models. Top-1 accuracy decreases by only 0.4, 0.1, and 0.3 percentage points for DeiT-III, DeiT-Distilled, and FlexiViT. These results show that improvements in patch representation quality can be achieved with minimal impact on the original classification task. For detailed top-1 and top-5 accuracy results see Appendix § 12.

Classification accuracy preservation and adversarial robustness improvements with Spec2R

Figure 7. Classification accuracy preservation and adversarial robustness improvements with Spec2^{2}R. ImageNet-1K [21] validation top-1 accuracy (left) and robust accuracy under APGD-CE adversarial attacks [4] (right), before and after Spec2^{2}R fine-tuning. Spec2^{2}R preserves classification accuracy within approximately 0.4 percentage points while improving robust accuracy by 9.5 to 23.7 percentage points, with the largest gain observed for DeiT-III [25].

Adversarial Robustness. We evaluate adversarial robustness using APGD-CE [4] under an ℓ∞\ell_\infty perturbation budget ϵ\epsilon ranging from 0.1/255 to 1.0/255. As shown in Figure 7, Spec2^{2}R consistently improves adversarial robustness across all three supervised models, with maximum gains of 23.7, 11.0, and 9.5 percentage points for DeiT-III, DeiT-Distilled, and FlexiViT. These gains are also reflected in higher AUC scores for all three models, reported in the Appendix § 12. Together, these results show that Spec2^{2}R improves adversarial robustness while maintaining competitive classification accuracy on clean images.

Conclusions

We investigated why supervised ViTs lack the object-aligned structure of self-supervised models. Our spectral analysis shows that, while DINO progressively shifts its representations toward lower spatial frequencies, supervised ViTs accumulate high-frequency variations introduced by their MLP branches. Building on this finding, we introduce Spec2^{2}R, a regularization which limits this frequency growth. Without modifying a single attention parameter, Spec2^{2}R recovers object-aligned attention, suggesting that emergent properties and improved robustness are not a privilege of self-supervision, but lie hidden in supervised ViTs.

Limitations and Future Work. Spec2^{2}R targets specific spectral properties of pretrained representations and does not address other limitations of supervised ViTs. Future work could apply our spectral analysis beyond supervised ViTs and integrate the regularization directly into training.

LLM Usage Statement

During the preparation of this work, we used OpenAI ChatGPT (GPT-6) as an auxiliary tool to extend related works research, provide editorial assistance, and assist in implementation of experimental setup.

Knowledge Support. ChatGPT was used to broaden the search for related work and complement the authors’ existing knowledge of the field.

Editorial Assistance. ChatGPT was used to improve grammar and organization of the manuscript. The scientific content, analysis, interpretations, solutions, and conclusions were developed by the authors.

Experimental Implementation. ChatGPT was used to accelerate the implementation of experimental setup: data preparation, dataset loaders, and basic evaluation utilities. All generated code was refactored, reviewed and tested by the authors. The core method was human-developed and implemented independently by the authors.

Detailed Formulation of Spec2R

In this section, we complement the spectral analysis description (see § 3) by providing detailed mathematical formulations of its components.

PCA Projection. Following § 3, we construct per-image reference PCA basis BkB_k from the final-block patch representations Xk∈Rt×dX_k \in\mathbb{R}^{t \times d}. For each image, we center XkX_k across patch tokens and estimate its three dominant principal components. For computational efficiency, we use five iterations of orthogonal iteration, followed by a Rayleigh-Ritz rotation to order the components by explained variance. The resulting per-image basis BkB_k is shared across all blocks of the residual stream and treated as constant during backpropagation. For each block ii, we center the patch representations and project them onto the reference basis:

[Xi]Bk=(Xi−1Xˉi)Bk(8)[X_i]_{B_k} = (X_i - \mathbf{1}\bar{X}_i)B_k \tag*{(8)}

where Xˉi∈R1×d\bar{X}_i \in\mathbb{R}^{1 \times d} is the mean patch representation and Bk∈Rd×3B_k \in\mathbb{R}^{d \times3} contains the basis vectors of BkB_k as columns.

Discrete Fourier Spectrum. Before Fourier analysis, each projected component [Xi]b[X_i]_b is reshaped into a spatial grid of size g×gg \times g and extended by reflection padding of width p=6p = 6 to reduce boundary discontinuities. The reflected boundary values are detached from the computational graph, allowing gradients to propagate only through the original spatial grid. For each component b∈Bkb \in B_k, we compute the two-dimensional discrete Fourier amplitude spectrum:

Ab(i)=∣F2D(Pad⁡([Xi]b))∣(9)A_b^{(i)} = \left|\mathcal{F}_{2D}\left(\operatorname{Pad}([X_i]_b)\right)\right| \tag*{(9)}

The zero-frequency (DC) coefficient is excluded from the following spectral aggregation.

Radial and Angular Binning. To obtain discrete approximations of the spectral measures in Equation (2), we partition the Fourier frequency domain into R=12R = 12 radial bins and Θ=18\Theta= 18 angular bins. For frequency coordinates ω=(ωx,ωy)\omega= (\omega_x,\omega_y), we define the normalized radial frequency and orientation as

r(ω)=∥ω∥20.5,θ(ω)=atan2⁡(ωy,ωx) mod π(10)r(\omega) = \frac{\lVert\omega\rVert_2}{\sqrt{0.5}}, \qquad\theta(\omega) = \operatorname{atan2}(\omega_y,\omega_x) \bmod\pi \tag*{(10)}

The radial coordinate lies in [0,1][0,1], while the angular coordinate in [0,π)[0,\pi).

We approximate the accumulated amplitude spectra using the mean Fourier magnitude within each bin:

Φr([Xi]b,r):=1∣Ωr∣∑ω∈ΩrAb(i)(ω)Φθ([Xi]b,θ):=1∣Ωθ∣∑ω∈ΩθAb(i)(ω)(11)\begin{aligned} \Phi_r([X_i]_b,r) &:= \frac{1}{|\Omega_r|}\sum_{\omega\in\Omega_r} A_b^{(i)}(\omega) \\ \Phi_\theta([X_i]_b,\theta) &:= \frac{1}{|\Omega_\theta|}\sum_{\omega\in\Omega_\theta} A_b^{(i)}(\omega) \tag*{(11)} \end{aligned}

where Ωr\Omega_r and Ωθ\Omega_\theta denote the sets of non-DC Fourier frequencies assigned to radial bin rr and angular bin θ\theta. Averaging within each bin compensates for differences in the number of Fourier coefficients assigned to individual frequency intervals.

Additional Spectral Analysis

To complement the spectral analysis results in § 3, Figure 8 presents radial moment trajectories and residual branch contributions for DeiT-III [25], DeiT-Distilled [24], and FlexiViT [2], using DINO [3] as a self-supervised reference. Across all three supervised models, we observe a progressive shift toward higher spatial frequencies, contrasting with the decreasing radial moment observed in DINO. The residual branch-level analysis shows a consistent pattern: attention contributions remain approximately non-positive, whereas MLP branches introduce positive radial moment changes in intermediate transformer blocks. These results extend the observations from DeiT-III in the main paper, showing that MLP-driven radial frequency expansion is a recurring characteristic of supervised ViT representations.

Radial moment dynamics across ViT blocks

Figure 8. Radial moment dynamics across ViT blocks. Top: Radial moment trajectories averaged over 10,000 randomly sampled images from the ImageNet-1K [21] validation set. Middle and bottom: Changes in radial moment induced by MLP and attention residual branches (FimlpF_i^{\mathrm{mlp}} and FiattnF_i^{\mathrm{attn}}). For all considered models, MLP layers increase the radial moment (red region), producing the accumulating spatial variations.

Effect of Angular Preservation

The radial non-expansion loss Lr\mathcal{L}_r is the primary component of Spec2R, responsible for suppressing the introduction of

Spectral Normalization. Finally, we normalize the radial and angular spectra independently by the sum of their bin-averaged amplitudes:

Φ~r([Xi]b,r):=Φr([Xi]b,r)∑j=1RΦr([Xi]b,j)Φ~θ([Xi]b,θ):=Φθ([Xi]b,θ)∑j=1ΘΦθ([Xi]b,j)(12)\begin{aligned} \widetilde{\Phi}_r([X_i]_b,r) &:= \frac{\Phi_r([X_i]_b,r)}{\sum_{j=1}^{R}\Phi_r([X_i]_b,j)} \\ \widetilde{\Phi}_\theta([X_i]_b,\theta) &:= \frac{\Phi_\theta([X_i]_b,\theta)}{\sum_{j=1}^{\Theta}\Phi_\theta([X_i]_b,j)} \tag*{(12)} \end{aligned}

Both spectra are therefore sum-normalized independently for each image, block, and PCA component. These discrete distributions correspond to the normalized spectra Φ~r\widetilde{\Phi}_r and Φ~θ\widetilde{\Phi}_\theta used in Equation (3) and Equation (4). high-frequency spatial components (see § 4). This raises the question of whether the angular preservation loss LθL_\theta provides additional benefits to Spec2^2R regularization. To address this, we investigate its contribution to classification performance, attention alignment, and unsupervised object discovery across different ratios of radial and Kullback–Leibler (KL) contribution weights.

We evaluate three radial loss weights, logarithmically spaced such that λr∈{0.1,1.0,10.0}\lambda_r \in\{0.1, 1.0, 10.0\}, while keeping the KL loss weight λKL\lambda_{KL} fixed at 0.1. For each configuration, we evaluate DeiT-III with and without the angular preservation loss. We measure ImageNet-1K [21] Top-1 accuracy to assess classification performance, Energy Pointing Game (EPG) [27] on ImageNet-1K and foreground IoU on PASCAL VOC [8] to evaluate attention alignment, and TokenCut [29] CorLoc on VOC07 and VOC12 to assess unsupervised object discovery.

Table 3 reports the detailed results, while Figure 9 illustrates the changes introduced by angular preservation across different radial regularization strengths. The improvement in classification accuracy increases with the radial loss weight, from +0.18 to +0.81 percentage points, showing that angular preservation becomes increasingly beneficial for preserving classification performance under stronger radial regularization. In contrast, the gains in TokenCut object discovery are higher at lower radial loss weights, reaching +3.37 and +3.97 percentage points on VOC07 and VOC12, but diminishing to nearly zero at the highest radial contribution weight. Attention alignment also generally benefits from angular preservation, although without a similarly consistent trend. These results suggest that angular preservation complements radial non-expansion by mitigating its impact on classification performance, while additionally improving object discovery.

Figure 9. Effect of angular regularization LθL_\theta on DeiT-III [25] across loss-weight ratios. Performance differences between Spec2^2R with and without the angular loss, evaluated across three ratios of radial to KL regularization (λr/λKL\lambda_r/\lambda_{KL}). Positive values show improvements from angular regularization. We report ImageNet-1K [21] classification accuracy, attention alignment (EPG [27] and VOC foreground IoU [8]), and unsupervised object discovery (TokenCut [29] CorLoc on VOC07 and VOC12 [8]).

Fine-tuning

We fine-tune all models using the Adam [12] optimizer with a batch size of 64 and a two-stage training procedure. In the first stage, we train for 300 steps with a learning rate of 10−510^{-5}, setting the loss weights to λKL=10−4\lambda_{KL}=10^{-4} and λrad=λang=1.0\lambda_{\mathrm{rad}}=\lambda_{\mathrm{ang}}=1.0. In the second stage, we reset the optimizer, reduce the learning rate to 5×10−65 \times10^{-6}, and increase λKL\lambda_{KL} to 0.1, while keeping the radial and angular loss weights unchanged. We continue fine-tuning for approximately 1,000 optimization steps, with the training duration determined empirically by monitoring loss convergence and stopping once the losses plateau. Overall, this fine-tuning procedure requires only a small fraction of the ImageNet-1K [21] training set, making Spec2^{2}R computationally inexpensive compared with full model training.

λr/λKL\lambda_r/\lambda_{KL}LθL_\thetaIN-1K ACC ↑\uparrowIN-1K EPG ↑\uparrowVOC IoU ↑\uparrowTokenCut VOC07 ↑\uparrowTokenCut VOC12 ↑\uparrow
1✗83.5167.8417.0731.6134.58
✓83.6971.7321.0734.8638.55
10✗82.9985.6939.2432.2937.82
✓83.3685.8440.1635.6640.35
100✗70.9380.3940.8117.5421.00
✓71.7481.5242.1217.5821.01

Table 3. Effect of angular regularization LθL_\theta on DeiT-III [25] accuracy, attention alignment and object discovery. We evaluate radial non-expansion LrL_r at different regularization strengths relative to Kullback–Leibler distillation, comparing classification accuracy, attention alignment, and object discovery with and without angular regularization.

Quantitative Results

In this section we provide additional quantitative evaluations of object alignment in attention maps, classification performance preservation, and adversarial robustness, complementing the results presented in § 5.1.

Attention Alignment

Setup. We provide a block-wise analysis of attention alignment for DeiT-III, DeiT-Distilled, and FlexiViT, comparing the reference models with their Spec2^{2}R-regularized versions. We evaluate attention alignment using Energy Pointing Game (EPG) on ImageNet-1K and foreground Intersection over Union (IoU) on PASCAL VOC 2012. For each transformer block, we evaluate individual attention heads and report the highest score and its corresponding head index. Detailed results are presented in Table 6 and Table 7, while Figure 10 and Figure 11 illustrate the block-wise trends.

Figure 10. Best-head EPG [27] across transformer blocks on ImageNet-1K. Block-wise Energy Pointing Game (EPG) scores for DeiT-III [25], DeiT-Distilled [24], and FlexiViT [2], comparing reference models (Original) with their Spec2R\mathrm{Spec}^{2}\mathrm{R}-regularized versions. For each block, we plot the highest EPG score across all attention heads. Spec2R\mathrm{Spec}^{2}\mathrm{R} improves attention alignment mostly in deeper blocks, mitigating the decline observed in reference models and shifting the highest EPG scores toward later blocks.

Figure 11. Best-head foreground IoU across transformer blocks on PASCAL VOC 2012 [8]. Block-wise foreground Intersection over Union (IoU) scores for DeiT-III [25], DeiT-Distilled [24], and FlexiViT [2], comparing reference models (Original) with their Spec2R\mathrm{Spec}^{2}\mathrm{R}-regularized versions. For each block, we plot the highest foreground IoU score across all attention heads. Spec2R\mathrm{Spec}^{2}\mathrm{R} improves foreground alignment in deeper blocks, mitigating the decline observed in reference models. Unlike EPG (see Figure 10), the best-performing block index remains unchanged across all three architectures.

Best-head EPG [27] on ImageNet-1K [21]. We evaluate Energy Pointing Game (EPG) independently for each attention head and report the highest score and corresponding head index for every transformer block. Results are shown for the reference baseline models and Spec2R-regularized models, with Δ\Delta as the difference in EPG percentage points. The highest score for each configuration is highlighted in bold.

Block IndexReference Head IndexReference EPG ↑\uparrowSpec2^{2}R Head IndexSpec2^{2}R EPG ↑\uparrowΔ\Delta EPG
1861.29861.29+0.00
2965.43965.43+0.00
3569.68569.68+0.00
41269.261267.69-1.57
5465.67465.30-0.37
6966.33967.48+1.15
7668.66670.74+2.08
8373.96376.13+2.17
91078.191081.22+3.03
10472.16380.42+8.26
11871.91480.93+9.02
12366.09385.84+19.75
DeiT-III
11166.421166.42+0.00
2767.40767.40+0.00
3867.06867.06+0.00
4666.81666.65-0.16
5166.93166.97+0.04
6269.02269.95+0.93
7572.87573.61+0.74
8573.68575.21+1.53
91176.891179.27+2.38
101175.931181.48+5.55
11868.14178.98+10.84
12964.15879.43+15.28
FlexiViT
11164.991164.99+0.00
2465.96465.96+0.00
3567.34567.34+0.00
4865.35864.82-0.53
5363.65363.02-0.63
6264.35265.13+0.78
7867.46869.03+1.57
8470.77472.91+2.14
91273.041275.10+2.06
10573.79576.57+2.78
11670.85577.45+6.60
12765.43774.78+9.35

Table 6.

Best-head foreground IoU on VOC2012 [8]. We evaluate foreground Intersection over Union (IoU) independently for each attention head and report the highest score and corresponding head index for every transformer block. Results are shown for the reference baseline models and Spec2R-regularized models, with Δ\Delta as the difference in IoU percentage points. The highest score for each configuration is highlighted in bold.

Block IndexReference Head IndexReference IoU ↑\uparrowSpec2^{2}R Head IndexSpec2^{2}R IoU ↑\uparrowΔ\Delta IoU
1722.50722.50+0.00
21130.781130.78+0.00
31232.591232.59+0.00
41133.321131.03-2.29
5434.75434.41-0.34
6333.801134.69+0.89
7336.61339.27+2.66
8943.84946.11+2.27
9536.98539.66+2.68
10428.83834.47+5.64
11823.93337.07+13.14
121117.041140.16+23.12
DeiT-Distilled
1127.72127.72+0.00
21225.651225.65+0.00
3233.48233.48+0.00
41134.551134.06-0.49
5335.08335.00-0.08
6335.71336.63+0.92
7431.02432.48+1.46
8532.30532.48+0.18
91128.05427.88-0.17
10827.031227.33+0.30
11818.57726.61+8.04
12714.651233.26+18.61
FlexiViT
1223.34223.34+0.00
21228.971228.97+0.00
3834.42834.42+0.00
4230.04229.71-0.33
5629.34628.18-1.16
6730.95632.98+2.03
71234.28237.74+3.46
81141.101142.93+1.83
91237.761239.27+1.51
10536.79638.85+2.06
11827.01336.49+9.48
12521.72537.60+15.88

Table 7.

Results. Across all three architectures, Spec2^{2}R improves attention alignment in deeper transformer blocks. In the reference models, both EPG and foreground IoU peak at intermediate or late blocks before declining toward the final block. Spec2^{2}R mitigates this decline, producing highest improvements in final-block attention alignment. For DeiT-III, DeiT-Distilled, and FlexiViT, final-block EPG increases by +19.75, +15.28, and +9.35 percentage points. Spec2^{2}R also shifts the block achieving the highest EPG toward deeper layers, from block 9 to 12 for DeiT-III, from block 9 to 10 for DeiT-Distilled, and from block 10 to 11 for FlexiViT. This suggests that regularization not only improves attention alignment but also allows object-aligned attention to persist further into the network. For foreground IoU, final-block results improve by +23.12, +18.61, and +15.88 percentage points for DeiT-III, DeiT-Distilled, and FlexiViT, also mitigating the decline observed in the reference models. However, unlike EPG, the best-performing block remains unchanged across all three architectures (block 8 for DeiT-III and FlexiViT, and block 6 for DeiT-Distilled).

Performance Preservation

Table 4 presents Top-1 and Top-5 classification accuracies on ImageNet-1K for DeiT-III, DeiT-Distilled and FlexiViT, before and after Spec2^{2}R. Spec2^{2}R preserves classification performance across all three architectures, with Top-1 accuracy decreasing by at most -0.43 percentage points and Top-5 accuracy by at most -0.11 percentage points. These results show that our finetuning largely preserves the classification performance of the original models.

ModelTop-1 ↑\uparrowTop-5 ↑\uparrow
DeiT-III-B/1683.7996.59
+ Spec2^{2}R83.3696.48
DeiT-B/16 Distilled83.3996.49
+ Spec2^{2}R83.2796.47
FlexiViT-B/1684.3896.86
+ Spec2^{2}R84.1396.75

Table 4. Classification performance preservation on ImageNet-1K [21]. Top-1 and Top-5 classification accuracy of DeiT-III [25], DeiT-Distilled [24], and FlexiViT [2] before and after Spec2^{2}R regularization. The highest score for each architecture is highlighted in bold, while the best overall results are additionally underlined.

Adversarial Robustness

Table 5 provides detailed APGD-CE adversarial robustness [4] results on ImageNet-1K across perturbation budgets ϵ\epsilon ranging from 0.1/255 to 1.0/255, complementing the trends shown in Figure 7. Spec2R\mathrm{Spec}^{2}\mathrm{R} improves adversarial accuracy across all evaluated nonzero perturbation budgets, with the largest gains of +23.7, +11.0, and +9.5 percentage points for DeiT-III, DeiT-Distilled, and FlexiViT. To summarize robustness across the full perturbation range, we compute the area under the robust accuracy curve (AUC) using trapezoidal integration. Spec2R\mathrm{Spec}^{2}\mathrm{R} increases AUC by +10.40, +5.97, and +4.47 percentage points, showing that the improvements extend beyond individual perturbation budgets. These results show that Spec2R\mathrm{Spec}^{2}\mathrm{R} consistently improves adversarial robustness under APGD-CE attack.

Model0.00.10.20.30.40.50.60.70.80.91.0AUC ↑\uparrow
DeiT-III
Original83.7967.137.917.88.44.11.71.10.70.20.118.09
+ Spec2^{2}R83.3675.259.941.529.516.110.86.54.12.41.828.54
Δ\Delta-0.43+8.1+22.0+23.7+17.5+12.0+9.1+5.4+3.4+2.2+1.7+10.4
DeiT-Distilled
Original83.3973.156.241.026.918.912.07.95.23.71.928.75
+ Spec2^{2}R83.2775.464.550.837.927.319.312.69.46.23.734.73
Δ\Delta-0.12+2.7+8.3+9.8+11.0+8.4+7.3+4.7+4.2+2.5+1.8+5.97
FlexiViT
Original84.3871.750.829.216.17.84.72.00.70.30.122.55
+ Spec2^{2}R84.1374.857.838.723.914.38.65.33.01.21.127.02
Δ\Delta-0.25+3.1+7.0+9.5+7.8+6.5+3.9+3.3+2.3+0.9+1.0+4.47

Table 5. Adversarial robustness under APGD-CE [4] on ImageNet-1K [21]. Classification accuracy across increasing attack perturbation budget for DeiT-III [25], DeiT-Distilled [24], and FlexiViT [2], before (Original) and after Spec2^{2}R regularization. Δ\Delta denotes the difference in percentage points. AUC is computed using trapezoidal integration over the evaluated attack perturbation budget ϵ\epsilon.

Qualitative Results

We present additional qualitative comparisons of object alignment in CLS-token attention maps (Figure 12) and the spatial structure of patch representations (Figure 13). We compare: DeiT-III, DeiT-Distilled, and FlexiViT before and after Spec2R\mathrm{Spec}^{2}\mathrm{R} regularization.

Qualitative comparison of final-layer CLS-token attention

Figure 12. Qualitative comparison of final-layer CLS-token attention. CLS-token attention maps averaged across heads on ImageNet-1K [21] images for six ViT-B16 variants: Spec⁡2R[DeiT-III⁡]\operatorname{Spec}^{2R}[\operatorname{DeiT\text{-}III}], Spec⁡2R[DeiT-Distilled⁡]\operatorname{Spec}^{2R}[\operatorname{DeiT\text{-}Distilled}], Spec⁡2R[FlexiViT⁡]\operatorname{Spec}^{2R}[\operatorname{FlexiViT}], DeiT-III [25], DeiT-Distilled [24], FlexiViT [2]. Despite keeping attention parameters frozen, Spec⁡2R\operatorname{Spec}^{2R} largely improves object-alignment of attention maps for all baseline models.

Qualitative comparison of final-layer patch representations

Figure 13. Qualitative comparison of final-layer patch representations. RGB visualizations of the top three principal components of patch tokens on ImageNet-1K [21] images for six ViT-B16 variants: Spec2R\mathrm{Spec}^{2}\mathrm{R}[DeiT-III], Spec2R\mathrm{Spec}^{2}\mathrm{R}[DeiT-Distilled], Spec2R\mathrm{Spec}^{2}\mathrm{R}[FlexiViT], DeiT-III [25], DeiT-Distilled [24], FlexiViT [2]. Spec2R\mathrm{Spec}^{2}\mathrm{R} removes high-frequency artifacts and improves object alignment of patch representations for all baseline models.

Attention alignment. For attention visualization, we average the final-block CLS-token attention maps across all heads. For all considered models, Spec2R\mathrm{Spec}^{2}\mathrm{R} improves the object alignment of CLS-token attention maps, extending the DeiT-III results presented in Figure 6. This observation is consistent with numerical improvements from Table 6 and 7, as well as trends plotted in Figure 10 and 11.

Patch representations. For patch representations, we perform per-image PCA on the final-block patch tokens and map the projections onto the three dominant principal components to RGB channels. Similarly to attention results, for all models, regularized patch representations show removed high-frequency artifacts and more object-aligned structures, consistent with the DeiT-III observations in Figure 5.

Additionals

MOSE evaluation subset. For temporal tracking evaluation on MOSE [6], we randomly select 301 videos (20%) from the fully annotated MOSE training split, matching the subset size used in DINOv3 [23]. To ensure reproducibility, we sort all video identifiers, shuffle them using Python’s random.Random with seed 42, and select the first 301 videos. The same subset is used for all evaluated models. We provide the selected video identifiers in Table 8 for reproducibility.

MOSE Evaluation Split (301 randomly selected video IDs)
0165667b01e3cec8028f6f6402deca5003e0f9b8056e478605ed10230644075b06772c9a0770ad0308a5c6620ab68ba2
0be33bc10d1fe0090e05fabe0f3b1fcb100edaef103b3ca81106f3a7110da3cf111bb373115da18412099d591251a1c9
1291276c14655f5415654ee115a7f60215c41c4b15e7e4d116130bd31b6472c11b7eada81dbca5cc1eac1aff1f220f98
1f8054161fc0e6a81feae28e203733e722e8b38023454d8023b9a3ea277ad8832861dd5329ff29f62f9e704c305731ed
30e41f1e31caacec327cd258330ac20d342c0b2a34a5f96437af9ac138030c69385687583a407bd93a6e6ace3a739934
3afd02d73ba936413d9a70233e5ad0203f0037463f313a2f405e3ee74190c83a423a50e643030c4c43199a9843c04ad2
43dc67f7440d5072442ffb5446705bb346a502de4795259b484d48a348e2afc54c56bbea4ca87c144e2b4dc74ed71139
4fa342f54fa6d325526195de529c688953dc7db454b9dbba54eda06d55ae6921578f71da57ad022e57d476405825f0e0
58264713592b4dee5c20c48a5d24e4ea5dcc52385f14e5d25f3e80225f54d077616ad8ec61a2e2466213282262529cd4
631b82bd6487110a6555cdcf65856fa0660e3b706728528d6786602e68954daf6ba9e61f6c7363346ec5da3a6f5144b6
723fd024725d4bfb74f0687c75b26f8877ccb57d780a25de781af18778bf9b51790285e87a0569967a6aa1ef7ade3068
7bdd197d7be911847c78e3517d5125917e704f2e800b5eac800e3c1480d978e9857ddc6e85addee585d694d786571569
86a949e286d5b29b872b76de87e3223087fc565c88cd32f389fe68998d23ddcc8f2e04bc8fa0e5378fdb48e590cb46cb
9113c9d49293b755932ad0a693723f8893e22d4894767cb495215aa195ab2d0f95dce33c962ae0e29698f06e99350a74
999e07cb9c88ae459d0003069d394f1a9d9ae9889e85179ba217538ca218e951a23048fea2df1beea338c8aaa386eaa2
a4287634a4457543a4fc4f17a658e949a6f0d882a6fcde01a84c60e6a8828854a938c6b2a946317aa95f0aeaa96b3010
aa185af5aa911a8eaa92e070aafea009acec8407adb82dc9adf443e1ae043406ae470d2bb0d09e6ab0ffaf3bb1b32ddd
b20e6781b30744dfb33ade7cb3745d91b454fdbcb604f2ddb6148745b898c99eb926e1adb942ce0aba61a719ba9ea03d
bb8639e1bbe97d18bc844942bdc5ccf7bfd28682c047a092c07ab37ec1a40349c205a718c3b350b9c409ca4dc463c7e5
c4c7bc5dc818d30ac9012bf6c9080ed1c9fdf703cac39070cbd bc6c3cbe75caecc41ba05ce733e8acf01df5bcf376cf1
d0d8b874d156b96fd25ff89dd2878895d2aa86c6d2e75e95d2efeb4bd321dde4d3af3c85d48c552dd7066e20d8623d26
da5e4bc5da7080cdda7dee28dba172b1dc2c570ddc8679e0dd3f4a07de2f2a6ae14d1f96e15e4de8e18f1deae1c48bdd
e2160f17e325a6d4e362c16be4a72496e4b6d2a0e4cec154e53611dae5665030e6e48ac8e6f3bf07e89b1501ea65e6b7
eabdf66aeaed776deb4d26e1ed81c485ee91f783eeaaa67eeec4c008f07dd347f0ba8748f22c39cef3ada126f407a414
f494e9faf6786ab5f6bfc699f6de8226f6edee5cf9cda066fa95a6a2faf7d852fbfb6e30fc6086ddfd137178fdb2e432
fe6a535a

Table 8. MOSE [6] evaluation video identifiers. Identifiers of the 301 videos selected from the fully annotated MOSE training split for temporal tracking evaluation. The subset was generated by sorting all video identifiers, shuffling them using Python’s random.Random with seed 42, and selecting the first 301 videos. The same subset is used for all evaluated models.

References

  1. [1]Randall Balestriero and Yann LeCun. Lejepa: Provable and scalable self-supervised learning without the heuristics. arXiv preprint arXiv:2511.08544, 2025. 1arxiv.org/abs/2511.08544
  2. [2]Lucas Beyer, Pavel Izmailov, Alexander Kolesnikov, Mathilde Caron, Simon Kornblith, Xiaohua Zhai, Matthias Minderer, Michael Tschannen, Ibrahim Abdulmohsin, and Filip Pavetic. Flexivit: One model for all patch sizes. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14496–14506. IEEE, 2023. 1, 2, 5, 3, 4, 6arxiv.org/abs/2212.08013
  3. [3]Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In 2021 IEEE/CVF international conference on computer vision (ICCV), pages 9630–9640. IEEE, 2021. 1, 2, 3, 4, 5, 6arxiv.org/abs/2104.14294
  4. [4]Francesco Croce and Matthias Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. In International conference on machine learning, pages 2206–2216. PMLR, 2020. 8, 3arxiv.org/abs/2003.01690
  5. [5]Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. In International conference on learning representations, pages 2632–2652, 2024. 2arxiv.org/abs/2309.16588
  6. [6]Henghui Ding, Chang Liu, Shuting He, Xudong Jiang, Philip HS Torr, and Song Bai. Mose: A new dataset for video object segmentation in complex scenes. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 20167–20177. IEEE, 2023. 1, 7, 4, 8arxiv.org/abs/2302.01872
  7. [7]Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In ICLR, 2021. 1, 2
  8. [8]Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2):303–338, 2010. 6, 7, 8, 2, 4DOI
  9. [9]Bumsum Ham, Minsu Cho, Cordelia Schmid, and Jean Ponce. Proposal flow: Semantic correspondences from object proposals. IEEE transactions on pattern analysis and machine intelligence, 40(7):1711–1725, 2017. 1, 7arxiv.org/abs/1703.07144
  10. [10]Geoffrey Hinton. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2, 2015. 5arxiv.org/abs/1503.02531
  11. [11]Salman Khan, Muzammal Naseer, Munawar Hayat, Syed Waqas Zamir, Fahad Shahbaz Khan, and Mubarak Shah. Transformers in vision: A survey. ACM Computing Surveys (CSUR), 2022. 1DOI
  12. [12]Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 5, 2arxiv.org/abs/1412.6980
  13. [13]Mengcheng Lan, Chaofeng Chen, Yiping Ke, Xinjiang Wang, Litong Feng, and Wayne Zhang. Clearclip: Decomposing clip representations for dense vision-language inference. In European Conference on Computer Vision, pages 143–160. Springer, 2024. 2arxiv.org/abs/2407.12442
  14. [14]Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. 7, 8arxiv.org/abs/1405.0312
  15. [15]Juhong Min, Jongmin Lee, Jean Ponce, and Minsu Cho. Spair-71k: A large-scale benchmark for semantic correspondence. arXiv preprint arXiv:1908.10543, 2019. 1, 7arxiv.org/abs/1908.10543
  16. [16]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023. 1, 2arxiv.org/abs/2304.07193
  17. [17]Jordi Pont-Tuset, Federico Perazzi, Sergi Caelles, Pablo Arbeláez, Alex Sorkine-Hornung, and Luc Van Gool. The 2017 davis challenge on video object segmentation. arXiv preprint arXiv:1704.00675, 2017. 1, 7
  18. [18]Marcin Przewięziolkowski, Randall Balestriero, Wojciech Jasiński, Marek Śmieja, and Bartosz Zieliński. Beyond [cls]: Exploring the true potential of masked image modeling representations. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 23442–23452, 2025. 1
  19. [19]Bill Psomas, Ioannis Kakogeorgiou, Konstantinos Karantzalos, and Yannis Avrithis. Keep it simpool: Who said supervised transformers suffer from attention deficit? In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 5327–5337. IEEE, 2023. 2arxiv.org/abs/2309.06891
  20. [20]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021. 2 puter Vision and Pattern Recognition (CVPR), pages 8344–8353. IEEE, 2022. 2
  21. [21]Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015. 4, 5, 6, 8, 2, 3, 7
  22. [22]Cheng Shi, Yizhou Yu, and Siwei Yang. Vision transformers need more than registers. arXiv preprint arXiv:2602.22394, 2026. 2arxiv.org/abs/2602.22394
  23. [23]Oriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, et al. Dinov3. arXiv preprint arXiv:2508.10104, 2025. 1, 2, 4arxiv.org/abs/2508.10104
  24. [24]Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International conference on machine learning, pages 10347–10357. PMLR, 2021. 1, 2, 5, 3, 4, 6arxiv.org/abs/2012.12877
  25. [25]Hugo Touvron, Matthieu Cord, and Hervé Jégou. Deit iii: Revenge of the vit. In European conference on computer vision, pages 516–533. Springer, 2022. 1, 2, 3, 4, 5, 6, 8arxiv.org/abs/2204.07118
  26. [26]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. 1
  27. [27]Haofan Wang, Zifan Wang, Mengnan Du, Fan Yang, Zijian Zhang, Sirui Ding, Piotr Mardziel, and Xia Hu. Score-cam: Score-weighted visual explanations for convolutional neural networks. In 2020 IEEE/CVF conference on computer vision and pattern recognition workshops (CVPRW), pages 111–119. IEEE, 2020. 6, 2, 4, 7arxiv.org/abs/1910.01279
  28. [28]Peihao Wang, Wenqing Zheng, Tianlong Chen, and Zhangyang Wang. Anti-oversmoothing in deep vision transformers via the fourier domain analysis: From theory to practice. arXiv preprint arXiv:2203.05962, 2022. 2arxiv.org/abs/2203.05962
  29. [29]Yangtao Wang, Xi Shen, Shell Xu Hu, Yuan Yuan, James L Crowley, and Dominique Vaufreydaz. Self-supervised transformers for unsupervised object discovery using normalized cut. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14523–14533. IEEE, 2022. 1, 7, 8, 2arxiv.org/abs/2202.11539
  30. [30]Jiawei Yang, Katie Z Luo, Jiefeng Li, Congyue Deng, Leonidas Guibas, Dilip Krishnan, Kilian Q Weinberger, Yonglong Tian, and Yue Wang. Denoising vision transformers. In European Conference on Computer Vision, pages 453–469. Springer, 2024. 2arxiv.org/abs/2401.02957
  31. [31]Yi Yang and Deva Ramanan. Articulated human detection with flexible mixtures of parts. IEEE transactions on pattern analysis and machine intelligence, 35(12):2878–2890, 2012. 7DOI
  32. [32]Sukmin Yun, Hankook Lee, Jaehyung Kim, and Jinwoo Shin. Patch-level representation learning for self-supervised vision transformers. In 2022 IEEE/CVF Conference on Com-arxiv.org/abs/2206.07990

Paper details

vlnc:W_3u5axftr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

OpenAI ChatGPT (GPT-6)

View statement
Looking for related papers…
Contents