mlsanityData to 14 Oct 2026

SpectralKD: A Unified Framework for Interpreting and Distilling Vision Transformers via Spectral Analysis

arXiv 2412.19055 ↗First posted 26 Dec 2024cs.CV cs.LGcited by 1

On the map: Knowledge distillation → General knowledge distillation methods

Abstract (arXiv)

Knowledge Distillation (KD) has achieved widespread success in compressing large Vision Transformers (ViTs), but a unified theoretical framework for both ViTs and KD is still lacking. In this paper, we propose SpectralKD, a novel unified analytical framework that offers deeper insights into ViTs and optimizes KD via spectral analysis. Our model-wise analysis reveals that CaiT concentrates information in their first and last few layers, informing optimal layer selection for KD. Surprisingly, our layer-wise analysis discovers that Swin Transformer and CaiT exhibit similar spectral encoding patterns despite their architectural differences, leading to feature map alignment guideline. Building on these insights, we propose a simple yet effective spectral alignment method for KD. Benefiting from the deeper understanding by above analysis results, even such a simple strategy achieves state-of-the-art performance on ImageNet-1K without introducing any trainable parameters, improving DeiT-Tiny by +5.2% and Swin-Tiny by +1.4% in top-1 accuracy. Furthermore, our post-training analysis reveals that distilled students can reproduce spectral patterns similar to their teachers, opening a new area we term ``distillation dynamics". Code and experimental logs are available in https://github.com/thy960112/SpectralKD.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in General knowledge distillation methods, one of 12 directions in Knowledge distillation. First posted on arXiv 26 Dec 2024.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025From Per-Image Low-Rank to Encoding Mismatch: Rethinking Feature Distillation in Vision Transformers
  2. 2025Distillation Dynamics: Towards Understanding Feature-Based Distillation in Vision Transformers
  3. 2022DearKD: Data-Efficient Early Knowledge Distillation for Vision Transformers
  4. 2022Attention Distillation: self-supervised vision transformer students need more guidance
  5. 2022ViTKD: Practical Guidelines for ViT feature knowledge distillation
  6. 2023Distilling Efficient Vision Transformers from CNNs for Semantic Segmentation
  7. 2024ScaleKD: Strong Vision Transformers Could Be Excellent Teachers
  8. 2024Towards Optimal Trade-offs in Knowledge Distillation for CNNs and Vision Transformers at the Edge