Features fusion or not: harnessing multiple pathological foundation models using Meta-Encoder for downstream tasks fine-tuning

Ruitian Gao, Zhaochang Yang, Xin Yuan, Lijun Wang, Yujia Xia, Yufei Zhang, B. Zheng, Yuqiao Gong, Yi Yue, Zhangsheng YubioRxiv 2025

TL;DR

This paper introduces Meta-Encoder, a novel framework that fuses features from multiple pre-trained pathological foundation models to improve performance on downstream tasks. Meta-Encoder offers a flexible and effective way to leverage the collective strengths of diverse models, particularly excelling in complex tasks like high-dimensional gene expression prediction.

What Problem Does This Paper Address?

The field of computational pathology has seen a surge in powerful "foundation models" trained on vast amounts of histopathology data. These models are revolutionizing tasks like tumor classification, biomarker prediction, and RNA expression prediction. However, a significant challenge arises from the heterogeneity of these models: they often have different architectures and are trained on diverse datasets. This leads to inconsistent performance across tasks and makes it difficult to select the "best" model for a specific application. Furthermore, data privacy concerns often prevent pooling data for centralized retraining, making it hard to build a single, universally superior model. The paper addresses this by proposing a method to effectively combine the knowledge of existing, independently trained foundation models without requiring access to their original training data.

Methods

The core innovation is the Meta-Encoder framework. Inspired by meta-analysis in statistics, it aims to integrate features from multiple foundation models to create a more comprehensive representation. The framework explores four feature fusion strategies:

  • Concatenation: Features from different models are simply joined together. This is a straightforward baseline.
  • Self-Attention: Features are first concatenated and then passed through a self-attention layer. This allows the model to learn which features are most important and how they relate to each other.
  • Cross-Attention: Features from different models are treated as Key, Query, and Value inputs to an attention mechanism, enabling the capture of higher-order interactions between them.
  • Contrastive-Loss: This strategy aims to learn a unified embedding space where features from the same image (but different models) are pulled closer together, while features from different images are pushed apart.

The Meta-Encoder framework then uses these fused features for downstream fine-tuning on specific tasks.

Datasets

The study utilizes several publicly available datasets:

  • TCGA (The Cancer Genome Atlas): Used for tumor subtyping (BRCA, NSCLC cohorts) and multi-label biomarker prediction (BRCA, CRC cohorts).
  • HE-CRC-100K: A dataset of 9-class classified patches for multi-class classification.
  • HEST-Benchmark: A benchmark for high-dimensional spatial gene expression prediction across eight cancer types.
  • CRC-inhouse and Her2ST: Additional datasets for evaluating spatial gene expression prediction.
  • TCGA-BRCA, TCGA-NSCLC, and TCGA-CRC: Used for high-dimensional bulk gene expression prediction based on WSI-level features.

The paper also mentions the use of publicly available foundation models, including CHIEF, GigaPath, UNI (patch-level), and TITAN, PRISM (WSI-level).

Key Insights and Ideas

  • Leveraging Diversity is Key: The paper strongly suggests that combining models trained on different datasets and with different architectures is more beneficial than relying on a single model, especially for complex tasks.
  • Task Complexity Matters: The effectiveness of different Meta-Encoder strategies varies with task difficulty. Simple tasks might not see significant gains, while complex ones benefit greatly.
  • Self-Attention as a Sweet Spot: For many challenging tasks, particularly high-dimensional gene expression prediction, the self-attention strategy offers a good balance between performance improvement and computational efficiency.
  • Reducing Model Selection Burden: Meta-Encoder can provide a robust baseline performance, reducing the need for extensive hyperparameter tuning and model selection for new tasks.

Key Results

  • Complex Tasks Shine: Meta-Encoder consistently improved performance on high-dimensional gene expression prediction tasks. For example, the self-attention strategy improved Pearson correlation by up to 38.58% (HEST-Benchmark) and 42.55% (TCGA-CRC bulk gene expression) compared to the average of single models.
  • Moderate Tasks Benefit: For moderately complex tasks like multi-class or multi-label classification, Meta-Encoder's concatenation and self-attention strategies showed improvements.
  • Simple Tasks are Comparable: For simpler, single-variable tasks, Meta-Encoder's performance was comparable to the best individual model, offering a way to ensure robust performance without extensive tuning.
  • Strategy Performance: Self-attention generally outperformed concatenation on more challenging tasks. Cross-attention and contrastive-loss showed some advantages but often came with increased complexity or computational cost.

Limitations and Future Work

  • Computational Cost: While Meta-Encoder is generally more efficient than retraining from scratch, advanced strategies like contrastive-loss can incur significant computational overhead.
  • Complexity of Advanced Strategies: Cross-attention, while powerful, can introduce structural complexity, especially when fusing many models.
  • Future Directions: The authors envision Meta-Encoder as a stepping stone towards a more integrated and synergistic ecosystem of foundation models in medical AI. They highlight the potential for combining multimodal data (histology, spatial transcriptomics, protein expression) using similar fusion techniques to achieve a more complete representation of disease states and advance precision oncology.

Summary updated

BibTeX
@misc{gao2025features,
  author = {Ruitian Gao and Zhaochang Yang and Xin Yuan and Lijun Wang and Yujia Xia and Yufei Zhang and B. Zheng and Yuqiao Gong and Yi Yue and Zhangsheng Yu},
  title = {{Features fusion or not: harnessing multiple pathological foundation models using Meta-Encoder for downstream tasks fine-tuning}},
  year = {2025},
  doi = {10.1101/2025.06.05.657960},
  howpublished = {bioRxiv},
}
Figure