Abstract
The training phase of deep neural networks requires substantial resources and as such is often performed on cloud servers. However, this raises privacy concerns when the training dataset contains sensitive content, e.g., face images. In this work, we propose a method to perform the training phase of a deep learning model on both an edge device and a cloud server that prevents sensitive content being transmitted to the cloud while retaining the desired information. The proposed privacy-preserving method uses adversarial early exits to suppress the sensitive content at the edge and transmits the task-relevant information to the cloud. This approach incorporates noise addition during the training phase to provide a differential privacy guarantee. We extensively test our method on different facial datasets with diverse face attributes using various deep learning architectures, showcasing its outstanding performance. We also demonstrate the effectiveness of privacy preservation through successful defenses against different white-box and deep reconstruction attacks.
Introduction
Training modern deep neural networks (DNNs) is a resource-intensive process, often necessitating the use of powerful cloud infrastructure. However, offloading training data—such as medical records or facial images—to third-party cloud providers introduces significant privacy risks. While "split learning" strategies, which distribute layers between edge devices and the cloud, offer some protection, they remain vulnerable. Research has demonstrated that "representation inverters" can reconstruct original input images from intermediate feature maps sent during training.
Existing privacy-preserving methods frequently focus solely on the inference phase or impose computational burdens unsuitable for resource-constrained edge devices. To address these challenges, we present Privacy-Preserving Hierarchical Training (PriPHiT), a lightweight framework designed to secure sensitive data during the training phase in edge-cloud systems.
Methodology
PriPHiT achieves privacy through a hierarchical training approach that combines adversarial learning with differential privacy. The framework operates in distinct phases to ensure that feature maps transmitted to the cloud are "sanitized" of sensitive information.
Adversarial Early Exits
During the initial "edge pre-training" phase, the edge device trains a feature extractor using two auxiliary "heads" or early exits. The primary head focuses on the desired task (e.g., identifying a smile), while the adversarial head attempts to predict a sensitive attribute (e.g., gender). The extractor is trained to maximize the performance of the task head while simultaneously minimizing the adversarial head's ability to extract sensitive information. This adversarial game forces the edge device to "forget" sensitive information.
Differential Privacy (DP)
To provide formal privacy guarantees, PriPHiT incorporates Laplace noise into the feature maps. A thresholding layer bounds the signal range, ensuring the output satisfies $\epsilon$-differential privacy. This prevents the cloud from recovering sensitive details even if it possesses knowledge of the edge's architecture (a white-box scenario).
Hierarchical Training
Once the edge extractor is sanitized, it is either frozen or refined while the primary model (the "analyzer") undergoes heavy training in the cloud. This ensures that the cloud only receives task-relevant, privacy-preserved feature maps.
Experimental Evaluation
We evaluated PriPHiT across three diverse datasets:
- CelebA: Focused on "Smiling" (desired) vs. "Gender" (sensitive) and "Open Mouth" vs. "Makeup."
- FFHQ: High-quality facial images for "Smiling vs. Gender" validation.
- CheXpert: Medical chest X-rays, identifying symptoms (desired) while protecting patient gender (sensitive).
Results
PriPHiT demonstrates a robust trade-off between utility and privacy. The features required for primary tasks are often distinct enough from sensitive attributes that the model can learn the former while effectively suppressing the latter.
Attacker Accuracy
The effectiveness of the adversarial suppression is evident in the attacker's performance. On the CelebA dataset using a ResNet-18 architecture, PriPHiT reduced a gender-classification attacker's accuracy from a baseline of 96.38% to just 61.71% (approaching random guess levels), while incurring only a 2.14% loss in accuracy on the primary task.
Reconstruction Defense
In addition to classification attacks, PriPHiT provides strong defense against reconstruction. The Structural Similarity Index (SSIM)—where 1.0 is a perfect match—dropped from 0.89 in the baseline to 0.29 with PriPHiT. Qualitatively, images reconstructed from PriPHiT feature maps appear as unrecognizable noise, whereas baseline reconstructions clearly reveal the original input.
Conclusion
PriPHiT offers an efficient, training-phase defense for edge-cloud collaborative learning. By leveraging adversarial early exits and differential privacy, it successfully strips sensitive attributes from data without significantly compromising task accuracy. Future work will explore the framework's impact on battery consumption and latency on specific IoT hardware, as well as its scalability to more complex datasets.
Summary updated