arXiv:2608.25794cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25794

Cooperative Multi-Agent Reinforcement Learning for Adaptive Aggregation in Semi-Supervised Federated Learning with non-IID Data

Rene Glitza, Luca Becker, Rainer Martin

ABSTRACT

Federated Learning (FL) enables distributed training of machine learning models while preserving data privacy. However, FL struggles with heterogeneous, non-IID client data distributions, resulting in sub-optimal and biased global models. In this paper, we propose pFedMARL, a novel approach leveraging Multi-Agent Reinforcement Learning (MARL) with Twin Delayed Deep Deterministic Policy Gradient (TD3) to dynamically adapt aggregation strategies in FL settings. Our method employs a server-side agent adjusting client contributions to optimize global model robustness and client-side agents balancing global and local updates to personalize models effectively without pre-training. We demonstrate superior performance of pFedMARL for training a semi-supervised audio spectrogram transformer, matching or outperforming FedAvg, Ditto, and local training approaches across multiple non-IID scenarios and in the presence of adversarial clients. Our results indicate that pFedMARL actively improves accuracy, robustness, and fairness, making it suitable for real-world deployments.

Index Terms— deep reinforcement learning, personalized learning, anomaly detection, data heterogeneity, adversarial clients

1. INTRODUCTION

The rise of IoT devices with AI accelerators has enabled the deployment of deep neural networks (DNNs) directly on consumer hardware. Running DNNs locally reduces latency and addresses growing privacy concerns, especially under data protection laws such as the EU GDPR [1]. However, to achieve high performance in real-world applications, access to diverse and authentic data remains critical.

Federated Learning (FL) [2] offers a promising solution by allowing edge devices to collaboratively train models without sharing raw data. Clients train locally and send model updates to a central server, which aggregates them into a global model and redistributes this model to clients. While effective in principle, FL struggles with non-independent and non-identically distributed (non-IID) data. Due to diverse environments and usage patterns, the distributions of client data may vary significantly [3,4].

To overcome these issues, prior work has explored client selection, data weighting [5], aggregation adjustments [6], and clustering [7]. Yet, standard FL methods like Federated Averaging (FedAvg) [2] often result in high performance on average but are inconsistent across individual clients. Therefore, personalized FL aims to jointly optimize global and local models [8], or embed shared knowledge into clients [9]. Also, adversarial clients may send malicious model updates that threaten the robustness and performance of the global model. Server-side Deep Reinforcement Learning (DRL) like in FedAA [10] and FedDRL [11] can be used to adaptively weigh client contributions, filtering out adversarial clients and improving convergence and fairness, but does not improve personalization.

In this work, we propose pFedMARL – Personalized Federated Learning with Multi-Agent Off-Policy Reinforcement Learning – a novel multi-agent RL-based FL framework that simultaneously creates a robust global model and personalized client models tailored to heterogeneous environments. A server-side DRL agent dynamically adjusts client aggregation weights to enhance global model robustness against non-IID data distribution and adversarial behaviors. Each client deploys a DRL agent locally to personalize its model by balancing individual learning with global knowledge. We employ Twin Delayed DDPG (TD3) [12], trained online without pretraining, for both server and client agents. Finally, we evaluate our method on a semi-supervised audio spectrogram transformer pretraining, benchmarking against FedAvg, Ditto, local-only training, and a global oracle system. By training masked-patch reconstruction and patch-level classification simultaneously, the transformer model learns rich and transferable audio representations that are well-suited for fine-tuning on various downstream applications, such as anomaly detection and condition monitoring [13], sound event detection [14], and speaker verification [15], where both generalization and accuracy are essential. Here, pFedMARL provides a flexible and scalable solution to FL under non-IID conditions, offering strong performance in global cooperation and local personalization.

References (21)