Abstract
Deep learning classifiers can be maliciously trained to secretly encode sensitive user data (e.g., race or gender) directly into their standard, seemingly harmless outputs (e.g., a smile detection score). This "honest-but-curious" (HBC) attack works even when internal model computations are hidden, exposing a major privacy vulnerability in edge computing and Machine-Learning-as-a-Service (MLaaS). This paper demonstrates that a semi-trusted server can design models that are "honest" in their primary task but "curious" about sensitive attributes, leaking information through output side-channels.
Introduction
To protect user privacy, modern machine learning often employs edge computing or secure multi-party computation. In these paradigms, raw data and internal model weights remain on the user's device, and only the final prediction—often a single probability score—is transmitted to the service provider. While previous research focused on "overlearning" within internal layers, this work investigates whether the final output itself can be a vector for privacy leakage.
The authors introduce the Honest-But-Curious (HBC) classifier. Such a model is designed by a semi-trusted server to perform a requested target task perfectly while secretly formatting its output to reveal sensitive attributes. This proves that limiting access to final outputs is insufficient for privacy if the model itself is untrusted.
Methodology
The HBC attack is framed using the Information Bottleneck principle, aiming to compress input data into an output that maximizes information for both the target task and a secret sensitive attribute.
The authors propose two primary training strategies:
- Regularized Attack: This method exploits the entropy (confidence) of soft outputs. By modifying the loss function, the server ensures that the output's entropy correlates with a sensitive attribute (e.g., high entropy for one group, low for another), even if the primary classification remains unchanged.
- Parameterized Attack: A more general approach where the classifier is jointly trained with a secret "decoder" network. The classifier learns to map inputs to outputs that satisfy the primary task's cross-entropy loss while allowing the decoder to extract sensitive information.
Encoding Mechanism
The core idea is to partition the output space. For a binary classifier, the output $\hat{y}$ typically ranges from 0 to 1. While the primary decision $\bar{y}$ is determined by a threshold at 0.5, the specific value of $\hat{y}$ within those regions can encode the sensitive attribute $\bar{s}$.
Experimental Evaluation
The attacks were evaluated on two face image datasets:
- CelebA: Used for binary pairs (e.g., Target: Smiling, Sensitive: Gender).
- UTKFace: Used for multi-class scenarios (e.g., 5 Age groups vs. 5 Race categories).
Key Results
- High Curiosity and Honesty: On CelebA (Target: Smiling, Sensitive: Male), an HBC model achieved 97% accuracy in leaking the "Male" attribute while maintaining a 92% accuracy on the "Smiling" target task. In contrast, a standard model's output only leaked the attribute with ~79% accuracy.
- Multi-class Success: On UTKFace (Target: Age, Sensitive: Race), the HBC model achieved ~83% accuracy on the secret Race attribute, matching its performance on the primary Age classification task (~83%).
- Robustness: Common defenses like weight pruning (up to 50%) failed to eliminate the secret encoding without significantly damaging the primary task's performance.
Discussion and Insights
The study reveals that standard probability vectors have significant mathematical capacity to hide secondary information without affecting the argmax prediction. While standard models do not naturally leak much information at the output level, this leakage can be intentionally engineered.
Furthermore, the authors discovered "Contagious Curiosity": if an HBC model acts as a teacher in Knowledge Distillation, the resulting student model inherits the malicious encoding, even if trained on unlabeled data. Although HBC models typically produce higher-entropy predictions, attackers can use entropy minimization during training to mask this footprint, making the model indistinguishable from a standard one.
Conclusion
The primary limitation of this attack is the requirement for the server to know the sensitive attribute during training. Future work includes developing auditing tools for regulators to detect HBC models and exploring the implications for federated learning environments. This research highlights a critical need for verifying the integrity of models deployed in privacy-sensitive MLaaS applications.
Summary updated