Random Erasing vs. Model Inversion: A Promising Defense or a False Hope?

Viet-Hung Tran, Ngoc-Bao Nguyen, Son T. Mai, Hans Vandierendonck, Ira Assent, Alex Kot, Ngai-Man Cheung

TL;DR

This paper introduces Random Erasing (RE), a simple data augmentation technique, as a surprisingly effective defense against Model Inversion (MI) attacks. By partially masking training images, RE creates a discrepancy in the model's feature space, significantly degrading the quality of reconstructed private data while maintaining high model utility.

What Problem Does This Paper Address?

Machine learning models, especially those trained on sensitive data like facial recognition or medical images, are vulnerable to Model Inversion (MI) attacks. These attacks aim to reconstruct the private training data by querying the model. Existing defenses often focus on modifying the model's architecture or training objectives, which can negatively impact the model's performance (utility). This paper addresses the gap of exploring data-centric defenses and specifically investigates whether Random Erasing, a common technique for improving robustness to occlusions, can serve as an effective privacy defense against MI attacks without sacrificing model utility.

Methods

The core of the proposed defense, named MIDRE (Model Inversion Defense via Random Erasing), is the application of Random Erasing (RE) during the training of the target model. RE works by randomly selecting a region within an image and replacing it with a fixed value (e.g., ImageNet mean pixel value). The authors explore two key properties of RE:

  • Partial Erasure: By masking portions of the image, the model is prevented from seeing the entire private data, thus reducing the information available for reconstruction.
  • Random Location: The random nature of the erasure across different training iterations prevents the model from learning shortcut features and encourages it to learn more robust, intrinsic features.

The authors also conduct extensive feature space analysis to explain why RE is effective, showing that it creates a discrepancy between the features of MI-reconstructed images and the original private images.

Datasets

The paper utilizes several publicly available datasets for training and evaluation:

  • Private Datasets: CelebA, Facescrub, Stanford Dogs
  • Public Datasets: FFHQ, AFHQ Dogs, VGGFace2

These datasets are used across various experimental setups to evaluate the defense against different MI attacks and model architectures.

Key Insights and Ideas

  • Random Erasing as a Privacy Defense: The most significant insight is that a standard data augmentation technique like Random Erasing, not originally designed for privacy, can be highly effective against sophisticated MI attacks. This suggests a broader potential for leveraging existing data manipulation techniques for privacy enhancement.
  • Feature Space Discrepancy: The authors demonstrate that RE forces the model to learn features that are distinct from those of the original private images, even when the reconstructed images appear visually similar. This discrepancy is key to degrading the attack's success.
  • Partial Erasure is Crucial: The effectiveness of RE is strongly tied to its ability to prevent the model from seeing complete objects. This is particularly impactful for MI attacks that aim to reconstruct entire images.
  • Random Location Enhances Utility: The random nature of RE not only aids privacy but also helps maintain model utility by preventing the model from overfitting to specific masked regions and encouraging it to learn more generalizable features.
  • SOTA Privacy-Utility Trade-off: The proposed MIDRE method achieves state-of-the-art performance in balancing privacy (low attack accuracy) and utility (high natural accuracy), often outperforming existing specialized defenses.

Key Results

  • MIDRE significantly degrades MI attack accuracy, with reductions of up to 69.39% in some configurations (Setup 4).
  • The impact on natural accuracy is minimal, with some setups even showing a slight increase in accuracy (e.g., 0.37% in Setup 4).
  • Experiments across 37 setups involving various MI attacks, network architectures, and datasets consistently show MIDRE's superiority.
  • For the first time, the authors achieve significant degradation in attack accuracy without a decrease in utility for some configurations.
  • User studies indicate that reconstructed images from MIDRE-trained models are perceived as less similar to the original private images compared to those from other defenses.

Limitations and Future Work

  • Focus on Classification Models: The current work primarily focuses on defending classification models. The authors acknowledge the need to expand their research to encompass MI attacks and defenses for a broader range of machine learning tasks.
  • Image Data Dominance: While extensive, the experiments are largely based on image data. Future work should address real-world applications that often involve diverse private/sensitive training data.
  • Computational Cost: While RE is presented as a simple technique, the paper mentions that inpainting-based methods for generating substitute pixels incur higher computational costs.
  • Hyperparameter Tuning: While RE itself is simple, optimal performance might still require careful tuning of hyperparameters like the erasure ratio ($\alpha_e$).

Summary updated

BibTeX
@article{tran2025random,
  author = {Viet-Hung Tran and Ngoc-Bao Nguyen and Son T. Mai and Hans Vandierendonck and Ira Assent and Alex Kot and Ngai-Man Cheung},
  title = {{Random Erasing vs. Model Inversion: A Promising Defense or a False Hope?}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=S9CwKnPHaO},
}
Figure