FedPeWS: Personalized Warmup via Subnetworks for Enhanced Heterogeneous Federated Learning

Nurbek Tastan, Samuel Horváth, Martin Takáč, Karthik Nandakumar

TL;DR

Under extreme data heterogeneity, federated learning (FL) models initialized from scratch often diverge or stall due to conflicting client updates in early rounds. FedPeWS (Personalized Warmup via Subnetworks) introduces a warmup phase where clients learn personalized, sparse neuron-level subnetworks before reverting to standard federated training. This warmup significantly accelerates convergence and boosts final model accuracy across diverse benchmarks.

What Problem Does This Paper Address?

In federated learning, clients collaboratively train a shared global model without exchanging raw data. When client data distributions diverge wildly—such as hospitals handling entirely distinct medical imaging modalities or organs—standard optimization algorithms (like FedAvg and FedProx) struggle.

The authors identify the root cause: during early rounds of training from random initialization, heterogeneous clients generate strongly conflicting parameter updates. Averaging these contradictory updates degrades performance and causes the optimizer to stall or converge to poor local optima. While adding heavy proximal regularization (e.g., in FedProx) can dampen this instability, it severely throttles local learning speed.

Methods

Instead of forcing clients to agree on every parameter immediately, FedPeWS divides training into two phases:

  1. Personalized Warmup Phase ($t \le W$):
  2. Neuron-Level Masking: Rather than masking weights individually, each client $i$ learns a continuous score vector $s_i$ over the network's hidden neurons. Scores are passed through a sigmoid function ($\theta_i = \sigma(s_i)$) and sampled via Bernoulli distributions to generate a binary mask, mapping directly to model weights. Gradients through discrete sampling are approximated using the Straight-Through Estimator (STE).
  3. Alternating Optimization: In each local step, clients alternate between updating mask scores and updating subnetwork weights.
  4. Mask Diversity Loss: To prevent all clients from selecting identical neurons (leaving others untrained), the mask loss includes a diversity term: $-\lambda \|\sigma(s_i) - \theta_{g \setminus \{i\}}\|_2^2$, which encourages client $i$'s mask to deviate from the rest of the federation's aggregated mask probability.
  5. Mask-Aware Server Aggregation: The server aggregates only the active subnetwork parameters, normalizing each parameter by the number of clients that actually updated it.
  6. Full Collaboration Phase ($t > W$):
  7. Once warmup completes, masks are removed ($m = 1$), and clients resume standard federated optimization (e.g., FedAvg or FedProx) over all parameters.

FedPeWS-Fixed Variant: For settings with few clients and known data distributions, the server can skip mask learning and statically partition hidden neurons disjointly among participants.

Datasets

The authors evaluate FedPeWS across three multi-domain non-IID benchmarks:

  • Synthetic-32K and Synthetic-3.2K: A custom non-linear dataset consisting of 4 interleaved 2D Gaussian clusters projected into a 5D polynomial feature space ($[x, y, x^2, y^2, xy]$).
  • CIFAR-MNIST: A combined 20-class dataset pairing CIFAR-10 (natural images) and MNIST (digit images resized to $32 \times 32$), allocating separate datasets to separate clients.
  • {Path-OCT-Tissue}MNIST: An amalgamation of three distinct MedMNIST v2 datasets (Pathology, Optical Coherence Tomography, and Tissue), spanning 21 total classes across different medical modalities.
  • Dirichlet Non-IID Partitions: Dirichlet-split variants ($\alpha \in [0.1, 5.0]$) testing varying degrees of skew, scaled up to 200 participants under partial participation.

Key Insights and Ideas

  • Decoupled Specialization Prevents Early Interference: By confining clients to distinct functional pathways during early rounds, participants extract meaningful local representations without corrupting each other’s gradient trajectories.
  • Subnetworks Act as Feature Pathways: Analysis of post-warmup neuron activations reveals that even after full network training resumes, neurons originally assigned to a client continue firing preferentially for that client’s data distribution. The warmup effectively establishes organized routing through the shared architecture.
  • Plug-and-Play Optimizer Compatibility: FedPeWS is not a standalone optimizer; it acts as a warmup scaffold compatible with existing FL optimization schemes (tested successfully on both FedAvg and FedProx).

Key Results

  • Higher Accuracy in Extreme Heterogeneity: On the Synthetic-32K benchmark with 4 clients (where each client only holds 1 class), FedAvg fails with 58.40% accuracy, whereas FedPeWS achieves 91.13% (a +32.72% gain).
  • Faster Convergence: Across several learning rate configurations, FedPeWS reached target accuracies in substantially fewer communication rounds (e.g., reaching 99% accuracy in 115 rounds vs. 148 rounds for FedAvg on Synthetic-32K). In regimes where FedAvg or FedProx failed to meet target accuracy within the round budget, FedPeWS converged successfully (e.g., hitting 99.49% vs. 91.40% on Synthetic-3.2K).
  • Scale and Robustness: On large-scale simulations with 200 clients ($\alpha = 0.5$, 10% participation rate), FedPeWS consistently outpaced FedAvg throughout the training lifecycle.

Limitations and Future Work

  • Hyperparameter Sensitivity: The method introduces two hyperparameters that currently require tuning via grid search: the warmup budget ($\tau = W/T$) and the mask diversity penalty ($\lambda$).
  • Local Compute Overhead: Alternating optimization of mask scores and model weights slightly increases local computation and wall-clock training time per round.
  • Theoretical Analysis: The paper lacks formal theoretical convergence proofs under non-convex federated objectives.

Summary updated

BibTeX
@inproceedings{tastan2025fedpews,
  author = {Nurbek Tastan and Samuel Horváth and Martin Takáč and Karthik Nandakumar},
  title = {{FedPeWS: Personalized Warmup via Subnetworks for Enhanced Heterogeneous Federated Learning}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2025},
  url = {https://openreview.net/forum?id=iYwiyS1YdQ},
}
Figure