Skip to content

Encoded yet exposed: language embeddings leak more than they should in recommender systemsEncoded but Exposed: Language Embeddings can Reveal More Than They Should in Recommender Systems

Paper Tracker· arXiv:2610.21713· Linda Beková, Rodrigo AlvesCzech Technical University in PragueIndexed by this site · 2026-10-17· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors state that cosine similarity can recover identities from item language embeddings, and can propagate through sparse ratings to user re-identification; obfuscation reduces leakage but harms recommendation utility.

Threat modelThe attacker knows the embedding function ϕ and holds external auxiliary item texts with identity labels. The goal is to recover item identity from item embeddings exposed by the recommender. The capability is to embed auxiliary texts with the same ϕ and rank candidates by cosine similarity. The victim is the recommender system that exposes item embeddings. The candidate set is either closed (identical to the victim set) or open (a larger catalog with distractors).

Questions
Recommender systems increasingly represent items with language embeddings and often share embeddings with third parties. The authors argue that high-dimensional embeddings are not therefore uninferable: an attacker can use external item texts to match exposed embeddings back to item identity.
Methods
The attacker knows the embedding function, embeds auxiliary titles or generated descriptions with the same model, then ranks candidates by cosine similarity, with MRR as the metric. The candidate set is either closed, identical to the victim set, or a larger open catalog with distractors. The mitigation is obfuscated descriptions that remove explicit identifiers.
Experiments and results
On MovieLens closed set 1000, MiniLM-L6, MRR of T+D vs T is 1.00, and D vs D is 0.79 (Table 1). The authors state that after obfuscation, title attacks are about 0.06–0.17, description attacks still about 0.32–0.51, and recommendation utility worsens; user MRR rises with k.
Limitations and future work
Future directions in the Conclusion: stronger attacks, broader domains and catalogs, and semantics-preserving defenses. Identification covers six embedding models and two datasets; obfuscation, utility, and user re-identification are mainly on MovieLens. The paper does not report the number of target users for re-identification, and the main text does not give RMSE or Spearman values.
Experimental setupall-MiniLM-L6-v2、paraphrase-MiniLM-L3-v2 et al. · MovieLens 32M、GoodReads · MRR、RMSE et al.
Evaluated models
all-MiniLM-L6-v2paraphrase-MiniLM-L3-v2paraphrase-multilingual-MiniLM-L12-v2all-distilroberta-v1multi-qa-mpnet-base-dot-v1paraphrase-albert-small-v2
Benchmarks
MovieLens 32MGoodReads
Metrics
MRRRMSESpearman correlation
AI summaryThe paper (arXiv:2610.21713) states that language embeddings used by recommender systems to represent item content can be recovered by a simple cosine similarity attack, achieving high Mean Reciprocal Rank (MRR) across multiple language models and candidate set settings on two real-world datasets. Leakage is strongest when the auxiliary item text available to the attacker overlaps with the victim representation, but semantic alignment also causes leakage even when descriptions come from independent sources. Item leakage can further propagate from sparse ratings to user re-identification. The authors propose obfuscated descriptions as a mitigation and find a clear trade-off between leakage and utility. The paper was published at the EARL 2026 workshop co-located with CIKM 2026.

