R-GRec: Relation-Guided Generative Recommendation via Collaborative Graph Supervision

Xiangfu Meng, Jiapeng Yang, Lei Shi, Xue Wang, Yuefeng Zhan, Chen Gu, Hao Sun, Weiwei Deng, Tao Yao, Feng Sun, Qi ZhangNeurIPS 2026

TL;DR

Modern generative recommenders predict what you’ll buy next the same way LLMs predict the next word—by generating a discrete sequence of tokens representing an item. However, training solely on individual user histories misses the rich web of item-to-item relationships that classical graph recommenders thrive on. R-GRec bridges this gap by translating collaborative item graphs into auxiliary token-generation tasks during training, boosting recommendation accuracy without adding any graph overhead at inference time.

What Problem Does This Paper Address?

For decades, recommender systems scored and ranked items from a candidate pool, leaning heavily on collaborative filtering—the idea that items frequently bought together form a structured neighborhood, or graph.

Recently, generative recommendation flipped the script. Instead of scoring candidates, models assign each item a Semantic ID (SID)—a compact sequence of discrete codes—and autoregressively generate the SID of the next item you'll want based on your history.

Here is the catch: standard generative training only shows the model linear sequences ([item A, item B] -> predict item C). It leaves the broader, multi-hop "map" of item relationships implicit and fragmented across sparse user logs. Previous attempts to inject graph knowledge required altering model architectures, changing tokenizers, or running clunky graph-guided searches during inference. The authors ask: Can we teach a generative recommender the global item map using only its native language of token generation?

Methods

R-GRec builds directly on MiniOneRec (an open-source SID-based pipeline) without touching its tokenizer, model architecture, or inference engine.

First, using only training interactions, the authors build a directed, weighted item–item graph. Items appearing close together in a user's timeline get stronger edge weights (via distance-decayed co-occurrence), and weak links are pruned to leave clean item neighborhoods.

Figure 2: Overview of graph construction and graph-derived structural task creation in R-GRec. Starting from user interaction sequences, we build a train-only item–item collaborative graph and derive three SID-native structural tasks: Neighbor Prediction, Topological Contrast, and Link Predic- tion.

Instead of feeding this graph into a Graph Neural Network, R-GRec translates the topology into three text/SID-generation prompts:

  1. Neighbor Prediction: Given an anchor item's SID, generate the SIDs of its top-$m$ closest neighbors (captures local neighborhoods).
  2. Topological Contrast: Given an anchor item and two candidates—one close neighbor, one structurally distant—generate the closer item's SID (teaches relative proximity).
  3. Link Prediction: Given a pair of connected items, generate the SIDs of their shared neighbors (captures higher-order, "friend-of-a-friend" triadic closure).
Figure 1: Training pipeline of R-GRec. Graph-derived structural tasks are injected in Stage-1 SFT.

In MiniOneRec's standard pipeline, Stage-1 Supervised Fine-Tuning (SFT) aligns item text with SIDs, followed by Stage-2 recommendation SFT and Reinforcement Learning (GRPO). R-GRec simply mixes its new graph tasks into Stage-1 SFT (at roughly a 20% mixing ratio $\lambda$). Once trained, the graph is thrown away; inference remains pure, standard sequence generation.

Datasets

Following the exact preprocessing, SID construction, and splits of the MiniOneRec benchmark, the authors evaluate on two public Amazon product datasets: Industrial and Office. No new benchmarks are introduced.

Key Insights and Ideas

  • Graphs as data, not architecture: You don't need message-passing backbones to learn graph topology. Because auxiliary targets are formatted as valid SID sequences, cross-entropy loss directly shapes the generative output space to respect collaborative neighborhoods.
  • It’s truly the topology doing the heavy lifting: A skeptic might wonder if the model just benefits from seeing more SID tokens or varied prompt templates. In clever control experiments (Table 2), training on a randomly rewired graph or shuffled target SIDs failed to match R-GRec, proving that real collaborative relationships drive the gains.
  • Structural signals are complementary: Single-task and leave-one-out ablations reveal that local co-occurrence (Neighbor), relative distance (Contrast), and triadic closure (Link) aren't redundant. Allocating the training budget across all three outperforms putting all chips on any single task.

Key Results

Evaluated on Hit Ratio (HR@K) and Normalized Discounted Cumulative Gain (NDCG@K), R-GRec achieves state-of-the-art performance across traditional sequential (e.g., SASRec), generative (e.g., TIGER, HSTU), and LLM-based (e.g., S-DPO, MiniOneRec) baselines.

Table 1: Overall performance comparison on Amazon Industrial and Office datasets. Best results are bolded and second-best results are underlined.

Compared directly to its parent baseline MiniOneRec:

  • On Industrial, R-GRec boosts HR@10 from 0.1586 to 0.1662 (+4.8%) and NDCG@10 from 0.1167 to 0.1192 (+2.1%).
  • On Office, it lifts HR@10 from 0.1634 to 0.1745 (+6.8%) and NDCG@10 from 0.1242 to 0.1316 (+6.0%).

Limitations and Future Work

The authors candidly note four main limitations:

  1. Scope: Experiments are confined to two Amazon benchmarks within the MiniOneRec setup, leaving broader generalizability open.
  2. Graph quality dependency: Because the graph relies on historical co-occurrence, performance may suffer in ultra-sparse, noisy, or rapidly shifting domains.
  3. Preprocessing overhead: While inference is free of graph math, building the graph and generating task prompts adds upfront training-time cost.
  4. SID collisions: Because evaluation relies on exact SID matching, multiple distinct items sharing the exact same Semantic ID can create ambiguity between predicting the right code and retrieving the exact item. (Specific future work directions are not discussed in the paper.)

Summary updated

Abstract

Generative recommendation has recently emerged as a promising paradigm for large-scale recommendation by reformulating next-item prediction as discrete sequence generation. However, current SID-based models rely mainly on history-to-next-item supervision, leaving item--item collaborative topology only indirectly captured through sparse user sequences. To address this gap, we propose *R-GRec*, a graph-derived structural supervision framework for SID-based generative recommendation. From user interactions, *R-GRec* builds an item--item graph and derives three complementary auxiliary objectives---Neighbor Prediction, Topological Contrast, and Link Prediction --- to make collaborative topology explicit during generative training. Extensive experiments on the two public Amazon datasets demonstrate that R-GRec achieves state-of-the-art performance over representative traditional, generative, and LLM-based recommenders. Further ablation and analytical studies verify the contribution of each graph-derived objective and show that collaborative topology acts as a complementary supervision signal to Semantic ID generation, improving generative recommendation without adding inference-time graph computation.
BibTeX
@inproceedings{meng2026r,
  author = {Xiangfu Meng and Jiapeng Yang and Lei Shi and Xue Wang and Yuefeng Zhan and Chen Gu and Hao Sun and Weiwei Deng and Tao Yao and Feng Sun and Qi Zhang},
  title = {{R-GRec: Relation-Guided Generative Recommendation via Collaborative Graph Supervision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=7mugzY6bNM},
}
Figure