Papers
Topics
Authors
Recent
Search
2000 character limit reached

RecLiRA: Interaction-Level Privacy Attack

Updated 7 July 2026
  • RecLiRA is an interaction-level membership inference attack for recommender systems that quantifies membership privacy risks using calibrated shadow models.
  • It adapts LiRA methodology for models like NCF and LightGCN by estimating TPR and FPR in the low false-positive regime critical for differential privacy auditing.
  • Empirical evaluations on datasets such as MovieLens and Amazon show RecLiRA’s superior AUC and precise interaction-level risk scoring for privacy auditing.

Searching arXiv for the primary RecLiRA source and closely related membership-inference work. RecLiRA is an interaction-level membership inference attack for recommender systems that was introduced as the critical attack component of the RecPS privacy risk scoring framework. In that setting, a recommender model fθf_\theta exposes scores or probabilities for user–item pairs (u,i)(u,i), and the adversarial task is to test H0:(u,i)DH_0:(u,i)\notin D versus H1:(u,i)DH_1:(u,i)\in D using the model output for that pair. RecLiRA adapts LiRA to recommender models with probability outputs, especially NCF and LightGCN, in order to obtain high-quality estimates of TPR\mathrm{TPR} and FPR\mathrm{FPR} in the low-FPR regime required by DP-style privacy auditing. Those estimates are then used by RecPS to compute interaction-level and user-level privacy scores (He et al., 24 Jul 2025).

1. Position within recommender-system privacy auditing

Modern recommender systems are trained on sensitive user–item interaction data, including explicit ratings and implicit clicks. In the formulation used by RecPS, the relevant privacy question is not merely whether a model performs well, but whether an adversary with black-box API access to scores or probabilities for (u,i)(u,i) can infer that a specific interaction, or a specific user, appeared in the training data. RecLiRA is designed for precisely this interaction-level inference problem (He et al., 24 Jul 2025).

The motivation for RecLiRA follows from two observations. First, heuristics such as “high prediction score implies membership” or thresholding raw loss or gradients are described as neither calibrated nor theoretically grounded; they also ignore the trade-off between true and false positives and do not connect naturally to differential privacy. Second, under the DP hypothesis testing view, privacy risk is governed by how well an attacker can distinguish neighboring datasets that differ in one record. RecPS therefore treats a high-quality membership inference attack as the appropriate route to quantitative privacy scoring, and RecLiRA is the attack that supplies those measurements (He et al., 24 Jul 2025).

A common source of confusion is nomenclature. The string “LiRA” also appears in unrelated contexts, including audiovisual self-supervision in “LiRA: Learning Visual Speech Representations from Audio through Self-supervision” (Ma et al., 2021), and the label “RecLiRA” is also associated in one language-identification setting with a reciprocal-rank classifier (Widdows et al., 2021). In the recommender-systems privacy literature considered here, however, RecLiRA denotes the recommender-specific membership inference attack used inside RecPS (He et al., 24 Jul 2025).

2. Differential-privacy linkage and scoring objective

RecLiRA is not presented as an isolated attack, but as the mechanism that makes the RecPS scoring rule operational. The RecPS interaction-level score is motivated by the relaxed (ϵ,δ)(\epsilon,\delta)-DP condition

Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,

together with the auditing observation that the per-record bound ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon links attack operating characteristics to privacy loss (He et al., 24 Jul 2025).

For a non-DP modeling method (u,i)(u,i)0 and adjacent datasets (u,i)(u,i)1 differing by the interaction (u,i)(u,i)2, the interaction-level privacy score is defined as

(u,i)(u,i)3

RecPS then estimates this quantity through an interaction-level attack (u,i)(u,i)4 by

(u,i)(u,i)5

with (u,i)(u,i)6. Improving the attack therefore tightens the estimate, which is why RecLiRA’s low-FPR performance is central rather than incidental (He et al., 24 Jul 2025).

At the user level, if (u,i)(u,i)7 is the interaction set of user (u,i)(u,i)8, the paper states the bound

(u,i)(u,i)9

To avoid over-penalizing active users, RecPS uses the mean aggregation

H0:(u,i)DH_0:(u,i)\notin D0

and analogously

H0:(u,i)DH_0:(u,i)\notin D1

This aggregation choice is also tied to the paper’s interpretation of popularity and sparsity effects: users with many interactions do not automatically receive larger risk solely due to volume; instead, risk reflects how sensitive their interactions are on average (He et al., 24 Jul 2025).

3. Attack construction and statistical mechanism

