Abstract
It is known that deep neural networks, trained for the classification of non-sensitive target attributes, can reveal sensitive attributes of their input data through internal representations extracted by the classifier. We take a step forward and show that deep classifiers can be trained to secretly encode a sensitive attribute of their input data into the classifier's outputs for the target attribute, at inference time. Our proposed attack works even if users have a full white-box view of the classifier, can keep all internal representations hidden, and only release the classifier's estimations for the target attribute. We introduce an information-theoretical formulation for such attacks and present efficient empirical implementations for training honest-but-curious (HBC) classifiers: classifiers that can be accurate in predicting their target attribute, but can also exploit their outputs to secretly encode a sensitive attribute. Our work highlights a vulnerability that can be exploited by malicious machine learning service providers to attack their user's privacy in several seemingly safe scenarios; such as encrypted inferences, computations at the edge, or private knowledge distillation. Experimental results on several attributes in two face-image datasets show that a semi-trusted server can train classifiers that are not only perfectly honest but also accurately curious. We conclude by showing the difficulties in distinguishing between standard and HBC classifiers, discussing challenges in defending against this vulnerability of deep classifiers, and enumerating related open directions for future studies.
Introduction
In the evolving landscape of privacy-preserving machine learning, paradigms such as edge computing and encrypted inference have gained traction. These setups often rely on the assumption that privacy is maintained if the user's raw input data and the model's internal computations remain hidden. In such scenarios, the user typically only shares the final output—often a single probability score or a vector of logits—with the service provider.
However, this paper identifies a critical vulnerability in this assumption. A malicious server can design an "Honest-but-Curious" (HBC) classifier. These models are "honest" because they maintain high accuracy on the requested target task, but "curious" because they are engineered to secretly encode unrelated sensitive attributes (e.g., race, gender, or age) directly into the output scores. This allows the server to decode private information from seemingly innocuous predictions.
The Honest-but-Curious Threat Model
The HBC framework assumes a semi-trusted server provides a pre-trained model to a user. The user applies this model to their private data and returns only the final classification results. The server's goal is to maximize the accuracy of the target task while simultaneously maximizing the mutual information between the model's outputs and a specific sensitive attribute of the input.
As shown in the system overview, the classifier $\mathcal{F}$ processes input $\mathbf{x}$ to produce logits $\hat{\mathbf{y}}^R$ or probabilities $\hat{\mathbf{y}}^P$. While the "Honest Decision" $\bar{y}$ is returned to the user, the server uses a "Curious Decision" decoder $\mathcal{G}$ to extract the sensitive attribute $\bar{s}$.
Encoding Mechanisms: The Regularized Attack
The authors propose two primary methods for training HBC classifiers. The first, a Regularized Attack, exploits the entropy (confidence) of the output probabilities for binary sensitive attributes.
By modifying the loss function, the server can force the model to output specific confidence levels based on the sensitive attribute. For instance, if the sensitive attribute $s=0$, the model might be trained to produce highly confident scores (low entropy). If $s=1$, it produces less confident scores (high entropy). Crucially, the argmax of the output remains correct for the target task, ensuring the model appears "honest" to the user.
The encoding scheme partitions the output space $\hat{y} \in [0, 1]$. While the decision boundary for the target task $\bar{y}$ is at 0.5, additional thresholds $\tau$ and $1-\tau$ are introduced to define regions for the sensitive attribute $\bar{s}$. This allows the server to decode the secret by simply observing where the output probability falls on this line.
For more complex scenarios involving multiple classes, the authors introduce a Parameterized Attack based on an Information Bottleneck framework. This method jointly trains the classifier with a secret decoder network, forcing the output vector to be highly informative about both the target and sensitive attributes.
Experimental Evaluation
The attacks were evaluated on two prominent face-image datasets: CelebA (40 binary attributes) and UTKFace (annotated with Age, Gender, and Race).
The results demonstrate the efficacy of the HBC approach:
- CelebA (Target: Smiling, Sensitive: Male): While a standard model's outputs leak gender with only ~68% accuracy, the HBC model achieves 96% accuracy in decoding the sensitive attribute, with less than a 1% drop in smiling detection accuracy.
- UTKFace (Target: Age, Sensitive: Race): The HBC model can encode a 3-class race attribute into a 3-class age output, allowing the server to identify the user's race with ~83% accuracy from raw outputs, compared to ~56% for a standard model.
Security Implications and Conclusion
The paper highlights several alarming properties of HBC networks. For one, the vulnerability is persistent; if a user attempts to train a "student" model by mimicking the outputs of an HBC "teacher" model (Knowledge Distillation), the student model inherits the malicious curiosity. Furthermore, standard model compression and pruning techniques fail to remove the secret encoding without significantly damaging the target task's accuracy.
This research reveals that model outputs are rich side-channels that can be intentionally exploited to leak private data. The existence of Honest-but-Curious networks necessitates the development of new auditing tools and defensive techniques to protect users in supposedly "safe" inference scenarios.
Summary updated