NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Worldwide Federated Training of Language Models

Alex Iacob, Lorenzo Sani, Bill Marino, Preslav Aleksandrov, William F. Shen, Nicholas Donald Lane

Abstract

The reliance of language model training on massive amounts of computation and vast datasets scraped from potentially low-quality, copyrighted, or sensitive data has come into question practically, legally, and ethically. Federated learning provides a plausible alternative by enabling previously untapped data to be voluntarily gathered from collaborating organizations. However, when scaled globally, federated learning requires collaboration across heterogeneous legal, security, and privacy regimes while accounting for the inherent locality of language data; this further exacerbates the established challenge of federated statistical heterogeneity. We propose a Worldwide Federated Language Model Training (WorldLM) system based on federations of federations, where each federation has the autonomy to account for factors such as its industry, operating jurisdiction, or competitive environment. WorldLM enables such autonomy in the presence of statistical heterogeneity via partial model localization by allowing sub-federations to attentively aggregate key layers from their constituents. Furthermore, it can adaptively share information across federations via residual layer embeddings. Evaluations of language modeling on naturally heterogeneous datasets show that WorldLM outperforms standard federations by up to $1.91\times$, approaches the personalized performance of fully local models, and maintains these advantages under privacy-enhancing techniques.

Introduction

Traditional Large Language Model (LLM) training relies on massive, centralized compute clusters and vast datasets scraped from the web. This paradigm is increasingly facing significant hurdles. Legal and ethical regulations, such as the EU's GDPR and the AI Act, restrict cross-border data movement and demand strict governance. Furthermore, high-quality public data is becoming scarce, with the most valuable remaining information locked away in private silos like medical records and corporate documents.

Standard Federated Learning (FL) attempts to solve this but often assumes data is somewhat uniform across participants. In a global context, a hospital in Japan and a law firm in France possess vastly different data distributions, causing standard FL models to diverge. WorldLM addresses these challenges by building a global-scale FL system that respects local autonomy and legal boundaries while benefiting from collective knowledge.

The WorldLM Framework

WorldLM moves away from the "one-size-fits-all" global model in favor of a hierarchical structure designed for global governance and technical efficiency.

The WorldLM hierarchical architecture, showing the Root, Regional, and Edge nodes with shared backbones and localized key/value layers.

Federation of Federations

Instead of a single central server, WorldLM utilizes a tree-like hierarchy (Root → Regional → Edge). This allows sub-federations, such as all healthcare providers within a specific jurisdiction, to maintain their own governance and privacy protocols. This technical hierarchy maps directly to legal and organizational boundaries, solving the federated governance problem by design.

Partial Model Localization and Attention

The model is split into a backbone (shared feature extractor) and personalized key layers (typically the final 1–3 transformer blocks). While the backbone is trained using standard FL methods like FedAvg, the key layers are specific to each node. Rather than simple averaging, WorldLM employs an attention mechanism to aggregate these key layers, allowing nodes to "pay more attention" to peers with similar data distributions.

Cross-Federation Information Sharing

To support nodes that are outliers within their local federation, WorldLM uses residual layer embeddings. These low-dimensional "keys and values" are routed across the hierarchy to find relevant knowledge from distant sub-federations without moving raw data.

Experimental Setup

The researchers evaluated WorldLM using several large-scale datasets partitioned to simulate real-world heterogeneity:

  • The Pile: A massive English corpus partitioned hierarchically by domain (e.g., medical data vs. web crawls).
  • mC4 (Multilingual Colossal Common Crawl): Used to simulate geographic distribution by partitioning data into language families.
  • C4: Used as an IID (Independent and Identically Distributed) baseline to test performance under uniform data conditions.
Hierarchical partitioning of datasets to simulate the statistical heterogeneity found in global federated learning environments.

Key Results and Insights

Superior Performance and Efficiency

WorldLM outperformed standard FL by up to 1.91× in terms of local perplexity on the multilingual mC4 dataset. On The Pile, the system approached the performance of fully centralized models while keeping data strictly local. The authors found that personalizing just the last 1–3 transformer blocks was sufficient to reap these benefits, keeping communication overhead manageable.

Stability Under Privacy Constraints

A critical finding is WorldLM's resilience to Differential Privacy (DP). In standard FL, the noise required for DP often causes global models to diverge. In WorldLM, the personalized layers effectively "filter" the noise in the global backbone, maintaining stable performance even with a noise multiplier of $\sigma = 0.5$.

Conclusion and Future Work

While WorldLM shows significant promise, its performance is currently dependent on the initial hierarchical structure. If the hierarchy is misaligned with the actual data distribution, the root node may struggle to reconcile updates. Future research will explore integrating Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA to further reduce communication costs and enable the training of billion-scale models within this hierarchical framework.

Summary updated

BibTeX
@inproceedings{iacob2024worldwide,
  author = {Alex Iacob and Lorenzo Sani and Bill Marino and Preslav Aleksandrov and William F. Shen and Nicholas Donald Lane},
  title = {{Worldwide Federated Training of Language Models}},
  booktitle = {Federated Learning @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=YMSLZUmQVV},
}
Figure