[Paper Review] TVT: Training-Free Vision Transformer Search on Tiny Datasets
TVT proposes a training-free Vision Transformer architecture search framework tailored for knowledge distillation on tiny datasets, leveraging a teacher-aware metric based on attention map similarity and a student-capability metric using L2-normalized weights. It achieves state-of-the-art rank consistency and distillation accuracy by integrating teacher guidance into zero-cost proxy evaluation without any training.
Training-free Vision Transformer (ViT) architecture search is presented to search for a better ViT with zero-cost proxies. While ViTs achieve significant distillation gains from CNN teacher models on small datasets, the current zero-cost proxies in ViTs do not generalize well to the distillation training paradigm according to our experimental observations. In this paper, for the first time, we investigate how to search in a training-free manner with the help of teacher models and devise an effective Training-free ViT (TVT) search framework. Firstly, we observe that the similarity of attention maps between ViT and ConvNet teachers affects distill accuracy notably. Thus, we present a teacher-aware metric conditioned on the feature attention relations between teacher and student. Additionally, TVT employs the L2-Norm of the student's weights as the student-capability metric to improve ranking consistency. Finally, TVT searches for the best ViT for distilling with ConvNet teachers via our teacher-aware metric and student-capability metric, resulting in impressive gains in efficiency and effectiveness. Extensive experiments on various tiny datasets and search spaces show that our TVT outperforms state-of-the-art training-free search methods. The code will be released.
Motivation & Objective
- Address the poor generalization of existing zero-cost proxies in knowledge distillation scenarios for Vision Transformers on small datasets.
- Overcome the limitations of current training-free NAS methods that fail to leverage teacher model information during search.
- Design a zero-cost proxy that incorporates both teacher-student feature alignment and student model capacity to improve search effectiveness.
- Enable efficient, training-free architecture search for ViTs that achieve high distillation accuracy on tiny datasets with minimal computational cost.
Proposed method
- Introduce a novel zero-cost proxy composed of two components: a teacher-aware metric ($\mathcal{M}_t$) and a student-capability metric ($\mathcal{M}_s$).
- $\mathcal{M}_t$ computes the L2 distance between spatial attention maps of the student ViT and the ConvNet teacher to measure feature representation similarity.
- $\mathcal{M}_s$ uses the L2-norm of the student’s model weights to estimate its representational capacity.
- Combine $\mathcal{M}_t$ and $\mathcal{M}_s$ into a composite score using learnable weights $\alpha$ and $\beta$ to balance teacher guidance and student capability.
- Perform architecture search by ranking candidate ViTs based on the composite TVT proxy score using only a single forward pass at initialization.
- Apply locality-guided knowledge distillation with logit activation to fine-tune the searched ViT using the pre-defined ConvNet teacher.
Experimental results
Research questions
- RQ1Why do existing zero-cost proxies fail to generalize well in knowledge distillation scenarios for Vision Transformers on tiny datasets?
- RQ2How can teacher model information be effectively integrated into training-free architecture search to improve distillation performance?
- RQ3What role does student model capacity play in determining distillation accuracy, and how can it be quantified without training?
- RQ4Can a hybrid proxy combining teacher-student attention alignment and student weight magnitude improve rank consistency and search accuracy?
Key findings
- TVT achieves the highest Kendall rank correlation (0.76) on CIFAR-100 and 0.84 on Flowers, significantly outperforming NWOT (0.46 and 0.57) and DSS (0.74 and 0.72).
- On the Chaoyang dataset, TVT achieves 85.83% distillation accuracy, surpassing DSS (85.13%) and NWOT (85.13%), demonstrating superior search effectiveness.
- The ablation study confirms that attention map-based $\mathcal{M}_t$ yields the best performance (Kendall 0.46), outperforming MMD and sample relation methods.
- Optimal hyperparameters $\alpha = 2$, $\beta = -3$ yield the highest rank consistency (Kendall 0.67), showing the importance of balancing teacher and student signals.
- TVT improves distillation accuracy by up to 10% over vanilla ViTs, confirming the effectiveness of knowledge distillation with searched architectures.
- TVT maintains high efficiency by requiring only a single forward pass per candidate, avoiding any training or supernet computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.