Manuscript Offprint

arXiv:2610.12574

Scaling Multi-Teacher Distillation for Digital Pathology

Sofiène Boutaj, Pierre Marza, Varun Belagali, Dimitris Samaras, Maria Vakalopoulou, Stergios Christodoulidis

Abstract

Multi-teacher distillation allows transferring knowledge from multiple “teacher” networks to a single “student” network. This method is promising in fields such as digital pathology, where many powerful foundation models were proposed recently. However, as we show in this paper, the standard multi-teacher distillation approach reacts poorly to an increase in the number of teachers used to train a student encoder. We demonstrate that learning teacher-specific representations is a key to scaling in MTD. Importantly, different design choices, such as learnable teacher tokens, a tailored attention scheme, additional mixture-of-experts layers and a contrastive loss, are proposed to better learn such teacher-specific representations. We show that our method better scales with respect to the number of considered teachers, allowing us to train compact student encoders, up to 10×10\times more efficient than larger teacher foundation models, while matching their performance and even outperforming them on a large set of tile-level and slide-level tasks. We conduct a thorough empirical validation, evaluating more than 10 foundation models on 39 tasks spanning tile and slide levels. As a result, we release a new collection of strong and efficient foundation models, named OMNI, trained from the knowledge of 10 state-of-the-art foundation models. We finally conduct an analysis of the learned teacher-specific representations, highlighting their complementarity and explaining why they can be easily aggregated at downstream time.

1 Introduction

Knowledge distillation [24] has been extensively studied over the last few decades, yet the main goal has stayed the same throughout it: transferring knowledge from a large model, typically referred to as the teacher, to a smaller one, the student. Such knowledge distillation can either be related to a specific downstream task (supervised [24]) or focus on matching a representation distribution (self-supervised [16]). An extension of this line of research is Multi-Teacher Distillation (MTD), where the objective is to distill knowledge from a set of diverse teachers [54, 53, 60, 58, 57] by fusing different representations into a powerful common latent space.

∗^{*}denotes equal contribution.

Corresponding authors: sofiene.boutaj@centralesupelec.fr, pierre.marza@centralesupelec.fr

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

a OMNI vs Vanilla MTD

Figure

b Scaling Dynamics

Figure

C Performance vs Cost

Figure

Figure 1: OMNI. We propose a new method to scale Multi-Teacher Distillation (MTD) to more teachers. (a) Unlike vanilla MTD, we learn to extract teacher-specific representations. (b) Downstream performance (tile-level linear probing averaged across 13 tasks) better scales when increasing the diversity of teachers for our method. For a fair evaluation, we rank teachers by their individual performance on the THUNDER benchmark and add them from strongest to weakest. (c) Overall we provide a collection of light vision encoder (7 – 330M parameters) models that are competitive with and even outperform all state-of-the-art larger teacher foundation models. In particular, we report here the average of the tile-level and slide-level linear probing performances (see Table 1 for more details) as a function of GFLOPs. Circle sizes indicate the number of parameters of each model.

Importantly, while recent work [53, 60, 58, 57] has improved upon the original methods [54], a central question has not yet been addressed in the MTD literature: What are the scaling dynamics of MTD with respect to the number of considered teachers? Indeed, most previous work only leverages a few teachers, often 3 or rarely 5 of them, and does not explore the benefits of adding more teachers.

Such a gap in the literature is mainly visible now that the diversity of existing foundation models has dramatically increased in the past few years. A typical example of this is digital pathology where, similarly to other medical imaging sub-fields, many pre-trained vision encoders were released recently [12, 69, 80, 55, 18, 19, 46, 32, 66, 70, 74, 41, 13, 78, 26, 25, 73, 59]. MTD is particularly appealing in this context and, despite some recent works exploring its application to digital pathology [42, 22, 36, 6], its scaling remains largely underexplored.

In this study, we thus investigate the scaling laws of MTD, with a specific focus on digital pathology foundation models. We discover, as shown in Figure 1b, that increasing the number of teachers for vanilla MTD (baseline) does not improve downstream performance, and even degrades it. We hypothesize that this drop in performance stems from the difficulty of reconstructing a large set of distinct embedding spaces from a single, usually small, common latent space.

Aiming in solving the scaling problem in MTD, we propose a simple yet powerful method based on teacher-specific representations (Figure 1a). Such a design leads to a better performance scaling with respect to the integration of more foundation models as teachers (Figure 1b). We show that our method is efficient at distilling up to 10 pathology foundation models, some of which are up to 1.1B parameters, into smaller students (7M – 330M parameters) trained on only 10M public TCGA tiles. Moreover, we release a new family of models, named OMNI, that outperform state-of-the-art larger foundation models used as teachers while being parameter-efficient (Figure 1c).

