Optimized Local Updates in Federated Learning via Reinforcement Learning

Ali Murad, Bo Hui, Wei-Shinn Ku

Abstract

Federated Learning (FL) enables multiple clients to collaboratively train a global model without sharing raw data. However, data heterogeneity (non-IID data) across clients often leads to gradient cancellation and poor model performance. This paper introduces a novel framework that utilizes Deep Reinforcement Learning (DRL) to dynamically select the most effective subset of local data for training. By training on an "optimized partition" during collaborative rounds and withholding the full dataset for final local fine-tuning, the proposed method achieves significantly higher personalization and accuracy compared to traditional FL approaches.

Introduction

In the standard Federated Learning paradigm, clients contribute to a global model by training on their entire local datasets and sending weight updates to a central server. While this preserves privacy, it faces a significant hurdle: Data Heterogeneity. When clients possess vastly different data distributions, their local updates can conflict during aggregation, diluting the utility of the global model for individual participants.

This research challenges the conventional assumption that "more data is always better" in every round of FL. The authors observe that training on a full local dataset during every collaborative round can lead to "oversharing" noisy or conflicting information. Furthermore, using all available data during the FL phase leaves no "fresh" information for the client to use for final personalization after the global model has converged.

The Optimized Client Framework

To address these challenges, the authors propose the Optimized Client framework. This system integrates a DRL agent, specifically using the Deep Deterministic Policy Gradient (DDPG) algorithm, to manage the data selection process at the client level.

DRL Agent Mechanics

The agent is designed to learn which data samples are most beneficial for the current state of the global model:

  1. State ($s_t$): The agent monitors the current class-wise performance (e.g., F1-score) of the global model using the client's local validation set.
  2. Action ($a_t$): The agent outputs a vector representing the optimized ratio of data to use for each class in the subsequent training round. The authors implemented two strategies: an $\epsilon$-Greedy Normalized Action for sample counts and an $\epsilon$-Greedy Weighted Metric Action that prioritizes classes with recent performance drops.
  3. Reward ($R_t$): A piece-wise reward function based on the reduction in training loss. This encourages the agent to maximize performance gains while penalizing the use of excessive, redundant data.

Post-FL Fine-tuning

A critical component of this framework is the final local fine-tuning phase. Once the collaborative FL rounds are complete, the client takes the final aggregated global model and performs a final training pass using its entire local dataset. Because the model was not "over-fitted" to the full local distribution during the noisy collaborative phase, this "fresh" data acts as a powerful regularizer, leading to a significant boost in final personalization.

Experimental Setup

The framework was evaluated using three standard computer vision benchmarks: CIFAR-10, CIFAR-100, and FashionMNIST. To simulate realistic non-IID conditions, the authors utilized a Dirichlet Partitioner to distribute data across 8 clients, creating distinct class imbalances for each participant.

The proposed method was tested against five major FL aggregation baselines:

  • FedAvg
  • FedAvgM
  • FedProx
  • FedMedian
  • FedCDA

Key Insights and Results

Performance Gains

The "Optimized Client" consistently outperformed "Naive Clients" (those using 100% of their data throughout the process) across all benchmarks:

  • CIFAR-10: Integrating the proposed method with FedAvg increased accuracy from 26.64% to 43.01%.
  • CIFAR-100: On this more complex dataset, FedProx saw an improvement from 6.76% to 28.87% accuracy when utilizing optimized updates.
  • Convergence: The authors noted that the final local training phase reached convergence much faster because the model began from a better-generalized state provided by the DRL-guided rounds.

Mitigating Gradient Cancellation

By selecting an optimized partition, the client sends updates to the server that are less likely to conflict with those from other clients. This results in a more stable global aggregation process. The DRL agent effectively performs a form of automated curriculum learning, identifying which classes are "hard" for the current model and adjusting the data ratios to compensate.

Limitations and Future Directions

While the framework shows significant promise, it introduces certain trade-offs:

  • Computational Overhead: Running a DRL agent (DDPG) alongside a primary model (such as ResNet50) increases the resource burden on the client, which may be problematic for low-power IoT devices.
  • Scalability: The current study focused on 8 clients. Future research is required to determine how multi-agent RL systems might scale to hundreds or thousands of participating clients.
  • Performance During FL: The authors noted that during the collaborative rounds, the optimized client might marginally lag behind naive clients because it uses less data. The primary performance benefit is realized after the FL rounds conclude, which may not suit applications requiring high performance throughout the training lifecycle.

Conclusion

This research demonstrates that strategic data withholding, guided by Reinforcement Learning, can significantly improve the outcomes of Federated Learning in heterogeneous environments. By treating local data selection as a dynamic optimization problem, the framework provides a robust path toward highly personalized and accurate local models.

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