Abstract
Deep learning has been widely applied in many computer vision applications, with remarkable success. However, running deep learning models on mobile devices is generally challenging due to the limitation of computing resources. A popular alternative is to use cloud services to run deep learning models to process raw data. This, however, imposes privacy risks. Some prior arts proposed sending the features extracted from raw data to the cloud. Unfortunately, these extracted features can still be exploited by attackers to recover raw images and to infer embedded private attributes. In this paper, we propose an adversarial training framework, DeepObfuscator, which prevents the usage of the features for reconstruction of the raw images and inference of private attributes. This is done while retaining useful information for the intended cloud service. DeepObfuscator includes a learnable obfuscator that is designed to hide privacy-related sensitive information from the features by performing our proposed adversarial training algorithm. The proposed algorithm is designed by simulating the game between an attacker who makes efforts to reconstruct raw image and infer private attributes from the extracted features and a defender who aims to protect user privacy. By deploying the trained obfuscator on the smartphone, features can be locally extracted and then sent to the cloud. Our experiments on CelebA and LFW datasets show that the quality of the reconstructed images from the obfuscated features of the raw image is dramatically decreased from 0.9458 to 0.3175 in terms of multi-scale structural similarity. The person in the reconstructed image, hence, becomes hardly to be re-identified. The classification accuracy of the inferred private attributes that can be achieved by the attacker is significantly reduced to a random-guessing level.
1. Introduction
As deep learning models grow in complexity, mobile devices often lack the computational power to run them locally. The common solution is Machine Learning as a Service (MLaaS), where a mobile device sends data to a powerful cloud server for processing. However, sending raw data (like photos) creates massive privacy risks. Even sending "features"—intermediate mathematical representations of the data—is not inherently safe. Research demonstrates that attackers can exploit these features to reconstruct the original image or leak sensitive private attributes, such as gender or age, that the user never intended to share. Existing defenses, like adding random noise or Differential Privacy, often degrade the accuracy of the primary task too severely to be practical.
2. The DeepObfuscator Framework
DeepObfuscator addresses these challenges through an adversarial training strategy that builds a privacy-preserving encoder, or "obfuscator," to run locally on the smartphone. The framework consists of four neural network modules engaged in a multi-stage game:
- Obfuscator: An encoder that transforms raw input into obfuscated features.
- Classifier: The cloud-side model performing the intended task (e.g., smile detection).
- Adversary Reconstructor (AR): Simulates an attacker attempting to recover the raw image from the features.
- Adversary Classifier (AC): Simulates an attacker trying to infer private traits.
Unlike previous methods that rely on simple pixel-wise distance, DeepObfuscator trains the obfuscator to make reconstructed images resemble random Gaussian noise while maximizing the error of the adversary classifier. This is achieved through a four-stage training algorithm that iteratively strengthens the attackers and then optimizes the defender to defeat them.
3. Experimental Evaluation
The researchers evaluated DeepObfuscator primarily on facial recognition datasets, including CelebA (over 200,000 images) and LFW (over 13,000 images). Case studies also extended to multi-class image classification (StateFarm Distracted Driver Detection) and text data (TwitterAAE).
Key Results
The framework demonstrates a significant reduction in both visual and attribute-based privacy risks:
- Visual Privacy: The quality of reconstructed images, measured by Multi-Scale Structural Similarity (MS-SSIM), plummeted from 0.9458 to 0.3175. In human perceptual studies, participants could only identify the correct person 28% of the time, which is barely above the 25% random guess threshold.
- Attribute Privacy: The accuracy of an attacker trying to guess gender was slashed from 97.36% to 58.85%, approaching random guessing for a binary trait.
- Utility Retention: Despite heavy obfuscation, the accuracy of the intended cloud task only dropped by approximately 2%.
- On-Device Efficiency: On a Google Pixel 3, the obfuscator took approximately 101ms and consumed just 2.7mJ of energy per image, confirming its viability for real-time mobile use.
4. Discussion and Future Work
A major finding of this work is that defending against reconstruction does not automatically protect against attribute leakage. An image can be visually unrecognizable to a human but still contain enough signal for an AI to infer private attributes with high accuracy. By using MS-SSIM instead of standard Euclidean distance, DeepObfuscator focuses on destroying the structural information humans use for recognition.
Currently, the obfuscator must be retrained if the primary cloud task changes. Future work will explore information-theory-based methods to make feature extraction more task-independent and investigate model compression techniques to further reduce the footprint on mobile hardware.
Summary updated