Abstract
Federated learning (FL) enables collaborative model training while preserving user data privacy by keeping data local. Despite these advantages, FL remains vulnerable to privacy attacks on user updates and model parameters during training and deployment. Secure aggregation protocols have been proposed to protect user updates by encrypting them, but these methods often incur high computational costs and are not resistant to quantum computers. Additionally, differential privacy (DP) has been used to mitigate privacy leakages, but existing methods focus on secure aggregation or DP, neglecting their potential synergies. To address these gaps, we introduce Beskar, a novel framework that provides post-quantum secure aggregation, optimizes computational overhead for FL settings, and defines a comprehensive threat model that accounts for a wide spectrum of adversaries. We also integrate DP into different stages of FL training to enhance privacy protection in diverse scenarios. Our framework provides a detailed analysis of the trade-offs between security, performance, and model accuracy, representing the first thorough examination of secure aggregation protocols combined with various DP approaches for post-quantum secure FL. Beskar aims to address the pressing privacy and security issues FL while ensuring quantum-safety and robust performance.
Introduction
Federated learning (FL) is often touted as a privacy-preserving paradigm because raw data never leaves a user's device. However, researchers have shown that an adversary can "invert" gradients or analyze intermediate models to reconstruct sensitive user data. To counter these threats, engineers typically use Secure Aggregation (SA)—encrypting updates so the server only sees the sum—and Differential Privacy (DP)—adding noise to the data.
Despite these defenses, three major gaps remain in current FL implementations. First, most current secure aggregation relies on classical mathematics (like RSA or Elliptic Curves) that future quantum computers could easily break. Second, post-quantum cryptographic tools are notoriously "heavy" and slow, making them difficult to run on mobile devices. Finally, most research looks at either secure aggregation or differential privacy in isolation, rarely addressing how they work together across the entire lifecycle of a model—the "full stack."
The Beskar Framework
To address these challenges, we introduce Beskar, a framework built on three core pillars designed to provide end-to-end privacy while remaining resistant to future quantum attacks.
- Post-Quantum (PQ) Security: Beskar utilizes NIST-standard PQ algorithms, specifically Kyber for secure key exchange and Dilithium for digital signatures. This ensures that even a future quantum-capable adversary cannot decrypt training updates.
- Lightweight Pre-computation: This is Beskar's primary efficiency driver. Since FL involves many predictable iterations, Beskar pre-calculates message-independent cryptographic tokens and masking tables during an offline setup phase. This moves the heavy computational lifting away from the time-sensitive training rounds.
- Integrated Differential Privacy (DP): Beskar allows for both Local DP (LDP)—where clients add noise to their own gradients—and Central DP (CDP)—where the server adds noise to the aggregate. This provides a defense-in-depth strategy against different types of attackers.
Evaluation and Results
We evaluated Beskar using five standard computer vision benchmarks: MNIST, EMNIST, CIFAR-10, CIFAR-100, and CHMNIST. The framework demonstrated massive efficiency gains in the aggregation phase. With 1,000 clients, Beskar showed speedups of 134x, 1.1x, and 1233x compared to various state-of-the-art protocols. Furthermore, our optimized Dilithium implementation resulted in a 30% faster signing process compared to the standard algorithm.
As shown in the comparison table, Beskar is unique in achieving high dropout resilience and post-quantum security in just a single communication round. Unlike many protocols that require multiple back-and-forth messages to handle users dropping out, Beskar's design maintains robustness with minimal communication overhead.
Accuracy and Privacy Trade-offs
The study confirms that while DP naturally reduces model accuracy, the computational overhead of PQ-crypto can be almost entirely mitigated by Beskar's pre-computation strategy. We found that Central DP (CDP) generally maintains higher accuracy than Local DP (LDP). For example, on MNIST, CDP achieved 0.87 accuracy versus LDP's 0.78 under the same privacy budget ($\epsilon=10$). On more demanding benchmarks like CIFAR-100, the strong noise required for LDP caused a sharper accuracy decline, suggesting that LDP remains a challenge for fine-grained feature learning.
Conclusion
Beskar represents a significant step toward practical, quantum-safe federated learning. By leveraging pre-computation and a "one-round" advantage, it proves that end-to-end privacy doesn't have to come at the cost of performance. Future work will focus on improving accuracy for complex tasks under high-strength Differential Privacy and exploring architectures that further reduce reliance on honest assisting nodes.
Summary updated