arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.19980cs.LG
收藏

文本梯度能否用于联邦学习?

Can Textual Gradient Work in Federated Learning?

The University of British Columbia(不列颠哥伦比亚大学);Vector Institute(矢量研究所);Nanyang Technological University(南洋理工大学);University of Pennsylvania(宾夕法尼亚大学)

Minghui Chen, Ruinan Jin, Wenlong Deng, Yuanyuan Chen, Zhi Huang, Han Yu, Xiaoxiao Li

AI总结:

本文提出联邦文本梯度(FedTextGrad)范式,将文本梯度引入联邦学习以优化大语言模型,并通过均匀信息密度原则改进提示聚合,解决信息保留挑战。

摘要:

近期研究凸显了基于大语言模型的提示优化的前景,尤其是TextGrad,它通过文本实现“自动微分”并反向传播文本反馈。该方法促进了各种不支持数值梯度传播或损失计算的实际应用中的训练。在本文中,我们系统地探索了将文本梯度纳入联邦学习(FL)的潜力与挑战。我们的贡献有四个方面。首先,我们提出了一种新颖的联邦学习范式——联邦文本梯度(FedTextGrad),它允许客户端上传由文本梯度导出的本地优化提示,而服务器则聚合接收到的提示。与专为数值聚合设计的传统联邦学习框架不同,FedTextGrad专门针对处理文本数据而定制,将联邦学习的适用性扩展到更广泛的缺乏明确定义数值损失函数的问题。其次,基于这一设计,我们进行了大量实验以探索FedTextGrad的可行性。我们的发现强调了在联邦学习训练中适当调整关键因素(如本地步骤)的重要性。第三,我们指出了FedTextGrad聚合中的一个主要挑战:保留分布式提示更新中的关键信息。最后但同样重要的是,针对这一问题,我们通过利用均匀信息密度原则,在汇总客户端提示时为大型语言模型提供可操作的指导,从而改进了FedTextGrad的原始变体。通过这项原则性研究,我们使得文本梯度能够在联邦学习中用于优化大型语言模型,识别了重要问题,并指明了未来方向,从而开辟了一个值得进一步研究的新研究领域。

英文摘要:

Recent studies highlight the promise of LLM-based prompt optimization, especially with TextGrad, which automates differentiation'' via texts and backpropagates textual feedback. This approach facilitates training in various real-world applications that do not support numerical gradient propagation or loss calculation. In this paper, we systematically explore the potential and challenges of incorporating textual gradient into Federated Learning (FL). Our contributions are fourfold. Firstly, we introduce a novel FL paradigm, Federated Textual Gradient (FedTextGrad), that allows clients to upload locally optimized prompts derived from textual gradients, while the server aggregates the received prompts. Unlike traditional FL frameworks, which are designed for numerical aggregation, FedTextGrad is specifically tailored for handling textual data, expanding the applicability of FL to a broader range of problems that lack well-defined numerical loss functions. Secondly, building on this design, we conduct extensive experiments to explore the feasibility of FedTextGrad. Our findings highlight the importance of properly tuning key factors (e.g., local steps) in FL training. Thirdly, we highlight a major challenge in FedTextGrad aggregation: retaining essential information from distributed prompt updates. Last but not least, in response to this issue, we improve the vanilla variant of FedTextGrad by providing actionable guidance to the LLM when summarizing client prompts by leveraging the Uniform Information Density principle. Through this principled study, we enable the adoption of textual gradients in FL for optimizing LLMs, identify important issues, and pinpoint future directions, thereby opening up a new research area that warrants further investigation.

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

↑