TL;DR
Generative recommendation systems often suffer from "uncertainty blindness," treating all prediction errors identically regardless of the model's internal confidence or sample difficulty. This paper introduces Uncertainty-aware Generative Recommendation (UGR), a framework that leverages uncertainty to adaptively weight rewards and optimization gradients while empowering Large Language Models (LLMs) to output explicit confidence scores. UGR stabilizes training, prevents candidate diversity collapse, and achieves state-of-the-art recommendation accuracy alongside reliable risk-aware deployment capabilities.
What Problem Does This Paper Address?
Generative Recommendation (GenRec) represents a major paradigm shift in recommender systems. Instead of using traditional multi-stage "retrieval-then-ranking" pipelines, GenRec reformulates recommendation as an end-to-end sequence generation task, where an LLM autoregressively predicts structured item identifiers (like Semantic IDs).
To align these models with user preferences, researchers typically use reinforcement learning or preference optimization techniques. However, existing methods suffer from a systemic limitation the authors call uncertainty blindness: they evaluate outputs based purely on binary correctness (i.e., did the model generate the exact correct item ID or not?).
This binary view introduces three critical flaws:
- Uniform Penalties: The model cannot distinguish between a "confident hallucination" (predicting the wrong item with high probability) and a "tentative exploration" (a low-probability guess from a flat distribution).
- Sample Imbalance: It treats trivial, easy-to-learn user contexts the same as highly ambiguous, difficult ones, leading to premature convergence and overfitting on easy samples.
- Risk Blindness: The model cannot explicitly communicate its confidence level, making it difficult to use safely in downstream risk-aware applications.
Alarmingly, the authors show that standard preference optimization without uncertainty awareness can actually perform worse than basic Supervised Fine-Tuning (SFT) due to noisy training dynamics.
Methods
The proposed UGR framework addresses uncertainty blindness by introducing three synergistic mechanisms into the Group Relative Policy Optimization (GRPO) framework:
- Uncertainty-weighted Rollout Reward: Instead of a flat penalty for incorrect items, UGR analyzes the cumulative logit intensity of generated sequences. It applies severe penalties to confident hallucinations while remaining lenient on tentative, low-confidence errors.
- Difficulty-aware Optimization Dynamics: UGR uses the ground-truth item's ranking position within beam search candidates as a lightweight proxy for sample difficulty. It dynamically down-weights the gradients of easy samples, forcing the model to sustain its learning focus on harder, structurally rich instances.
- Explicit Confidence Alignment: The authors expand the LLM's vocabulary with dedicated tokens (
[C_HIGH]and[C_LOW]). Using a hierarchical error taxonomy, they train the model via a multi-granular pairwise ranking loss to output an explicit, differentiable confidence score alongside its recommendations. This taxonomy distinguishes between partial correctness (sharing a semantic prefix with the ground truth) and complete wrongness.
Datasets
The authors evaluated UGR on three real-world sequential recommendation benchmarks:
- Amazon Office Products (Office)
- Amazon Industrial and Scientific (Industrial)
- Yelp
All datasets were preprocessed using standard 5-core filtering, truncated to a maximum interaction history length of 10, and split chronologically into training, validation, and test sets (8:1:1 ratio).
Key Insights and Ideas
- The Overconfidence Trap & Candidate Collapse: Uniformly weighting all training samples forces the model to push the probability of trivial tokens to extremes. This causes "candidate collapse," where the beam search space flattens, and the diversity of valid items retrieved per rollout steadily erodes. Down-weighting easy samples preserves a healthy search space.
- Relative vs. Absolute Calibration: In logic-intensive tasks, models aim for absolute calibration (matching empirical accuracy numbers). In recommendation, extreme data sparsity makes absolute calibration less meaningful. UGR focuses instead on ranking-based relative confidence, which naturally aligns with recommendation objectives.
- Confidence as a Regularizer: Explicitly training the model to self-assess its confidence acts as a semantic regularizer, fundamentally improving the model's structural understanding of hierarchical item IDs and boosting overall ranking accuracy.
Key Results
Recommendation Performance
UGR consistently achieved state-of-the-art results across all three datasets. On the Office dataset, UGR achieved a Hit Ratio @ 10 (HR@10) of 0.1598, markedly outperforming the strong generative baseline MiniOneRec (0.1479).
Training Stability
While standard uniform weighting ($\alpha=1.0$) suffered from early convergence followed by severe performance regression, UGR ($\alpha=0$) stabilized the learning trajectory, maintaining a robust, monotonic upward trend in both ranking accuracy and candidate coverage.
Downstream Risk Control
The externalized confidence scores proved highly reliable for practical risk management:
- User-level Rejection: Filtering out low-confidence requests steadily improved the system's precision on accepted queries, allowing platforms to selectively reject risky recommendations.
- Item-level Truncation: Dynamically shortening recommendation lists by removing low-confidence tail items consistently enhanced the precision of the final list.
Limitations and Future Work
While highly effective, the authors note a few areas for future exploration:
- Framework Generalization: UGR was built and validated on top of the GRPO framework. Future work will explore adapting these uncertainty-aware principles to other popular alignment strategies like Direct Preference Optimization (DPO).
- Granular Uncertainty: The current framework uses a coarse hierarchical taxonomy; finer-grained uncertainty decomposition could offer even richer interpretability.
- Online Dynamics: Extending UGR to online interactive settings where user interests shift rapidly will be a vital test of its real-time adaptability.
Summary updated