TL;DR
Generative recommendation systems often suffer from a mismatch between generation likelihood (what a user is predicted to do based on history) and actual business value (clicks, watch time, or purchases). Reward Guided Decoding (RGD) solves this by introducing a controllable, inference-time framework that injects real-time business reward signals directly into the token-decoding process. This allows platforms to dynamically optimize for business goals without the massive computational cost of retraining the underlying generative model.
What Problem Does This Paper Address?
Modern sequential recommendation systems are increasingly moving toward a generative paradigm. Instead of traditional retrieval and ranking pipelines, these models tokenize items into discrete semantic IDs (SIDs) and use an autoregressive language model (like a T5 transformer) to predict the next item token-by-token.
However, these models are trained using Maximum Likelihood Estimation (MLE), meaning they excel at predicting what a user is most likely to do based on historical inertia or popularity bias. Unfortunately, the most likely item isn't always the most valuable one for a business platform (which might care about watch time, likes, or conversions).
Standard beam search exacerbates this problem by aggressively pruning low-probability branches early in the decoding process, meaning high-value but lower-probability items are lost forever. Existing fixes fall short:
- Post-hoc reranking intervenes too late; the valuable candidates have already been pruned during beam search.
- Training-time alignment (like DPO or GRPO) bakes business preferences directly into the model weights, making it incredibly slow and expensive to adjust when business priorities change.
Methods
The authors propose RGD (Reward Guided Decoding), a framework that treats the base generative model as a frozen reference policy and introduces an external reward model as a test-time controller.
1. Mathematically Principled Fusion
Instead of heuristically adding reward scores to generation logits, RGD formulates decoding as a KL-regularized reward maximization problem. This yields an elegant, closed-form Boltzmann distribution solution:
$$Q^*(j) \propto P(j) \exp(R(j)/\beta)$$
Here, $P(j)$ is the base generator's probability, $R(j)$ is the reward signal, and $\beta$ is a temperature parameter that acts as a controllable knob to balance user preference and business utility.
2. Chain-Structured Reward Head
To evaluate rewards at each intermediate decoding step, RGD attaches a lightweight, chain-structured scoring head to the frozen generator's decoder. It extracts hidden states and uses a causal bottleneck MLP to ensure that the reward at layer $l$ accounts for the entire committed token prefix.
3. Flexible Inference Strategies
Evaluating rewards for every single candidate token during beam search is computationally expensive. The authors design three inference modes to balance this trade-off:
- Pre-merge: Evaluates rewards on each beam's top candidates before merging them into a global pool. (Most expressive, highest latency).
- Post-merge: Merges candidates using only generation probability first, then applies rewards to the remaining pool.
- Hybrid: Uses pre-merge fusion for the critical first layer and post-merge for subsequent layers, optimizing both search space exploration and serving latency.
Datasets
The framework was validated using two distinct environments:
- Offline Public Benchmarks: Three categories from the Amazon Reviews dataset: Sports and Outdoors, Beauty, and Toys and Games.
- Industrial Dataset: Real-world continuous online learning logs from the Kuaishou live-streaming platform, encompassing approximately 400 million users, 3 million creators, and billions of interaction records (clicks, watch times, follows, gifts).
Key Insights and Ideas
- Mitigating the Mismatch: Visualization of the search space shows that standard generative models (like T5/TIGER) concentrate heavily on high-probability regions. RGD successfully reshapes the search trajectory, shifting density toward lower-probability but significantly higher-reward candidates.
- Test-Time Plug-and-Play: Because the reward model is decoupled from the base generator, engineers can dynamically adjust multi-objective weights (e.g., balancing click-through rate with watch time) or alter the temperature parameter $\beta$ on the fly during live traffic without retraining the core model.
- Token-Level Intervention is Crucial: Moving the reward signal up into the intermediate steps of beam search prevents the early pruning of high-value items, expanding the effective retrieval space.
Key Results
- Public Benchmarks: RGD consistently outperformed state-of-the-art generative baselines (like TIGER and PROMISE), achieving improvements of up to 11.49% in Recall@10 and 8.30% in NDCG@10.
- Industrial Scenarios: Compared to training-time reinforcement learning methods (DPO and GRPO), RGD achieved a much better trade-off between recommendation accuracy (HitRate) and business rewards without suffering from the distributional drift that often degrades fine-tuned models.
- Online Production Deployment: RGD was successfully deployed on Kuaishou. In a two-week live A/B test against the production baseline, it delivered substantial business gains:
- Page-level Click-Through Rate (CTR): +0.392%
- Live-streaming watch time: +0.689%
- Live-streaming watch counts: +0.349%
Limitations and Future Work
While the hybrid decoding strategy successfully mitigates latency, evaluating external reward models token-by-token still introduces a computational overhead compared to pure greedy decoding. The authors note that the search space in industrial settings is massive, meaning future work will likely focus on even tighter integration between tokenizers and reward functions to further reduce inference latency. Additionally, exploring how RGD handles highly sparse or delayed reward signals (like long-term user retention) remains an open question.
Summary updated