Skip to main content
QUICK REVIEW

[Paper Review] Personalized Prompt Learning for Explainable Recommendation

Lei Li, Yongfeng Zhang|arXiv (Cornell University)|Feb 15, 2022
Recommender Systems and TechniquesComputer Science29 citations
TL;DR

PEPLER introduces personalized prompt learning to generate explainable recommendations by treating user/item IDs as prompts, using discrete prompts (features) or continuous prompts (ID vectors), with two training strategies to bridge gaps with pre-trained transformers.

ABSTRACT

Providing user-understandable explanations to justify recommendations could help users better understand the recommended items, increase the system's ease of use, and gain users' trust. A typical approach to realize it is natural language generation. However, previous works mostly adopt recurrent neural networks to meet the ends, leaving the potentially more effective pre-trained Transformer models under-explored. In fact, user and item IDs, as important identifiers in recommender systems, are inherently in different semantic space as words that pre-trained models were already trained on. Thus, how to effectively fuse IDs into such models becomes a critical issue. Inspired by recent advancement in prompt learning, we come up with two solutions: find alternative words to represent IDs (called discrete prompt learning), and directly input ID vectors to a pre-trained model (termed continuous prompt learning). In the latter case, ID vectors are randomly initialized but the model is trained in advance on large corpora, so they are actually in different learning stages. To bridge the gap, we further propose two training strategies: sequential tuning and recommendation as regularization. Extensive experiments show that our continuous prompt learning approach equipped with the training strategies consistently outperforms strong baselines on three datasets of explainable recommendation.

Motivation & Objective

  • Motivate the need for user-understandable explanations in recommender systems to boost usability and trust.
  • Investigate how to fuse user/item IDs with pre-trained language models for explanation generation.
  • Propose two prompt-based approaches (discrete and continuous) to generate explanations without traditional sequence models.
  • Develop training strategies to align randomly initialized prompts with fixed pre-trained models to improve explainability.

Proposed method

  • Propose discrete prompt learning (PEPLER-D) by using item features as prompts to guide explanation generation within a pre-trained transformer.
  • Propose continuous prompt learning (PEPLER-C) by embedding IDs as trainable prompt vectors and feeding them alongside explanations.
  • Introduce a negative log-likelihood objective to train the model on word predictions conditioned on prompts.
  • Develop two training strategies for continuous prompts: sequential tuning (freeze LM then joint fine-tuning) and recommendation-as-regularization (using rating prediction to augment explanation quality).
  • Represent user and item IDs either as features (discrete prompts) or as learned embeddings (continuous prompts) and generate explanations via greedy decoding.
  • Ensure compatibility with any underlying recommendation model by conditioning explanations on (u,i) or (u,i) with features.
Figure 1. A review example from Yelp. The user and the restaurant are omitted for privacy protection.
Figure 1. A review example from Yelp. The user and the restaurant are omitted for privacy protection.

Experimental results

Research questions

  • RQ1Can personalized prompts (discrete or continuous) enable effective explainable recommendation using pre-trained language models?
  • RQ2How can we bridge the learning gap between randomly initialized continuous prompts and fixed pre-trained transformers?
  • RQ3Do training strategies like sequential tuning and recommendation as regularization improve explanation quality and explainability?
  • RQ4How do discrete (feature-based) prompts compare to continuous (ID-vector) prompts in generating explanations?
  • RQ5Is the approach applicable across different underlying recommendation models (e.g., MF, MLP) and datasets?

Key findings

  • Continuous prompt learning with the proposed training strategies outperforms strong baselines on three datasets in text quality and explainability.
  • PEPLER-D demonstrates effective explanation generation by leveraging informative item features as prompts within a pre-trained model.
  • Sequential tuning helps align continuous prompts with the pre-trained model before joint training, mitigating optimization issues.
  • Recommendation as regularization improves explanation quality by incorporating rating prediction signals into the learning process.
  • PEPLER outperforms methods based on RNNs, standard Transformers, or non-pretrained approaches in explainable recommendation tasks.
Figure 2. A comparison between left-to-right unidirectional attention masking (left) and bidirectional attention masking (right).
Figure 2. A comparison between left-to-right unidirectional attention masking (left) and bidirectional attention masking (right).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.