Skip to main content
QUICK REVIEW

[Paper Review] Gradient Leakage Defense with Key-Lock Module for Federated Learning

Hanchi Ren, Jingjing Deng|arXiv (Cornell University)|May 6, 2023
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper proposes FedKL, a novel gradient leakage defense for federated learning using a key-lock module that encrypts gradients with a private key before transmission. The method prevents reconstruction of private training data from shared gradients while preserving global model performance, achieving up to 29,460% higher MSE and significant drops in PSNR, LPIPS, and SSIM scores in reconstruction attacks.

ABSTRACT

Federated Learning (FL) is a widely adopted privacy-preserving machine learning approach where private data remains local, enabling secure computations and the exchange of local model gradients between local clients and third-party parameter servers. However, recent findings reveal that privacy may be compromised and sensitive information potentially recovered from shared gradients. In this study, we offer detailed analysis and a novel perspective on understanding the gradient leakage problem. These theoretical works lead to a new gradient leakage defense technique that secures arbitrary model architectures using a private key-lock module. Only the locked gradient is transmitted to the parameter server for global model aggregation. Our proposed learning method is resistant to gradient leakage attacks, and the key-lock module is designed and trained to ensure that, without the private information of the key-lock module: a) reconstructing private training data from the shared gradient is infeasible; and b) the global model's inference performance is significantly compromised. We discuss the theoretical underpinnings of why gradients can leak private information and provide theoretical proof of our method's effectiveness. We conducted extensive empirical evaluations with many models on several popular benchmarks, demonstrating the robustness of our proposed approach in both maintaining model performance and defending against gradient leakage attacks.

Motivation & Objective

  • Address the critical privacy threat in federated learning where gradients can leak sensitive training data.
  • Overcome limitations of existing defenses that compromise model performance or require excessive computational overhead.
  • Develop a general-purpose, architecture-agnostic defense mechanism compatible with arbitrary deep neural networks.
  • Ensure that gradient sharing does not enable reconstruction of original training data, even under state-of-the-art attacks.
  • Maintain high global model inference accuracy while providing strong privacy guarantees through a private key mechanism.

Proposed method

  • Introduce a key-lock module that modifies the model's forward and backward passes to embed private key information into gradient computation.
  • Use a learnable lock layer that dynamically adjusts scale and shift parameters based on a private key sequence, disrupting information flow during backpropagation.
  • Train the key-lock module end-to-end so that gradients are only meaningful when the correct private key is applied during inference.
  • Ensure that gradients from the model with the key-lock module are semantically and structurally uncorrelated with original training data, even when attacked with iDLG, DLG, or GGL.
  • The key-lock module is designed such that the private key cannot be reverse-engineered from gradients, enforcing one-way information flow.
  • The method is compatible with any DNN architecture and does not require changes to the global aggregation process in FL.
Figure 1: Illustration of FedKL against gradient leakage: ① Clients feed private training data into the model and generate the true gradient; ② The attacker reconstructs private images from the shared gradient; ③ Clients feed private training data into the model with key-lock module. The attacker ca
Figure 1: Illustration of FedKL against gradient leakage: ① Clients feed private training data into the model and generate the true gradient; ② The attacker reconstructs private images from the shared gradient; ③ Clients feed private training data into the model with key-lock module. The attacker ca

Experimental results

Research questions

  • RQ1To what extent can gradients in federated learning leak private training data, and what are the theoretical mechanisms enabling such leakage?
  • RQ2Can a defense mechanism be designed that is both effective against state-of-the-art gradient inversion attacks and maintains high model performance?
  • RQ3How does the private key influence the gradient leakage resistance compared to the model parameters of the key-lock module?
  • RQ4What is the quantitative impact of the key-lock module on the success of gradient inversion attacks like DLG, iDLG, GRNN, and GGL?
  • RQ5Can the key-lock module be universally applied across different model architectures and datasets without degrading global model accuracy?

Key findings

  • The key-lock module increases MSE by 181.91% for DLG on LeNet with MNIST, rising from 49.97 to 140.87, indicating significantly reduced reconstruction fidelity.
  • GRNN’s MSE increases by 29,460% when the key-lock module is applied to LeNet on MNIST, demonstrating a drastic reduction in reconstruction capability.
  • PSNR scores drop from 35–50 to approximately 28 across models when the key-lock module is used, indicating poorer visual similarity in reconstructed images.
  • LPIPS and SSIM scores for reconstructed images are substantially reduced—LPIPS increases from 0.40 to 0.47 (VGGNet) and SSIM drops from 0.231 to 0.180—confirming reduced semantic and structural similarity.
  • The private key is more critical than the key-lock module parameters for defense, as providing only the key enables successful reconstruction, while only parameters fail.
  • The key-lock module maintains high global model accuracy, with no significant degradation in inference performance, confirming its practical feasibility in real-world FL systems.
Figure 2: The top is the illustration of general convolution-normalization block, while the bottom indicates a key-lock module embedded in the block for generating the parameters, $\gamma$ and $\beta$ .
Figure 2: The top is the illustration of general convolution-normalization block, while the bottom indicates a key-lock module embedded in the block for generating the parameters, $\gamma$ and $\beta$ .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.