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

利用可迁移稀疏性缓解零阶联邦大语言模型微调中的非独立同分布漂移

Mitigating Non-IID Drift in Zeroth-Order Federated LLM Fine-Tuning with Transferable Sparsity

Stevens Institute of Technology(史蒂文斯理工学院);Princeton University(普林斯顿大学);Duke University(杜克大学);Google LLC(谷歌公司);Lambda Inc.(Lambda公司)

Yide Ran, Wentao Guo, Jingwei Sun, Yanzhou Pan, Xiaodong Yu, Hao Wang, Jianwen Xie, Yiran Chen, Denghui Zhang, Zhaozhuo Xu

AI总结:

本文提出Meerkat及Meerkat-vp,通过可迁移静态稀疏参数子集和虚拟路径GradIP轨迹分析,缓解零阶联邦大语言模型微调中的非独立同分布漂移问题,提升通信效率与模型质量。

摘要:

联邦学习支持在分散的非独立同分布(Non-IID)客户端上对大语言模型(LLMs)进行协作微调,但此类模型的巨大参数量带来了显著的内存和通信挑战。本文提出了Meerkat,一种面向联邦大语言模型微调的稀疏零阶优化(ZO)方法。通过将微调限制在一个可迁移、静态且极度稀疏的参数子集上,Meerkat实现了显著的通信效率,从而支持低成本的高频同步。通过理论分析和实验,我们表明这种高频通信能够有效缓解非独立同分布数据带来的挑战,并相比全参数零阶优化取得更优的性能。此外,实验结果表明,在相同通信频率下,Meerkat优于现有的稀疏基线方法,并具有更好的性能。为进一步应对非独立同分布漂移,Meerkat利用可追踪的本地更新,并为每个客户端构建一条虚拟路径。该虚拟路径机制揭示了GradIP现象:由服务器维护的大语言模型预训练梯度与通过零阶优化估计的客户端梯度之间的内积,在极端非独立同分布客户端上趋于收敛,而在独立同分布客户端上则出现振荡。这种差异化的行为为识别具有极端数据异质性的客户端提供了信号。利用该信号,本文提出Meerkat-vp,通过分析GradIP轨迹来识别极端非独立同分布客户端,并采用早停策略以提升聚合模型质量。实验证实,Meerkat和Meerkat-vp显著提高了零阶联邦大语言模型微调的效率和效果。

英文摘要:

Federated Learning enables collaborative fine-tuning of Large Language Models (LLMs) across decentralized Non-Independent and Identically Distributed (Non-IID) clients, but such models' massive parameter sizes lead to significant memory and communication challenges. This work introduces Meerkat, a sparse zeroth-order optimization (ZO) method designed for federated LLM fine-tuning. By limiting fine-tuning to a transferable, static, extremely sparse subset of parameters, Meerkat achieves remarkable communication efficiency, enabling cost-effective high-frequency synchronization. With theoretical analysis and experiments, we show that this high-frequency communication effectively mitigates Non-IID data challenges and leads to superior performance compared to full-parameter ZO. Furthermore, experiment results show that Meerkat outperforms existing sparsity baselines with better performance at the same communication frequency. To further handle Non-IID drift, Meerkat leverages traceable local updates and forms a virtual path for each client. This virtual path mechanism reveals the GradIP phenomenon: the inner products between LLM pre-training gradients maintained by server and client gradients estimated via ZO converges for extreme Non-IID clients but oscillates for IID ones. This distinct behavior provides a signal for identifying clients with extreme data heterogeneity. Using this signal, Meerkat-vp is proposed to analyze GradIP trajectories to identify extreme Non-IID clients and applies early stopping to enhance aggregated model quality. Experiments confirm that Meerkat and Meerkat-vp significantly improve the efficiency and effectiveness of ZO federated LLM fine-tuning.

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

↑