Personalized Transformer for Explainable Recommendation

Lei Li, Yongfeng Zhang, Li Chen
5/25/2021
cs.IRcs.AIcs.CL
transformer-attention

Official code: lileipisces/PETER (95 stars, Python, last commit 2025-01-24).

Abstract

Personalization of natural language generation plays a vital role in a large spectrum of tasks, such as explainable recommendation, review summarization and dialog systems. In these tasks, user and item IDs are important identifiers for personalization.

Show full abstract

Transformer, which is demonstrated with strong language modeling capability, however, is not personalized and fails to make use of the user and item IDs since the ID tokens are not even in the same semantic space as the words. To address this problem, we present a PErsonalized Transformer for Explainable Recommendation (PETER), on which we design a simple and effective learning objective that utilizes the IDs to predict the words in the target explanation, so as to endow the IDs with linguistic meanings and to achieve personalized Transformer. Besides generating explanations, PETER can also make recommendations, which makes it a unified model for the whole recommendation-explanation pipeline. Extensive experiments show that our small unpretrained model outperforms fine-tuned BERT on the generation task, in terms of both effectiveness and efficiency, which highlights the importance and the nice utility of our design.

View on arXivView PDF

Code Implementations(1)

lileipisces/PETEROfficial100%

ACL'21 Oral, Personalized Transformer for Explainable Recommendation

9521PythonMay 6, 20211 years ago

Similar Papers

Cite this paper

@article{li2021personalized,
  title  = {Personalized Transformer for Explainable Recommendation},
  author = {Lei Li and Yongfeng Zhang and Li Chen},
  year   = {2021},
  eprint = {2105.11601},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.11601}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.11601.svg)](https://codeofpaper.com/paper/2105.11601)

Discussion