CENSOR: Defense Against Gradient Inversion via Orthogonal Subspace Bayesian Sampling

Kaiyuan Zhang, Siyuan Cheng, Guangyu Shen, Bruno Ribeiro, Shengwei An, Pin-Yu Chen, Xiangyu Zhang, Ninghui Li · DOI

Federated Learning (FL) has emerged as a cornerstone of privacy-preserving machine learning, allowing multiple parties to train a shared model without exchanging raw data. However, the security of FL is increasingly threatened by Gradient Inversion Attacks (GIAs). These sophisticated attacks can reverse-engineer shared parameter updates (gradients) to reconstruct a client's private training images with high fidelity.

Presented at the NDSS Symposium 2025, CENSOR (Cold postEriors coNtrolled Sampling over ORthogonal subspace) introduces a novel defense strategy that moves beyond simple noise injection to fundamentally alter the mathematical profile of shared updates.

The Problem: Vulnerability in the Early Stages

While techniques like Differential Privacy (DP) or gradient compression exist, they often force a harsh trade-off between privacy and model utility. Furthermore, modern attackers utilize Generative Adversarial Networks (GANs) to fill in missing information, bypassing simple sparsification defenses. Research indicates that these attacks are most potent during the early stages of training, creating a critical window of vulnerability that CENSOR aims to close.

The CENSOR Mechanism

CENSOR shifts the defense paradigm from perturbing the gradient to replacing it with a sample from a mathematically distinct space. It leverages the high dimensionality of modern neural networks—where millions of parameters create a vast space of possible update directions—to find alternatives that preserve model performance while hiding private data.

1. Orthogonal Subspace Projection

For any given original gradient ($G^0$), there exists a subspace of directions that are mathematically perpendicular (orthogonal) to it. CENSOR identifies this subspace, ensuring that the shared update has zero correlation with the sensitive original gradient in the primary direction of information leakage.

2. Cold Bayesian Posterior Sampling

To maintain model utility, CENSOR doesn't pick a random orthogonal direction. Instead, it samples multiple candidates and uses a "Cold Bayesian Posterior"—controlled by a temperature parameter ($M$)—to select updates that most effectively reduce the training loss. This ensures the model continues to converge toward a local minimum despite the gradient replacement.

Experimental Evaluation

The authors evaluated CENSOR across three major benchmarks: ImageNet (general objects), FFHQ (high-quality faces), and CIFAR-10 (standard small images). The defense was tested against five state-of-the-art inversion attacks, including GAN-based methods like GGL and GIDF.

Key Results

  • Robust Privacy: CENSOR consistently produced the highest Mean Squared Error (MSE) and Learned Perceptual Image Patch Similarity (LPIPS) scores across all tests, indicating that reconstructed images were reduced to useless noise or incorrect categories.
  • Maintained Utility: On CIFAR-10, the model achieved ~86% accuracy, matching the performance of an undefended baseline. This demonstrates that orthogonal sampling does not hinder the global model's convergence.
  • Extreme Efficiency: The computational overhead is negligible, adding only 0.00236% to local processing time, making it significantly faster than optimization-based defenses like Soteria.

Conclusion

CENSOR demonstrates that the "curse of dimensionality" in deep learning can be transformed into a powerful shield for privacy. By sampling from an orthogonal subspace using cold posteriors, it provides a robust defense against even the most advanced GAN-based inversion attacks without sacrificing the accuracy or efficiency of the Federated Learning system. Future work may explore alternative sampling distributions to further mislead adaptive attackers who might attempt to model the client's sampling process.

Summary updated

BibTeX
@inproceedings{zhang2025censor,
  author = {Kaiyuan Zhang and Siyuan Cheng and Guangyu Shen and Bruno Ribeiro and Shengwei An and Pin-Yu Chen and Xiangyu Zhang and Ninghui Li},
  title = {{CENSOR: Defense Against Gradient Inversion via Orthogonal Subspace Bayesian Sampling}},
  booktitle = {NDSS},
  year = {2025},
  url = {https://openreview.net/forum?id=Kjsdyp0IeV},
}
Figure