arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.14212cs.CRcs.CL
收藏

联邦域特定知识迁移:基于合成数据的大语言模型

Federated Domain-Specific Knowledge Transfer on Large Language Models Using Synthetic Data

The Hong Kong University of Science and Technology(香港科技大学);Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Center for Data Science, AAIS, Peking University(北京大学AAIS数据科学中心);WeBank(微众银行);South China University of Technology(华南理工大学)

Haoran Li, Xinyuan Zhao, Dadi Guo, Hanlin Gu, Ziqian Zeng, Yuxing Han, Yangqiu Song, Lixin Fan, Qiang Yang

AI总结:

本文提出联邦领域特定知识迁移(FDKT)框架,利用差分隐私合成数据增强领域特定少样本演示,实现从大语言模型到小语言模型的知识迁移,在保护隐私的同时提升任务性能约5%。

摘要:

随着大语言模型(LLMs)展现出无与伦比的性能和泛化能力,LLMs被广泛使用并集成到各种应用中。在涉及敏感领域时,如联邦学习场景中常见的情况,严格的数据安全和隐私法规禁止直接在私有数据上使用外部LLMs。对于本地客户端而言,利用LLMs来改进领域特定的小语言模型(SLMs),这些模型以有限的计算资源和领域特定数据为特征,已引起广泛的研究关注。通过观察到LLMs能够增强领域特定的SLMs,现有方法主要集中于利用公共数据或LLMs生成更多数据,以将知识从LLMs迁移到SLMs。然而,由于LLMs生成的数据与客户端领域特定数据之间存在差异,这些方法无法在领域特定任务中产生显著的改进。在本文中,我们引入了一个联邦领域特定知识迁移(FDKT)框架,该框架能够在保护客户端数据隐私的同时,实现从LLMs到SLMs的领域特定知识迁移。核心洞察在于利用LLMs基于领域特定的少样本演示来增强数据,这些演示是通过差分隐私从私有领域数据中合成的。这些合成样本与客户端的私有数据具有相似的数据分布,并允许服务器端的LLM生成特定知识以改进客户端的SLMs。广泛的实验结果表明,与在私有数据上进行本地训练相比,所提出的FDKT框架在隐私预算小于10的情况下,持续且显著地将SLMs的任务性能提升了约5%。

英文摘要:

As large language models (LLMs) demonstrate unparalleled performance and generalization ability, LLMs are widely used and integrated into various applications. When it comes to sensitive domains, as commonly described in federated learning scenarios, directly using external LLMs on private data is strictly prohibited by stringent data security and privacy regulations. For local clients, the utilization of LLMs to improve the domain-specific small language models (SLMs), characterized by limited computational resources and domain-specific data, has attracted considerable research attention. By observing that LLMs can empower domain-specific SLMs, existing methods predominantly concentrate on leveraging the public data or LLMs to generate more data to transfer knowledge from LLMs to SLMs. However, due to the discrepancies between LLMs' generated data and clients' domain-specific data, these methods cannot yield substantial improvements in the domain-specific tasks. In this paper, we introduce a Federated Domain-specific Knowledge Transfer (FDKT) framework, which enables domain-specific knowledge transfer from LLMs to SLMs while preserving clients' data privacy. The core insight is to leverage LLMs to augment data based on domain-specific few-shot demonstrations, which are synthesized from private domain data using differential privacy. Such synthetic samples share similar data distribution with clients' private data and allow the server LLM to generate particular knowledge to improve clients' SLMs. The extensive experimental results demonstrate that the proposed FDKT framework consistently and greatly improves SLMs' task performance by around 5\% with a privacy budget of less than 10, compared to local training on private data.

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

↑