Abstract
Vision Foundation Models (VFMs) pretrained on massive datasets exhibit impressive performance on various downstream tasks, especially with limited labeled target data. However, due to their high inference compute cost, these models cannot be deployed for many real-world applications. Motivated by this, we ask the following important question, "How can we leverage the knowledge from a large VFM to train a small task-specific model for a new target task with limited labeled training data?", and propose a simple task-oriented knowledge transfer approach as a highly effective solution to this problem. Our experimental results on five target tasks show that the proposed approach outperforms task-agnostic VFM distillation, web-scale CLIP pretraining, supervised ImageNet pretraining, and self-supervised DINO pretraining by up to 11.6%, 22.1%, 13.7%, and 29.8%, respectively. Furthermore, the proposed approach also demonstrates up to 9x, 4x and 15x reduction in pretraining compute cost when compared to task-agnostic VFM distillation, ImageNet pretraining and DINO pretraining, respectively, while outperforming them. We also show that the dataset used for transferring knowledge has a significant effect on the final target task performance, and introduce a retrieval-augmented knowledge transfer strategy that uses web-scale image retrieval to curate effective transfer sets.
Introduction
Vision Foundation Models (VFMs) like DINOv2 and CLIP have revolutionized computer vision by providing robust representations learned from massive datasets. However, their high computational requirements during inference make them impractical for real-time deployment on edge devices or mobile platforms. While smaller, efficient architectures like FastViT and MobileViT exist, they typically require vast amounts of labeled data to achieve high accuracy—a luxury often unavailable in specialized domains like medical imaging or industrial automation.
This paper addresses a critical challenge: effectively transferring the immense knowledge of a large VFM into a compact, task-specific model when only a handful of labeled examples are available for the target task.
Methods: Task-Oriented Knowledge Transfer
The authors propose a three-stage Task-oriented Knowledge Transfer pipeline designed to maximize the utility of limited labeled data:
- Adapt the Teacher: A large, frozen VFM (e.g., DINOv2-ViT-L/14) is adapted to the target task by training a task head on the small labeled dataset, creating a "task-specialized" teacher.
- Task-Oriented Distillation: This specialized teacher generates pseudo-labels for a large, unlabeled "transfer set." A small student model (e.g., FastViT-S12) is then trained to match these predictions using KL divergence, allowing it to learn task boundaries across a diverse range of images.
- Final Finetuning: The student model undergoes a final finetuning stage on the original small labeled dataset.
Retrieval-Augmented Transfer Set Curation
A key innovation is the Retrieval-Augmented Knowledge Transfer strategy. Instead of using generic unlabeled data, the authors treat the small labeled dataset as a "query set" to retrieve the most relevant images from a web-scale gallery (like DataComp-1B). This ensures the transfer set is highly relevant to the specific task, such as finding satellite imagery for land-cover classification.
Key Results and Insights
The proposed approach was evaluated across five diverse tasks: HAM10K (medical), EuroSAT (satellite), Places365 (scenes), ImageNet-1K (objects), and ADE20K (segmentation).
- Superior Accuracy: The method consistently outperformed standard baselines, showing gains of up to 11.6% over task-agnostic distillation and 29.8% over self-supervised DINO pretraining.
- Compute Efficiency: By leveraging the pre-existing knowledge of VFMs, the approach reduced pretraining compute costs by 9x to 15x compared to training from scratch or using standard distillation methods.
- Data Efficiency: On the EuroSAT task, using retrieval-augmented data with only 10 labels per class allowed the small model to achieve performance comparable to models trained on much larger labeled datasets.
Conclusion
This research demonstrates that "task-oriented" knowledge transfer is a highly effective paradigm for training efficient models in data-scarce environments. By specializing the teacher model and curating relevant transfer data through web-scale retrieval, high-performance small models can be developed with minimal labeled data and computational overhead. Future work may explore further domain adaptation of the VFM and refining retrieval strategies for extremely niche industrial or scientific domains.
Summary updated