atlas

Research map / Federated learning and privacy / Communication-efficient FL

$\texttt{pfl-research}$: simulation framework for accelerating research in Private Federated Learning

NeurIPS 2024 · Federated learning and privacy › Communication-efficient FL · approach: Efficient local training in FL · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces pfl-research, a fast modular Python framework for simulating (private) federated learning that simulates computation without topology, and benchmarks it against other FL simulators for speed and provides a PFL benchmark suite.

Problem

Existing open-source federated learning simulators are too slow to run experiments on large, realistic FL datasets, especially with differential privacy, limiting research productivity.

Approach

Simulate only the computation of FL (no coordinator/topology), keep one model per worker process resident on GPU with in-place updates, load-balance users across workers, and run DP mechanisms on GPU as composable postprocessors, allowing multiple processes to share a GPU.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use pfl-research (PyTorch) with p=5 instead of p=1pfl-research · CIFAR10 IIDwall-clock time: $10.13_{\pm 0.06}$ -> $4.20_{\pm 0.10}$Helped
use pfl-research instead of alternative open-source simulatorsCIFAR10 IID simulation · CIFAR10 IIDwall-clock time: 7-72$\times$ fasterHelped
upgrade from pfl-research 0.1.0 to 0.2.0pfl-research · FLAIRwall-clock time: 2.16 -> 1.77Helped
enable central DP (ablation)pfl-research 0.2.0 · FLAIRwall-clock time: 1.77 -> 1.93; $9\%$ extra simulation wall-clock timeHurt
use banded matrix factorization instead of Gaussian mechanism with PLD accountingFedAvg with central DP · StackOverflowperplexity: $69.11_{\pm .35}$ -> $62.47_{\pm .22}$; 10\% relative improvementHelped
use FedProx instead of FedAvgfederated training · FLAIR IIDmAP: $65.08_{\pm .60}$ -> $64.45_{\pm 1.13}$Hurt
use FedProx instead of FedAvgfederated training · FLAIRmAP: $61.83_{\pm .10}$ -> $62.02_{\pm .11}$Helped
use SCAFFOLD instead of FedAvgfederated training · CIFAR10, StackOverflow, and FLAIR benchmarksbenchmark performanceHurt
increase from 1 to 5 processes per GPUpfl-research distributed simulations · CIFAR10 and StackOverflowwall-clock time: less than $0.43$ of that with $p=1$Helped
add greedy scheduling of users (ablation)pfl-research worker scheduling · FLAIRmaximum straggler time: $1294$ -> $484$Helped
add median datapoint count as a base to greedy scheduling weights (ablation)pfl-research worker scheduling · FLAIRmaximum straggler time: $484$ -> $178$Helped
add a base value close to the median number of datapoints per user to scheduling weights (ablation)pfl-research worker scheduling · FLAIRwall-clock time: additional $3\%$ speedup; total $19\%$ speedup compared to no worker schedulingHelped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR10 StackOverflow FLAIR Stanford Alpaca Aya OpenAssistant

Benchmarks: CIFAR10 StackOverflow FLAIR Stanford Alpaca Aya OpenAssistant

Metrics: wall-clock time accuracy perplexity mAP

Baselines: FedML TensorFlow Federated Flower FedScale FLUTE

Builds on: FedAvg FedAdam DP-FTRL Horovod

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy