Optimized Local Updates in Federated Learning via Reinforcement Learning

Ali Murad, Bo Hui, Wei-Shinn Ku

TL;DR

In Federated Learning (FL) with highly non-IID data, training clients on all available local data can counterintuitively degrade performance due to conflicting model updates canceling out at the server. This paper introduces a Deep Reinforcement Learning (DRL) framework that dynamically selects an optimized subset of local data for FL training rounds, reserving the remaining "fresh" data to deliver a massive personalization boost during post-FL fine-tuning.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple decentralized clients to collaboratively train a global machine learning model without directly sharing their private data. While powerful, FL frequently stumbles when data is non-IID (not identically and independently distributed) across different clients.

The conventional wisdom in machine learning is that more data equals better performance. However, the authors identify a hidden pitfall in FL: when clients train on more local data than necessary, they risk oversharing information with the central server. During the server aggregation phase, these over-fitted, non-IID updates from different clients can clash and effectively cancel each other out, leading to poor global and local model performance. The challenge addressed here is determining exactly how much—and what kind of—local data a client should use during FL to maximize collaboration efficiency without hurting its ultimate personalized performance.

Methods

The authors introduce the concept of an Optimized Client that uses a DRL agent to dynamically partition its local dataset during FL rounds, contrasting it with standard Naive Clients that blindly use all their data.

Fig. 1: Naive vs. Optimized clients.

The framework models the data selection process as a reinforcement learning problem:

  • State ($s_t$): The class-wise performance (measured via F1-Score) of the aggregated server model on the client's local validation set.
  • Action ($a_t$): A vector defining the percentage of data samples to utilize for each class in the upcoming local training round. The authors propose two distinct action selection strategies: $\epsilon$-Greedy Normalized Action and $\epsilon$-Greedy Weighted Metric Action (which looks back $\eta$ rounds to increase weights for underperforming classes).
  • Reward ($r_t$): A piece-wise reward function that rewards the agent for reducing local training loss while penalizing it for using excessive amounts of data.

The DRL agent is trained using the Deep Deterministic Policy Gradient (DDPG) algorithm.

Fig. 2: FL Workflow & RL Agent Environment Interaction.

Crucially, the training workflow operates in two distinct phases:

  1. FL Phase: The DRL agent restricts the client to training only on an Action Partitioned Dataset (a optimized subset) to prevent sending conflicting updates to the server.
  2. Post-FL Personalization Phase: Once the collaborative FL rounds conclude, the optimized client takes the final global model parameters and fine-tunes them locally using its entire dataset until convergence.
The Overall Framework for Optimized Client Training

Datasets

The strategy was evaluated using three widely recognized image classification benchmarks:

  • CIFAR-10 (10 classes)
  • CIFAR-100 (100 classes)
  • FashionMNIST (10 classes)

To simulate realistic, heterogeneous FL environments, the authors applied a Dirichlet Partitioner to distribute the data non-IID across 8 distinct clients, using an 80/20 train/validation split for each client.

Key Insights and Ideas

  • Less is More During Aggregation: Restricting the volume of data used during the collaborative FL phase prevents a client's unique data distribution from generating extreme updates that disrupt or get wiped out during server aggregation.
  • The Value of "Fresh" Data: By intentionally leaving a portion of local data untouched during FL rounds, the client maintains a pristine reservoir of information. When this unused data is introduced during post-FL fine-tuning, it provides a powerful, clean gradient signal that rapidly personalizes the model.
  • The Strategic Dip: During active FL rounds, the optimized client actually exhibits lower validation accuracy than naive clients because it trains on less data. However, this is a calculated trade-off; it prevents model saturation and sets the stage for superior convergence post-FL.

Key Results

The authors integrated their framework into five foundational FL aggregation baselines: FedAvg, FedAvgM, FedMedian, FedProx, and FedCDA. Across all datasets and frameworks, the optimized client achieved massive performance leaps after post-FL fine-tuning:

  • CIFAR-10 (with FedAvg): Final accuracy skyrocketed from 26.64% (baseline) to 43.01% (with the optimized framework).
  • FashionMNIST (with FedProx): Accuracy jumped from 33.58% to 50.13%.
  • CIFAR-100 (with FedCDA): Accuracy surged from a meager 6.31% to 30.54%.

Additionally, the authors noted a substantial increase in convergence speed during the final local training phase, as the model was already well-conditioned by the server updates.

Limitations and Future Work

The primary limitation acknowledged by the authors is that the optimized client marginally lags behind naive clients during the active FL rounds. While it wins decisively in the end, this temporary performance dip could be problematic in systems requiring high intermediate accuracy.

Furthermore, this study primarily evaluates a setup containing a single optimized client working alongside multiple naive clients. The authors note that future work should explore scaling this framework to multi-agent and model-based RL systems where all participating clients dynamically optimize their data partitions simultaneously.

Summary updated

BibTeX
@inproceedings{murad2025optimized,
  author = {Ali Murad and Bo Hui and Wei-Shinn Ku},
  title = {{Optimized Local Updates in Federated Learning via Reinforcement Learning}},
  booktitle = {IJCNN},
  year = {2025},
  doi = {10.1109/ijcnn64981.2025.11227867},
}
Figure