Abstract
Transfer learning is a useful machine learning framework that allows one to build task-specific models (student models) without significantly incurring training costs using a single powerful model (teacher model) pre-trained with a large amount of data. The teacher model may contain private data, or interact with private inputs. We investigate if one can leak or infer such private information without interacting with the teacher model directly. We describe such inference attacks in the context of face recognition, an application of transfer learning that is highly sensitive to personal privacy. Under black-box and realistic settings, we show that existing inference techniques are ineffective, as interacting with individual training instances through the student models does not reveal information about the teacher. We then propose novel strategies to infer from aggregate-level information. Consequently, membership inference attacks on the teacher model are shown to be possible, even when the adversary has access only to the student models. We further demonstrate that sensitive attributes can be inferred, even in the case where the adversary has limited auxiliary information. Finally, defensive strategies are discussed and evaluated. Our extensive study indicates that information leakage is a real privacy threat to the transfer learning framework widely used in real-life situations.
Introduction: The Privacy Gap in Transfer Learning
Transfer learning has become a cornerstone of modern AI, particularly in Machine Learning as a Service (MLaaS). In this paradigm, a "teacher" model is pre-trained on a massive, often proprietary dataset to learn general features. This knowledge is then transferred to "student" models designed for specific downstream tasks.
The prevailing industry assumption has been that because the teacher model's training data is never directly exposed, it remains private. FaceLeaks challenges this assumption, demonstrating that sensitive information from the teacher model can inadvertently leak through its students.
Threat Model and Attack Methodology
The study focuses on black-box scenarios where an adversary only has query access to a student model's API. The goal is twofold: membership inference (determining if a specific individual was in the teacher's training set) and attribute inference (extracting sensitive traits like gender from student inputs).
Standard inference attacks, which analyze a model's reaction to a single image, typically fail in transfer learning because the student model has not directly seen the teacher's data. To overcome this, the authors proposed Class-based Inference. This method shifts the focus from individual data points to aggregate feature distributions.
The "Concentration" Effect
The core discovery is that teacher models learn to represent their training identities more efficiently than unknown ones. This manifests as a "concentration" effect: feature vectors for "member" identities are more tightly clustered in the latent space. This structural property is inherited by student models, providing a signal for attackers.
By querying multiple images of a target identity and calculating the covariance of the returned features or confidence scores, an attacker can use statistical models like Gaussian Mixture Models (GMM) to distinguish members from non-members.
Key Results
The effectiveness of FaceLeaks varies depending on the type of API exposed:
- DNN Feature APIs: These are the most vulnerable, as they expose raw embeddings. Using class-based inference, the authors achieved a membership inference AUC of 0.71.
- Face Verification APIs: Even without auxiliary training data, analyzing mean similarity scores yielded an AUC of 0.68.
- Attribute Inference: Extracting sensitive attributes like gender proved alarmingly efficient, requiring as few as 30 to 50 labeled examples to train a successful attack model against the student API.
Defensive Strategies and Trade-offs
The researchers evaluated several defenses, most notably output randomization. While adding noise to API responses can reduce attack success to near-random levels (AUC ~0.49), it comes at a high cost: significant degradation in the model's utility for legitimate users.
Conclusion
FaceLeaks demonstrates that the transfer learning framework, while efficient, introduces significant privacy risks. The leakage of aggregate-level information allows adversaries to bypass traditional black-box protections. Future work should focus on more robust defenses, such as Differential Privacy (DP-SGD) during the teacher's training phase, and investigate similar vulnerabilities in other domains like Natural Language Processing (NLP).
Summary updated