Improving Group Connectivity for Generalization of Federated Deep Learning

Zexi Li, Jie Lin, Zhiqi Li, Didi Zhu, Tao Shen, Tao Lin, Chao WuSubmission to ICLR 2025 · Withdrawn

TL;DR

Federated Learning (FL) models often suffer from poor generalization because heterogeneous client updates drift into completely different loss basins before averaging. Drawing on Linear Mode Connectivity (LMC), this paper proves that independently training models to connect to a shared anchor model makes them mutually connected (LMC transitivity). Leveraging historical global checkpoints as anchors, the authors propose FedGuCci (and its landscape-aligning counterpart FedGuCci+), achieving substantial generalization gains across vision and NLP benchmarks without increasing communication overhead.

What Problem Does This Paper Address?

In standard FL (e.g., FedAvg), clients perform multiple local SGD steps on their private, non-IID data before the server aggregates their parameters. This asynchronous local training leads to client drift: each local model moves toward its own isolated minimum. When linearly averaged at the server, the combined parameters often cross high loss barriers, yielding a global model with significantly degraded test generalization compared to centralized training.

While previous methods address drift using proximal constraints (like FedProx) or flatness regularization (like FedSAM), they treat the parameter landscape locally. This paper approaches the problem through the lens of group connectivity: ensuring that independently trained client models remain in the same connected low-loss basin so that linear model fusion does not degrade performance.

Methods

Independent Client Training with Historical Global Anchors:
  Client 1 (w₁) <--- L_connect ---> [Anchor w*] <--- L_connect ---> Client 2 (w₂)
                                          │
                                          ▼
                             Transitivity ensures:
                               [w₁] <=========> [w₂]
                              (Mutual low loss barrier)
  1. Transitivity of Linear Mode Connectivity: Classical LMC trains pairs of models simultaneously to remove loss barriers along their interpolation line. To adapt this to decentralized FL, the authors theoretically and empirically show transitivity: if model $w_1$ and model $w_2$ independently minimize a connectivity loss to a common anchor $w^*_{\text{anc}}$, the loss barrier directly between $w_1$ and $w_2$ is also minimized and bounded.
  2. FedGuCci (Federated Learning with Improved Group Connectivity):
  3. Uses the $N$ most recent global models $\{w^j_g\}_{j=t-N+1}^t$ stored on the client as anchors (incurring zero extra communication).
  4. In each local update step, clients optimize: $$\min_{w_i} \mathcal{L}_i(w_i) + \frac{\beta}{|W^*_{\text{anc}}|} \sum_{w^* \in W^*_{\text{anc}}} \mathbb{E}_{\alpha \sim [0, 1]} \mathcal{L}_i(\alpha w_i + (1-\alpha)w^*)$$
  5. FedGuCci+ (Landscape Alignment): Because data heterogeneity warps local loss surfaces, FedGuCci+ incorporates:
  6. Logit calibration to mitigate label-distribution skew.
  7. Sharpness-Aware Minimization (SAM) to flatten local basins, expanding the overlapping low-loss region between clients into a connected "cylinder" rather than a thin line.

Datasets

The authors evaluate on standard vision and language benchmarks partitioned under Dirichlet-distributed non-IID label skew ($\alpha \in \{100, 10, 1.0, 0.5, 0.4, 0.1, 0.05\}$):

  • Vision (Trained from scratch): Fashion-MNIST (VGG11), CIFAR-10 (SimpleCNN), CIFAR-100 (ResNet-20), and Tiny-ImageNet (ResNet-18).
  • Vision (Pretrained Backbones): ImageNet-pretrained ResNet-18 and CLIP-pretrained ViT-B/32 on CIFAR-10/100.
  • Natural Language Processing (GLUE Benchmark): RoBERTa-base fine-tuned via LoRA across 6 tasks (SST-2, MRPC, CoLA, QNLI, RTE, STS-B).

No new datasets were introduced.

Key Insights and Ideas

  • Connectivity is Transitive: Prior LMC work required co-training models simultaneously. Proving transitivity allows decoupled, independent local optimization to produce mutually connectable solutions.
  • Anchors Do Not Need to Be Optimal: Experiments show transitivity holds even when anchors are poorly trained or randomly initialized, though better-trained anchors provide stronger connectivity.
  • Zero-Communication Overhead: By choosing previous global round models as anchors, the client only needs to cache weights it already received from the server.
  • Scaling Group Size ($K$): Although the loss barrier slightly increases as more client models are averaged together, it plateaus far below vanilla training barriers, proving group connectivity holds at scale.

Key Results

  • Vision Benchmarks (Table 2): Under non-IID settings ($\alpha = 0.5$, $M=50$ clients):
  • Tiny-ImageNet: FedAvg achieves 25.11%, while FedGuCci reaches 33.61% and FedGuCci+ hits 34.80% (a +9.69% absolute gain).
  • CIFAR-100: FedAvg gets 25.60% vs. FedGuCci's 29.33% and FedGuCci+'s 35.34%.
  • NLP / Pretrained LLMs (Table 3): On the GLUE benchmark with RoBERTa-base, FedGuCci achieves the highest average accuracy (80.66%) across 6 tasks compared to FedAvg (78.76%) and FedSAM (78.14%).
  • Robustness to Local Epochs (Figure 6): As local epochs increase ($E=2 \to 14$), client drift typically worsens, yet FedGuCci’s margin over FedAvg widens significantly on CIFAR-100.
  • Computation Efficiency (Table 8): On Tiny-ImageNet, FedGuCci reaches 20% target accuracy in 578 minutes ($0.72\times$ the time of FedAvg's 798 minutes), converging in fewer communication rounds despite the local connectivity calculations.

Limitations and Future Work

  • Local Compute Overhead: Evaluating loss along interpolated parameters adds extra forward/backward passes per iteration on edge devices.
  • Client Storage: Caching $N > 1$ historical model checkpoints consumes additional memory on resource-constrained devices.
  • Optimization Trade-Off: The connectivity weight $\beta$ and anchor window $N$ introduce sensitivity; setting $\beta$ too high can over-constrain local updates and hurt convergence.

Summary updated

Abstract

Federated learning (FL) involves multiple heterogeneous clients collaboratively training a global model via iterative local updates and model fusion. The generalization of FL's global model has a large gap compared with centralized training, which is its bottleneck for broader applications. In this paper, we study and improve FL's generalization through a fundamental "connectivity'' perspective, which means how the local models are connected in the parameter region and fused into a generalized global model. The term "connectivity'' is derived from linear mode connectivity (LMC), studying the interpolated loss landscape of two different solutions (e.g., modes) of neural networks. Bridging the gap between LMC and FL, in this paper, we leverage fixed anchor models to empirically and theoretically study the transitivity property of connectivity from two models (LMC) to a group of models (model fusion in FL). Based on the findings, we propose FedGuCci(+), improving group connectivity for better generalization. It is shown that our methods can boost the generalization of FL under client heterogeneity across various tasks (4 CV datasets and 6 NLP datasets) and model architectures (e.g., ViTs and PLMs).
BibTeX
@inproceedings{li2024improving,
  author = {Zexi Li and Jie Lin and Zhiqi Li and Didi Zhu and Tao Shen and Tao Lin and Chao Wu},
  title = {{Improving Group Connectivity for Generalization of Federated Deep Learning}},
  booktitle = {Federated Learning @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=vGyB8PVl4C},
}

Loading related content...

Figure