Skip to main content
QUICK REVIEW

[论文解读] FedLLM-Bench: Realistic Benchmarks for Federated Learning of Large Language Models

Rui Ye, Rui Ge|arXiv (Cornell University)|Jun 7, 2024
Privacy-Preserving Technologies in DataComputer Science被引用 3
一句话总结

FedLLM-Bench 是首个面向联邦大语言模型(FedLLM)的现实基准,引入了四个自然划分的数据集——其中三个用于指令微调(Fed-Aya、Fed-WildChat、Fed-ChatbotIT),一个用于偏好对齐(Fed-ChatbotPA),客户端数量在38至747之间。该基准捕捉了真实世界中的数据多样性,包括语言、质量、数量、指令、长度和偏好,支持在6项指标下对8种联邦学习(FL)方法进行公平评估,关键发现表明:与本地训练相比,联邦学习在性能上保持一致提升,且语言特定协作具有显著优势。

ABSTRACT

Federated learning has enabled multiple parties to collaboratively train large language models without directly sharing their data (FedLLM). Following this training paradigm, the community has put massive efforts from diverse aspects including framework, performance, and privacy. However, an unpleasant fact is that there are currently no realistic datasets and benchmarks for FedLLM and previous works all rely on artificially constructed datasets, failing to capture properties in real-world scenarios. Addressing this, we propose FedLLM-Bench, which involves 8 training methods, 4 training datasets, and 6 evaluation metrics, to offer a comprehensive testbed for the FedLLM community. FedLLM-Bench encompasses three datasets (e.g., user-annotated multilingual dataset) for federated instruction tuning and one dataset (e.g., user-annotated preference dataset) for federated preference alignment, whose scale of client number ranges from 38 to 747. Our datasets incorporate several representative diversities: language, quality, quantity, instruction, length, embedding, and preference, capturing properties in real-world scenarios. Based on FedLLM-Bench, we conduct experiments on all datasets to benchmark existing FL methods and provide empirical insights (e.g., multilingual collaboration). We believe that our FedLLM-Bench can benefit the FedLLM community by reducing required efforts, providing a practical testbed, and promoting fair comparisons. Code and datasets are available at https://github.com/rui-ye/FedLLM-Bench.

研究动机与目标

  • 为解决当前联邦大语言模型(FedLLM)联邦学习缺乏真实、代表性数据集的问题,目前的方法依赖于人工划分的数据。
  • 通过提供具备真实世界数据特性的标准化测试平台,实现FedLLM方法的公平、可复现且实用的评估。
  • 支持FedLLM领域的新研究方向探索,例如多语言协作与差分隐私的集成。
  • 通过统一的代码库和数据集集合,降低重复实现的工作量,并提升现有FedLLM方法之间的可比性。

提出的方法

  • 该基准引入了四个自然划分、用户标注的数据集:Fed-Aya(多语言指令微调)、Fed-WildChat与Fed-ChatbotIT(使用真实用户指令的指令微调)、Fed-ChatbotPA(基于用户偏好的偏好对齐)。
  • 数据集按真实用户ID进行划分,客户端数量在38至747之间,反映真实的跨设备联邦学习场景。
  • 该基准整合了多种数据异质性:语言(多语言)、数据质量与数量差异、序列长度异质性,以及客户端间偏好异质性。
  • 在所有数据集上,对八种代表性FedLLM方法(如FedAvg、FedSamLang、FedSimLang)使用六项标准化指标进行了实现与评估。
  • 在用户级别应用差分隐私,采用可调的(ε, δ)参数,以评估FedLLM中隐私-准确率之间的权衡。
  • 该基准已开源,代码与数据集可通过 https://github.com/rui-ye/FedLLM-Bench 获取,供社区使用。

实验结果

研究问题

  • RQ1在现实、多样化、多语言的大语言模型微调场景中,联邦学习是否能持续优于本地训练?
  • RQ2在多语言FedLLM中,相同语言客户端之间的协作与全局协作相比,效果如何?
  • RQ3差分隐私对使用真实用户数据的联邦指令微调性能有何影响?
  • RQ4数据异质性(如质量、数量、指令长度差异)如何影响FedLLM方法的性能?
  • RQ5该基准能否支持新型FedLLM技术(如语言个性化或隐私保护训练)的开发与公平评估?

主要发现

  • FedAvg在所有语言和数据集上均持续优于本地训练,证明了联邦学习中协作的价值。
  • FedSamLang(同语言内协作)在所有语言上的平均得分最高,表明语言特定协作具有显著优势。
  • FedSimLang(相似语言间协作)在3种语言(en、pt、zh)上优于FedAvg,但在其他语言上表现较差,表明跨语言协作的收益具有上下文依赖性。
  • 在(ε=1, δ=1e-4)的差分隐私设置下,FedAvg仍优于本地训练,表明强隐私保障与高效模型训练可兼容。
  • FedAvg在(ε=1e-3, δ=1e-4)-DP设置下的性能与非私有FedAvg相当,表明存在可行的隐私-准确率权衡方案。
  • 该基准揭示了相似语言间的多语言协作可带来比全局协作更高的性能增益,提示未来应发展语言感知的FedLLM架构。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。