Training & Inference

Infrastructure for Federated Learning: Local GPU Capacity, Network Constraints and Operational Ownership

Federated learning trains one shared model across several organizations, and each organization keeps its data on its own servers. Each round, the sites train on their own data and send model updates to a coordinator server, which combines the updates into the next version of the model.

Two numbers decide whether the deployment can run, so check them before ordering hardware:

  1. Per-site upload bandwidth: the sustained rate each site needs to send its update within the round.
  2. Coordinator ingress: the bandwidth the coordinator needs to receive the updates arriving in the same round.

Federated Learning Across Organizations Versus Across Devices

The Kairouz survey of federated learning calls this setup cross-silo federated learning and puts its typical size at 2 to 100 clients, the survey's word for participants. The clients are separate organizations, such as hospitals and banks, or data centers in different regions.

Phones and other consumer devices also run federated learning, at up to 10^10 devices in the survey's figures. The sizing below covers organizations, because phone fleets need different engineering.

Federation across organizations fits companies that plan to train one model together and can't pool their data because of data privacy rules, custody terms or data volume. An organization that trains on one cluster can skip the per-site arithmetic.

The survey says the main bottleneck in this setting might be computation or communication, so size local GPU capacity and upload bandwidth in the same planning pass.

The Five Steps of a Federated Training Round

The survey sets out five steps that the server repeats until the end of training:

  1. Client selection: the server picks clients that meet eligibility rules; in the survey's phone example, a phone has to be idle, plugged in and on unmetered wi-fi.
  2. Broadcast: the selected clients download the current model weights and a training program from the server.
  3. Client computation: each selected client runs the training program on its own data, for example stochastic gradient descent, to compute an update.
  4. Aggregation: the server collects an aggregate of the client updates and may drop slow clients, called stragglers, once it has updates from enough clients. At this step, the server can also apply privacy tools such as secure aggregation and differential privacy noise, plus update compression.
  5. Model update: the server updates the shared model with the combined update from the clients in that round.

Each site pays for its part of steps 3 and 4: the GPUs for training on its data and the link for sending its update. Each site also needs rack space, power and remote access for its GPU node.

Federated Learning Bandwidth for Each Site and the Coordinator

Model size sets the communication overhead of each round, because each update holds about the parameter count times the bytes per parameter. An ApX Machine Learning worked example takes ResNet-50, an image model with roughly 25 million parameters stored as 4-byte, 32-bit numbers, for an update of about 100MB.

With 100 clients reporting, the server receives 10GB in each round. Many consumer and mobile connections upload far slower than they download, so sending updates takes longer than receiving the model on those links.

We extended the 100MB example to two larger hypothetical updates, with 100 sites uploading in the same 10-minute window:

ScenarioUpdate sizePer-site upload over 10 minutesCoordinator ingress at 100 sites
ResNet-50 at 32-bit (ApX example)100MBabout 1.3Mbpsabout 133Mbps
Hypothetical 1GB update1GBabout 13Mbpsabout 1.3Gbps
Hypothetical 7 billion parameter model at 32-bit28GBabout 373Mbpsabout 37Gbps

We converted bytes to bits: 100MB is 800 megabits, which takes about 1.3Mbps to send in 600 seconds. A longer window lowers each rate.

These figures assume uncompressed updates, so the 7 billion parameter model moves 2.8TB per round across 100 sites. The survey lists update compression as a way to shrink uploads.

Federated Learning Round Time: GPU Training Plus Upload

Each site's time in a round equals its local training time plus its upload time. The slowest site sets the length of the upload phase in a synchronous round, where the coordinator waits for a set of updates before moving on.

The coordinator needs a rule for slow sites, either waiting for them or dropping them after receiving enough updates. The same rule decides what happens on node dropout, when a site fails or loses its link during a round.

Each site controls its GPU capacity and can size it so training finishes inside the round window. Upload time depends on the link speed and the update size, so check both at each site before setting a round schedule.

Some organizations skip federated rounds and run one training job across several of their own data centers. That design needs a data center interconnect, a private high-speed link between the data centers.

Who Owns What in a Federated Learning Deployment

EU data protection law limits personal data to what a specified, explicit and legitimate purpose needs, under Article 5 of the GDPR. The same article requires the organization that controls the data to be able to show compliance.

We propose this split of duties between each site and the coordinator:

ResponsibilityOwnerOwner's commitment
Local GPU capacitySiteEnough GPUs to finish local training inside the round window
GPU uptimeSiteGPUs online for each round the site joins
Sustained upload bandwidthSiteThe per-site rate from the bandwidth table, held for each upload window
Coordinator ingressCoordinatorBandwidth to receive the updates arriving in the same window
Rule for slow sitesCoordinatorWritten policy on waiting for or dropping slow sites
Data custodySiteThe local dataset, which stays at the site
Data retentionSiteRetention rules for the local dataset
Compliance recordsSiteRecords showing its own compliance for the data it holds

The split follows the five steps: each site runs step 3 on the data it holds, and the coordinator runs selection, aggregation and the model update.

Teams can run the coordinator and the sites with open-source software such as NVIDIA FLARE. FLARE works with PyTorch, TensorFlow and NumPy, so teams can move existing training code into a federated setup.

Federated Learning or Centralized Training: Five Questions

Federated learning is worth a GPU node at each site when the data can't move, the job is training, and each site can hold its upload rate and GPU uptime. Otherwise, one shared cluster saves buying a GPU node for each site.

Work through these five questions in order:

  1. Can the data move lawfully? Check regulation, custody terms and data volume to see whether the datasets can move onto one cluster. If they can, train on one central cluster.
  2. Is the job training? This sizing applies to training. Serving the trained model to users, called inference, needs its own decision about central or distributed hosting.
  3. Can each site hold its upload rate? Check the per-site upload rate against the slowest link in the federation. A site below that rate upgrades its link or falls under the coordinator's rule for slow sites.
  4. Can each site keep its GPUs online? A site with frequent outages slows each round or misses rounds, so check its uptime record before it joins the federation.
  5. Does one shared cluster cost less? Price one shared cluster against a GPU node at each site plus the coordinator, using quotes for this deployment.

A failed check on question 3 or 4 leaves two options: fewer sites in the federation, or a coordinator rule that drops a lagging site from rounds.

Our zWARE software runs GPU clusters across several sites and sends each job to the best available hardware, including sites with different GPU models. It's designed for deployments that need strict data isolation and audit records.