[Paper Review] Recommendation as Language Processing (RLP): A Unified Pretrain, Personalized Prompt & Predict Paradigm (P5)
This paper proposes P5, a unified pretraining, personalized prompt, and prediction paradigm that frames recommendation as a text-to-text task using natural language. By converting user-item interactions, reviews, and metadata into prompt-tuned language sequences, P5 enables zero-shot generalization across diverse recommendation tasks—achieving state-of-the-art or competitive performance on five task families with minimal fine-tuning.
For a long time, different recommendation tasks typically require designing task-specific architectures and training objectives. As a result, it is hard to transfer the learned knowledge and representations from one task to another, thus restricting the generalization ability of existing recommendation approaches, e.g., a sequential recommendation model can hardly be applied or transferred to a review generation method. To deal with such issues, considering that language can describe almost anything and language grounding is a powerful medium to represent various problems or tasks, we present a flexible and unified text-to-text paradigm called "Pretrain, Personalized Prompt, and Predict Paradigm" (P5) for recommendation, which unifies various recommendation tasks in a shared framework. In P5, all data such as user-item interactions, user descriptions, item metadata, and user reviews are converted to a common format -- natural language sequences. The rich information from natural language assists P5 to capture deeper semantics for personalization and recommendation. Specifically, P5 learns different tasks with the same language modeling objective during pretraining. Thus, it serves as the foundation model for various downstream recommendation tasks, allows easy integration with other modalities, and enables instruction-based recommendation based on prompts. P5 advances recommender systems from shallow model to deep model to big model, and will revolutionize the technical form of recommender systems towards universal recommendation engine. With adaptive personalized prompt for different users, P5 is able to make predictions in a zero-shot or few-shot manner and largely reduces the necessity for extensive fine-tuning. On several recommendation benchmarks, we conduct experiments to show the effectiveness of P5. We release the source code at https://github.com/jeykigung/P5.
Motivation & Objective
- To unify diverse recommendation tasks—such as rating prediction, sequential recommendation, and review generation—into a single, shared framework.
- To overcome the limitations of task-specific architectures by enabling knowledge transfer across recommendation tasks through a common language modeling objective.
- To enable zero-shot and few-shot recommendation via personalized prompts, reducing reliance on extensive fine-tuning.
- To explore the feasibility of instruction-based recommendation using natural language prompts, inspired by recent advances in prompt-based LLMs.
- To establish a foundation for a universal recommendation engine by integrating multimodal data into a unified text-based paradigm.
Proposed method
- Convert all recommendation data—user-item interactions, user profiles, item metadata, and reviews—into natural language sequences using task-specific prompt templates.
- Pretrain a sequence-to-sequence Transformer model (T5-based) on a multitask collection of personalized prompts, using a shared language modeling objective.
- Use adaptive, user-specific prompts during inference to enable zero-shot or few-shot prediction without retraining.
- Implement personalization via subword tokenization with whole-word embeddings, preserving semantic structure while minimizing learnable parameters.
- Design a prompt library covering five task families: rating prediction, sequential recommendation, review generation, explanation generation, and item retrieval.
- Evaluate generalization via zero-shot transfer to unseen prompts, new items, and cross-domain settings using standardized benchmarks.
Experimental results
Research questions
- RQ1Can a unified text-to-text framework effectively unify diverse recommendation tasks under a single pretraining objective?
- RQ2How well does P5 generalize to unseen personalized prompts and new items in a zero-shot or few-shot setting?
- RQ3What is the impact of prompt design and prompt scaling on model performance across different recommendation tasks?
- RQ4How does the choice of personalization strategy (subword tokenization vs. dedicated tokens) affect model performance and generalization?
- RQ5To what extent can P5 serve as a foundation model for universal recommendation, supporting instruction-based and multimodal recommendation?
Key findings
- P5 achieves state-of-the-art or competitive performance across all five recommendation task families—rating prediction, sequential recommendation, review generation, explanation generation, and item retrieval—on benchmark datasets.
- P5 demonstrates strong zero-shot generalization: it performs well on unseen prompts (e.g., Prompt 3-12 for explanation generation) without any fine-tuning.
- Scaling the prompt library (P5-PS) improves performance on most tasks, especially zero-shot tasks, indicating that high-quality, diverse prompts enhance generalization.
- The default subword-based personalization strategy (P5-S) outperforms the dedicated token approach (P5-I) on sequential and direct recommendation tasks, due to better parameter efficiency and collaborative learning.
- P5-I performs comparably or slightly better than P5-S on some generation tasks (e.g., explanation generation), but significantly underperforms on ranking and sequential tasks, highlighting the limitations of token explosion in personalization.
- The model generalizes effectively across domains and new items, confirming its potential as a universal recommendation engine.
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.