The paper (arXiv:2610.21713) states that language embeddings used by recommender systems to represent item content can be recovered by a simple cosine similarity attack, achieving high Mean Reciprocal Rank (MRR) across multiple language models and candidate set settings on two real-world datasets. Leakage is strongest when the auxiliary item text available to the attacker overlaps with the victim representation, but semantic alignment also causes leakage even when descriptions come from independent sources. Item leakage can further propagate from sparse ratings to user re-identification. The authors propose obfuscated descriptions as a mitigation and find a clear trade-off between leakage and utility. The paper was published at the EARL 2026 workshop co-located with CIKM 2026.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors state that item embeddings can be matched back to identities by cosine similarity, and the leakage can also propagate to users under sparse ratings.

    Whether item language embeddings exposed by the recommender can be matched back to item identities when the attacker only has external auxiliary text.

    • Scenario: The authors state that language embeddings are often treated as privacy-protecting because they are high-dimensional and not directly interpretable by humans, and are shared with third parties. Public item text is abundant; when the platform's internal corpus is unavailable, external catalogs may still be used for inference.
    • Gap in existing work: The authors state that existing embedding attacks mostly infer attributes, determine training membership, or reconstruct original text; attribute leakage in recommender systems also mostly studies user representations. This paper treats item identity as a discrete sensitive attribute to be recovered from item embeddings.
    • Assumptions: The attacker knows the embedding function and uses external text to rank exposed embeddings in the same space. The authors believe the two sides' text need not match verbatim; semantic alignment may also cause leakage.
    • Threat model:
      • Target: Recover item identity yi from exposed embedding zi=ϕ(xi); the victim's original corpus is not directly observable.
      • Knowledge: Knows and can use the pretrained language model ϕ, as well as an auxiliary set with item identity labels. The authors state that the item domain is usually known, and public item information suffices to construct that set.
      • Capability: Embeds auxiliary text with the same ϕ, scores and ranks candidates, and takes the highest-scoring identity. Scoring can be a fixed similarity or a model learned on the auxiliary set.
      • Victim system: A recommender that exposes item semantics only through embeddings. In closed, the candidate set is the same as the victim item set; in open, retrieval is from a larger catalog with distractors. The authors state that open is harder.
    • Contents of this paper: Formalizes this inference and measures leakage with MRR on two real datasets, multiple candidate sets, and six embedding models; then evaluates the leakage–utility trade-off of obfuscated descriptions and the propagation of leakage through sparse ratings to user re-identification.
  2. What related research exists?

    The authors position this paper between embedding attribute inference and recommendation de-anonymization, focusing on item identity rather than user attributes.

    The related discussion is concentrated in the Related Literature section of the introduction and can be divided into three groups. The paper does not set other attack methods as experimental baselines.

    Taxonomy of embedding privacy attacks

    • Song and Raghunathan (2020) provide a taxonomy of embedding privacy attacks: inferring private attributes from embeddings, determining whether specific data or context was used in training, and reconstructing original text from representations. The authors state that this paper is closer to the first category: the attacker has the embedding function and an auxiliary set with discrete sensitive attribute labels, and infers that attribute in embedding space.
    • For the membership direction, the paper names Mahloujifar et al. (2021) and Mattern et al. (2023), where the question is whether specific data or context was used in training.
    • For the reconstruction direction, the paper names Huang et al. (2024) on transferable embedding inversion, Li et al. (2023) on generative sentence embedding inversion, and Morris et al. (2023) on embeddings leaking textual information. The paper only lists them in this taxonomy.

    Attribute inference and recommendation embeddings

    • Zhu et al. (2024) discuss that text embeddings still encode sensitive attributes when the original text is unavailable; Abedi Khorasgani et al. (2024) discuss similar leakage in vision-utility embeddings. Song and Shmatikov (2019) call encoding beyond the training objective overlearning.
    • In recommender systems, Hu and Yang (2020) on transferred embeddings and Zhang et al. (2021) on graph embeddings can leak user private attributes. The paper accordingly mentions attribute forgetting and in-training defenses: Feng et al. (2025), Li et al. (2026), Wu et al. (2025).
    • The authors state that the above recommender system risks mainly target user representations; this paper instead treats item identity as the sensitive attribute.

    De-anonymization of users and interactions

    • The paper cites Narayanan and Shmatikov (2008): sparse rating patterns are often unique enough to re-identify users in anonymized data.
    • Weinsberg et al. (2012) infer gender from ratings using a small set of users with publicly available demographic labels.
    • Zhang et al. (2021) and Zhong et al. (2024) perform membership inference in recommender systems, asking whether a user or a user–item interaction is in the training data. Torres and Olivares (2024) use rating patterns for cross-domain record linkage. The authors connect this paper to that direction as: item identity leakage can propagate to user-level privacy risks.

    Data and baselines: Experimental data are MovieLens 32M and GoodReads. The paper does not set named attack baselines; scoring is fixed to cosine similarity.

    The authors place this paper in the attribute inference category, but the sensitive attribute is item identity rather than user attributes, and further examine the propagation of that leakage to user re-identification, as well as the leakage–utility trade-off of obfuscated descriptions.

  3. How does the paper address this problem?

    Given a known embedding function, auxiliary texts are embedded with the same model, then ranked to item identity by cosine similarity.

    Given a known embedding function ϕ, item identity inference is formulated as candidate ranking in embedding space; experiments use cosine similarity, without training a classifier.

    Problem setup

    • User set U, item set I. Item i has text xi (e.g., description) and a discrete sensitive attribute yi (e.g., title). The victim corpus is not directly observed by the attacker. The recommender only exposes zi=ϕ(xi), where ϕ is a pretrained language model.
    • The attacker additionally has an auxiliary labeled set, embeds it with the same ϕ, and constructs a classifier. The paper frames inference as obtaining identity from item embeddings via this classifier; leakage is the ability to recover yi.
    • In the ranking formulation, inferred identity is the highest-scoring candidate: fD(zi)=yj∗, where j^* maximizes compatibility g(zi, zj). g can be a fixed similarity or a model learned on the auxiliary set.

    Candidate sets and auxiliary texts

    • Auxiliary texts can come from public catalogs, aggregator sites, or generated descriptions. The paper gives movies as linkable to IMDb or TMDb titles, plots, and descriptions.
    • closed: the candidate set is identical to the victim item set, matching exposed embeddings to known identities. Experiments use equal sizes of 1000, 3000, or 5000 on both sides.
    • open: retrieval from a larger catalog with distractors. The authors state this setting is harder because candidates must be selected in addition to matched. Experiments fix the leaked list size at 1000 and catalog sizes at 2000, 3000, or 4000, representing the ratio of leaked list to full item set.
    • The notation I, Ī in the method and experiment sections should be read against the sizes in the experiment section. Sizes below follow the experiment section.

    Identification pipeline and corpora

    • Each candidate is embedded with the same ϕ. In experiments, g is cosine similarity, i.e., the dot product of two vectors divided by the product of their norms. The authors state this measures identity leakage directly in embedding space without adding capacity through a learned attacker.
    • The metric is MRR, the mean reciprocal rank of the correct item. The paper states 1 corresponds to rank 1, and 0.5 roughly corresponds to average rank 2.
    • The victim corpus has description-only and title-plus-description variants. The adversary corpus has title-only and gpt-oss-20b-generated description variants. The paper states the description sources differ between sides, so description-based identification reflects semantic similarity rather than text reuse.

    Whether the embedding function is known

    • The main experiments assume the attacker knows ϕ. The authors state this is a common assumption in embedding privacy attacks, used to isolate identity leakage in a shared embedding space.
    • Preliminary experiment: for each candidate model whose output dimension matches the leaked embeddings, train an autoencoder on auxiliary text embeddings, then compare its reconstruction error on victim embeddings. The authors state that in the tested movie and book settings, the autoencoder trained on embeddings from the victim encoder always had the lowest error. The authors consider this to indicate the encoder can be identified within the tested candidate set; it does not establish identification for arbitrary models or transformed embeddings. The paper does not give reconstruction error values.

    How obfuscation and user re-identification are defined

    • Obfuscation: rewrite descriptions with gpt-oss-20b, preserving the general plot while removing explicit identifiers such as titles, actors, directors, producers, and franchise names. This corpus is built on a random sample of 5000 movies in MovieLens.
    • Utility: inductive matrix factorization approximates the rating matrix as the product of a learned low-rank user matrix and item representations. Item representations can be original titles, original descriptions, or obfuscated embeddings. Error is measured with RMSE, and ranking consistency with Spearman correlation.
    • User re-identification: the attacker sees k items and their ratings for a target user. A candidate user's score is the sum, over each observed rating, of the maximum cosine similarity between that rating's item and auxiliary items among the candidate user's items with the same rating; if no such rating exists, that term is 0. Users are then ranked by score, and the target user's MRR is used.
  4. What experiments did the paper conduct?

    The authors state that the cosine attack achieves high MRR across two datasets and six models; obfuscation reduces leakage, but recommendation utility worsens.

    Experimental setup

    • Embedding models: all-MiniLM-L6-v2, paraphrase-MiniLM-L3-v2, paraphrase-multilingual-MiniLM-L12-v2, output 384 dimensions; all-distilroberta-v1, multi-qa-mpnet-base-dot-v1, paraphrase-albert-small-v2, output 768 dimensions. In the table they are abbreviated as MiniLM-L6, MiniLM-L3, mMiniLM-L12, DistilRoBERTa, MPNet-QA, ALBERT-small.
    • Data: MovieLens 32M and GoodReads, each keeping the most popular top 10K items. MovieLens victim text comes from the augmented corpus cited in the paper; GoodReads uses the original dataset metadata. Then uniform random sampling according to the candidate set.
    • Corpora: Victim side is description only, or title plus description. Adversary side is title only, or descriptions generated by gpt-oss-20b. Obfuscated descriptions are generated only on a random sample of 5000 movies from MovieLens.
    • Candidate sets: closed takes both sides at sizes 1000, 3000, 5000. open fixes leakage list at 1000, and catalog at 2000, 3000, 4000.
    • Evaluation: Item identification has no LLM review; success is measured by MRR of the correct identity. Each cell in Table 1 is the average over 100 random samples. Utility is RMSE and Spearman correlation of inductive matrix factorization. User re-identification also uses MRR; the right side of Figure 1 corresponds to |I|=3000.
    • Not instantiated parts: The learned classifier in the formalization has no separate experimental results; experimental scoring is cosine similarity.

    Main results

    According to Table 1, closed set size 1000, each cell is the average MRR over 100 samples. T+D/T means victim is title plus description, adversary title only; D/D means both sides are descriptions; T/obfuscated means adversary title only, victim obfuscated descriptions. ML is MovieLens, GR is GoodReads.

    Swipe horizontally to read the table

    ModelML T+D/TML D/DML T/obfuscatedGR T+D/TGR D/D
    MiniLM-L61.000.790.150.950.71
    MiniLM-L30.970.730.120.870.55
    mMiniLM-L120.950.720.140.730.44
    DistilRoBERTa1.000.780.170.950.71
    MPNet-QA0.980.820.120.910.67
    ALBERT-small0.960.700.120.900.61
    • The authors state that leakage is strongest when the victim corpus contains both title and description, and title-only auxiliary text is often sufficient to rank items at the top in the tested candidate sets. When the closed set increases to 5000, MovieLens, MiniLM-L6, T+D/T is still 0.99; with open catalog 2000 and 3000, DistilRoBERTa's same cell is still 1.00 (Table 1).
    • The authors state that description-only victim embeddings can still be recovered, so identity need not rely only on explicit overlap, but can also come from semantic alignment. The authors state that MRR declines only mildly as the candidate set grows, and increasing dimensionality alone does not remove identity information. The pattern across the six models in the table is similar, but the values are not identical; the GoodReads D/D column is lower than several MovieLens T+D/T cells.
    • The authors state that the most effective auxiliary information differs across the two domains. On MovieLens, title attacks remain strong even when victim embeddings come only from synopses; the authors believe titles have lexical or semantic overlap with plots. On GoodReads, title attacks remain effective when the victim representation includes titles, but description-type auxiliary information is often competitive, especially against description-only victim embeddings; the authors believe book identity relies more on semantic alignment than on exact textual cues.

    Obfuscation and downstream utility

    • What was measured: On MovieLens, original text is replaced with obfuscated descriptions; the obfuscation column of Table 1 gives MRR. Then inductive matrix factorization is used to examine rating prediction and ranking; each point in the left panel of Figure 1 is a metric averaged over candidate set sizes, with trajectories corresponding to switching to the obfuscated corpus.
    • Results: The authors state that obfuscation reduces identity leakage, especially for title attacks. On MovieLens, title-based MRR drops from very high values under T+D or D to about 0.06–0.17 across models and candidate settings. When the adversary switches to auxiliary descriptions, the authors state MRR is usually about 0.32–0.51. All six encoders decline, but no model eliminates leakage. The main text states that obfuscation simultaneously increases RMSE and decreases Spearman. The left panel axes are RMSE, Spearman correlation vs MRR (items). The paper does not give specific values for these two metrics in the main text; point positions in the figure are not transcribed here.
    • Authors' interpretation: The authors state that the privacy gain comes with a utility cost: rating prediction worsens and the consistency of recommendation ranking weakens.

    User re-identification

    • What was measured: Item similarity is connected to sparse ratings. On MovieLens, |I|=3000, the attacker observes k ratings, matches only on co-rated items with candidate users using cosine, and evaluates by user MRR. The right side of Figure 1 has separate closed and open panels.
    • Results: The authors state that MRR rises quickly with k, and a small number of rated items is often sufficient to identify the target user. The horizontal axis k is labeled 2, 3, 4, 5, and the vertical axis is MRR (users). The main text does not give specific readings for these curves.
    • Authors' interpretation: The authors state that a large drop in user-level MRR occurs only with obfuscated representations and a title-only adversary. When the adversary uses auxiliary descriptions, re-identification remains effective. The authors believe semantic similarity can still connect sparse user profiles even under obfuscation.

    Other ablations and analyses

    • Open leakage list 1000, catalog 4000, MovieLens, MiniLM-L6: T+D/T is 0.99, D/D is 0.72 (Table 1).
    • Same size GoodReads, MiniLM-L6: T+D/T is 0.91, D/D is 0.62 (Table 1).
    • MovieLens closed set 5000, adversary title only, victim obfuscated descriptions, six-model MRR in order is 0.08, 0.06, 0.08, 0.09, 0.06, 0.06 (Table 1, order same as table header).
    • Same cell with adversary switched to generated descriptions, in order: 0.33, 0.37, 0.37, 0.32, 0.32, 0.33 (Table 1).
    • GoodReads closed set 5000, T+D/T: MiniLM-L6 is 0.90, mMiniLM-L12 is 0.64 (Table 1).
    • Closed set 1000, MiniLM-L6, adversary title only, victim description only: MovieLens is 0.91, GoodReads is 0.68 (Table 1).
  5. What are some points that can be further explored?

    In the Conclusion, the authors propose future directions: stronger attack models, broader domains and catalogs, and semantics-preserving defenses.

    Limitations and future directions noted by the authors

    The paper has no separate Limitations section. Section 4 Conclusion states that these findings open several future directions and lists three:

    • Stronger attack models (Section 4 Conclusion).
    • Broader domains and catalogs (Section 4 Conclusion).
    • Defenses that reduce identity leakage while preserving the semantic information needed for accurate recommendations (Section 4 Conclusion).

    Experimental coverage

    • Item identification covers six sentence-transformers, and MovieLens 32M and GoodReads; each dataset first keeps the most popular top 10K items, then uniformly random samples according to the candidate set. Closed sizes are 1000, 3000, 5000; open has leakage list 1000 and catalog 2000, 3000, 4000. Each cell in Table 1 is the average MRR over 100 samples, with cosine similarity scoring.
    • Adversary descriptions are generated by gpt-oss-20b, from a different source than victim descriptions. Obfuscated descriptions are also generated by that model, on a sample of 5000 movies from MovieLens.
    • Downstream utility is evaluated only on MovieLens, with inductive matrix factorization, using RMSE and Spearman correlation. The paper does not give specific values for these two metrics in the main text.
    • User re-identification is reported only on MovieLens, |I|=3000; the k-axis in the right panel of Figure 1 is labeled 2, 3, 4, 5. The paper does not report the number of target users for computing that MRR.
    • The main experiments assume the embedding function is known. The autoencoder is compared only on candidate models with the same output dimension as the leaked embeddings, using reconstruction error; the authors state that this result does not establish identification for arbitrary models or transformed embeddings. The paper does not report results for learned scoring functions, nor numerical reconstruction error values.
  6. Summarize the main content of the paper

    The authors state that on both datasets, cosine similarity can recover identity from item embeddings; obfuscation reduces leakage but harms utility.

    This is an attack study on identity leakage from language embeddings of recommended items: whether external text can match embeddings exposed by the recommender back to items, and whether that leakage propagates to users.

    • Problem: The authors state that embeddings are often shared with third parties and, being high-dimensional, are treated as not easily interpretable. Without the victim's original corpus, public catalogs or generated text may still support identity inference.
    • Approach: The attacker knows the embedding function, embeds auxiliary titles or generated descriptions into the same space, ranks by cosine similarity, and uses MRR as the metric. Candidate sets include closed, identical to the victim set, and open with distractors. Mitigation is obfuscated descriptions that remove explicit identifiers; utility is measured by rating error and ranking consistency of inductive matrix factorization; on the user side, re-identification uses similarity over a small number of co-rated items.
    • Item results: In Table 1, MovieLens closed set 1000, MiniLM-L6, victim title plus description, adversary title only, MRR is 1.00; same model description only vs description only is 0.79. At closed set 5000, the former setting is still 0.99. GoodReads closed set 1000, same model and T+D/T is 0.95. The authors state that the six models show the same pattern, but the table values are not uniform, e.g., mMiniLM-L12 D/D on GoodReads is 0.44.
    • Obfuscation and users: The authors state that on MovieLens, title attacks after obfuscation drop to about 0.06–0.17, with auxiliary descriptions usually still about 0.32–0.51, while rating prediction worsens and ranking consistency weakens. The authors state that user MRR rises with the number of observed ratings; description-based adversaries can still re-identify under obfuscation.
    • Authors' conclusion: Identity can be encoded by text partially overlapping with the victim representation, and also by semantic alignment between descriptions from independent sources; item leakage propagates to user privacy. Obfuscation reduces leakage but at a recommendation utility cost.
Read originalarxiv.org