Stable and Granular Policy Optimization for Generative Recommendation

Muyu Zou, Haibo Xing, Hao Deng, Zhezheng Hao, Jinxin Hu, Jiawei Chen, Yun Chen, Yu Zhang, Xiaoyi ZengNeurIPS 2026

TL;DR

Modern recommender systems are starting to generate item recommendations token-by-token like language models, making Reinforcement Learning (RL) a natural fit for optimizing them. However, directly importing LLM RL algorithms creates a painful catch-22: token-level methods cause violent training instability, while sequence-level methods stabilize training at the cost of treating every decision step identically. This paper introduces SGPO, an algorithm that gets the best of both worlds—keeping optimization rock-solid while giving granular, asymmetric feedback to individual tokens—yielding real-world lifts in clicks and ad revenue at massive industrial scale.

What Problem Does This Paper Address?

Instead of scoring millions of items individually, Generative Recommendation (GR) assigns every item in a catalog a unique "Semantic ID" (SID)—a short sequence of 4 to 8 discrete tokens representing a hierarchical path down a tree (e.g., [Sneakers] -> [Nike] -> [Black]). Recommending an item becomes an autoregressive sequence generation task.

Comparison of LLM reasoning trees vs. strict prefix-sensitive SID trees in Generative Recommendation.

Because business metrics like click-through rate (CTR) care about the whole item at the end of the path rather than individual tokens, RL is the ideal way to fine-tune these models. Recently, critic-free, group-based RL algorithms (which sample a group of outputs and compare their rewards against the group average) have dominated LLM training:

  • GRPO optimizes at the token level, calculating an importance ratio (how much the new policy differs from the old policy) per token.
  • GSPO optimizes at the sequence level, smoothing those ratios across the entire sequence.

When applied to GR, both fall short. First, GR exhibits wildly higher gradient variance than standard LLM tasks, causing GRPO’s token-level ratios to oscillate and destabilize training. Second, unlike open-ended text where many phrasings lead to the right answer ("NYC" vs. "New York City"), SID trees are unforgiving: one wrong prefix token guarantees the wrong item. GSPO fixes the instability, but by applying a uniform advantage to every token in a sequence, it ignores the distinct roles tokens play along the retrieval tree.

Methods

The authors propose Stable and Granular Policy Optimization (SGPO), blending GSPO's macro-stability with novel micro-granularity.

Figure 1: Overview of SGPO for SID-based generative recommendation. Left: each item has a unique SID path in the tree, so retrieval is prefix-sensitive and an incorrect prefix leads to an incorrect item. Right: SGPO combines a GSPO-style sequence-level ratio with log-probability–aware token-level advantage reshaping, with adaptive scaling factor λ for update control.
  1. Sequence-Level Stability (Standard): SGPO retains GSPO's length-normalized sequence ratio as an outer guardrail, preventing low-probability tokens from triggering explosive gradient updates.
  2. Sign- and Probability-Aware Reshaping (New): Instead of giving every token the same group-normalized sequence advantage ($\hat{A}_i$), SGPO redistributes it using each token's centered log-probability ($u_{i,t}$) and the sign of the trajectory's advantage:
  3. Positive trajectories ($\hat{A}_i > 0$): High-confidence tokens get an extra boost to lock in successful paths during beam search.
  4. Negative trajectories ($\hat{A}_i < 0$): High-confidence tokens get heavily penalized to break the model out of overconfident wrong turns.
  5. Variance-Constrained Adaptive Scaling (New): Adding token-level terms risks re-introducing variance. SGPO multiplies the token-level adjustments by a closed-form scaling factor ($\lambda_i$) that mathematically guarantees the reshaped advantage variance never exceeds $c$ times the original variance—annealing $c$ downward as training progresses to prevent late-stage collapse.

Datasets

The authors evaluate SGPO across three datasets without introducing new public benchmarks:

  • Amazon Beauty and Tmall: Two standard public e-commerce benchmarks used widely in academic recommendation research.
  • In-House Industrial Dataset: A massive production dataset from a major e-commerce platform, encompassing over 5 billion interactions across 25 million users and 48 million items.

