This repository contains the PyTorch implementation for the paper "Uncertainty-aware Generative Recommendation".
Please follow the steps below to prepare the datasets and pre-trained components.
Download the raw datasets (e.g., Amazon18) from the Amazon Datasets repository.
Filter and split the raw data into training, validation, and test sets:
bash ./data/_1/amazon18_data_process.shConvert textual data into vector representations:
bash ./data/_2/amazon_text2emb.shTrain the RQ-VAE model:
bash ./data/_3/rqvae.shGenerate item SIDs:
python ./data/_3/generate_indices.pybash ./train/SFT/run_train_SFT.shAlign the model using the uncertainty-aware reinforcement learning framework:
bash ./train/RL/run_train_RL.shEvaluate the model performance on the test set:
bash ./eval/run_eval.sh