Spec²R: Fixing Supervised Vision Transformers Through Spectral Surgery
This presentation explains how supervised Vision Transformers lose object-aligned structure during training due to high-frequency noise introduced by MLP layers, and introduces Spec²R, a lightweight post-training method that recovers object localization properties by constraining spatial frequency expansion while preserving classification accuracy and dramatically improving robustness.Script
Supervised Vision Transformers match self-supervised models like DINO on image classification, yet they fail at a hidden task: their internal representations don't align with object boundaries. The culprit? High-frequency noise accumulating through the residual stream, block after block.
The authors traced this degradation to a specific mechanism. When they decomposed each transformer block into attention and MLP branches, they found attention preserves or reduces spatial frequencies. The MLP branches in supervised models do the opposite, systematically injecting high-frequency variations that destroy object-level structure, particularly in blocks 5 through 8.
Spec squared R operationalizes this insight as three coupled objectives. It penalizes only increases in radial spatial frequency, forcing representations toward lower frequencies. It preserves the angular orientation structure so the correction doesn't scramble existing feature geometry. And it uses KL distillation to keep the classification head aligned with the original model.
The results are dramatic. Final-block attention alignment jumps 19.75 percentage points on ImageNet and over 23 points on PASCAL VOC foreground intersection over union. Here's the remarkable part: the method never touches the attention weights. It fine-tunes only MLP layers, yet the fixed attention operators now receive representations that make them behave like DINO's object-aligned attention, exceeding DINO's scores on both metrics.
The downstream effects cascade across tasks. Semantic correspondence improves by up to 7.6 points, object discovery gains reach 31.9 CorLoc points on VOC12, and adversarial robustness jumps 23.7 percentage points under moderate perturbations. All of this happens with just 0.43 points of clean accuracy loss and 1,300 optimization steps, a fraction of a single ImageNet epoch.
Spec squared R demonstrates that object-aligned structure isn't exclusive to self-supervised learning. It's recoverable through targeted spectral surgery on MLPs alone. To explore how this frequency-based correction reshapes what supervised transformers can see, visit EmergentMind.com and create your own video explaining the research that matters to you.