Our contributions can be summarized as follows:

• Learning teacher-specific representations allows scaling in MTD: We show that vanilla MTD does not directly benefit from broadening the pool of teachers, and overcome this limitation by training our student model to extract teacher-specific representations instead of a single global representation.

• A novel methodological framework supporting teacher-specific representation learning: We propose important design choices, such as learnable teacher embeddings, Mixture-of-Expert (MoE) layers, and a specific attention masking to better learn teacher-specific representations.

• A new collection of efficient and powerful pathology foundation models: We introduce OMNI, a collection of lightweight pathology vision encoders with different sizes (OMNI-T, OMNI-S, OMNI-B, OMNI-L), distilled from 10 of the current best state-of-the-art open-sourced foundation models. While being up to 10×10\times more efficient (GFLOPs) compared with concurrent models, they are competitive and even outperform all of them on a diverse set of 39 tile-level and slide-level tasks.

References (66)

  • a visual language model for few-shot learning
  • Mayo Clinic Proceedings: Digital Health, 2024
  • Validation of histopathology foundation models through whole slide image retrieval
  • Grand challenge on breast cancer histology images
  • A slide-level tile contextualizer for histopathology representation learning
  • A dataset for breast carcinoma subtyping in h&e histology images
  • A comprehensive evaluation of histopathology foundation models for ovarian cancer subtype classification
  • Computational textural mapping harmonises sampling variation and reveals multidimensional histopathological fingerprints
  • Nature Communications, 2025
  • Emerging properties in self-supervised vision transformers
  • Nature Medicine, 2024
  • Transformers for image recognition at scale
  • The cptac data portal: a resource for cancer proteomics research
  • Seed: Self-supervised distillation for visual representation
  • Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity
  • Scaling self-supervised learning for histopathology with masked image modeling
  • Phikon-v2, a large and public feature extractor for biomarker prediction
  • Evaluation framework for pathology foundation models
  • Pathryoshka: Compressing pathology foundation models via multi-teacher knowledge distillation with nested embeddings (opens arXiv in a new tab)
  • Evaluating computational pathology foundation models for prostate cancer grading under distribution shifts
  • Distilling the Knowledge in a Neural Network
  • A visual-language foundation model for pathology image analysis using medical twitter
  • Quilt-1m: One million image-text pairs for histopathology
  • Attention-based deep multiple instance learning
  • A dataset for spatial transcriptomics and histology image analysis
  • Visual prompt tuning
  • Mixtral of Experts
  • Benchmarking self-supervised learning on diverse pathology datasets
  • Training state-of-the-art pathology foundation models with orders of magnitude less data
  • 100,000 histological images of human colorectal cancer and healthy tissue
  • An open-source vision-language-action model
  • A benchmark of in-the-wild distribution shifts
  • Advances in Neural Information Processing Systems, 35: 30233–30249, 2022
  • Benchmarking pathology foundation models: Adaptation strategies and scenarios
  • A survey on computational pathology foundation models: Datasets, adaptation strategies, and evaluation tasks
  • Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • P-tuning: Prompt tuning can be comparable to fine-tuning across scales and tasks
  • A comprehensive comparison benchmark for pathology foundation models towards precision oncology
  • How good is my histopathology vision-language foundation model? a holistic benchmark
  • Tile-level histopathology image understanding benchmark
  • Hibou: A family of foundational vision transformers for pathology
  • Spider: a comprehensive multi-organ supervised pathology dataset and baseline models
  • NPJ precision oncology, 2024
  • Representation learning with contrastive predictive coding
  • Phi-s: Distribution balancing for label-free multi-teacher distillation, 2024 (opens arXiv in a new tab)
  • Am-radio: Agglomerative vision foundation model reduce all domains into one
  • H-optimus-0, 2024
  • H-optimus-1, 2025
  • Unic: Universal classification models via multi-teacher distillation
  • Dune: Distilling a universal encoder from heterogeneous 2d and 3d teachers
  • A multi-modal generative foundation model for slide-level histopathology
  • Theia: Distilling diverse vision foundation models for robot learning (opens arXiv in a new tab)
  • Outrageously large neural networks: The sparsely-gated mixture-of-experts layer
  • A dataset for breast cancer histopathological image classification
  • Lxmert: Learning cross-modality encoder representations from transformers
  • The Lancet Digital Health, 2023
  • Attention is all you need
  • Rotation equivariant cnns for digital pathology
  • Nature, 2024
  • A petri dish for histopathology image analysis
  • Benchmarking pathology feature extractors for whole slide image classification
  • Nature, 2025
  • Coca: Contrastive captioners are image-text foundation models
  • Gradient surgery for multi-task learning
  • Accelerating data processing and benchmarking of ai models for pathology
  • Prompt-aligned gradient for prompt tuning