[Paper Review] Information Leakage in Embedding Models
This paper demonstrates that pre-trained embedding models leak sensitive information beyond semantic meaning, including recoverable input text, authorship, and membership of rare training examples. Using inversion, attribute inference, and membership attacks, the authors show that 50–70% of input words can be recovered (F1 0.5–0.7), and authorship can be inferred with few labeled examples, prompting defenses via adversarial training that reduce leakage with minimal utility loss.
Embeddings are functions that map raw input data to low-dimensional vector representations, while preserving important semantic information about the inputs. Pre-training embeddings on a large amount of unlabeled data and fine-tuning them for downstream tasks is now a de facto standard in achieving state of the art learning in many domains. We demonstrate that embeddings, in addition to encoding generic semantics, often also present a vector that leaks sensitive information about the input data. We develop three classes of attacks to systematically study information that might be leaked by embeddings. First, embedding vectors can be inverted to partially recover some of the input data. As an example, we show that our attacks on popular sentence embeddings recover between 50\%--70\% of the input words (F1 scores of 0.5--0.7). Second, embeddings may reveal sensitive attributes inherent in inputs and independent of the underlying semantic task at hand. Attributes such as authorship of text can be easily extracted by training an inference model on just a handful of labeled embedding vectors. Third, embedding models leak moderate amount of membership information for infrequent training data inputs. We extensively evaluate our attacks on various state-of-the-art embedding models in the text domain. We also propose and evaluate defenses that can prevent the leakage to some extent at a minor cost in utility.
Motivation & Objective
- To investigate whether embedding models unintentionally leak sensitive information beyond semantic content.
- To develop systematic attacks targeting input reconstruction, sensitive attribute inference, and membership inference in embedding vectors.
- To evaluate the extent of information leakage across state-of-the-art text embedding models.
- To propose and evaluate defenses that reduce leakage while preserving model utility.
Proposed method
- Proposed embedding inversion attacks using gradient-based optimization to reconstruct input text from sentence embedding vectors.
- Developed attribute inference attacks using small labeled datasets to train models that predict sensitive attributes (e.g., authorship) from embeddings.
- Formulated membership inference attacks based on similarity scores between embedding vectors and training data, targeting infrequent inputs.
- Applied adversarial training during embedding model training to minimize leakage, specifically targeting inversion and attribute inference.
- Evaluated attacks and defenses across multiple state-of-the-art models, including BERT, SBERT, and Universal Sentence Encoder.
- Used F1 score, accuracy, and AUC to quantify attack performance and utility trade-offs.
Experimental results
Research questions
- RQ1To what extent can input text be reconstructed from sentence embedding vectors?
- RQ2Can sensitive attributes such as authorship be inferred from embeddings with minimal labeled data?
- RQ3Do embedding models leak membership information about rare training examples through vector similarity?
- RQ4Can adversarial training effectively reduce information leakage without significantly degrading model utility?
Key findings
- Embedding inversion attacks recovered between 50% and 70% of input words, achieving F1 scores of 0.5 to 0.7 on sentence-level reconstruction.
- Authorship of text inputs could be inferred with high accuracy using only a few labeled embedding vectors, demonstrating strong attribute leakage.
- Membership inference attacks successfully identified rare training examples by comparing embedding similarity scores to training data, indicating moderate leakage of training data membership.
- Adversarial training defenses reduced the success of inversion and attribute inference attacks, though with a minor, measurable drop in model utility.
- The study reveals that embeddings are not merely semantic representations but also carry exploitable sensitive information, challenging the assumption that they are safe for deployment.
- Differential privacy was found computationally infeasible for large embedding models due to high parameter counts and hyperparameter sensitivity.
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.