[Paper Review] OpenP5: An Open-Source Platform for Developing, Training, and Evaluating LLM-based Recommender Systems
OpenP5 is an open-source library that benchmarks foundation models for recommendation using the Pre-train, Personalized Prompt, and Predict (P5) paradigm. It supports two downstream tasks—sequential and straightforward recommendation—across ten popular datasets with three item indexing methods (random, sequential, collaborative), and provides pre-trained checkpoints including a unified Super P5 model, achieving state-of-the-art performance on most benchmarks with strong zero-shot generalization.
In recent years, the integration of Large Language Models (LLMs) into recommender systems has garnered interest among both practitioners and researchers. Despite this interest, the field is still emerging, and the lack of open-source R&D platforms may impede the exploration of LLM-based recommendations. This paper introduces OpenP5, an open-source platform designed as a resource to facilitate the development, training, and evaluation of LLM-based generative recommender systems for research purposes. The platform is implemented using encoder-decoder LLMs (e.g., T5) and decoder-only LLMs (e.g., Llama-2) across 10 widely recognized public datasets, catering to two fundamental recommendation tasks: sequential and straightforward recommendations. Recognizing the crucial role of item IDs in LLM-based recommendations, we have also incorporated three item indexing methods within the OpenP5 platform: random indexing, sequential indexing and collaborative indexing. Built on the Transformers library, the platform facilitates easy customization of LLM-based recommendations for users. OpenP5 boasts a range of features including extensible data processing, task-centric optimization, comprehensive datasets and checkpoints, efficient acceleration, and standardized evaluations, making it a valuable tool for the implementation and evaluation of LLM-based recommender systems. The open-source code and pre-trained checkpoints for the OpenP5 library are publicly available at https://github.com/agiresearch/OpenP5.
Motivation & Objective
- To address the lack of standardized benchmarks for foundation models in recommendation systems.
- To provide a unified, reproducible platform for training, evaluating, and comparing LLM-based recommender systems.
- To support both sequential and straightforward recommendation tasks using personalized prompts.
- To enable cross-domain recommendation via a single Super P5 model pre-trained on all ten datasets.
- To explore the impact of different item indexing methods on generative recommendation performance.
Proposed method
- The framework is built on the T5-small model, fine-tuned using the P5 paradigm: pre-train on user-item interactions, then apply personalized prompts for fine-tuning.
- Personalized prompts are constructed using user ID, item ID, and dataset name to enable zero-shot generalization and avoid cross-dataset hallucination.
- Three item indexing methods are implemented: random (random number tokens), sequential (chronological order), and collaborative (based on user-item interaction patterns).
- A balanced training strategy alternates batches across datasets and tasks to mitigate data imbalance and catastrophic forgetting, especially in Super P5 training.
- The library provides pre-trained checkpoints for individual datasets (P5) and a unified Super P5 model trained on all ten datasets.
- Evaluation uses standard metrics HR@k and NDCG@k for both sequential and straightforward recommendation tasks.
Experimental results
Research questions
- RQ1How does the choice of item indexing method (random, sequential, collaborative) affect the performance of LLM-based recommender systems?
- RQ2Can a single unified model (Super P5) achieve strong performance across diverse recommendation domains without domain-specific fine-tuning?
- RQ3How well does OpenP5 generalize to unseen prompt templates in zero-shot settings, especially for sequential recommendation?
- RQ4What is the impact of data imbalance and catastrophic forgetting when training a multi-dataset Super P5 model?
- RQ5How does OpenP5 compare to existing sequential and collaborative filtering baselines in terms of recommendation accuracy?
Key findings
- OpenP5 achieves the best performance on most datasets and metrics, with the collaborative indexing method outperforming both random and sequential indexing.
- The Super P5 model outperforms several baselines on the ML-1M dataset, demonstrating strong cross-domain generalization capability.
- For sequential recommendation, OpenP5 shows strong zero-shot generalization, with some datasets (e.g., ML-1M, LastFM) achieving better performance on unseen prompts than seen ones.
- For straightforward recommendation, performance drops on unseen prompts, likely due to token dominance from prompt templates over user ID embeddings.
- Performance on smaller datasets like Beauty and LastFM is suboptimal in Super P5, likely due to overfitting and data imbalance during multi-dataset training.
- The library enables efficient and reproducible evaluation of foundation models in recommendation, with comprehensive pre-trained checkpoints and standardized benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.