CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakage

Na Li, Yansong Gao, Hongsheng Hu, Boyu Kuang, Anmin FuarXiv 2025 · DOI

Introduction

Deep learning models are increasingly deployed on resource-constrained edge devices, necessitating model compression techniques such as pruning, quantization, and weight clustering. While the trade-off between compression and model accuracy is well-documented, the privacy implications of these operations have remained largely unexplored. This research introduces CompLeak, a framework demonstrating that model compression inadvertently exacerbates privacy risks by leaking information about the training data.

The core vulnerability lies in Membership Inference Attacks (MIAs), which aim to determine if a specific data sample was part of a model's training set. The authors find that attackers can exploit the subtle behavioral differences between an original model and its compressed variants—or across multiple compressed versions—to drastically improve the accuracy of these attacks.

The CompLeak Framework

The researchers propose three threat models based on the level of access an attacker has to the model ecosystem:

  1. CompLeakNR (No Reference): The baseline scenario where an attacker only has access to a single compressed model. They use standard MIA techniques, such as training shadow models to mimic the victim.
  2. CompLeakSR (Single Reference): The attacker has access to both the original model and one compressed version. By querying both and analyzing the differential impact of compression on the output posteriors, the attacker can identify training members more effectively.
  3. CompLeakMR (Multiple Reference): The most advanced attack, occurring when providers release a suite of models at different compression levels. The attacker aggregates signals from multiple versions to train a highly discriminative meta-classifier.
Overview of the CompLeak framework, illustrating the three threat models: No Reference (NR), Single Reference (SR), and Multiple Reference (MR).

The Mechanism of Leakage

The fundamental insight behind CompLeak is that compression affects members and non-members differently. Deep learning models tend to memorize training data (members). When a model is compressed, its capacity reduction causes it to lose the ability to capture these fine-grained, overfitted features, leading to a significant shift in output confidence for members. Conversely, the model's generalization on unseen data (non-members) remains relatively stable.

Distribution of KL Divergence between original and compressed model outputs, showing a clear separation between training members and non-members.

This "delta" or shift in output posteriors acts as a massive red flag. While a single highly compressed model might appear safer in isolation (because severe capacity reduction suppresses overfitting), the comparison between models reveals the underlying training data.

Key Results and Implications

The authors evaluated CompLeak across diverse architectures (ResNet, VGG, BERT, GPT-2) and modalities (image, tabular, text). The results were stark:

  • Attack Amplification: On a 90%-pruned VGG16 model, leveraging the original model as a reference (CompLeakSR) caused the True Positive Rate (TPR) at a 0.1% False Positive Rate to jump from 1.3% to 25.5%.
  • Devastating Multi-Reference Attacks: When an attacker accessed eight different compressed versions, CompLeakMR achieved an AUC of 99.9% and a TPR of 95.7%.
  • Foundation Models: The vulnerability extends to modern LLM deployment pipelines, where dynamic quantization of fine-tuned BERT and GPT-2 models also increased privacy leakage.
  • High-Value Data Risk: Samples that become vulnerable after compression are often the most "important" training samples, as measured by KNN-Shapley values.

Conclusion and Defenses

The research highlights a critical tension between model efficiency and data privacy. While Differential Privacy (DP-SGD) can mitigate some risks, CompLeak still extracts more leakage from defended compressed models than standard attacks do from defended original models.

Model providers are advised to be cautious when releasing multiple compressed versions of a model via APIs. Potential mitigations include combining compression with robust privacy defenses, training on synthetic data, or restricting the granularity of API outputs (e.g., returning only hard labels rather than full probability distributions) to prevent attackers from capturing the discriminative signals used by CompLeak.

Summary updated

BibTeX
@misc{li2025compleak,
  author = {Na Li and Yansong Gao and Hongsheng Hu and Boyu Kuang and Anmin Fu},
  title = {{CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakage}},
  year = {2025},
  eprint = {2507.16872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.16872},
}
Figure