arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.05087cs.LGcs.AIcs.CL
收藏

在大语言模型联邦学习中使用LoRA缓解意外记忆

Mitigating Unintended Memorization with LoRA in Federated Learning for LLMs

Tune Insight SA;EPFL(苏黎世联邦理工学院);Yale University(耶鲁大学)

Thierry Bossy, Julien Vignoud, Tahseen Rabbani, Juan R. Troncoso Pastoriza, Martin Jaggi

AI总结:

本文研究了在大语言模型联邦学习中使用LoRA技术有效降低模型对训练数据的记忆能力,并展示了其在不同领域和隐私保护技术中的应用效果。

摘要:

联邦学习(FL)是一种流行的协作训练范式,它避免了客户端之间的直接数据暴露。然而,数据隐私问题仍然存在:FL训练的大型语言模型在给定前缀时能够记忆并完成训练数据中包含的短语和句子。因此,对抗性或诚实但好奇的客户端可以通过针对性提示恢复其他参与者的训练数据。在本工作中,我们证明了一种流行且简单的微调策略,即低秩适应(LoRA),可以在不显著影响性能的情况下将FL中的记忆减少高达10倍。我们通过在高风险领域如医学、法律和金融中进行微调任务研究这一效果。我们观察到,对于从1B到70B参数的广泛模型家族,记忆减少显著。我们发现LoRA在集中学习中也能减少记忆,并研究了记忆模式的差异。此外,我们研究了超参数的影响,并展示了LoRA可以与其他隐私保护技术如梯度裁剪和高斯噪声、安全聚合和Goldfish损失结合,以进一步提高记录级隐私,同时保持性能。

英文摘要:

Federated learning (FL) is a popular paradigm for collaborative training which avoids direct data exposure between clients. However, data privacy issues still remain: FL-trained large language models are capable of memorizing and completing phrases and sentences contained in training data when given their prefixes. Thus, it is possible for adversarial and honest- but-curious clients to recover training data of other participants simply through targeted prompting. In this work, we demonstrate that a popular and simple fine-tuning strategy, low-rank adaptation (LoRA), reduces memorization during FL by a factor of up to 10 without significant performance cost. We study this effect by performing fine-tuning tasks in high-risk domains such as medicine, law, and finance. We observe a reduction in memorization for a wide variety of model families, from 1B to 70B parameters. We find that LoRA can reduce memorization in centralized learning as well, and we compare how the memorization patterns differ. Furthermore, we study the effect of hyperparameters and show that LoRA can be combined with other privacy-preserving techniques such as gradient clipping and Gaussian noise, secure aggregation, and Goldfish loss to further improve record-level privacy while maintaining performance.

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

↑