RecPS: Privacy Risk Scoring for Recommender Systems
- The paper introduces RecPS, a framework that quantifies privacy risk at both interaction and user levels using a DP hypothesis-testing approach.
- RecPS leverages an adapted likelihood-ratio attack, RecLiRA, to distinguish sensitive interactions with superior AUC performance compared to prior methods like MINER.
- The framework enables targeted unlearning by ranking user interactions to balance privacy risk reduction and recommendation utility in practical deployments.
Searching arXiv for the exact RecPS paper and closely related recommender-system privacy/MIA work to ground the article. RecPS is a privacy risk scoring framework for recommender systems that quantifies how sensitive each user-item interaction, and each user, is to membership inference attacks (MIAs). It was introduced as a black-box auditing method for recommender models trained on sensitive interaction data, with the explicit goal of supporting privacy-aware model development, user opt-out guidance, and targeted unlearning. The framework is built around an interaction-level MIA called RecLiRA, adapted from the LiRA likelihood-ratio attack, and it defines an -like privacy score grounded in the hypothesis-testing interpretation of differential privacy (DP) (He et al., 24 Jul 2025).
1. Motivation and problem setting
RecPS addresses a specific gap in recommender-system privacy analysis: although recommender systems depend on highly sensitive user-item interactions, and although users increasingly exercise the right to opt out under regimes such as GDPR and CCPA, there has been no formal sample-level method for deciding which interactions are more privacy-sensitive than others (He et al., 24 Jul 2025). In deployed systems, protection often relies on controlled access rather than strong DP guarantees, because DP training can reduce recommendation utility through added noise and gradient clipping.
The framework is motivated by the observation that privacy leakage in recommender systems is not uniform. Some interactions are more vulnerable to membership inference than others, and this heterogeneity matters both operationally and normatively. Prior recommender-system MIA work mainly measured user-level leakage, while existing interaction-level MIAs were not sufficiently strong to support fine-grained risk scoring. RecPS is designed to fill that gap by assigning privacy risk scores at two levels: the individual interaction and the user .
The threat model is black-box. The adversary can query the online recommender API with user-item pairs and obtain scores or probabilities for “interaction” versus “no interaction,” but does not observe the training process, parameters, or gradients. Under this model, successful inference of whether an interaction or a user’s interaction set was present in the training data reveals sensitive historical preferences and may facilitate further inferences such as data reconstruction (He et al., 24 Jul 2025).
2. Differential-privacy interpretation and score definition
The central conceptual move in RecPS is to derive an empirical privacy score from the hypothesis-testing interpretation of DP. For adjacent datasets and differing by exactly one record, an algorithm satisfies -DP if
Under the corresponding hypothesis-testing view, a per-record audit yields
where and 0 are measured by an attack that attempts to distinguish whether the record was IN or OUT of the training set (He et al., 24 Jul 2025).
RecPS uses this relation to define an interaction-level 1-like sensitivity bound for a non-DP recommender model 2. For a known interaction 3 and adjacent datasets 4, the paper defines
5
A sufficiently strong interaction-level MIA then yields an empirical lower bound
6
As the attack quality improves, 7. In this formulation, RecPS does not claim to provide a formal DP guarantee for a non-DP-trained recommender; rather, it supplies a DP-grounded privacy score interpretable as sample-specific sensitivity (He et al., 24 Jul 2025). This distinction is crucial. A common misconception is to treat high RecPS scores as equivalent to certified DP parameters; the framework instead uses DP auditing logic to construct theoretically meaningful empirical risk scores.
3. RecLiRA: the interaction-level membership inference engine
The interaction-level score depends on RecLiRA, an attack adapted from LiRA to recommender models that output probabilities. For a record 8, the recommender returns
9
interpreted as the probability of “interaction,” with confidence vector 0. RecLiRA compresses this output to the confidence-separation statistic
1
and then applies the logit transform
2
Empirically, 3 is approximately Gaussian for OUT samples and is higher for IN samples (He et al., 24 Jul 2025).
In its offline adaptation, RecLiRA estimates only the OUT distribution of 4 and performs a one-sided hypothesis test. For each shadow model 5, it computes
6
where 7 is a Gaussian fit to OUT samples’ 8. Shadow models are trained by 50% Bernoulli subsampling of the training set, using the same architecture and training procedure as the target model. For stable low-FPR estimation, the framework recommends 9 shadow models and at least 0 OUT samples to estimate 1 (He et al., 24 Jul 2025).
Threshold selection is interaction-specific. For a given 2, candidate thresholds are drawn from 3 values corresponding to OUT-shadow models. Each threshold 4 induces predicted labels 5, from which TPR and FPR are computed. The interaction-level score is then
6
over valid thresholds with 7. This procedure is designed to maximize discrimination for each interaction rather than imposing a global threshold across all records (He et al., 24 Jul 2025).
This design has two important implications. First, it exploits recommender-specific confidence signals rather than generic classifier outputs. Second, its quality as a scoring mechanism depends directly on the separation between IN and OUT distributions; the paper’s empirical results show that this separation is substantially stronger than in the MINER baseline.
4. User-level composition, scoring pipeline, and computational characteristics
RecPS extends interaction-level scores to the user level by invoking a DP-composition-style argument. For a user 8 with interaction set 9, the paper considers adjacent datasets that differ by all of 0’s interactions and, under independence approximations, derives
1
Because this sum would systematically inflate scores for heavy users, the practical user-level score reported by RecPS is the normalized average
2
The paper states that this preserves ranking of sensitive users while avoiding penalizing those with more interactions (He et al., 24 Jul 2025). This suggests that RecPS prioritizes comparative risk ordering over strict user-level composition tightness.
The scoring pipeline has offline and online phases. Offline preparation trains the target architecture, trains shadow models on Bernoulli half-samples, and fits the Gaussian OUT distribution from pooled 3 values. Online scoring evaluates each interaction 4 across all shadow models, computes 5, 6, and 7, searches thresholds maximizing 8, and finally averages the resulting interaction scores to obtain 9.
The reported complexity is dominated offline by shadow-model training, with
0
where 1 is the cost of training one model and 2 is inference cost. Online complexity per interaction is
3
from evaluating 4 and 5 across 6 models and scanning thresholds (He et al., 24 Jul 2025). The computational burden is therefore front-loaded into offline preparation and amortized across many subsequent scoring requests.
5. Datasets, models, and empirical performance
The empirical study evaluates RecPS on three benchmark datasets and two standard recommender architectures: Neural Collaborative Filtering (NCF) and LightGCN. Users with fewer than 20 interactions are removed during preprocessing, and training follows a chronological split per user, with the last interaction used for test and the second-to-last for validation. The remaining interactions form the training set. The negative sampling ratio is 7, optimization uses SGD with learning rate 8, batch size 9, up to 0 epochs, and early stopping after 1 epochs without improvement. Experiments were run on 2 NVIDIA RTX 2080 Ti GPUs (He et al., 24 Jul 2025).
| Dataset | Scale | Preprocessing |
|---|---|---|
| MovieLens-1M | 6,040 users, 3,706 items, 1,000,209 interactions | Retain users with 3 interactions |
| Amazon Digital Music | 840,372 users, 456,992 items, 1,584,082 interactions | Retain users with 4 interactions |
| Amazon Beauty | 1,210,271 users, 249,274 items, 2,023,070 interactions | Retain users with 5 interactions |
At the interaction level, RecLiRA substantially outperforms MINER. On MovieLens-1M, RecLiRA reaches AUC 6 with LightGCN and 7 with NCF, compared with MINER’s 8 and 9. At 0, RecLiRA attains 1 for LightGCN and 2 for NCF, while MINER attains 3 and 4. On Amazon Digital Music, RecLiRA reaches AUC 5 with LightGCN and 6 with NCF, compared with MINER’s 7 and 8; at 9, RecLiRA attains 0 and 1, while MINER attains 2 and 3. On Amazon Beauty, RecLiRA reaches AUC 4 with LightGCN and 5 with NCF, compared with MINER’s 6 and 7 (He et al., 24 Jul 2025).
At the user level, reported RecPS scores 8 lie roughly in 9 across datasets. LightGCN tends to produce slightly higher scores than NCF, and the distributions stratify users: the top 0–1 have distinctly higher scores, while the bottom 2–3 have lower scores (He et al., 24 Jul 2025). The paper associates this pattern with stronger recommendation utility, though this remains an empirical correlation rather than a formal theorem.
6. Privacy-aware unlearning, practical uses, and limitations
A major application of RecPS is targeted unlearning. Instead of removing all data from users designated as sensitive, the framework ranks users by 4, then ranks each selected user’s interactions by 5, and removes only the top 6 of those interactions until the user’s score falls below a threshold 7. The paper suggests choosing 8 as the minimum score among the top-9 sensitive users (He et al., 24 Jul 2025).
The reported utility trade-off is markedly different for user-level versus interaction-level removal. On Amazon Digital Music, removing all interactions of the top 00 sensitive users causes an approximately 01 drop in LightGCN HR@100 and an approximately 02 drop in NCF HR@100. By contrast, removing only the top 03 sensitive interactions for those users demotes 04 of the top-05 users below 06 while reducing LightGCN HR@100 by approximately 07 and NCF HR@100 by approximately 08 (He et al., 24 Jul 2025). Score-guided removal therefore outperforms random removal in both utility preservation and score reduction for targeted users.
The framework also measures the “privacy onion effect,” namely the fact that scores depend on the full dataset and can change after removals. After removing the top-09 sensitive users, remaining users’ score changes 10 lie mostly in 11, and about 12–13 of users see slight increases. Interaction-level removal weakens this effect: the fraction of users whose scores increase drops by approximately 14–15 (He et al., 24 Jul 2025).
Several limitations are explicit. RecLiRA currently targets recommender models with probability outputs, such as NCF and LightGCN, and does not directly apply to ranking-only models such as matrix factorization or ALS without probabilities. The method is expensive offline because stable low-FPR estimation benefits from at least 16 shadow models. The Gaussian approximation for the OUT distribution may be miscalibrated if fitting is poor, and score magnitudes depend on model class, training stability, and dataset characteristics. The threat model is controlled-access black-box auditing; white-box attacks or richer side information could yield stronger inferences than those measured by RecPS (He et al., 24 Jul 2025).
These caveats delimit the framework’s interpretation. RecPS is best understood not as a certified privacy mechanism, but as a theoretically motivated auditing and prioritization tool for privacy-aware recommender-system operations. Its core contribution is to make privacy risk legible at the granularity of individual interactions and users, thereby enabling opt-out guidance and targeted unlearning strategies that preserve substantially more recommendation utility than blanket deletion policies (He et al., 24 Jul 2025).