Abstract
Federated Learning (FL) systems are susceptible to adversarial attacks, where malicious clients submit poisoned models to disrupt the convergence or plant backdoors that cause the global model to misclassify some samples. Current defense methods are often impractical for real-world FL systems, as they either rely on unrealistic prior knowledge or cause accuracy loss even in the absence of attacks. Furthermore, these methods lack a protocol for verifying execution, leaving participants uncertain about the correct execution of the mechanism. To address these challenges, we propose a novel anomaly detection strategy that is designed for real-world FL systems. Our approach activates the defense only when potential attacks are detected, and enables the removal of malicious models without affecting the benign ones. Additionally, we incorporate zero-knowledge proofs to ensure the integrity of the proposed defense mechanism. Experimental results demonstrate the effectiveness of our approach in enhancing FL system security against a comprehensive set of adversarial attacks in various ML tasks.
Introduction
Federated Learning (FL) enables multiple parties to collaboratively train a shared model without exposing their raw data. However, this decentralized nature introduces a significant security vulnerability: poisoning attacks. Malicious clients can submit corrupted model updates to degrade global model performance or install "backdoors" that trigger misclassification under specific conditions.
Existing defense mechanisms often face three critical hurdles:
- Impractical Assumptions: Many require prior knowledge of the number of attackers.
- Collateral Damage: Defenses often penalize honest updates, reducing accuracy even when no attack is present.
- The Trust Gap: Clients must trust the central server to execute the defense correctly without verification.
The REDJASPER Framework
To address these issues, we introduce REDJASPER, a two-stage defense framework that combines statistical anomaly detection with Zero-Knowledge Proofs (ZKPs).
Stage 1: Cross-Round Detection
REDJASPER employs a lightweight "gatekeeper" check every round. The server computes the cosine similarity between a client’s current update and "golden truths"—the previous global model and verified benign updates. If no anomalies are detected, the server proceeds with standard aggregation, ensuring zero performance penalty during normal operation.
Stage 2: Cross-Client Detection
If Stage 1 flags suspicious activity, the system activates a deeper analysis. The server calculates an "evilness level" for each model based on its $L_2$ distance from the group mean. It then applies the $3\sigma$ rule—a statistical threshold—to identify and exclude outliers that deviate significantly from the norm.
Verifiable Integrity via ZKPs
To bridge the trust gap, REDJASPER uses Groth16 zkSNARKs. The server generates a proof that it followed the detection rules correctly. Clients can verify this proof in milliseconds without the server revealing sensitive model weights. To ensure scalability for large models, the framework utilizes "importance layers" (focusing on the penultimate layer) and Freivalds’ algorithm for efficient matrix multiplication verification.
Experimental Evaluation
We evaluated REDJASPER across diverse benchmarks, including FEMNIST, CIFAR-10/100, Shakespeare, and MNIST datasets.
Key Results
- Resilience: With 40% malicious clients, REDJASPER maintained test accuracy nearly identical to attack-free environments, outperforming baselines like Krum, RFA, and Trimmed Mean.
- Detection Accuracy: The cross-round detection stage achieved a success rate exceeding 93%.
- Efficiency: Proof generation for a CNN took approximately 33 seconds, while client-side verification required only 3 milliseconds.
- Real-World Deployment: The system was successfully tested on 20 edge devices, confirming its viability in resource-constrained environments.
Discussion and Future Work
REDJASPER's conditional activation and adaptive $3\sigma$ threshold provide a robust defense that balances security with model utility. By integrating ZKPs, it ensures accountability while preserving participant privacy. Future research will focus on extending the framework to asynchronous and vertical FL settings, as well as optimizing ZKP performance for massive models like Large Language Models (LLMs).
Summary updated