Privacy-preserving Machine Learning through Data Obfuscation

Tianwei Zhang, Zecheng He, Ruby B. LeearXiv 2018

Abstract

Machine Learning as a Service (MLaaS) platforms offer powerful tools but require users to upload sensitive data, exposing them to privacy risks from malicious providers and end users. This paper proposes a client-side "Obfuscate Module" that protects training data by adding random noise or synthetic negative samples before outsourcing. Experimental results across multiple benchmarks demonstrate that this approach effectively thwarts model inversion, membership inference, and memorization attacks while maintaining model accuracy within 5% of the baseline.

Introduction

The rise of MLaaS platforms like Amazon SageMaker and Google Cloud ML has simplified the deployment of complex models. However, these services introduce significant security risks. Customers must trust cloud providers with sensitive datasets, such as medical or financial records. The authors identify three primary threat vectors: malicious providers during training (direct data access), malicious providers during serving (white-box access to model parameters), and malicious end users (black-box access via queries). While solutions like Homomorphic Encryption and Differential Privacy exist, they often suffer from high computational overhead or fail to protect group-level statistical properties.

Methodology: The Obfuscate Module

The core contribution is a client-side Obfuscate Module that processes data before it is sent to the cloud. This module employs two main strategies:

  1. Individual Sample Obfuscation: To prevent the recovery of specific records (such as a specific face in a database), Gaussian noise $\mathcal{N}(0, \sigma)$ is added to a ratio $r$ of the features. This leverages the inherent robustness of deep learning models, which treat small amounts of noise as a form of regularization.
  2. Group Sample Obfuscation: To counter "Model Inversion" attacks that attempt to reconstruct class averages, the module introduces negative synthetic samples. For an image with pixel value $x$, a negative sample is created using $255 - x$. These fakes neutralize the statistical "signature" of a group without destroying the model's ability to learn the primary task.
The Obfuscate Module integrated into the MLaaS pipeline to protect data before it reaches the service provider.

Experimental Evaluation

The defense was evaluated on CIFAR10, the AT&T Face Database, and MNIST/EMNIST. These datasets were used to test resilience against four state-of-the-art attacks:

  • Model Memorization: Without defense, attackers recovered clear images from model parameters; with obfuscation, recovered images were unrecognizable noise.
  • Membership Inference: Attackers' ability to guess if a sample was in the training set dropped from ~90% accuracy to near-random levels (50–65%).
  • Model Inversion: Reconstructed faces became blurry and unidentifiable as the ratio of synthetic samples ($r$) reached 1.0.

Key Results and Utility

A critical finding is that ML models have the capacity to fit both the clean original data and the added noise. As long as the noise is unbiased, the model can still identify the underlying signal. Across all tests, the "utility cost"—the drop in validation accuracy—remained below 5%, a negligible cost for high-level privacy.

Validation accuracy over training epochs for different obfuscation ratios (r), showing minimal utility loss.

Conclusion and Future Work

Data obfuscation via noise and negative sampling provides a lightweight, algorithm-agnostic defense for MLaaS. Unlike many privacy frameworks, this method is applied to the data itself, making it compatible with any model architecture. Future research will focus on automating parameter tuning for noise levels and utilizing Generative Adversarial Networks (GANs) to create more sophisticated synthetic datasets that further enhance privacy guarantees.

Summary updated

BibTeX
@misc{zhang2018privacy,
  author = {Tianwei Zhang and Zecheng He and Ruby B. Lee},
  title = {{Privacy-preserving Machine Learning through Data Obfuscation}},
  year = {2018},
  eprint = {1807.01860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.01860},
}
Figure