FedBone: Towards Large-Scale Federated Multi-Task Learning

Yiqiang Chen, Teng Zhang, Xinlong Jiang, Qian Chen, Chenlong Gao, Wuliang Huang · DOI

TL;DR

FedBone is a novel federated multi-task learning framework that enables edge devices with limited resources to participate in training large-scale models. By splitting the model between a cloud server and local clients and introducing a conflict-aware gradient aggregation method, it achieves superior performance across diverse tasks while reducing client-side memory requirements by over 90%.

What Problem Does This Paper Address?

Training large-scale models (like Swin Transformers) typically requires massive computational power and centralized data. Federated Learning (FL) offers a privacy-preserving alternative by keeping data on local devices, but it faces two major hurdles:

  1. Resource Constraints: Most edge devices (IoT, mobile) lack the memory and compute to train modern, large-scale backbones.
  2. Task Heterogeneity: In multi-task settings, different clients might perform different tasks (e.g., one does image segmentation, another does depth estimation). Simply averaging their model updates often leads to gradient conflicts, where the optimization goals of one task interfere with another, degrading the final model's generalization.

Methods

The authors propose FedBone, which tackles these issues through three core innovations:

1. Split Federated Multi-Task Learning

Instead of making every client train the full model, FedBone splits the architecture. The client handles a lightweight patch embedding and a task-specific head, while the heavy lifting—the large-scale general backbone—resides on a cloud server.

The workflow of FedBone framework

As shown in Figure 2, the process involves sending intermediate embeddings to the server for feature extraction and receiving latent representations back for local task processing. This "split" approach drastically lowers the entry barrier for low-power edge devices.

2. GPAggregation (Gradient Projection Aggregation)

To solve gradient conflicts, the authors introduce GPAggregation. When the server receives gradients from different task-specific clients, it checks if they are "conflicting" (i.e., pointing in opposite directions). If they are, it projects one gradient onto the normal plane of the other to eliminate interference. Furthermore, it uses a historical gradient attention mechanism to rescale updates, dampening the influence of clients that might be stuck in "sharp" local minima.

3. Heterogeneous Task Adaptation Module

Because the server-side backbone is general-purpose, clients need a way to bridge the gap between general features and their specific local tasks. FedBone includes a specialized module on the client side that uses deformable convolutions to capture irregular receptive regions and self-attention to model intra-task interactions.

Illustration of task adaptation module

Datasets

The framework was evaluated on three diverse datasets:

  • NYUDv2: An indoor scene dataset featuring semantic segmentation, depth estimation, normal estimation, and boundary detection.
  • PASCAL-Context: A general-purpose dataset for segmentation, saliency estimation, and boundary detection.
  • Real-world Ophthalmic Dataset: A newly built 13-task dataset consisting of 12,912 color fundus images for diagnosing 10 different eye diseases, two types of disease grading, and one lesion segmentation task.

Key Insights and Ideas

  • Efficiency through Asymmetry: The most striking insight is that you don't need a powerful client to benefit from a powerful model. By offloading the backbone to the server, FedBone allows a Swin-B model to be "trained" by devices that could otherwise only handle tiny models.
  • Gradient Surgery is Essential for FL: The paper demonstrates that "blind" aggregation (like standard FedAvg) is suboptimal for multi-task learning. Actively managing gradient directions (projection) is a critical "aha moment" for stabilizing federated multi-task optimization.
  • The Importance of Adaptation: The ablation studies show that while gradient projection helps, the Task Adaptation Module provides the most significant performance gain, proving that local "fine-tuning" of general features is vital for heterogeneous tasks.

Key Results

  • Superior Accuracy: FedBone consistently outperformed standard FL (FedAvg) and personalized FL methods (FedProx, pFedMe, FedEM) across almost all tasks in NYUDv2 and PASCAL-Context.
  • Massive Resource Savings: When training a Swin-B backbone, FedBone required only 3.31 GB of client-side memory, compared to 33.32 GB for FedAvg. This represents a 10x reduction in memory footprint.
  • Medical Utility: In the 13-task ophthalmic experiment, FedBone achieved the best performance on the vast majority of tasks, highlighting its potential for real-world healthcare applications where data privacy and task variety are paramount.
Ablation study results for different components

Limitations and Future Work

  • Communication Overhead: While split learning saves memory, it requires frequent communication of intermediate activations and gradients between the client and server, which could be a bottleneck on slow networks.
  • Privacy Nuances: Although raw data never leaves the client, sharing intermediate representations (embeddings) can still leak information. The authors suggest that future work could explore more robust privacy guarantees for these shared features.
  • Scaling: The authors plan to extend the framework to handle more data modalities and further optimize communication costs.

Summary updated

BibTeX
@article{chen2024fedbone,
  author = {Yiqiang Chen and Teng Zhang and Xinlong Jiang and Qian Chen and Chenlong Gao and Wuliang Huang},
  title = {{FedBone: Towards Large-Scale Federated Multi-Task Learning}},
  journal = {J. Comput. Sci. Technol.},
  year = {2024},
  doi = {10.1007/s11390-024-3639-x},
}
Figure