[Paper Review] Membership Inference on Word Embedding and Beyond
This paper demonstrates that word embeddings are vulnerable to black-box membership inference attacks even without direct access to the embedding layer, by exploiting semantic relationships preserved in the embeddings. The attack achieves over 90% accuracy on word embeddings and transfers effectively to downstream tasks like text classification and text generation, offering a cheaper alternative to shadow model-based attacks on generative models.
In the text processing context, most ML models are built on word embeddings. These embeddings are themselves trained on some datasets, potentially containing sensitive data. In some cases this training is done independently, in other cases, it occurs as part of training a larger, task-specific model. In either case, it is of interest to consider membership inference attacks based on the embedding layer as a way of understanding sensitive information leakage. But, somewhat surprisingly, membership inference attacks on word embeddings and their effect in other natural language processing (NLP) tasks that use these embeddings, have remained relatively unexplored. In this work, we show that word embeddings are vulnerable to black-box membership inference attacks under realistic assumptions. Furthermore, we show that this leakage persists through two other major NLP applications: classification and text-generation, even when the embedding layer is not exposed to the attacker. We show that our MI attack achieves high attack accuracy against a classifier model and an LSTM-based language model. Indeed, our attack is a cheaper membership inference attack on text-generative models, which does not require the knowledge of the target model or any expensive training of text-generative models as shadow models.
Motivation & Objective
- Investigate whether word embeddings are vulnerable to membership inference attacks under realistic black-box assumptions.
- Examine if membership leakage from word embeddings persists in downstream NLP tasks such as text classification and text generation.
- Develop a membership inference attack that does not require access to the target model’s internal parameters or shadow models.
- Demonstrate that semantic relationships in embeddings can be exploited to infer training data membership.
- Assess the transferability of membership leakage from embeddings to end-task models, even when the embedding layer is not exposed.
Proposed method
- Design a membership inference attack that leverages semantic similarity patterns in word embeddings, focusing on word pairs with contextually meaningful proximity (e.g., 'remote' and 'work' in 2020 emails).
- Use only label-only access to the target model (black-box setting), avoiding reliance on confidence scores or model parameters.
- Construct special word pairs that are semantically close only if the attacker’s data was used in training the embedding function.
- Apply the attack to both the embedding layer and downstream models (e.g., spam classifier and LSTM-based language model) to test leakage persistence.
- Define thresholds for attack decisions based on cosine similarity of word pairs, with a clear, self-contained method for threshold computation.
- Propose a novel, cost-effective membership inference method for text-generative models that avoids expensive shadow model training.
Experimental results
Research questions
- RQ1Can a semi-honest attacker infer whether her data was used in training a word embedding function using only black-box access?
- RQ2Does membership leakage from word embeddings transfer to downstream NLP tasks like text classification and text generation when the embedding layer is not exposed?
- RQ3How effective is a membership inference attack that exploits semantic relationships in embeddings rather than memorization of rare words?
- RQ4Can a membership inference attack on text-generative models be performed without training shadow models or accessing model confidence scores?
- RQ5What is the impact of embedding quality and semantic structure on the success of membership inference attacks?
Key findings
- The proposed membership inference attack achieves over 90% accuracy on word embeddings using only black-box label access.
- Membership leakage from word embeddings persists through downstream classification and text-generation models, even when the embedding layer is not directly accessible.
- The attack is effective on real-world datasets and does not require access to the exact training distribution of the target model.
- The attack outperforms prior work by not relying on rare central words or complex threshold tuning, making it more practical and generalizable.
- The method enables a cheaper membership inference attack on text-generative models without requiring expensive shadow model training.
- The attack is fundamentally different from prior work, as it exploits semantic relationships in embeddings rather than memorization of rare tokens.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.