Learning Task-Agnostic Representations through Multi-Teacher Distillation
Philippe Formont, Maxime Darrin, Banafsheh Karimian, Jackie CK Cheung, Eric Granger, Ismail Ben Ayed, Mohammadhadi Shateri, Pablo Piantanida
TL;DR
The paper addresses the challenge of creating broadly useful representations without task-specific distillation. It introduces a task-agnostic multi-teacher distillation framework based on a majority-vote objective and an information-theoretic bound, implemented via a tractable Gaussian-kernel estimator of conditional entropy to maximize mutual information between the student and multiple teachers. The approach yields high-density embeddings that perform well across NLP, molecular, and vision downstream tasks, often outperforming task-specific or single-teacher baselines while offering favorable Pareto efficiency. The work demonstrates practical utility by releasing high-quality embedding models and showing robust generalization across modalities, with potential for cross-modal extensions in future work.
Abstract
Casting complex inputs into tractable representations is a critical step across various fields. Diverse embedding models emerge from differences in architectures, loss functions, input modalities and datasets, each capturing unique aspects of the input. Multi-teacher distillation leverages this diversity to enrich representations but often remains tailored to specific tasks. In this paper, we introduce a task-agnostic framework based on a ``majority vote" objective function. We demonstrate that this function is bounded by the mutual information between student and teachers' embeddings, leading to a task-agnostic distillation loss that eliminates dependence on task-specific labels or prior knowledge. Our evaluations across text, vision models, and molecular modeling show that our method effectively leverages teacher diversity, resulting in representations enabling better performance for a wide range of downstream tasks such as classification, clustering, or regression. Additionally, we train and release state-of-the-art embedding models, enhancing downstream performance in various modalities.
