Manuscript Offprint

arXiv:2610.27232

Neighborhood-Aware Unlearning for Generative Recommendation

Pierre Lubitzsch, Yubao Tang, Maarten de Rijke, Sebastian Schelter

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generative recommendation predicts items by autoregressively generating semantic identifiers (SIDs), whose tokens are shared across semantically related items. With this paradigm gaining adoption, the question of how to support unlearning in it has become pressing. If training interactions must later be removed, such as injected spam or interactions with items a user no longer wants, this sharing lets an unlearning update unintentionally affect the predictions for the interactions' neighbors. We show that this effect is locally structured and hidden by global metrics: unlearning can leave recommendation utility on the whole test set nearly unchanged while substantially degrading it on neighborhoods of the forgotten interactions' SID. We propose Neighborhood-Aware Unlearning (NAU), which augments interaction-level unlearning with explicit control over the probability mass assigned to the forgotten items' neighborhoods. Across three datasets and four SID tokenizers, NAU restores spam-induced exposure toward the retrained reference while retaining more than 95% of retrained utility, and recovers the neighborhood utility that forget-and-repair unlearning loses at no global cost. We identify local probability redistribution as an important failure mode of unlearning in SID-based generative recommenders and show that explicitly controlling this redistribution can mitigate its effects.

1 INTRODUCTION

Generative recommendation (GenRec) predicts the next item from a user's interaction history by autoregressively generating its semantic identifier (SID) (Rajput et al., 2023). SIDs represent items as sequences of discrete tokens derived from item representations, such that semantically related items can share parts of their IDs. As the paradigm is rapidly being adopted across diverse real-world recommendation settings (Collins et al., 2026; D'Amico et al., 2026; Li et al., 2026; Tang et al., 2024b), it becomes urgent to consider how unlearning can be achieved within it (Chen et al., 2022; Schelter et al., 2023). Malicious interactions such as spam, fake reviews, or shilling attacks can manipulate recommendations to promote target items (Li et al., 2022; Wu et al., 2021). Users may request the removal of interactions involving unwanted items from their recommendation history and future predictions (Schelter et al., 2023). Retraining without the deleted interactions is the natural reference, but it is often too expensive for frequent deletion requests (Chen et al., 2024; Lubitzsch et al., 2026), which motivates efficient approximate unlearning.

Challenges of unlearning for GenRec. In a conventional dense recommender, each item has its own output embedding, so an update that lowers one item's score directly affects that item's embedding and shared model parameters, but not the output embeddings of other items (Kang & McAuley, 2018; Li et al., 2023). In GenRec, candidate items are ranked by the probability of generating their SIDs. The item SID probability is the product of the conditional probabilities of the SID tokens. Items that share an SID prefix therefore share the corresponding prefix-level factors, so updates to these factors can affect multiple items under the same history, with the directly coupled items identifiable from the SID structure. Straightforward adaptations of existing deletion and machine-unlearning strategies do not fully address this shared-token coupling in GenRec: (i) inference-time filtering can remove a target from the recommendation list, while the model may still prefer to generate its SID; (ii) directly unlearning the forgotten interactions can also affect other items that share

Figure

Figure 1: Utility ↑ (NDCG@10 as a percentage of the retrained model’s) versus spam exposure after spam removal, on the whole test set (left) and on the test cases whose next item shares the forgotten target’s first SID token (right). Only NAU removes spam exposure while preserving model utility on both the whole test set and the neighborhood of the forgotten interactions.

SID tokens with the target; and (iii) retain-set repair (Jia et al., 2023) can recover overall recommendation quality but does not explicitly control such spillover. The central challenge is therefore to remove the influence of a target item without unnecessarily propagating the unlearning effect to other items that share SID tokens with the target.

Diagnosing SID-induced unlearning spillover. We call the items that share SID tokens with a target its SID neighborhood. Our key observation is that unlearning effects concentrate there: global utility can stay close to the retrained reference while utility on the neighborhood changes considerably (Figure 1), and methods that ignore the neighborhood cannot both remove influence of interactions to forget and preserve local and global utility. This motivates using neighborhoods not only to diagnose unlearning effects, but also to control them.

Our approach. We propose Neighborhood-Aware Unlearning (NAU) for GenRec to remove the influence of forgotten interactions while explicitly controlling how unlearning affects items that share SID tokens with the corresponding target items. Because GenRec is trained through token-level SID generation whereas deletion requests concern interactions and items, NAU defines an SID-aware item-level objective over the generated identifier. We further design neighborhood mass control to regulate the total generation probability assigned to the target item's neighborhood. This allows NAU to preserve legitimate neighboring items in spam removal, or suppress neighborhood exposure when nearby items are also relevant to the removal request. NAU keeps the model architecture and SIDs unchanged and requires no second-order information. On three Amazon recommendation datasets (Beauty, Sports, and Toys) and four SID or tokenization settings, NAU achieves removal behavior close to retraining while retaining over 95% of its recommendation utility, at three orders of magnitude lower runtime than retraining. For unwanted item removal, the same neighborhood-control principle further reduces unwanted exposure while preserving recommendation utility.

Contributions. In summary, our main contributions are:

• We formulate unlearning for GenRec under two practical deletion scenarios: spam removal and unwanted item removal (Section 2).

• We identify and analyze SID-induced unlearning spillover, showing that unlearning effects are concentrated around items neighboring the target and motivating explicit neighborhood-level control (Section 5).

• We propose neighborhood-aware unlearning (NAU), which combines an SID-aware unlearning objective with neighborhood mass control (Section 3).

• We provide a systematic evaluation of representative general-purpose and recommendation-specific unlearning methods on three Amazon recommendation datasets and four SID or tokenization settings, covering both spam removal and unwanted item removal. Our results reveal distinct forgetting–utility failure modes of existing methods and show that NAU achieves effective forgetting while preserving over 95% of retrained utility (Sections 4 and 5).

We release our implementation, experimental logs, and results at https://github.com/pierre-lubitzsch/neighborhood-aware-unlearning.

References (38)