UNIC: Universal Classification Models via Multi-teacher Distillation
Mert Bulent Sariyildiz, Philippe Weinzaepfel, Thomas Lucas, Diane Larlus, Yannis Kalantidis
TL;DR
UNIC shows that a single ViT encoder can generalize across ImageNet, transfer, and patch-based tasks by distilling from multiple complementary teachers. The approach hinges on a ladder of expendable projectors and a teacher dropping regularization scheme to balance diverse teacher signals, producing encoders that match or exceed the best teacher across tasks. Empirical results on image- and patch-level tasks, including dense predictions like segmentation and depth, demonstrate strong generalization and efficient weight/feature-space utilization. This work advances universal representation learning by enabling task-agnostic, plug-and-play classification encoders without task-specific adapters, with broader implications for robust, general-purpose visual representations.
Abstract
Pretrained models have become a commodity and offer strong results on a broad range of tasks. In this work, we focus on classification and seek to learn a unique encoder able to take from several complementary pretrained models. We aim at even stronger generalization across a variety of classification tasks. We propose to learn such an encoder via multi-teacher distillation. We first thoroughly analyse standard distillation when driven by multiple strong teachers with complementary strengths. Guided by this analysis, we gradually propose improvements to the basic distillation setup. Among those, we enrich the architecture of the encoder with a ladder of expendable projectors, which increases the impact of intermediate features during distillation, and we introduce teacher dropping, a regularization mechanism that better balances the teachers' influence. Our final distillation strategy leads to student models of the same capacity as any of the teachers, while retaining or improving upon the performance of the best teacher for each task. Project page and code: https://europe.naverlabs.com/unic
