FedQS: Optimizing Gradient and Model Aggregation for Semi-Asynchronous Federated Learning

Yunbo Li, Jiaping Gui, Zhihang Deng, Fanchao Meng, Yue Wu

Introduction

Federated learning (FL) enables collaborative model training across multiple parties without sharing raw data. Within this domain, Semi-Asynchronous FL (SAFL) has emerged as a balanced approach: it is faster than synchronous FL (which bottlenecks on the slowest "straggler" clients) and more stable than fully asynchronous FL (where stale updates can derail training). FedQS is a novel framework designed to bridge the performance gap between gradient-based and model-based aggregation in SAFL, adaptively tuning local training to achieve state-of-the-art accuracy and faster convergence without sacrificing stability.

The Aggregation Dilemma in SAFL

SAFL faces a significant dilemma when choosing an aggregation strategy due to two main culprits: stale updates (clients training on outdated global models) and data heterogeneity (non-IID data across clients).

  1. Gradient-based Aggregation (e.g., FedSGD): Achieves fast convergence and high accuracy but suffers from massive fluctuations and instability.
  2. Model-based Aggregation (e.g., FedAvg): Offers high stability but results in painfully slow convergence and often lower final accuracy.

The FedQS Framework

To address these disparities, the authors introduce FedQS (Quadrant Selection), a framework utilizing a "divide-and-conquer" strategy to manage client diversity. The system architecture consists of three core modules:

The FedQS system architecture, showing the interaction between client-side adaptation and server-side aggregation.
  • Module ①: Global Aggregation Estimation: Clients store the last two global models to calculate a "pseudo-global gradient." This allows them to measure how similar their local updates are to the overall training direction using cosine similarity.
  • Module ②: Local Training Adaptation: The core intelligence of FedQS classifies clients into four distinct quadrants based on their update speed ($f_i^t$) and gradient similarity ($s_i^t$):
  • FWBC (Fast-and-Weakly-Biased): High speed, high similarity. These "star students" have their learning rate slightly reduced to prevent them from over-dominating the global model.
  • FSBC (Fast-but-Strongly-Biased): High speed, low similarity. These clients possess unique data. FedQS maintains their learning rate but uses server-side feedback to weight their updates appropriately.
  • SWBC (Straggling-but-Weakly-Biased): Low speed, high similarity. Representing clients with good data but slow hardware, FedQS boosts their learning rate and adds momentum to help them keep pace.
  • SSBC (Straggling-and-Strongly-Biased): Low speed, low similarity. For this challenging group, FedQS uses local validation sets to determine if they are merely slow or if their data is too divergent.
The four-quadrant classification strategy used to adaptively tune client training based on speed and similarity.
  • Module ③: Global Model Aggregation: The server adaptively weights updates using a feedback mechanism, ensuring that fast but biased clients do not pull the global model away from the optimum.

Key Insights

  • Optimization Continuity: The authors theorize that gradient aggregation preserves the "momentum" of the optimization trajectory. In contrast, model aggregation effectively "resets" the trajectory to a weighted average of parameters, disrupting progress on the loss landscape.
  • Momentum as a Stabilizer: Unlike standard SGD where momentum primarily accelerates training, FedQS utilizes it as a "trajectory stabilizer." It is applied specifically to clients whose updates align well with the global model, mitigating the noise introduced by asynchronous updates.
  • Self-Organizing Quadrants: By using average speed and similarity as dynamic dividers, the system self-organizes without requiring the server to have prior knowledge of client hardware or data distributions.

Experimental Setup & Results

FedQS was evaluated across three distinct domains using a Dirichlet distribution to simulate non-IID data and a 1:50 hardware speed ratio to mimic realistic heterogeneous conditions:

  • Computer Vision (CV): ResNet-18 on CIFAR-10.
  • Natural Language Processing (NLP): LSTM on the Shakespeare dataset.
  • Real-World Data (RWD): Fully Connected Network (FCN) on the UCI Adult dataset.

FedQS consistently outperformed state-of-the-art baselines (such as FedBuff, WKAFL, and FedAT):

  • Accuracy: Improved average accuracy by 38.98% compared to the best model-based baselines and 5.65% over gradient-based ones.
  • Convergence Speed: Reached target accuracy 12.93% to 15.74% faster in terms of communication rounds.
  • Efficiency: Reduced total wall-clock training time by up to 72.63% against high-precision baselines.
  • Stability: Significantly reduced the accuracy oscillations typically seen in gradient-based SAFL.

Limitations and Future Directions

  • Hyperparameter Sensitivity: FedQS introduces new hyperparameters for learning rate and momentum adaptation. Future work should explore automatic tuning mechanisms for these values.
  • Privacy: The framework does not currently incorporate Differential Privacy (DP). Integrating DP without degrading the utility of the similarity scores is a critical next step.
  • Scalability: The overhead of calculating pseudo-gradients (Module ①) may become a bottleneck for extremely large models, such as Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{li2025fedqs,
  author = {Yunbo Li and Jiaping Gui and Zhihang Deng and Fanchao Meng and Yue Wu},
  title = {{FedQS: Optimizing Gradient and Model Aggregation for Semi-Asynchronous Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=bbVB4ZaqEf},
}
Figure