Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

FedLLM-Bench is the first realistic benchmark for federated learning of large language models (FedLLM), introducing four naturally split datasets—three for instruction tuning (Fed-Aya, Fed-WildChat, Fed-ChatbotIT) and one for preference alignment (Fed-ChatbotPA)—with client counts ranging from 38 to 747. It captures real-world data diversities including language, quality, quantity, instruction, length, and preference, enabling fair evaluation of 8 FL methods across 6 metrics, with key findings showing consistent performance gains over local training and benefits from language-specific collaboration.

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.

Motivation & Objective

  • To address the lack of realistic, representative datasets for federated learning of large language models (FedLLM), which currently rely on artificially partitioned data.
  • To enable fair, reproducible, and practical evaluation of FedLLM methods by providing a standardized testbed with real-world data properties.
  • To support exploration of new research directions in FedLLM, such as multilingual collaboration and differential privacy integration.
  • To reduce re-implementation effort and improve comparability across existing FedLLM methods through a unified codebase and dataset collection.

Proposed method

  • The benchmark introduces four naturally split, user-annotated datasets: Fed-Aya (multilingual instruction tuning), Fed-WildChat and Fed-ChatbotIT (instruction tuning with real user instructions), and Fed-ChatbotPA (preference alignment with user preferences).
  • Datasets are partitioned by real user IDs, with client counts ranging from 38 to 747, reflecting realistic cross-device FL settings.
  • The benchmark incorporates multiple data diversities: language (multilingual), data quality and quantity variation, sequence length heterogeneity, and preference heterogeneity across clients.
  • Eight representative FedLLM methods (e.g., FedAvg, FedSamLang, FedSimLang) are implemented and evaluated across all datasets using six standardized metrics.
  • Differential privacy is applied at the user level with tunable (ε, δ) parameters to evaluate privacy-accuracy trade-offs in FedLLM.
  • The benchmark is open-sourced with code and datasets available at https://github.com/rui-ye/FedLLM-Bench for community use.

Experimental results

Research questions

  • RQ1Can federated learning consistently outperform local training in realistic, diverse, multilingual LLM fine-tuning scenarios?
  • RQ2How does collaboration among clients with similar languages compare to global collaboration in multilingual FedLLM?
  • RQ3What is the impact of differential privacy on performance in federated instruction tuning with real user data?
  • RQ4How do data heterogeneities—such as varying quality, quantity, and instruction length—affect the performance of FedLLM methods?
  • RQ5Can the benchmark support the development and fair evaluation of new FedLLM techniques, such as language personalization or privacy-preserving training?

Key findings

  • FedAvg consistently outperforms local training across all languages and datasets, demonstrating the value of collaboration in FedLLM.
  • FedSamLang (collaboration within same language) achieves the highest average score across languages, indicating benefits of language-specific collaboration.
  • FedSimLang (collaboration among similar languages) outperforms FedAvg on 3 languages (en, pt, zh) but underperforms on others, suggesting context-dependent benefits of cross-lingual collaboration.
  • With (ε=1, δ=1e-4)-differential privacy, FedAvg still outperforms local training, showing that strong privacy guarantees are compatible with effective model training.
  • FedAvg with (ε=1e-3, δ=1e-4)-DP achieves performance comparable to non-private FedAvg, indicating a viable privacy-accuracy trade-off.
  • The benchmark enables the discovery that multilingual collaboration among similar languages can yield higher gains than global collaboration, suggesting potential for future language-aware FedLLM architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.