Uncertainty-Aware Semantic Decoding for LLM-Based Sequential Recommendation
Authors:
Preprint
Abstract
Large language models have been widely applied to sequential recommendation tasks, yet during inference, they continue to rely on decoding strategies developed for natural language processing. This creates a mismatch between text-generation objectives and recommendation next item selection objectives. This paper addresses this limitation by proposing an Uncertainty-aware Semantic Decoding (USD) framework that combines logit-based clustering with adaptive scoring to improve next-item predictions. Our approach clusters items with similar logit vectors into semantic equivalence groups, then redistributes probability mass within these clusters and computes entropy across them to control item scoring and sampling temperature during recommendation inference. Experiments on Amazon Product datasets (six domains) gains of 18.5\% in HR@3, 11.9\% in NDCG@3, and 10.8\% in MRR@3 compared to state-of-the-art baselines. Hyperparameter analysis confirms the optimal parameters among various settings, and experiments on H\&M, and Netflix datasets indicate that the framework can adapt to differing recommendation domains. The experimental results confirm that integrating semantic clustering and uncertainty assessment yields more reliable and accurate recommendations.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- A knowledge-informed deep learning paradigm for generaliz-able and stability-optimized car-following modelsCommunications in Transportation Research, 2025
- Time Series Forecasting with LLMs: Understanding and Enhancing Model CapabilitiesACM SIGKDD Explorations Newsletter, 2025
- LLaRA: Large Language-Recommendation Assistant2024
- Quantifying Uncertainty in Answers from any Language Model and Enhancing their Trustworthiness2024
- Uncovering ChatGPT’s Capabilities in Recommender Systems2023
- Text Is All You Need: Learning Language Representations for Sequential Recommendation2023
- Rethinking Missing Data: Aleatoric Uncertainty-Aware RecommendationIEEE Transactions on Big Data, 2023
- Proceedings of the Big Picture Workshop2023
- VIP5: Towards Multimodal Foundation Models for Recommendation2023
- Matrix Factorization Techniques for Recommender SystemsComputer, 2009