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.
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.
- 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.
- 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:
- Positive trajectories ($\hat{A}_i > 0$): High-confidence tokens get an extra boost to lock in successful paths during beam search.
- Negative trajectories ($\hat{A}_i < 0$): High-confidence tokens get heavily penalized to break the model out of overconfident wrong turns.
- 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