Post-Training Attribute Unlearning in Recommender Systems

Chaochao Chen, Yizhao Zhang, Yuyuan Li, Dan Meng, Jun Wang, Xiaoli Zheng, Jianwei Yin

Introduction

Recommender systems typically represent users as high-dimensional vectors, or embeddings. While these models may not be explicitly trained on sensitive attributes such as race, gender, or age, these features are often implicitly captured within the embeddings. This creates a vulnerability to "attribute inference attacks," where malicious actors extract private data from the model's latent space.

This paper introduces Post-Training Attribute Unlearning (PoT-AU), a novel framework designed to scrub sensitive information from existing embeddings without requiring access to the original training data or necessitating a full retraining of the model. Unlike traditional "Machine Unlearning," which focuses on removing specific data points (Input Unlearning), PoT-AU targets Attribute Unlearning (AU): making specific categories of information indistinguishable within the model's latent representations.

Comparison between traditional input-wise unlearning and the proposed attribute-wise unlearning on latent features.

Methodology

The authors propose a two-component loss function to update user embeddings in a post-training environment. This approach is particularly practical for deployed systems where original interaction data may be siloed or deleted due to privacy regulations.

1. Distinguishability Loss ($\ell_u$)

To protect privacy, the model must ensure that the distributions of embeddings for different attribute groups (e.g., different age brackets) are statistically identical. To overcome the computational bottleneck of comparing every pair of attribute groups ($O(T^2)$ complexity), the authors introduce an anchor distribution (a barycenter). By minimizing the Maximum Mean Discrepancy (MMD) between each group's distribution and this central anchor, the complexity is reduced to $O(T)$, making multi-class unlearning feasible for large-scale systems.

2. Function-Space Regularization ($\ell_r$)

A critical challenge in unlearning is maintaining recommendation quality. Traditional methods often use $\ell_2$ regularization in the parameter space to keep new embeddings close to the old ones. However, the authors demonstrate that parameter-space proximity does not guarantee utility preservation. Instead, they propose Function-Space Regularization, which optimizes to keep the rank order of the top-$k$ recommended items consistent with the original model. This is achieved using a pairwise hinge loss with adaptive weights based on item similarity.

The PoT-AU framework: transitioning from an original CF model to an unlearned model while balancing attribute indistinguishability and recommendation utility.

Experimental Evaluation

The researchers evaluated PoT-AU on four real-world datasets: MovieLens 100K & 1M, LFM-2B (music), and KuaiSAR-small (short-video search). These datasets provided a variety of sensitive attributes, including gender, age, and country.

Key Results

  • Privacy Protection: The method successfully reduced the F1-score of attribute inference attacks by an average of 27.55%, effectively bringing attacker accuracy down to near-random levels.
  • Utility Preservation: The proposed D2D-FR (Function-space Regularization) significantly outperformed previous state-of-the-art methods. On the ML-1M dataset, recommendation performance (NDCG) remained within ~1.9% of the original model, whereas parameter-based methods saw much steeper declines.
  • Efficiency: By utilizing the anchor distribution method, the system achieved a runtime reduction of over 50% on datasets with high-cardinality attributes (like "Country" in LFM-2B).

Conclusion

PoT-AU represents a significant step forward in privacy-preserving recommendation. By shifting the focus from parameter-space constraints to function-space alignment, the framework achieves a superior balance between "forgetting" sensitive attributes and maintaining user experience. Future work will explore "user-wise" unlearning to support individual "Right to be Forgotten" requests and investigate the framework's robustness in dynamic, continuously updated environments.

Summary updated

Abstract

With the growing privacy concerns in recommender systems, recommendation unlearning is getting increasing attention. Existing studies predominantly use training data, i.e., model inputs, as unlearning target. However, attackers can extract private information from the model even if it has not been explicitly encountered during training. We name this unseen information as \textit{attribute} and treat it as unlearning target. To protect the sensitive attribute of users, Attribute Unlearning (AU) aims to make target attributes indistinguishable. In this paper, we focus on a strict but practical setting of AU, namely Post-Training Attribute Unlearning (PoT-AU), where unlearning can only be performed after the training of the recommendation model is completed. To address the PoT-AU problem in recommender systems, we propose a two-component loss function. The first component is distinguishability loss, where we design a distribution-based measurement to make attribute labels indistinguishable from attackers. We further extend this measurement to handle multi-class attribute cases with efficient computational overhead. The second component is regularization loss, where we explore a function-space measurement that effectively maintains recommendation performance compared to parameter-space regularization. We use stochastic gradient descent algorithm to optimize our proposed loss. Extensive experiments on four real-world datasets demonstrate the effectiveness of our proposed methods.
BibTeX
@article{chen2025post,
  author = {Chaochao Chen and Yizhao Zhang and Yuyuan Li and Dan Meng and Jun Wang and Xiaoli Zheng and Jianwei Yin},
  title = {{Post-Training Attribute Unlearning in Recommender Systems}},
  journal = {ACM Trans. Information Systems},
  year = {2025},
  doi = {10.1145/3701987},
}
Figure