RecLiRA adapts LiRA to interaction-level membership inference for recommenders with probability outputs. Its offline stage trains H0:(u,i)DH_0:(u,i)\notin D2 shadow models H0:(u,i)DH_0:(u,i)\notin D3 with identical architecture and training regimen as the target model. For each shadow dataset H0:(u,i)DH_0:(u,i)\notin D4, each interaction in H0:(u,i)DH_0:(u,i)\notin D5 is sampled with probability H0:(u,i)DH_0:(u,i)\notin D6, so that an interaction is labeled IN for a shadow model if H0:(u,i)DH_0:(u,i)\notin D7 and OUT otherwise. The paper recommends H0:(u,i)DH_0:(u,i)\notin D8 shadow models for stable H0:(u,i)DH_0:(u,i)\notin D9 estimation (He et al., 24 Jul 2025).

The attack feature begins by treating the recommender as a binary classifier with confidence vector H1:(u,i)DH_1:(u,i)\in D0. RecLiRA then uses the margin-like confidence

H1:(u,i)DH_1:(u,i)\in D1

followed by the logit transform

H1:(u,i)DH_1:(u,i)\in D2

Empirically, H1:(u,i)DH_1:(u,i)\in D3 for OUT samples is approximately Gaussian, and this transformed quantity is the attack feature. The offline stage estimates the OUT distribution parameters H1:(u,i)DH_1:(u,i)\in D4 of H1:(u,i)DH_1:(u,i)\in D5 using OUT samples from shadow models, with a single OUT distribution shared across shadow models to reduce cost (He et al., 24 Jul 2025).

For a shadow model H1:(u,i)DH_1:(u,i)\in D6 and interaction H1:(u,i)DH_1:(u,i)\in D7, RecLiRA defines the one-sided score

H1:(u,i)DH_1:(u,i)\in D8

where H1:(u,i)DH_1:(u,i)\in D9 in the notation of the paper. Large TPR\mathrm{TPR}0 indicates IN-like behavior under the OUT distribution’s tail. Rather than imposing a fixed global threshold such as TPR\mathrm{TPR}1, RecLiRA performs interaction-specific calibration: it sweeps candidate thresholds drawn from OUT models’ TPR\mathrm{TPR}2 values and selects the threshold that maximizes TPR\mathrm{TPR}3 for that interaction. This threshold search is the step that yields the empirical TPR\mathrm{TPR}4 used by RecPS (He et al., 24 Jul 2025).

The paper explicitly contrasts this implementation with classical LiRA formulations that use the log-likelihood ratio

TPR\mathrm{TPR}5

and the posterior

TPR\mathrm{TPR}6

RecLiRA, as implemented in RecPS, does not require modeling TPR\mathrm{TPR}7 explicitly and does not require choosing a prior TPR\mathrm{TPR}8 (He et al., 24 Jul 2025).

4. Algorithms, complexity, and operational settings

The paper specifies an offline preparation stage and an online scoring stage. In the offline stage, the inputs are the training dataset TPR\mathrm{TPR}9 and the number of shadow models FPR\mathrm{FPR}0. For each FPR\mathrm{FPR}1, it samples FPR\mathrm{FPR}2 by including each interaction with probability FPR\mathrm{FPR}3, trains a shadow model FPR\mathrm{FPR}4 with the same architecture and optimization as the target, and collects FPR\mathrm{FPR}5 for a subset of OUT interactions FPR\mathrm{FPR}6 to estimate the Gaussian FPR\mathrm{FPR}7 with parameters FPR\mathrm{FPR}8 (He et al., 24 Jul 2025).

In the online ScoreQuery stage, the inputs are FPR\mathrm{FPR}9, (u,i)(u,i)0, (u,i)(u,i)1, (u,i)(u,i)2, and a user’s interaction set (u,i)(u,i)3. For each interaction (u,i)(u,i)4, the procedure computes (u,i)(u,i)5 for each shadow model, records the ground-truth membership label (u,i)(u,i)6, constructs candidate thresholds from OUT shadow models’ (u,i)(u,i)7 values, and for each candidate threshold computes (u,i)(u,i)8 and (u,i)(u,i)9 over the shadow models. The interaction score is the maximum (ϵ,δ)(\epsilon,\delta)0 over those thresholds, and the user-level score is the mean over the user’s interactions (He et al., 24 Jul 2025).

The stated complexity is (ϵ,δ)(\epsilon,\delta)1 offline, where (ϵ,δ)(\epsilon,\delta)2 is the cost to train one shadow model, (ϵ,δ)(\epsilon,\delta)3 is the cost to apply a model to one interaction, and (ϵ,δ)(\epsilon,\delta)4 is the number of OUT samples used to fit (ϵ,δ)(\epsilon,\delta)5. Online cost per interaction is (ϵ,δ)(\epsilon,\delta)6. The paper further recommends (ϵ,δ)(\epsilon,\delta)7 OUT samples to fit the Gaussian parameters reliably. For target and shadow training, the architecture and hyperparameters are shared, with SGD, batch size (ϵ,δ)(\epsilon,\delta)8, learning rate (ϵ,δ)(\epsilon,\delta)9, up to Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,0 epochs with early stopping, and Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,1 negative sampling (He et al., 24 Jul 2025).

