Skip to main content
QUICK REVIEW

[Paper Review] Towards Federated Foundation Models: Scalable Dataset Pipelines for Group-Structured Learning

Zachary Charles, Nicole Mitchell|arXiv (Cornell University)|Jul 18, 2023
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper introduces Dataset Grouper, a scalable, framework-agnostic library for creating large-scale group-structured datasets—particularly for federated learning—by enabling user-defined partitioning of existing datasets. It supports datasets with billions of groups and enables the first federated training of foundation models with hundreds of millions to billions of parameters, revealing that FedAvg behaves more like a meta-learning method than empirical risk minimization at scale.

ABSTRACT

We introduce Dataset Grouper, a library to create large-scale group-structured (e.g., federated) datasets, enabling federated learning simulation at the scale of foundation models. This library facilitates the creation of group-structured versions of existing datasets based on user-specified partitions and directly leads to a variety of useful heterogeneous datasets that can be plugged into existing software frameworks. Dataset Grouper offers three key advantages. First, it scales to settings where even a single group's dataset is too large to fit in memory. Second, it provides flexibility, both in choosing the base (non-partitioned) dataset and in defining partitions. Finally, it is framework-agnostic. We empirically demonstrate that Dataset Grouper enables large-scale federated language modeling simulations on datasets that are orders of magnitude larger than in previous work, allowing for federated training of language models with hundreds of millions, and even billions, of parameters. Our experimental results show that algorithms like FedAvg operate more as meta-learning methods than as empirical risk minimization methods at this scale, suggesting their utility in downstream personalization and task-specific adaptation. Dataset Grouper is available at https://github.com/google-research/dataset_grouper.

Motivation & Objective

  • To address the lack of large-scale, group-structured datasets for federated learning and foundation model research.
  • To enable efficient, memory-optimized creation of heterogeneous, federated datasets from existing datasets like those in TensorFlow and HuggingFace Datasets.
  • To support the simulation of federated training at the scale of modern foundation models, including models with hundreds of millions to billions of parameters.
  • To provide a framework-agnostic solution that scales to datasets too large to fit in memory, using streaming and hierarchical data formats.
  • To empirically investigate the behavior of federated optimization algorithms like FedAvg and FedSGD at unprecedented scale, particularly in relation to meta-learning and personalization.

Proposed method

  • Dataset Grouper uses user-defined partition functions to group examples from a base dataset into client-specific groups, enabling flexible and customizable federated data creation.
  • The library supports three data formats— in-memory, hierarchical, and streaming—offering memory efficiency by avoiding full dataset loading into RAM.
  • It is designed to scale to datasets with millions or billions of groups, using streaming iteration to minimize peak memory usage.
  • The system integrates with existing ML frameworks such as TensorFlow and HuggingFace, allowing direct use in training pipelines.
  • It enables large-scale federated language modeling by generating group-structured versions of massive text datasets like C4, with long-tailed distributions and high sequence lengths.
  • The framework supports both pre-training and fine-tuning scenarios, with support for personalization and differential privacy-aware training.
Figure 1: Per-group statistics of the new group-structured (i.e. federated) language modeling datasets.
Figure 1: Per-group statistics of the new group-structured (i.e. federated) language modeling datasets.

Experimental results

Research questions

  • RQ1How can we efficiently generate large-scale, group-structured datasets for federated learning that scale beyond the memory capacity of standard systems?
  • RQ2To what extent does FedAvg behave as a meta-learning method rather than an empirical risk minimization method when training large foundation models in a federated setting?
  • RQ3How do hyperparameters like the number of local batches per client affect pre- and post-personalization performance in federated training at scale?
  • RQ4Can federated training of billion-parameter models be practically achieved using existing optimization algorithms and scalable data pipelines?
  • RQ5What is the impact of data partitioning strategy and communication efficiency on model convergence and personalization performance in large-scale federated learning?

Key findings

  • Dataset Grouper enables the first federated training of decoder-only transformer models with 100 million to 1 billion parameters on a group-structured version of the C4 dataset, demonstrating feasibility at scale.
  • FedAvg achieves a post-personalization loss of 0.008 with 64 batches per client, while FedSGD maintains a post-personalization loss of 3.3 under the same conditions, indicating superior generalization for FedAvg in this regime.
  • When total tokens processed are equalized, FedAvg with τ=4 achieves the lowest pre-personalization loss (3.8) and post-personalization loss (0.006), suggesting optimal trade-offs in local update frequency.
  • Post-personalization loss remains stable across different τ values when communication is not a bottleneck, indicating robustness to local update schedule when sufficient training tokens are used.
  • The peak memory usage of streaming and hierarchical formats is under 2 MB, even for datasets with billions of groups, while in-memory formats require hundreds of GBs, proving the system’s scalability.
  • The results suggest that FedAvg operates more as a meta-learning method than as empirical risk minimization at scale, with strong performance in downstream personalization tasks.
(a) In-Memory.
(a) In-Memory.

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.