TL;DR
This paper introduces FheFL, a novel federated learning (FL) framework that uses Fully Homomorphic Encryption (FHE) to protect user data privacy while simultaneously defending against malicious "Byzantine" users who attempt to poison the global model. FheFL achieves this by combining a novel non-poisoning rate-based aggregation scheme with a modified CKKS FHE scheme, enabling secure and robust collaborative learning with a single server.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple devices to collaboratively train a machine learning model without sharing their raw data. However, this process involves sharing model gradients with a central server, which can inadvertently leak sensitive user information. While existing privacy-preserving FL (PPFL) techniques aim to mask these gradients, they often introduce new vulnerabilities, particularly "data poisoning attacks." In these attacks, malicious users send corrupted gradients to sabotage the global model's performance. Detecting these attacks is challenging, especially when gradients are encrypted, as the server cannot inspect them directly. Existing solutions often require multiple servers or complex user interactions, creating their own set of challenges. This paper addresses the critical need for a single-server FL system that is both privacy-preserving and robust against data poisoning attacks.
Methods
FheFL builds upon the CKKS FHE scheme, which is well-suited for approximate arithmetic on real numbers, making it ideal for machine learning tasks. The key innovations include:
- Distributed Multi-Key Additive Homomorphic Encryption: The standard CKKS scheme is adapted to a multi-user setting. Each user encrypts their local model updates using their own secret key. The server can then perform computations (like aggregation) on these encrypted updates without decrypting them.
- Non-Poisoning Rate-Based Aggregation: This novel aggregation scheme uses the global model from the previous iteration as a baseline. It calculates a "non-poisoning rate" for each user based on the Euclidean distance between their current update and the previous global model. Users with updates that deviate significantly (potentially indicating poisoning) have their contributions down-weighted. This is performed in the encrypted domain.
- Distributed Key Sharing: To enable the server to decrypt the final aggregated model, a distributed key sharing mechanism is employed. Users share randomized secret keys with the server, which are then combined to reconstruct the original secret key needed for decryption. This avoids the need for users to directly share their secret keys.
Datasets
The paper evaluates FheFL using the following standard datasets:
- MNIST: A dataset of handwritten digits.
- CIFAR-10: A dataset of 10 classes of everyday objects.
- CIFAR-100: A dataset of 100 classes of everyday objects.
Key Insights and Ideas
- FHE as a Dual Solution: Fully Homomorphic Encryption is not just for privacy; it's also a powerful tool for enabling secure aggregation and detecting poisoning attacks in the encrypted domain, bridging a gap between privacy and security.
- Non-Poisoning Rate is Key: The core idea of down-weighting suspicious updates based on their deviation from the previous global model is surprisingly effective, even when applied to encrypted gradients. This allows for robust aggregation without needing to decrypt individual updates.
- Single-Server Efficiency: By cleverly combining FHE with distributed key sharing, FheFL achieves robust and private federated learning with a single server, simplifying the system architecture and reducing communication overhead compared to multi-server solutions.
- Early Layer Encryption is Crucial for DLG Defense: Encrypting gradients from earlier layers of the neural network is more effective at preventing "Deep Leakage from Gradients" (DLG) attacks, as these layers capture fundamental features that are easier to reconstruct.
Key Results
- Robustness Against Data Poisoning: FheFL demonstrated strong resilience to label-flipping attacks. For instance, with 20% malicious users, FheFL achieved an accuracy of 84.59% on MNIST, significantly outperforming other methods like FedAvg (84.54%) and KRUM (86.93%) in terms of attacker success rate (4.24% for FheFL vs. 26.69% for KRUM).
- Comparable Accuracy: The accuracy loss due to FHE encryption was minimal, typically below 3% for larger ring dimensions (N=16384) and around 6% for smaller dimensions (N=8192), making it comparable to plain-domain FL.
- Computational Efficiency: FheFL leverages the SIMD capabilities of CKKS to pack multiple gradients into a single ciphertext, leading to computational complexity comparable to other advanced schemes like PEFL [15].
- Communication Efficiency: The bandwidth requirement for FheFL is manageable, with each user needing less than 3MB per epoch, making it suitable for mobile and Wi-Fi environments.
Limitations and Future Work
- Collusion Assumption: The security analysis relies on the assumption that at least two non-colluding users are present. If all but one user colludes with the server, the privacy of that single non-colluding user can be compromised.
- Accuracy Trade-off: While minimal, there is a slight accuracy loss associated with FHE due to its approximate nature. This loss is more pronounced with smaller ring dimensions.
- Future Work: The authors suggest exploring more advanced FHE schemes and optimization techniques to further reduce computational and communication overhead. Investigating FheFL's performance in more complex network environments and with different types of adversarial attacks are also promising directions.
Summary updated