Stratified Knowledge-Density Super-Network for Scalable Vision Transformers
Longhua Li, Lei Qi, Xin Geng
TL;DR
This paper tackles the challenge of deploying vision transformers across a wide range of resource constraints by turning a pre-trained ViT into a Stratified Knowledge-Density (SKD) Super-Network. It introduces Weighted PCA for Attention Concentration (WPAC) to concentrate knowledge into a compact set of dimensions while preserving the original network function, and Progressive Importance-Aware Dropout (PIAD) to promote stratified knowledge organization through importance-guided sub-network training. The combination enables cost-free extraction of sub-networks of arbitrary sizes that retain maximal knowledge, achieving strong results against both pruning-based and expansion-based baselines, and offering robust transferability to downstream tasks. This approach provides a scalable, flexible, and efficient pathway for deploying ViTs across diverse hardware regimes with reduced fine-tuning and maintenance costs.
Abstract
Training and deploying multiple vision transformer (ViT) models for different resource constraints is costly and inefficient. To address this, we propose transforming a pre-trained ViT into a stratified knowledge-density super-network, where knowledge is hierarchically organized across weights. This enables flexible extraction of sub-networks that retain maximal knowledge for varying model sizes. We introduce \textbf{W}eighted \textbf{P}CA for \textbf{A}ttention \textbf{C}ontraction (WPAC), which concentrates knowledge into a compact set of critical weights. WPAC applies token-wise weighted principal component analysis to intermediate features and injects the resulting transformation and inverse matrices into adjacent layers, preserving the original network function while enhancing knowledge compactness. To further promote stratified knowledge organization, we propose \textbf{P}rogressive \textbf{I}mportance-\textbf{A}ware \textbf{D}ropout (PIAD). PIAD progressively evaluates the importance of weight groups, updates an importance-aware dropout list, and trains the super-network under this dropout regime to promote knowledge stratification. Experiments demonstrate that WPAC outperforms existing pruning criteria in knowledge concentration, and the combination with PIAD offers a strong alternative to state-of-the-art model compression and model expansion methods.