Key Insights and Ideas

  • GR is uniquely volatile under RL: On an industrial GR setup, GRPO's gradient norm had a mean of 238.58 and a standard deviation of 1641.65—compared to 0.087 and 0.0082 on a standard math LLM task! Moving to sequence-level ratios isn't just nice to have in GR; it's a survival mechanism.
  • The Softmax "Gradient Decay" Trap: Why boost tokens the model is already confident about on winning paths? Under standard softmax policies, as a token's probability approaches 1, its gradient norm shrinks toward zero. Without explicit upweighting, accurate prefixes receive weak positive reinforcement and get easily knocked out of top-$K$ beam search by noisy updates from other trajectories.
  • Overconfident Mistakes: Statistical analysis of the industrial dataset revealed that on losing trajectories, the model is frequently overconfident in wrong prefixes, eating up precious beam-search budget. Asymmetric penalties directly target these "confidently wrong" branches.
  • Entropy isn't the right compass for retrieval: Standard RL exploration encourages high entropy (distributional diversity). In GR, you aren't writing creative poetry; you are hunting a specific target node. Using log-probabilities aligns updates directly with how beam search ranks candidates.

Key Results

Tested on two popular GR architectures—TIGER (4-token SIDs) and REG4Rec (8-token SIDs)—SGPO outperformed all six RL baselines (GRPO, GSPO, SAPO, GTPO, GRPO-S, and AEPO) across every dataset and metric:

  • Offline Gains: On the industrial dataset with REG4Rec, SGPO pushed HitRate@10 from 0.2345 (GRPO) and 0.2458 (GSPO) up to 0.2540, with similar consistent wins in NDCG@5/10. Improvements were sharpest on REG4Rec's deeper 8-token trees, where compounding prefix errors are deadlier.
  • Training Smoothness: SGPO maintained smooth entropy curves and kept gradient norms orders of magnitude lower than token-ratio methods.
  • Production Impact: Deployed in a live online A/B test serving 10% of user traffic on a major e-commerce platform (replacing GRPO in REG4Rec), SGPO delivered a 2.36% lift in CTR and a 1.95% increase in advertising revenue.

Limitations and Future Work

Not discussed in the paper. (Note: Within the provided main text, the authors summarize their findings and practical deployment in the conclusion without explicitly detailing limitations or future research directions.)

Summary updated

Abstract

Generative recommendation (GR), which directly generates sequential semantic IDs for items, has recently attracted increasing attention in recommender systems. Given that core recommendation metrics are inherently evaluated at the sequence level, reinforcement learning (RL) serves as a natural optimization framework. However, adapting recent group-based RL algorithms to GR presents notable challenges: token-level methods such as GRPO exhibit much more severe training instability, while sequence-level methods such as GSPO enforce uniform token weighting and thus ignore the heterogeneous roles of tokens. To address this dilemma, we propose Stable and Granular Policy Optimization (SGPO), a group-based RL algorithm tailored for GR. SGPO maintains a sequence-level ratio to promote optimization stability while injecting fine-grained token-wise advantages. By incorporating token log-probabilities and reward signs, SGPO explicitly upweights high-confidence tokens in positive trajectories to reinforce successful retrieval, while strictly penalizing them in negative trajectories to encourage exploration, and uses an adaptive scaling factor to bound the variance of reshaped advantages. Experiments on two public benchmarks and a billion-scale industrial dataset show that SGPO consistently outperforms six strong RL baselines and, when deployed on a commercial platform, achieves a 2.36% lift in click-through rate (CTR) and a 1.95% increase in advertising revenue in online A/B testing.
BibTeX
@inproceedings{zou2026stable,
  author = {Muyu Zou and Haibo Xing and Hao Deng and Zhezheng Hao and Jinxin Hu and Jiawei Chen and Yun Chen and Yu Zhang and Xiaoyi Zeng},
  title = {{Stable and Granular Policy Optimization for Generative Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=KqTAFaifPA},
}
Figure