Fed-SB:(私有)联邦LoRA微调中实现极致通信效率与性能的银弹方案
Fed-SB: A Silver Bullet for Extreme Communication Efficiency and Performance in (Private) Federated LoRA Fine-Tuning
AI总结:
针对联邦LoRA微调中传统方法通信成本高或性能下降的问题,提出Fed-SB方法,通过对LoRA-SB中的小方阵R直接平均实现与客户端数无关的低通信成本,在多任务上达SOTA且通信成本最高降230倍,同时适配私有联邦场景。
摘要:
低秩适配(Low-Rank Adaptation, LoRA)已成为高效微调基础模型的主流方法。然而,采用LoRA的联邦微调面临挑战:传统的单个适配器联邦平均会产生次优更新。现有解决方案要么存在随客户端数量线性增长的极高通信成本,要么因表达能力受限导致性能下降。我们提出联邦银弹(Federated Silver Bullet, Fed-SB)——一种利用近期提出的低秩适配方法LoRA-SB进行大语言模型(LLM)联邦微调的新方法。LoRA-SB通过在适配器B和A之间学习一个小方阵(R)、固定其他组件,使优化轨迹与理想的低秩全微调投影最优对齐。对R直接平均可保证精确更新,大幅降低通信成本(且成本与客户端数量无关),实现可扩展性。Fed-SB在常识推理、算术推理和语言推断任务上达到了当前最优性能,同时通信成本最高降低230倍。在私有设置下,Fed-SB通过两点进一步提升性能:(1)减少可训练参数,从而降低差分隐私所需的噪声;(2)避免其他方法引入的噪声放大。总体而言,Fed-SB为私有和非私有联邦微调提供了一套性能领先、高效且可扩展的解决方案。我们的代码已公开于:https://github.com/CERT-Lab/fed-sb。
英文摘要:
Low-Rank Adaptation (LoRA) has become ubiquitous for efficiently fine-tuning foundation models. However, federated fine-tuning using LoRA is challenging due to suboptimal updates arising from traditional federated averaging of individual adapters. Existing solutions either incur prohibitively high communication cost that scales linearly with the number of clients or suffer from performance degradation due to limited expressivity. We introduce Federated Silver Bullet (Fed-SB), a novel approach for federated fine-tuning of LLMs using LoRA-SB, a recently proposed low-rank adaptation method. LoRA-SB optimally aligns the optimization trajectory with the ideal low-rank full fine-tuning projection by learning a small square matrix (R) between adapters B and A, keeping other components fixed. Direct averaging of R guarantees exact updates, substantially reducing communication cost, which remains independent of the number of clients, and enables scalability. Fed-SB achieves state-of-the-art performance across commonsense reasoning, arithmetic reasoning, and language inference tasks while reducing communication costs by up to 230x. In private settings, Fed-SB further improves performance by (1) reducing trainable parameters, thereby lowering the noise required for differential privacy and (2) avoiding noise amplification introduced by other methods. Overall, Fed-SB offers a state-of-the-art, efficient, and scalable solution for both private and non-private federated fine-tuning. Our code is publicly available at: https://github.com/CERT-Lab/fed-sb.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。