arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.04650cs.LGcs.DC
收藏

重新审视联邦微调:对于基础模型,单轮通信已足够

Revisiting Federated Fine-Tuning: A Single Communication Round is Enough for Foundation Models

University of Maryland, College Park(马里兰大学彭福分校);Queen Mary University of London(伦敦玛丽女王大学);Google DeepMind(谷歌DeepMind)

Ziyao Wang, Bowei Tian, Yexiao He, Zheyu Shen, Guoheng Sun, Yuhan Liu, Luyang Liu, Meng Liu, Ang Li

AI总结:

本文从理论和实验上证明,对于大型基础模型,单轮聚合的一次性联邦微调即可达到与多轮联邦微调相当的性能,显著降低通信成本并增强隐私性。

摘要:

基础模型(FMs)的近期进展增加了在大规模跨域数据集上微调这些模型的需求。为应对这一需求,联邦微调应运而生,它允许基础模型在多个设备上的分布式数据集上进行微调,同时确保数据隐私。然而,联邦学习算法中庞大的参数规模和多轮通信导致了高得令人望而却步的通信成本,对联邦微调的实用性构成了挑战。在本文中,我们从理论和实证两方面识别并分析了传统多轮聚合算法对于微调大型基础模型可能并非必要。我们的实验表明,单轮聚合(即一次性联邦微调)所得到的全局模型性能与通过多轮聚合所达到的性能相当。通过严格的数学和实证分析,我们证明大型基础模型由于其庞大的参数规模和在大规模通用任务上的预训练,在一次性联邦微调中相比更小的模型能够实现显著更低的训练损失。我们的大量实验表明,一次性联邦微调显著降低了通信成本。它还具有支持异步聚合的潜力,能够增强隐私性,并在文本生成和文本到图像生成任务上保持与多轮联邦微调的性能一致性。我们的发现为在实践中革新联邦微调提供了见解,从而提升效率、降低成本,并扩大基础模型的可及性。

英文摘要:

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, allowing FMs to be fine-tuned on distributed datasets across multiple devices while ensuring data privacy. However, the substantial parameter size and the multi-round communication in federated learning algorithms result in prohibitively high communication costs, challenging the practicality of federated fine-tuning. In this paper, we identify and analyze, 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 significantly reduces communication costs. It also has the potential to enable asynchronous aggregation, enhances privacy, and maintains performance consistency with multi-round federated fine-tuning on both text generation and text-to-image generation tasks. Our findings provide insights to revolutionize federated fine-tuning in practice, enhancing efficiency, reducing costs, and expanding accessibility for FMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