Abstract
Federated Learning (FL) has emerged as a prominent paradigm for privacy-preserving machine learning, allowing models to be trained across decentralized devices without sharing raw data. Despite its potential, FL faces significant challenges due to resource heterogeneity, where devices with varying computational and communication capabilities (stragglers) can impede system performance. This paper presents Dap-FL, an innovative framework that integrates Deep Reinforcement Learning (DRL) and secure aggregation to address these hurdles. By utilizing a local Deep Deterministic Policy Gradient (DDPG) agent, each client adaptively tunes its training hyperparameters—specifically the learning rate and local epochs—to match its resource constraints. Furthermore, the system employs the Paillier cryptosystem to ensure secure model aggregation against active adversaries. Evaluations on benchmark datasets show that Dap-FL significantly improves model accuracy and convergence speed over existing baseline methods.
1. Introduction
Federated Learning (FL) is designed to train global models while keeping data localized on user devices. However, the "one-size-fits-all" approach of standard FL algorithms often fails in real-world scenarios where devices have heterogeneous resources. Stragglers—devices that are slower or have limited connectivity—can delay the entire training process or be excluded entirely, leading to data waste and biased models. Previous attempts to mitigate this using discrete reinforcement learning (e.g., DQN) often struggled with continuous parameter spaces and ignored the security implications of adaptive updates.
2. System Architecture
The Dap-FL framework consists of four primary entities: the Key Distribution Center (KDC), the Central Server (CS), multiple clients, and potential active adversaries. The KDC manages cryptographic keys, while the CS aggregates local model updates to form a global model. Clients perform local training on their private datasets using hyperparameters determined by their internal DRL agents.
3. Adaptive Tuning via DDPG
A core contribution of Dap-FL is the use of a local DDPG agent on each client to manage the trade-off between model performance and resource consumption. Unlike DQN, which operates on discrete action spaces, DDPG allows for the continuous tuning of the local learning rate ($\eta$) and the number of local training epochs ($\alpha$).
The agent observes the current state (local loss, accuracy, and F1 score) and determines the optimal actions to maximize a reward function while adhering to a resource budget. This budget is managed through a Lagrangian dual problem formulation, ensuring that training remains feasible for the specific hardware.
4. Secure Aggregation
To protect against eavesdropping and model poisoning, Dap-FL incorporates the Paillier cryptosystem. This additive homomorphic encryption scheme allows the Central Server to aggregate encrypted local contributions without decrypting them, thus preserving the privacy of individual updates. The protocol is designed to be robust against chosen-plaintext and chosen-message attacks, providing a secure foundation for adaptive learning.
5. Experimental Results
The effectiveness of Dap-FL was validated using MNIST and Fashion-MNIST datasets across various architectures, including Logistic Regression, CNNs, and ResNet-18. Key findings include:
- Improved Accuracy: Dap-FL achieved a prediction accuracy 6.03% higher than standard DDPG-based FL and 7.85% higher than DQN-based approaches.
- Efficient Convergence: The adaptive tuning allowed the system to reach target accuracy levels in fewer communication rounds by effectively utilizing straggler contributions rather than discarding them.
- Resource Awareness: The DDPG agents successfully learned to adjust training intensity based on simulated resource constraints, demonstrating the framework's practical utility for diverse IoT environments.
6. Conclusion
Dap-FL addresses the critical challenges of resource heterogeneity and security in Federated Learning. By empowering clients with local intelligence via DDPG and safeguarding the aggregation process with homomorphic encryption, the framework enables faster, more accurate, and more secure decentralized training. Future research will explore expanding the tuning parameters to include batch sizes and testing on more complex datasets like CIFAR-100.
Summary updated