Privacy-preserving Learning via Deep Net Pruning

Yangsibo Huang, Xiaoxiao Li, Yushan Su, Sachin Ravi, Zhao Song, Sanjeev Arora, Kai LiOpenReview 2020

Abstract

This paper attempts to answer the question whether neural network pruning can be used as a tool to achieve differential privacy without losing much data utility. As a first step towards understanding the relationship between neural network pruning and differential privacy, this paper proves that pruning a given layer of the neural network is equivalent to adding a certain amount of differentially private noise to its hidden-layer activations. The paper also presents experimental results to show the practical implications of the theoretical finding and the key parameter values in a simple practical setting. These results show that neural network pruning can be a more effective alternative to adding differentially private noise for neural networks.

Introduction

In distributed or federated learning environments, multiple parties (such as hospitals or mobile users) train models collaboratively without sharing raw data. Instead, they exchange model updates or hidden-layer activations. However, recent research has demonstrated that these shared "representations" are vulnerable to inversion attacks, where an adversary can reconstruct sensitive original inputs from the shared data.

While Differential Privacy (DP) via noise injection is the gold standard for defense, it often forces a devastating trade-off between privacy and model accuracy. This research explores an alternative: whether neural network pruning—traditionally a tool for model compression—can provide equivalent privacy guarantees while maintaining superior data utility.

Theoretical Equivalence and Methodology

The core contribution of this work is the theoretical bridge between magnitude-based pruning and differential privacy. The authors prove that in sufficiently wide neural networks, pruning weights with magnitudes smaller than a specific threshold is mathematically equivalent to adding differentially private noise to the hidden-layer activations.

Pruning as a Privacy Filter

Pruning acts as a deterministic perturbation. By removing the "weakest" signals, it effectively filters out the structural information an attacker would use to reverse-engineer the input. This draws on the concept of "sparse recovery": once a weight matrix reaches a certain level of sparsity, it becomes mathematically impossible to recover the input $x$ from the output $y=Ax$.

Experimental Setup

The researchers evaluated this approach using MNIST and CIFAR-10 benchmarks. They simulated an inversion attack pipeline using a loss function that combines reconstruction error with Total Variation regularization to quantify how much structural information leaks from pruned layers versus noise-injected layers.

Key Results

Accuracy Resilience

Experimental results show that pruning maintains high utility even at significant sparsity levels. On MNIST, accuracy remains stable even when 50% of weights are removed. On the more complex CIFAR-10 dataset, accuracy remains resilient or even slightly improves up to 80% sparsity, outperforming traditional Laplace noise injection at equivalent privacy levels.

Accuracy vs. Sparsity for pruned and un-pruned models on MNIST (left) and CIFAR-10 (right).

Neutralizing Inversion Attacks

Visual evidence confirms that pruning effectively thwarts reconstruction threats. While inversion attacks on noise-injected layers often produce recognizable (though grainy) images, attacks on heavily pruned layers (sparsity > 0.9) result in unidentifiable blobs, effectively neutralizing the privacy threat.

Visual reconstruction of MNIST digits under varying levels of pruning sparsity (a-j).

Quantitative analysis using metrics like SSIM (Structural Similarity) and SIFT confirmed a substantial gap where pruned models consistently leaked less structural information than noise-added models at equivalent accuracy levels.

Conclusion and Future Work

This study demonstrates that deep net pruning is a viable and often superior alternative to traditional noise injection for privacy-preserving learning. While the current theoretical proof focuses on single, fully-connected layers, the experimental success on multi-layer networks like VGG-19 suggests broad applicability. Future work will focus on extending the rigorous theory to convolutional architectures and optimizing coordination in distributed systems to synchronize sparsity across different training sites.

Summary updated

BibTeX
@misc{huang2020privacy,
  author = {Yangsibo Huang and Xiaoxiao Li and Yushan Su and Sachin Ravi and Zhao Song and Sanjeev Arora and Kai Li},
  title = {{Privacy-preserving Learning via Deep Net Pruning}},
  year = {2020},
  eprint = {2003.01876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.01876},
  howpublished = {OpenReview},
}
Figure