These operational details are significant because RecLiRA depends on close target–shadow alignment. The paper states that target and shadow models share architecture, that user splits ensure no overlap between target and shadow users, and that RecLiRA requires probability outputs, which is why the experiments focus on NCF and LightGCN rather than classical MF or ALS (He et al., 24 Jul 2025).

5. Empirical evaluation and observed behavior

The empirical evaluation in RecPS uses MovieLens-1M, Amazon Digital Music, and Amazon Beauty, after preprocessing that keeps users with more than 20 interactions, applies a chronological split with the last interaction as test and the second-last as validation, and uses the remaining interactions for training with Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,2 negative sampling. The target models are NCF and LightGCN, with embedding dimension Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,3 and, for LightGCN, Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,4 GCN layers. Attack quality is measured by MIA AUC and TPR at low FPR, while recommender utility is measured by HitRate@100 (He et al., 24 Jul 2025).

The paper compares RecLiRA with MINER, an interaction-level baseline adapted to NCF and LightGCN. The reported AUC values are as follows.

Dataset RecLiRA AUC MINER AUC
MovieLens-1M, LightGCN 0.9430 0.8310
MovieLens-1M, NCF 0.9169 0.8727
Amazon Digital Music, LightGCN 0.9988 0.8449
Amazon Digital Music, NCF 0.9984 0.4888
Amazon Beauty, LightGCN 0.9971 0.9226
Amazon Beauty, NCF 0.9984 0.6786

Across datasets, the paper states that RecLiRA achieves near-perfect AUC on the Amazon datasets and substantially higher TPR in the low-FPR region than MINER, which is precisely the regime that drives large Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,5 values and therefore precise RecPS scoring (He et al., 24 Jul 2025).

At the user level, for randomly selected 60% of users, Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,6 lies roughly in Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,7, with the top Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,8–Pr(M(D0)O)eϵPr(M(D1)O)+δ,\Pr(M(D_0)\in O)\le e^\epsilon \Pr(M(D_1)\in O)+\delta,9 higher, the bottom ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon0–ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon1 lower, and a middle band clustered. LightGCN typically yields higher scores than NCF, which the paper describes as consistent with stronger HR@100. The paper also notes popularity effects: because scoring is per interaction and then averaged, popular items or users that yield less distinctive margins tend to receive lower interaction-level scores, whereas rare or highly memorized interactions receive higher scores (He et al., 24 Jul 2025).

6. Unlearning use cases, limitations, and interpretive boundaries

RecLiRA’s practical value in RecPS is tied to privacy-aware removal and unlearning. The paper reports that removing entire top-ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon2 sensitive users by ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon3 significantly degrades recommender utility. On Amazon Digital Music, removing the top 5% users reduces HR@100 by 10.79% for LightGCN and 37.05% for NCF. By contrast, score-guided partial interaction removal preserves utility better: removing the top 70% sensitive interactions of the top 5% users demotes 100% of those users below a cutoff ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon4, defined as the minimum score among the original top 5% users, while reducing HR@100 by 9.71% for LightGCN and 15.56% for NCF. The paper further states that random interaction removal achieves far less risk reduction for comparable utility drops (He et al., 24 Jul 2025).

The threat model is explicitly black-box: the adversary has access to the deployed recommendation API and can query scores or probabilities for ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon5, but has no access to offline training. RecPS uses RecLiRA to simulate such a powerful adversary, so that model owners can quantify risk and contributors can request removal or unlearning of high-risk interactions. In that sense, RecLiRA is an auditing and prioritization mechanism rather than a privacy defense by itself (He et al., 24 Jul 2025).

Several limitations are stated. RecLiRA applies to recommender models that output probabilities, such as NCF and LightGCN, and does not directly apply to pure scoring or ranking models that cannot be cast as binary classification, including classical MF and ALS. Its OUT distribution model for ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon6 is Gaussian; this is described as an empirical assumption standard in LiRA and effective in the reported experiments. The method relies on many shadow models, approximately ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon7, to stabilize ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon8 estimates. It also provides no formal ln(TPR/FPR)ϵ\ln(\mathrm{TPR}/\mathrm{FPR})\le \epsilon9 guarantee for non-DP training: the scores are lower bounds on per-interaction distinguishability expressed as (u,i)(u,i)00, not certified privacy parameters (He et al., 24 Jul 2025).

The paper also discusses dynamic effects after removal. Deleting the top 5% sensitive users slightly changes remaining users’ scores, with differences within (u,i)(u,i)01; roughly 10–20% of users increase slightly, while most decrease or remain unchanged. Interaction-level removal weakens this “privacy onion effect,” reducing the fraction of score-increased users by approximately 1–7%. This suggests that RecLiRA-enabled auditing is not a one-shot procedure: risk should be recomputed after selective deletion if privacy reduction and utility preservation are both operational requirements (He et al., 24 Jul 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to RecLiRA.