Introduction
In the current computer vision landscape, pre-trained models are often highly specialized. While models like DINO excel at transfer learning and novel class recognition, others like DeiT-III are optimized for ImageNet accuracy, and masked modeling approaches like iBOT dominate patch-level tasks such as semantic segmentation. This specialization forces practitioners to either choose a single model that compromises on certain tasks or maintain a complex ensemble.
UNIC (UNIversal Classification) addresses this challenge by distilling the diverse "superpowers" of multiple complementary teachers into a single, standard Vision Transformer (ViT) encoder. The goal is to create a "jack of all trades" that is also a master of many, matching or exceeding the performance of its best teachers across ImageNet, transfer learning, and dense prediction tasks without requiring task-specific parameters.
Methodology
Distilling from multiple teachers is inherently difficult because they often possess conflicting feature statistics and learning dynamics. UNIC introduces three key technical innovations to harmonize these signals:
- Feature Standardization: To handle the varying scales and distributions of features from different teachers (e.g., supervised vs. self-supervised), UNIC standardizes features on-the-fly using an exponential moving average. This ensures the student can learn from all teachers equitably.
- Ladder of Projectors: Rather than focusing solely on the final layer, UNIC attaches "expendable" projector heads to the student's intermediate layers. These act as information highways, allowing signals from earlier layers to contribute directly to the distillation loss. These projectors are discarded after training, leaving a standard, efficient ViT encoder.
- Teacher Dropping: To prevent the student from being dominated by the "easiest" teacher, this regularization technique occasionally "drops" (zeros out) the loss from teachers the student is already approximating well. The system always retains the teacher with the highest loss (the hardest for the student) and randomly drops others based on a probability $p$.
Experimental Results
UNIC was evaluated against a massive battery of benchmarks, including ImageNet-1K, 15 transfer learning datasets (concept generalization, fine-grained, and long-tail), and dense prediction tasks like ADE-20K (segmentation) and NYUd (depth estimation).
Performance Envelope
UNIC achieves a "best of all worlds" result using a standard ViT-Base architecture. It reached 83.2% top-1 accuracy on ImageNet-1K, nearly matching the highly optimized DeiT-III teacher (83.6%) while significantly outperforming SSL teachers like DINO (77.7%).
As shown in the spider plot above, UNIC consistently sits at the outer edge of the performance envelope across all axes. Key highlights include:
- Dense Tasks: A +8.2% relative gain in semantic segmentation (mIoU) and +2.4% in depth estimation over the best individual teachers.
- Fine-Grained Classification: A massive +9.2% relative gain on average across eight fine-grained datasets.
- Robustness: Maintained high performance under domain shift (ImageNet-v2, ImageNet-R, and ImageNet-Sketch).
Conclusion
UNIC demonstrates that multi-teacher distillation, when combined with proper feature standardization and intermediate layer supervision, can produce a single encoder that inherits the strengths of specialized models. By utilizing its feature space more effectively and reducing redundancy, UNIC offers a universal backbone that simplifies the deployment of high-performance vision models across a wide array of downstream applications.
Summary updated