Abstract
Traditional Federated Learning (FL) requires clients to share identical model architectures and tasks, limiting collaboration across diverse domains. This paper introduces M-Fed, a framework designed for multi-task federated learning. By utilizing an encoder-decoder architecture, M-Fed allows clients with different tasks and decoders to share a unified encoder. This enables the extraction and aggregation of general feature-extraction knowledge into a global model, significantly improving performance for individual tasks through cross-task collaboration.
Introduction
Federated Learning (FL) has emerged as a privacy-preserving paradigm for training machine learning models on decentralized data. However, standard FL often assumes task homogeneity, where all participants contribute to a single global model for a specific task. This "siloed" approach prevents collaboration between entities working on different but related problems, such as different types of medical imaging analysis.
As shown in the figure above, while traditional FL aggregates data for a single task, Multi-Task Federated Learning (MTFL) aims to bridge multiple tasks. M-Fed addresses the challenges of data scarcity in niche tasks and the rigid model constraints of traditional FL by allowing heterogeneous tasks to benefit from shared "general knowledge."
Problem Statement
Two primary bottlenecks hinder the scalability of traditional FL:
- Data Scarcity: Specialized tasks often lack sufficient local data or enough participating clients to train high-performing models.
- Model Constraints: Standard FL forces all clients to use the same model structure, which is impractical when tasks require different output formats (e.g., classification vs. segmentation).
M-Fed posits that diverse computer vision tasks share fundamental feature-extraction requirements, such as identifying edges and textures. By isolating these commonalities, clients can collaborate even when their end goals differ.
Methodology: The M-Fed Framework
The core of M-Fed is the Encoder-Decoder split. The model is partitioned into an Encoder for feature extraction and a Decoder for task-specific processing.
Hierarchical Aggregation
M-Fed employs a two-tier aggregation strategy:
- Intra-task Aggregation: The server aggregates encoders and decoders from clients performing the same task to maintain "Task Global Models."
- Cross-task Aggregation: The server extracts the encoder components from all task-global models to create a Global Encoder Model. This model represents the "general knowledge" distilled from all participating tasks.
Regularized Local Training
To prevent "catastrophic forgetting" of task-specific nuances, M-Fed uses a regularization-based approach rather than direct weight replacement. Local training includes a loss term that pulls the local encoder toward the Global Encoder Model. An adaptive parameter ($\lambda$) controls this influence, starting small to allow initial task-specific learning and increasing as training stabilizes.
Experimental Evaluation
The framework was evaluated on two major benchmarks: PASCAL Context (covering tasks like Semantic Segmentation and Edge Detection) and MS COCO (covering Instance Segmentation and Keypoint Detection).
Key Results
M-Fed consistently outperformed local training and standard FL baselines:
- Performance Gains: On the MS COCO dataset, M-Fed improved Keypoint Detection performance by 4.88% over traditional FL. Semantic segmentation on PASCAL Context saw a 1.58% improvement.
- Knowledge Transfer: The results confirm that features learned for "dense" tasks (like edge detection) significantly benefit "object-level" tasks (like keypoint detection).
- Qualitative Success: Models trained with M-Fed produced much cleaner object boundaries and were better at filtering out irrelevant background noise in saliency tasks compared to baseline methods.
Conclusion and Future Work
M-Fed demonstrates that encoder-decoder architectures can effectively bridge the gap between disparate federated tasks. By treating the global model as a "mentor" through regularization, the framework enables robust knowledge transfer without sacrificing local task performance.
Future research will focus on relaxing the requirement for identical encoder structures to accommodate devices with varying hardware capabilities and developing automated methods to assess task synergy, ensuring that cross-task aggregation only occurs between complementary domains.
Summary updated