Abstract
Federated Learning (FL) has traditionally operated under the assumption of model congruity, where all participating clients utilize identical architectures for the same set of tasks. However, real-world distributed environments are characterized by "Hetero-Client" scenarios where devices possess varying task requirements and architectural configurations. This paper introduces FEDHCA$^2$, a novel framework designed for Hetero-Client Federated Multi-Task Learning (HC-FMTL). By decoupling models into shared encoders and task-specific decoders, and employing conflict-averse gradient aggregation alongside cross-attention mechanisms, FEDHCA$^2$ enables diverse clients to collaboratively learn without the performance degradation typically caused by model incongruity and task conflict.
Introduction
Standard Federated Learning (FL) research often assumes a uniform approach to model training. In practice, however, a mobile device might only require image classification, whereas an autonomous driving system must simultaneously perform depth estimation, semantic segmentation, and object detection. This discrepancy leads to three primary challenges: model incongruity (architectural differences), data heterogeneity (non-i.i.d. distributions), and task heterogeneity (conflicting objectives between different tasks).
Existing Federated Multi-Task Learning (FMTL) methods struggle when clients do not share a common set of tasks. The FEDHCA$^2$ framework addresses these hurdles by allowing clients with different task sets and model structures to contribute to a global knowledge base while maintaining high local performance.
Methodology
The core of the FEDHCA$^2$ framework lies in the decoupling of the model into Encoders for general feature extraction and Decoders for task-specific predictions. The system utilizes three primary mechanisms to manage heterogeneity:
1. Hyper Conflict-Averse Aggregation (Encoders)
Drawing on theoretical proofs that link MTL and FL optimization, the authors demonstrate that standard FL aggregation can be viewed as MTL gradient descent with an additional term that maximizes the inner product of gradients. To prevent shared knowledge from harming individual client performance, FEDHCA$^2$ uses a conflict-averse scheme. Instead of simple parameter averaging, the server identifies an optimized update direction that minimizes conflicts between disparate client updates.
2. Hyper Cross Attention Aggregation (Decoders)
To resolve the "model incongruity" inherent in clients having different task decoders (e.g., Client A lacks a depth decoder that Client B possesses), the framework employs a layer-wise cross-attention mechanism. This allows a decoder for one task to "attend" to and learn from the parameters of a different task's decoder, capturing fine-grained inter-task relationships across the network.
3. Learnable Hyper Aggregation Weights
Each client utilizes learnable weights to determine the balance between the global aggregate and local updates. These weights evolve dynamically, typically prioritizing mutual learning in early training stages and shifting toward task-specific refinement as the model nears convergence.
Experimental Evaluation
The framework was evaluated using two major dense prediction benchmarks:
- PASCAL-Context: Featuring five tasks (edge detection, semantic segmentation, human parts segmentation, surface normals, and saliency detection).
- NYUD-v2: An indoor scene dataset featuring four tasks (edge detection, semantic segmentation, surface normal estimation, and depth estimation).
The researchers simulated complex hetero-client scenarios, including configurations where multiple clients performed unique single tasks while a "super-client" handled multiple tasks simultaneously.
Key Insights and Results
FEDHCA$^2$ consistently outperformed representative FL and FMTL baselines, such as FedAvg, FedProx, and MaT-FL.
- Performance Gains: While traditional methods often resulted in "negative transfer" (where federated training performed worse than local-only training), FEDHCA$^2$ achieved a 2.18% average improvement over the local baseline.
- Scaling and Robustness: Unlike many FL methods that degrade as the number of clients increases due to data dilution, FEDHCA$^2$ showed a positive correlation between client count and performance, indicating effective knowledge transfer.
- Two-Stage Learning Dynamics: Observations revealed that multi-task clients undergo a two-stage process: an initial phase (~20 rounds) of aggressive knowledge absorption from single-task peers, followed by a refinement phase focused on specific data domains.
- Layer-wise Importance: Analysis of the cross-attention mechanism showed that lower decoder layers benefit significantly from inter-task knowledge sharing, while higher layers must remain specialized to their specific output tasks.
Conclusion
FEDHCA$^2$ provides a robust solution for federated environments where clients are not architectural clones of one another. By addressing model incongruity and task conflict through specialized aggregation strategies, it paves the way for more flexible and powerful distributed learning systems. Future work will focus on "structural heterogeneity," exploring scenarios where clients use entirely different backbone architectures, such as a mix of Convolutional Neural Networks (CNNs) and Transformers.
Summary updated