Abstract
Recent advancements in foundation models have yielded impressive performance across a wide range of tasks. Meanwhile, for specific applications, practitioners have been developing specialized application models. To enjoy the benefits of both kinds of models, one natural path is to transfer the knowledge in foundation models into specialized application models, which are generally more efficient for serving. Techniques from knowledge distillation may be applied here, where the application model learns to mimic the foundation model. However, specialized application models and foundation models have substantial gaps in capacity, employing distinct architectures, using different input features from different modalities, and being optimized on different distributions. These differences in model characteristics lead to significant challenges for distillation methods. In this work, we propose creating a teaching committee comprising both foundation model teachers and complementary teachers. Complementary teachers possess model characteristics akin to the student's, aiming to bridge the gap between the foundation model and specialized application models for a smoother knowledge transfer. Further, to accommodate the dissimilarity among the teachers in the committee, we introduce DiverseDistill, which allows the student to understand the expertise of each teacher and extract task knowledge. Our evaluations demonstrate that adding complementary teachers enhances student performance. Finally, DiverseDistill consistently outperforms baseline distillation methods, regardless of the teacher choices, resulting in significantly improved student performance.
Introduction
We are currently in the era of Foundation Models (FMs) like GPT-4 or CLIP, which possess incredible general knowledge. However, for many real-world applications—such as recommendation systems on mobile devices—these models are too slow and computationally expensive to deploy. Practitioners instead rely on "Specialized Application Models" (SAMs) that are small and fast.
The logical solution is Knowledge Distillation (KD), where a small student model mimics a giant teacher. However, standard KD often fails when the teacher and student are too dissimilar. FMs and SAMs typically exhibit massive capacity gaps (millions vs. billions of parameters), architectural mismatches (Transformers vs. simple MLPs), and modality differences (e.g., text descriptions vs. categorical User IDs). When this gap is too wide, the student cannot effectively "understand" the teacher's signals.
The DIVERSEDISTILL Framework
To address these challenges, we propose the "Wisdom of Committee" approach. Instead of relying on a single giant teacher, we form a committee of diverse experts to guide the student.
1. Complementary Teachers
We introduce "middle-ground" teachers that share the student's architecture and input types but possess higher capacity. These act as a bridge, translating the FM's high-level wisdom into a language the student can digest.
2. Interactive Distillation
The DIVERSEDISTILL framework facilitates an interactive process between the student and the committee through two primary modules:
- Question Augmenter ($F_Q$): The student generates "questions" (tailored hidden state representations) to query specific expertise from each teacher.
- Answer Augmenter ($F_A$): Teachers respond with "answers" (hidden states) that are mapped back to the student’s dimensionality.
3. Teacher Importance and Regularization
Not every teacher is an expert on every data point. The system dynamically weights teachers based on their relevance to a specific input. Furthermore, a task regularizer ensures that the interactive "conversation" remains grounded in solving the target task, such as predicting a movie rating or classifying an image.
Experimental Evaluation
We evaluated DIVERSEDISTILL across two distinct domains:
- Recommendation Systems: Using the MovieLens dataset, where a T5 (LLM) served as the foundation teacher and larger MLPs served as complementary teachers.
- Computer Vision: Using CIFAR-10, CIFAR-100, and ImageNet. The foundation teacher was CLIP, and the complementary teacher was a large Vision Transformer (ViT).
Key Results and Insights
- The "Stepping Stone" Effect: Adding a smaller, architecture-aligned teacher significantly improves the student's ability to learn from the giant foundation model. This validates the intuition that mastering intermediate concepts is necessary before tackling advanced knowledge.
- Performance Gains: On the MovieLens dataset, DIVERSEDISTILL achieved a 114.18% performance improvement over the best teacher-less baseline. On ImageNet, the framework improved student performance by 90.9%.
- Computational Efficiency: By utilizing the Teacher Importance Score, we can skip expensive teacher passes for certain data points. We achieved a 30% reduction in computation cost with no loss in final student accuracy.
Conclusion
DIVERSEDISTILL demonstrates that a diverse committee of teachers can effectively bridge the capacity and modality gaps between foundation models and specialized application models. By allowing students to interactively query teachers and weighting their expertise dynamically, we achieve superior distillation performance and improved serving efficiency.
Summary updated