NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Federated Learning is Better with Non-Homomorphic Encryption

Konstantin Burlachenko, Abdulmajeed Alrowithi, Fahad Ali Albalawi, Peter Richtárik

TL;DR

This paper introduces a novel Federated Learning (FL) framework that uses classical cryptography (specifically AES) combined with permutation-based compressors to achieve privacy and efficiency. This approach offers a cheaper and more practical alternative to Homomorphic Encryption (HE) for secure FL, demonstrating competitive performance in both synthetic and real-world deep learning tasks.

What Problem Does This Paper Address?

Federated Learning (FL) enables distributed model training without centralizing sensitive data. However, ensuring privacy during FL is challenging. While Homomorphic Encryption (HE) offers strong privacy guarantees by allowing computations on encrypted data, it comes with significant computational and memory overheads, making it impractical for many applications. Existing privacy-preserving methods like Differential Privacy can degrade accuracy and increase communication costs, especially in scenarios with few participants. This paper addresses the need for a privacy-preserving FL framework that is computationally efficient, practical, and avoids the high costs associated with HE, while still offering robust security.

Methods

The core contribution is a novel framework that combines two key components:

  • Permutation-based Compressors (PermK): These compressors, inspired by prior work, have a unique property that allows for efficient aggregation of compressed gradients without requiring complex mathematical operations on encrypted data. They enable clients to send compressed representations of their gradients, reducing communication load.
  • Classical Cryptography (AES): Instead of HE, the framework utilizes AES (Advanced Encryption Standard) with the EAX mode of operation for symmetric-key encryption. AES is chosen for its efficiency, hardware support, and proven security against various attacks.

The framework, termed DCGD/PermK/AES, replaces the computationally expensive HE operations with AES encryption and a novel aggregation strategy that leverages the properties of PermK compressors. This allows for secure communication of compressed gradients without the master needing to perform complex cryptographic operations on encrypted data. The paper also explores asynchronous communication and flexible deployment across different network topologies.

Datasets

  • CIFAR-10: Used for training a ResNet-18 deep learning model.
  • Synthetically generated data: Used for linear regression experiments to explore the impact of problem dimension and algorithm parameters.

Key Insights and Ideas

  • Classical Cryptography is viable for secure FL: Contrary to previous assumptions that classical cryptography was too limited for secure FL, this work demonstrates its effectiveness when combined with smart compression techniques.
  • Permutation compressors are key: The PermK compressor's ability to allow simple concatenation for aggregation (instead of complex homomorphic operations) is crucial for enabling classical cryptography in FL.
  • AES offers a practical privacy layer: AES, when used with appropriate modes like EAX, provides strong security against eavesdropping and tampering at a fraction of the computational cost of HE.
  • Asynchronous communication is enabled: The framework's design supports asynchronous updates, allowing faster clients to proceed without waiting for slower ones, which is a significant advantage in real-world FL settings.
  • Communication efficiency is paramount: The paper highlights how effective compression and encryption can drastically reduce the communication overhead, a major bottleneck in FL.

Key Results

  • Competitive performance with HE: In synthetic experiments (linear regression), the DCGD/PermK/AES framework achieved comparable or better convergence rates than HE-based methods (GD/CKKS) while significantly reducing communication and computation overhead. For instance, in Figure 2, GD/AES showed significantly better convergence in terms of gradient norm compared to GD/CKKS.
  • Significant communication reduction in DL: For ResNet-18 training on CIFAR-10, DCGD/PermK/AES reduced the message size from 42.65 MB (FedAvg) to 4.26 MB per client, a ~10x reduction.
  • Resilience to problem dimension: The framework scales well with increasing problem dimensions, outperforming HE-based methods as complexity grows.
  • Practical security: The proposed method provides security guarantees against eavesdropping and tampering, comparable to what HE aims to achieve, but with much lower overhead.

Limitations and Future Work

  • Client trust assumption: The work assumes clients trust each other, which is a limitation in highly adversarial environments.
  • Focus on d > n: The current analysis and implementation primarily focus on scenarios where the number of features (d) is greater than the number of clients (n).
  • Rigorous theoretical analysis: While practical performance is demonstrated, a more rigorous theoretical analysis for the d > n case is suggested.
  • Exploring lossless data compression: The authors propose investigating lossless data compression techniques as another avenue for bitwise information representation in FL.
  • Optimizing parallelism: Further research into optimizing parallelism scheduling strategies, particularly for Parameter Parallelism, is suggested.

Summary updated

BibTeX
@inproceedings{burlachenko2023federated,
  author = {Konstantin Burlachenko and Abdulmajeed Alrowithi and Fahad Ali Albalawi and Peter Richtárik},
  title = {{Federated Learning is Better with Non-Homomorphic Encryption}},
  booktitle = {DistributedML@CoNEXT},
  year = {2023},
  url = {https://openreview.net/forum?id=H3mVJh36lX},
}
Figure