Private and Accurate Decentralized Optimization via Encrypted and Structured Functional Perturbation

Shi Pu 濮实, Yijie Zhou, Shi PuIEEE Control. Syst. Lett 2023

TL;DR

This paper introduces EFPSN, a novel decentralized optimization algorithm that achieves both strong privacy guarantees and high accuracy. It cleverly combines Paillier encryption with structured noise to perturb individual agent cost functions, ensuring that no single agent's data is revealed while still allowing for accurate global optimization.

What Problem Does This Paper Address?

In many real-world applications, multiple agents need to collaborate to optimize a global objective function. Think of distributed sensor networks, multi-agent systems, or even federated learning scenarios. Traditional decentralized optimization algorithms require agents to share sensitive information like their cost functions or gradient estimates. This sharing can lead to privacy breaches, as demonstrated by techniques that can reconstruct training data from shared gradients. The challenge is to enable decentralized optimization without compromising the privacy of individual agents' data or cost functions. Existing solutions often suffer from either a significant accuracy-privacy trade-off or incur heavy communication and computation overhead.

Methods

The core innovation of EFPSN lies in its "Encrypted Functional Perturbation with Structured Noise" approach, which operates in two phases:

Phase 1: Masking Cost Functions 1. Paillier Encryption for Secure Noise Generation: Each agent generates a public/private key pair using the Paillier cryptosystem. They then generate random noise and encrypt it using their neighbors' public keys before sharing. This ensures that even if an eavesdropper intercepts the messages, they cannot decipher the noise. 2. Structured Zero-Sum Perturbations: Agents use the encrypted noise to construct "zero-sum" functional perturbations. This means that while each individual agent's cost function is modified, the sum of these perturbations across all agents is designed to be zero. This is achieved by carefully combining the decrypted noises. The use of structured noise, specifically designed to be zero-sum, is key to maintaining accuracy. 3. Functional Perturbation: Each agent adds its calculated perturbation to its own cost function, creating a "masked" cost function.

Phase 2: Decentralized Optimization 1. Standard Algorithm Application: With the masked cost functions, agents can then run any existing decentralized optimization algorithm. Because the sum of the perturbations is zero, the final optimized solution will converge to the true optimal solution of the original problem, effectively canceling out the privacy-preserving noise.

The paper emphasizes that this approach avoids the heavy communication overhead of encrypting messages at every iteration, as encryption is primarily used for secure noise generation in Phase 1.

Datasets

The paper evaluates EFPSN using the MNIST dataset for both logistic regression (convex case) and a Convolutional Neural Network (LeNet, non-convex case).

Key Insights and Ideas

  • Zero-Sum Perturbations are Key to Accuracy: The most crucial insight is that by constructing zero-sum functional perturbations, the algorithm can achieve the exact same optimal solution as a non-private approach, provided perfect consensus among agents. This directly tackles the accuracy-privacy trade-off.
  • Paillier Encryption for Secure Noise Exchange: Using Paillier encryption allows agents to securely exchange noise information without revealing it to eavesdroppers. This is vital for the zero-sum construction to work in a distributed setting.
  • Structured Noise for Efficiency: The use of structured noise, rather than just adding random noise, is essential for maintaining the accuracy of the optimization.
  • Privacy Independent of Accuracy: Unlike many prior methods, EFPSN's accuracy is not degraded by the privacy budget. This means you can increase privacy without sacrificing the quality of the solution.
  • Robustness to Eavesdropping and Honest-but-Curious Attacks: The combination of encryption and structured noise provides protection against both passive eavesdropping and more active "honest-but-curious" adversaries (where some agents might be compromised but follow the protocol).

Key Results

  • Near-Perfect Privacy: The paper theoretically proves that EFPSN is $(\epsilon, \delta)$-differentially private and can achieve nearly perfect privacy with appropriate parameter settings.
  • Accuracy Maintained: Numerical experiments show that EFPSN's accuracy is comparable to the noise-free case, even at high noise magnitudes where other methods fail. For instance, in logistic regression, EFPSN's accuracy remained high up to $\gamma = 10^4$, while a non-zero-sum method's accuracy dropped significantly around $\gamma = 10^0$.
  • Significant Privacy Budget: EFPSN offers a much larger privacy budget (at least 4 magnitudes larger) compared to non-zero-sum methods, without sacrificing accuracy.
  • Effective Against Gradient Leakage Attacks: Privacy tests using the iDLG attack showed that as the noise magnitude increased with EFPSN, the recovered data became increasingly blurred, indicating effective privacy preservation.

Limitations and Future Work

  • Perfect Consensus Assumption: The theoretical accuracy guarantee relies on agents achieving perfect consensus on their decision variables. In practice, slight differences can arise due to finite step sizes, which the paper acknowledges. Future work could explore how to handle these discrepancies more robustly.
  • Parameter Tuning: Achieving optimal privacy and accuracy requires careful tuning of parameters like $\gamma$, $q$, and $p$. The paper provides guidance but finding the ideal settings for specific applications might require further investigation.
  • Orthonormal System Construction: For high-dimensional problems, generating a full orthonormal basis is computationally prohibitive. The paper uses a subset of variables and an orthonormal system instead, which is a practical workaround but might have implications for the theoretical guarantees in extremely complex scenarios.
  • Computational Overhead of Encryption: While EFPSN significantly reduces the communication overhead compared to per-iteration encryption, Phase 1 still involves Paillier encryption and decryption, which can be computationally intensive. Future work might explore more efficient cryptographic primitives or optimization techniques.

Summary updated

BibTeX
@article{2023private,
  author = {Shi Pu 濮实 and Yijie Zhou and Shi Pu},
  title = {{Private and Accurate Decentralized Optimization via Encrypted and Structured Functional Perturbation}},
  journal = {IEEE Control. Syst. Lett},
  year = {2023},
  doi = {10.1109/lcsys.2022.3232210},
}
Figure