Task-Agnostic Federated Learning

Zhengtao Yao, Hong Nguyen, Ajitesh Srivastava, José Luis AmbitearXiv 2024

Abstract

In the realm of medical imaging, leveraging large-scale datasets from various institutions is crucial for developing precise deep learning models, yet privacy concerns frequently impede data sharing. Federated learning (FL) emerges as a prominent solution for preserving privacy while facilitating collaborative learning. However, its application in real-world scenarios faces several obstacles, such as task and data heterogeneity, label scarcity, and non-identically distributed (non-IID) data. This study addresses the task-agnostic and generalization problem on unseen tasks by adapting a self-supervised FL framework. Utilizing a Vision Transformer (ViT) as a consensus feature encoder for self-supervised pre-training, no initial labels are required, enabling effective representation learning across diverse datasets and tasks. Our extensive evaluations, using various real-world non-IID medical imaging datasets, validate our approach's efficacy, retaining 90% of F1 accuracy with only 5% of the training data typically required for centralized approaches and exhibiting superior adaptability to out-of-distribution tasks. The results indicate that federated learning architecture can be a potential approach toward multi-task foundation modeling.

Introduction

Traditional Federated Learning (FL) typically operates under the assumption that a central server coordinates multiple clients (e.g., hospitals) to perform a singular, predefined task. However, this model faces significant hurdles in clinical practice. Institutions are often reluctant to disclose their specific research objectives or the nature of their labels to a third-party server. Furthermore, medical data is characterized by extreme heterogeneity in equipment and clinical focus, alongside a chronic scarcity of expert-annotated labels.

This paper introduces a framework that allows institutions to collaboratively train powerful AI models without revealing their specific clinical tasks. By decoupling the feature learning phase from the task-specific phase, the system achieves "task-agnosticism," protecting both data privacy and institutional research intent.

Methodology

The proposed framework utilizes a two-stage approach to bridge the gap between collaborative learning and task privacy:

  1. SSL-FL Pre-training: The system employs Self-Supervised Learning (SSL) via Masked Image Modeling (MIM). A Vision Transformer (ViT) backbone learns by reconstructing missing patches of medical images. Because this process is entirely label-free, the central server never learns the "target" task; it only aggregates the general visual representations learned across the network.
  2. Downstream Fine-tuning with LoRA: Once the global foundation encoder is established, individual clients fine-tune the model for their private tasks (e.g., segmentation or classification). To maintain efficiency, the authors use Low-Rank Adaptation (LoRA), updating only approximately 2% of the model's parameters. This allows resource-constrained clinics to achieve high performance without massive local compute requirements.
The SSL-FL framework: Pre-training via Masked Image Modeling followed by task-specific fine-tuning with LoRA.

Experimental Setup and Insights

The framework was evaluated using six diverse public fundus (eye) image datasets, including RFMiD, DR, EyePACS, and REFUGE2 for in-distribution testing, and LACDHS and JSIEC for out-of-distribution (OOD) generalization.

A key insight from the study is the "Small Data Advantage": clients with the least local data benefited most from the federated pre-training. The global model serves as a robust feature extractor that compensates for local data scarcity. Additionally, the SSL approach proved resilient to label distribution skew, maintaining performance even when data was heavily imbalanced across different institutions.

Key Results

The proposed SSL-FL framework demonstrated competitive performance against centralized models while maintaining strict privacy boundaries. In classification tasks, the model retained roughly 90% of the F1 accuracy of a centralized approach where all data is pooled.

Quantitative results comparing local supervision, centralized SSL, and the proposed SSL-FL framework across different data splits.

In specialized tasks like optic disc segmentation, the federated model occasionally outperformed centralized approaches. This suggests that the diversity of data encountered during federated pre-training helps the model generalize better to varying image qualities and anatomical structures than a single centralized dataset might.

Conclusion

This research presents a viable path toward multi-task foundation modeling in medicine. By utilizing self-supervised pre-training and efficient fine-tuning, the framework addresses the core challenges of task heterogeneity and label scarcity. While the current study focuses on 2D fundus images and Vision Transformers, future work will explore more efficient architectures like Vision Mamba and extend the framework to 3D modalities such as MRI and CT scans to further validate its versatility in complex clinical environments.

Summary updated

BibTeX
@misc{yao2024task,
  author = {Zhengtao Yao and Hong Nguyen and Ajitesh Srivastava and José Luis Ambite},
  title = {{Task-Agnostic Federated Learning}},
  year = {2024},
  eprint = {2406.17235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.17235},
}
Figure