Abstract
Model Inversion (MI) attacks pose a significant threat to the privacy of training data by allowing adversaries to reconstruct sensitive images from trained models. While existing defenses often compromise model utility, this paper introduces MIDRE (Model Inversion Defense via Random Erasing). By strategically occluding parts of input images during training, MIDRE prevents the model from memorizing global spatial relationships necessary for successful inversion. Our evaluation across 37 setups demonstrates that MIDRE achieves a state-of-the-art balance between privacy and accuracy, often improving model performance while drastically reducing attack success rates.
Introduction
Machine learning models are known to "leak" information about their training data. In a Model Inversion (MI) attack, an adversary leverages a target model's predictions to reconstruct recognizable versions of the private training samples, such as faces or medical records. This vulnerability is particularly concerning for face recognition systems where an attacker might generate a person's identity from the model's weights.
Traditional defenses are primarily model-centric, focusing on modifying loss functions, injecting noise into gradients (Differential Privacy), or removing specific layers. However, these methods frequently lead to a significant degradation in "utility"—the model's primary task performance. This research explores a data-centric alternative: can we change what the model sees during training to make it inherently more robust to inversion?
Methodology: MIDRE
The proposed framework, MIDRE (Model Inversion Defense via Random Erasing), utilizes a simple yet effective data augmentation technique. During training, a random rectangular region of each input image is replaced with mean pixel values.
MIDRE provides privacy through two key mechanisms:
- Partial Erasure: Since the model never observes a complete object (e.g., a full face) in a single training pass, it fails to encode the global spatial relationships that MI attacks exploit for reconstruction.
- Random Location: The stochastic nature of the erased area ensures the model learns essential features for classification without "memorizing" the complete, un-occluded identity.
Feature space analysis reveals that MIDRE creates a "discrepancy" in the latent space. Attackers attempting to reconstruct an image are guided toward a version that aligns with the erased training data, creating a natural barrier that protects the true private image.
Experimental Setup
The researchers conducted an extensive study across 37 different setups and 11 architectures (including ResNet, VGG, DenseNet, and MaxVIT). The datasets included:
- Private Datasets: CelebA, FaceScrub, VGGFace2, and Stanford Dogs.
- Public Datasets (for GAN priors): FFHQ and AFHQ.
- Resolutions: Ranging from 64x64 to high-resolution 224x224.
Key Results and Discussion
MIDRE consistently outperformed state-of-the-art (SOTA) defenses like BiDO and NLS. A notable finding is the "privacy for free" phenomenon observed in high-resolution tests. For instance, using the MaxVIT architecture, MIDRE simultaneously increased natural accuracy and slashed attack accuracy.
As shown in the figure above, increasing the maximum erasing area ($a_e$) leads to a dramatic decline in attack accuracy (green triangles) while the model's classification accuracy (yellow circles) remains remarkably stable. In Setup 4 (PPA/MaxVIT), MIDRE reduced attack accuracy to 42.5% (from an 80.6% baseline) without any loss in utility. On lower-resolution datasets like CelebA (64x64), MIDRE reduced attack accuracy by over 22% compared to the next best defense while maintaining model accuracy within 1% of the baseline.
Conclusion
MIDRE demonstrates that data-centric defenses can be more effective and less intrusive than traditional model-centric approaches. By preventing the model from ever seeing "the whole picture," we can protect individual privacy without sacrificing the utility of the resulting AI systems. Future work will investigate adaptive attacks designed specifically to bypass random erasing and explore the applicability of partial masking to non-image data types.
Summary updated