[Paper Review] FedTune: A Deep Dive into Efficient Federated Fine-Tuning with Pre-trained Transformers
This paper proposes FedTune, a parameter-efficient federated fine-tuning framework for pre-trained vision and vision-language Transformers in FL. It demonstrates that bias tuning on CLIP models achieves the highest accuracy (over 95% in IID, 92% in non-IID), enables fast convergence, and reduces communication costs, outperforming both traditional CNNs and other tuning methods in FL settings.
Federated Learning (FL) is an emerging paradigm that enables distributed users to collaboratively and iteratively train machine learning models without sharing their private data. Motivated by the effectiveness and robustness of self-attention-based architectures, researchers are turning to using pre-trained Transformers (i.e., foundation models) instead of traditional convolutional neural networks in FL to leverage their excellent transfer learning capabilities. Despite recent progress, how pre-trained Transformer models play a role in FL remains obscure, that is, how to efficiently fine-tune these pre-trained models in FL and how FL users could benefit from this new paradigm. In this paper, we explore this issue and demonstrate that the fine-tuned Transformers achieve extraordinary performance on FL, and that the lightweight fine-tuning method facilitates a fast convergence rate and low communication costs. Concretely, we conduct a rigorous empirical study of three tuning methods (i.e., modifying the input, adding extra modules, and adjusting the backbone) using two types of pre-trained models (i.e., vision-language models and vision models) for FL. Our experiments show that 1) Fine-tuning the bias term of the backbone performs best when relying on a strong pre-trained model; 2) The vision-language model (e.g., CLIP) outperforms the pure vision model (e.g., ViT) and is more robust to the few-shot settings; 3) Compared to pure local training, FL with pre-trained models has a higher accuracy because it alleviates the problem of over-fitting. We will release our code and encourage further exploration of pre-trained Transformers and FL.
Motivation & Objective
- To investigate how pre-trained Transformers can be efficiently fine-tuned in federated learning to improve model performance and reduce resource costs.
- To evaluate the effectiveness of different parameter-efficient tuning methods—input modification, module addition, and backbone adjustment—on vision and vision-language models in FL.
- To determine whether federated training with foundation models outperforms pure local training, especially under non-IID data distributions.
- To measure communication efficiency and model size of tuning methods to assess deployability on resource-constrained devices.
Proposed method
- The framework applies three tuning methods: prompt tuning (input modification), adapter tuning (extra modules), and bias tuning (backbone adjustment) to pre-trained vision (ViT) and vision-language (CLIP) models.
- Federated learning is conducted using FedAvg with a global model aggregation strategy, where clients train locally and upload gradients to the server.
- The convergence condition is defined as reaching 99% accuracy or a training accuracy difference <0.5% between rounds.
- Communication cost is calculated as $ c = r \times n \times s \times 2 $, where $ r $ is rounds, $ n $ is clients, and $ s $ is model size.
- The study evaluates performance across various settings: IID vs. non-IID data, few-shot (1–16 shots), and varying client numbers (10–100).
- The framework is extended with Per-FedAvg to assess personalization benefits in distribution-shifted settings.
Experimental results
Research questions
- RQ1Which parameter-efficient fine-tuning method (prompt, adapter, bias tuning) achieves the best performance when fine-tuning pre-trained Transformers in federated learning?
- RQ2How do vision-language models (e.g., CLIP) compare to pure vision models (e.g., ViT) in terms of accuracy and robustness under few-shot and non-IID settings?
- RQ3Does federated fine-tuning with pre-trained models outperform pure local training, especially in data-scarce or non-IID scenarios?
- RQ4How efficient are the tuning methods in terms of communication cost and model size, and can they be deployed on edge devices?
- RQ5Can personalized FL methods like Per-FedAvg further improve performance when combined with pre-trained models and efficient tuning?
Key findings
- Bias tuning on CLIP models achieves the highest accuracy, exceeding 95% in IID and 92% in non-IID settings, outperforming all other tuning methods.
- CLIP models consistently outperform ViT models, especially in few-shot settings, demonstrating greater robustness to data scarcity and distribution shifts.
- The communication cost for CLIP prompt tuning is minimal at 1.038MB in 16-shot learning, with all methods converging within 15 rounds.
- Tuning parameters are lightweight—CLIP prompt is only 17.3KB, and CLIP bias is 459.7KB—making them suitable for edge deployment.
- Per-FedAvg improves performance by 6.7% over FedAvg when using CLIP bias in 16-shot non-IID learning, and by 32.65% in 1-shot learning with ViT bias.
- Federated training with foundation models reduces overfitting and achieves higher accuracy than pure local training, especially in non-IID settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.