Exploring Parameter-Efficient Fine-Tuning to Enable Foundation Models in Federated Learning

Guangyu Sun, Umar Khalid, Matías Mendieta, Pu Wang, Chen Chen

TL;DR

This paper introduces FedPEFT, a framework that enables the use of powerful, large "foundation models" in federated learning (FL) by employing parameter-efficient fine-tuning (PEFT). FedPEFT significantly reduces communication overhead, a major bottleneck in FL, while maintaining or even improving model performance across various challenging scenarios.

What Problem Does This Paper Address?

Federated learning (FL) allows collaborative model training across decentralized devices without sharing raw data. A key challenge in FL is data heterogeneity across clients, leading to non-IID data distributions. While pre-trained models have shown promise in mitigating these issues, modern "foundation models" are massive, with billions of parameters. In traditional FL, sending these enormous model weights back and forth between clients and the server creates an insurmountable communication burden, making it impractical to leverage these powerful models. This paper addresses the critical need for a method that allows FL to benefit from large pre-trained models without being crippled by communication costs.

Methods

The core of this paper is the FedPEFT framework, which combines federated learning with Parameter-Efficient Fine-Tuning (PEFT) techniques. Instead of fine-tuning the entire pre-trained model on each client, FedPEFT focuses on updating only a small subset of parameters. The paper explores several PEFT prototypes:

  • Head-tuning: Freezing the entire pre-trained backbone and only training the final classification head. This is a simple baseline but can be limited in adaptation.
  • FedPEFT-Bias: Fine-tuning only the bias parameters of the pre-trained model. This allows for moderate adjustments while preserving the core representation.
  • FedPEFT-Adapter: Inserting small "adapter" modules within the pre-trained backbone layers and training only these adapters, keeping the original backbone frozen.
  • FedPEFT-Prompt: Adding trainable "prompt" embeddings to the input or hidden states of the pre-trained model.

The FedPEFT framework involves clients downloading the pre-trained model, performing local training by updating only the selected PEFT parameters, and then uploading these small updates to the server for aggregation. This drastically reduces the amount of data transmitted.

Datasets

The paper uses a variety of datasets for evaluation across computer vision tasks:

  • Image Classification:
    • Pre-training: ImageNet-21K
    • Downstream: Resisc45, CIFAR-100, and PCam (chosen to represent increasing degrees of domain gap).
  • Action Recognition:
    • Pre-training: Kinetics-400 (using VideoMAE pre-trained weights)
    • Downstream: UCF101, HMDB51, and UCF-CRIME (chosen to represent varying domain gaps).

Key Insights and Ideas

  • PEFT is a natural fit for FL's communication bottleneck: The paper convincingly demonstrates that PEFT methods, designed to reduce communication in centralized training, are even more impactful in FL due to its inherent communication constraints.
  • Foundation models are viable in FL with FedPEFT: The research shows that large, powerful foundation models can be effectively used in FL settings, overcoming the previous limitations imposed by their size.
  • Trade-offs in PEFT methods matter: Different PEFT approaches (Bias, Adapter, Prompt) offer varying levels of adaptation and robustness. FedPEFT-Prompt, for instance, shows superior adaptability when bridging larger domain gaps.
  • FedPEFT enhances privacy: By requiring fewer trainable parameters and potentially allowing for larger batch sizes, FedPEFT can indirectly improve privacy by making gradient inversion attacks more difficult.
  • Head-tuning is too restrictive, full fine-tuning is too costly: The paper positions FedPEFT methods as a sweet spot, offering better adaptation than simple head-tuning and drastically reduced communication costs compared to full fine-tuning.

Key Results

  • Massive Communication Reduction: FedPEFT reduces communication costs from gigabytes (full fine-tuning) to megabytes per round, with one prototype requiring only 0.68MB compared to 328MB for full fine-tuning of a ViT-Base model.
  • Competitive Accuracy: FedPEFT methods achieve comparable or even better server accuracies than full fine-tuning, especially on datasets with larger domain gaps. For example, on PCam, FedPEFT-Prompt surpassed full fine-tuning by 1.1%.
  • Robustness to Domain Gap: FedPEFT methods, particularly FedPEFT-Prompt, demonstrate strong performance even when the downstream dataset has a significant domain gap compared to the pre-training dataset.
  • Resilience to FL Challenges: FedPEFT shows robustness under differential privacy (DP) constraints, with significantly smaller accuracy drops compared to full fine-tuning. It also performs well under data scarcity conditions.
  • Efficiency: FedPEFT can achieve high accuracy (over 95%) with less than 0.3% of trainable parameters.

Limitations and Future Work

  • Prototype Selection: The paper notes that the optimal PEFT prototype (Bias, Adapter, Prompt) can vary depending on the specific application and domain gap. Further research could explore automated selection mechanisms.
  • Generalizability: While the paper focuses on computer vision, the authors suggest that FedPEFT can be leveraged with other PEFT methods and in other application domains beyond vision.
  • Theoretical Guarantees: The paper provides convergence guarantees for FedPEFT, building upon existing FL convergence theory, but further theoretical exploration of its unique properties could be beneficial.
  • Real-world Deployment: While the framework is designed for practical FL, extensive real-world deployment studies would further validate its effectiveness and scalability.

Summary updated

BibTeX
@inproceedings{sun2024exploring,
  author = {Guangyu Sun and Umar Khalid and Matías Mendieta and Pu Wang and Chen Chen},
  title = {{Exploring Parameter-Efficient Fine-Tuning to Enable Foundation Models in Federated Learning}},
  booktitle = {IEEE Big Data},
  year = {2024},
  doi = {10.1109/bigdata62323.2024.10825712},
}

Loading related content...

Figure