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.
Instead of feeding this graph into a Graph Neural Network, R-GRec translates the topology into three text/SID-generation prompts:
- Neighbor Prediction: Given an anchor item's SID, generate the SIDs of its top-$m$ closest neighbors (captures local neighborhoods).
- Topological Contrast: Given an anchor item and two candidates—one close neighbor, one structurally distant—generate the closer item's SID (teaches relative proximity).
- Link Prediction: Given a pair of connected items, generate the SIDs of their shared neighbors (captures higher-order, "friend-of-a-friend" triadic closure).
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.
Compared directly to its parent baseline MiniOneRec:
- On Industrial, R-GRec boosts HR@10 from
0.1586to0.1662(+4.8%) and NDCG@10 from0.1167to0.1192(+2.1%). - On Office, it lifts HR@10 from
0.1634to0.1745(+6.8%) and NDCG@10 from0.1242to0.1316(+6.0%).
Limitations and Future Work
The authors candidly note four main limitations:
- Scope: Experiments are confined to two Amazon benchmarks within the MiniOneRec setup, leaving broader generalizability open.
- Graph quality dependency: Because the graph relies on historical co-occurrence, performance may suffer in ultra-sparse, noisy, or rapidly shifting domains.
- Preprocessing overhead: While inference is free of graph math, building the graph and generating task prompts adds upfront training-time cost.
- 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