One Communication Round is All It Needs for Federated Fine-Tuning Foundation Models

Ziyao Wang, Bowei Tian, Yayun He, Zheyu Shen, Luyang Liu, Ang Li

Abstract

The recent advancement of foundation models (FMs) has increased the demand for fine-tuning these models on large-scale cross-domain datasets. To address this, federated fine-tuning has emerged as a solution, allowing FMs to be fine-tuned on distributed datasets across multiple devices while ensuring data privacy. However, the substantial parameter size of FMs and the multi-round communication required by federated fine-tuning algorithms result in prohibitively high communication costs, challenging the practicality of federated fine-tuning. In this paper, we are the first to reveal, both theoretically and empirically, that the traditional multi-round aggregation algorithms may not be necessary for federated fine-tuning large FMs. Our experiments reveal that a single round of aggregation (i.e., one-shot federated fine-tuning) yields a global model performance comparable to that achieved through multiple rounds of aggregation. Through rigorous mathematical and empirical analyses, we demonstrate that large FMs, due to their extensive parameter sizes and pre-training on general tasks, achieve significantly lower training loss in one-shot federated fine-tuning compared to smaller models. Our extensive experiments show that one-shot federated fine-tuning not only reduces communication costs but also enables asynchronous aggregation, enhances privacy, and maintains performance consistency with multi-round federated fine-tuning on both text generation and text-to-image generation tasks.

Introduction

Federated Learning (FL) enables collaborative model training across distributed clients without sharing raw data. Conventionally, this involves iterative communication rounds where a central server aggregates local updates from clients. While effective for small models, this "talkative" process becomes a significant bottleneck for Foundation Models (FMs) like Llama or GPT, which possess billions of parameters. Even with parameter-efficient techniques like LoRA, the cumulative communication overhead across hundreds of rounds remains a barrier for edge devices. This research investigates whether the multi-round paradigm is strictly necessary for fine-tuning FMs, proposing that a single communication round—"one-shot" federated fine-tuning—may suffice.

Methodology: One-Shot Federated Fine-Tuning

The proposed approach, One-Shot Federated Fine-Tuning, simplifies the standard FedAvg algorithm by performing only a single aggregation step. To maintain a fair comparison with multi-round baselines, the total amount of local training (total epochs) is kept constant. For instance, a configuration of 3 rounds with 1 local epoch each is compared against a one-shot configuration of 1 round with 3 local epochs.

The core of the paper is a theoretical proof showing that the error of one-shot aggregation is tied to three factors: model smoothness ($L$), model update magnitude ($\tau$), and total training steps ($Tk$).

Theoretical and Empirical Insights

The success of one-shot fine-tuning in FMs, as opposed to smaller models, is attributed to several key properties:

  • Landscape Smoothness: Large FMs, pre-trained on vast datasets, typically reside in broad, flat basins of the loss landscape. This smoothness ensures that local updates from diverse clients remain compatible during averaging.
  • Minimal Weight Shifts: Unlike training from scratch, fine-tuning involves relatively small parameter updates ($\tau$). The authors prove that when these updates are small, the error introduced by omitting intermediate communication rounds is negligible.
  • Rapid Local Convergence: FMs are highly expressive and tend to overfit local data quickly. Consequently, they require fewer total training steps ($Tk$), which further minimizes the aggregation error.

Experimental Evaluation and Results

The researchers evaluated the one-shot approach across language tasks (MMLU, ARC), chat capabilities (MT-bench), and image generation (Stable Diffusion on Dreambooth).

Comparison of One-shot vs. Multi-round Federated Learning Accuracy across various model sizes.

As shown in the figure above, for models exceeding 1 billion parameters, one-shot performance is nearly identical to multi-round training. For example, on the ARC reasoning task, Llama-13b achieved 58.11% accuracy with one-shot LoRA, slightly exceeding the 55.72% achieved via multi-round training. In the vision domain, Stable Diffusion maintained a CLIP score of 0.3343 in the one-shot setting, indistinguishable from the multi-round baseline of 0.3341. Conversely, smaller models like ResNet-18 and LSTMs show a significant performance gap between one-shot and multi-round training, confirming that the "one-shot" advantage is unique to large-scale foundation models.

Beyond performance, the one-shot approach offers significant practical benefits:

  • Communication Efficiency: For a 13B parameter model, reducing a 3-round process to a single round results in a 66% reduction in bandwidth requirements.
  • Enhanced Privacy: By limiting communication to a single instance, the "attack surface" for gradient inversion attacks is drastically reduced.

Conclusion

This study demonstrates that for fine-tuning large foundation models, "one round is all it needs." This finding challenges the necessity of multi-round communication in federated learning for FMs, paving the way for more efficient and private distributed AI. Future work includes exploring the limits of this approach for even larger models and investigating its applicability to pre-training scenarios.

Summary updated

BibTeX
@misc{wang2024one,
  author = {Ziyao Wang and Bowei Tian and Yayun He and Zheyu Shen and Luyang Liu and Ang Li},
  title = {{One Communication Round is All It Needs for Federated Fine-Tuning Foundation Models}},
  year = {2024},
  eprint = {2412.04650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.04650},
}
Figure