Abstract
Machine Learning as a Service (MLaaS) increasingly relies on split inference to balance computational loads between edge devices and cloud servers. While efficient, this paradigm exposes intermediate feature vectors that can leak sensitive user information. Current privacy-preserving methods often rely on supervised obfuscation, which requires prior knowledge and labeling of sensitive attributes. We propose an unsupervised obfuscation mechanism based on Singular Value Decomposition (SVD) that filters out information irrelevant to the target task without requiring labels for sensitive attributes. Our method demonstrates superior privacy protection across multiple datasets while simultaneously improving communication efficiency.
Introduction
The proliferation of mobile and IoT devices has led to the widespread adoption of Machine Learning as a Service (MLaaS). To manage the limited battery and compute resources of edge devices, "split inference" is frequently employed. In this setup, the edge device executes the initial layers of a neural network and transmits the resulting intermediate feature vectors to a powerful cloud server, which completes the inference.
However, these intermediate features are inherently "leaky." Even if a server is tasked with a benign operation, such as digit recognition, it may still extract sensitive metadata from the features, such as a user's handwriting style, gender, or biometric identity. Existing defenses typically utilize supervised obfuscation, which trains models to hide specific, pre-defined attributes. This approach is limited because it cannot protect against unforeseen or unlabeled privacy threats.
Methodology: Unsupervised Obfuscation
We propose a "keep only what you need" philosophy. Instead of attempting to hide specific secrets, our method aims to discard all information that is not strictly necessary for the server to perform the target task.
System Architecture
The split inference pipeline is modified to include an obfuscation function $g$ between the client-side model $M_c$ and the server-side model $M_s$.
As shown in the figure above, the input $x$ is processed by $M_c$ to produce feature $z$. The obfuscator $g$ transforms $z$ into $z'$, which is then sent to the server. The server uses $M_s$ to produce the target output $y^{\text{tar}}$.
SVD-Based Filtering
To implement $g$ efficiently, we focus on the first linear layer of the server-side model $M_s$. By performing a Singular Value Decomposition (SVD) on the weights of this layer, we can identify components of the feature vector $z$ that have varying levels of impact on the final prediction:
- Null Space Removal: Information that falls into the null space of the server's first layer cannot be "seen" by the model. This "null content" can be removed with zero impact on accuracy.
- Low-Energy Pruning: Components with very small singular values have a negligible impact on the target task. Pruning these components significantly enhances privacy with only a minor, controlled drop in accuracy.
To maximize the effectiveness of this approach, the server-side model is trained to be robust against pruning and encouraged to produce decorrelated, Gaussian-like features.
Experimental Evaluation
We evaluated the proposed method on four visual datasets, testing the tradeoff between target task accuracy and the leakage of hidden sensitive attributes:
- EMNIST: Target (Digit) vs. Hidden (Writer ID).
- UTKFace: Target (Gender) vs. Hidden (Race).
- FaceScrub: Target (Gender) vs. Hidden (Identity).
- CelebA: Target (Smiling) vs. Multiple hidden attributes (e.g., makeup, attractiveness).
Key Results
Our unsupervised method often outperformed traditional supervised "Adversarial Training." For instance, in the CelebA experiments, while adversarial training successfully masked "Gender," it failed to protect other attributes like "Makeup." In contrast, our unsupervised approach reduced attack accuracy across all hidden attributes simultaneously by filtering out non-essential data.
Furthermore, we observed a "privacy-speed" double win. By removing components of the feature vector, the amount of data transmitted to the cloud is reduced, leading to lower communication latency. The computational overhead on the edge device remains minimal, as the SVD-based transformation is a simple linear operation.
Conclusion
Unsupervised information obfuscation provides a generic and robust defense for split inference. By focusing on the utility requirements of the target task rather than the nature of the sensitive data, we can protect users against a wide array of potential privacy attacks, including those involving unlabeled or unforeseen attributes. Future work will explore extending this analytical framework to handle non-linearities more directly and addressing challenges posed by attributes highly correlated with the target task.
Summary updated