arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05644cs.CLcs.DCcs.SYeess.SY
收藏

迈向构建联邦GPT:联邦指令微调

Towards Building the Federated GPT: Federated Instruction Tuning

Duke University(杜克大学);Microsoft Research(微软研究院);Adobe Research(Adobe研究院);Amazon(亚马逊)

Jianyi Zhang, Saeed Vahidian, Martin Kuo, Chunyuan Li, Ruiyi Zhang, Tong Yu, Yufan Zhou, Guoyin Wang, Yiran Chen

AI总结:

针对大语言模型指令微调面临的高质量数据获取难、隐私受限等问题,提出首个基于联邦学习的联邦指令微调方法FedIT,经GPT-4评估性能优于有限数据的集中式训练,并发布Shepherd开源框架支撑相关研究。

摘要:

尽管“经过指令微调”的生成式大语言模型(LLM)已展现出令人瞩目的泛化至新任务的能力,但其训练阶段严重依赖大量多样且高质量的指令数据(例如ChatGPT和GPT-4)。遗憾的是,获取高质量数据,尤其是人工撰写的数据,在成本和可及性方面都面临重大挑战。此外,与隐私相关的担忧会进一步限制此类数据的获取,使得数据获取过程成为一项复杂且需要审慎处理的工作。这进而会阻碍微调后模型的泛化性,还可能限制其在特定场景下的有效性。为解决这一问题,本研究提出了一种名为联邦指令微调(Federated Instruction Tuning, FedIT)的新方法,该方法将联邦学习(federated learning, FL)作为大语言模型指令微调的学习框架。这是首次探索基于联邦学习的大语言模型指令微调。由于文本数据主要由终端用户生成,这一研究尤为重要。因此,必须设计并调整联邦学习方法,在保护隐私和确保数据安全的前提下,有效利用存储在本地设备上的用户多样化指令。在本文中,通过采用广泛使用的GPT-4自动评估方法,我们证明了借助所提出的FedIT框架利用客户端端异构且多样的指令集,与仅使用有限本地指令的集中式训练相比,能够提升大语言模型的性能。此外,本文还开发了一个名为Shepherd的Github仓库,该仓库提供了一个基础框架,用于探索利用跨多样类别的异构指令进行大语言模型的联邦微调。

英文摘要:

While "instruction-tuned" generative large language models (LLMs) have demonstrated an impressive ability to generalize to new tasks, the training phases heavily rely on large amounts of diverse and high-quality instruction data (such as ChatGPT and GPT-4). Unfortunately, acquiring high-quality data, especially when it comes to human-written data, can pose significant challenges both in terms of cost and accessibility. Moreover, concerns related to privacy can further limit access to such data, making the process of obtaining it a complex and nuanced undertaking. Consequently, this hinders the generality of the tuned models and may restrict their effectiveness in certain contexts. To tackle this issue, our study introduces a new approach called Federated Instruction Tuning (FedIT), which leverages federated learning (FL) as the learning framework for the instruction tuning of LLMs. This marks the first exploration of FL-based instruction tuning for LLMs. This is especially important since text data is predominantly generated by end users. Therefore, it is imperative to design and adapt FL approaches to effectively leverage these users' diverse instructions stored on local devices, while preserving privacy and ensuring data security. In the current paper, by conducting widely used GPT-4 auto-evaluation, we demonstrate that by exploiting the heterogeneous and diverse sets of instructions on the client's end with the proposed framework FedIT, we improved the performance of LLMs compared to centralized training with only limited local instructions. Further, in this paper, we developed a Github repository named Shepherd. This repository offers a foundational framework for exploring federated fine-tuning of LLMs using heterogeneous instructions across diverse categories.

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

↑