Knowledge Prompt-tuning for Sequential Recommendation

Jianyang Zhai, Xiawu Zheng, Chang-Dong Wang, Hui Li, Yonghong Tian
8/14/2023
46 citations
cs.IRcs.AI
lora-peft-merging

Official code: zhaijianyang/KP4SR (13 stars, Python, last commit 2023-05-08).

Abstract

Pre-trained language models (PLMs) have demonstrated strong performance in sequential recommendation (SR), which are utilized to extract general knowledge. However, existing methods still lack domain knowledge and struggle to capture users' fine-grained preferences.

Show full abstract

Meanwhile, many traditional SR methods improve this issue by integrating side information while suffering from information loss. To summarize, we believe that a good recommendation system should utilize both general and domain knowledge simultaneously. Therefore, we introduce an external knowledge base and propose Knowledge Prompt-tuning for Sequential Recommendation (\textbf{KP4SR}). Specifically, we construct a set of relationship templates and transform a structured knowledge graph (KG) into knowledge prompts to solve the problem of the semantic gap. However, knowledge prompts disrupt the original data structure and introduce a significant amount of noise. We further construct a knowledge tree and propose a knowledge tree mask, which restores the data structure in a mask matrix form, thus mitigating the noise problem. We evaluate KP4SR on three real-world datasets, and experimental results show that our approach outperforms state-of-the-art methods on multiple evaluation metrics. Specifically, compared with PLM-based methods, our method improves NDCG@5 and HR@5 by \textcolor{red}{40.65\%} and \textcolor{red}{36.42\%} on the books dataset, \textcolor{red}{11.17\%} and \textcolor{red}{11.47\%} on the music dataset, and \textcolor{red}{22.17\%} and \textcolor{red}{19.14\%} on the movies dataset, respectively. Our code is publicly available at the link: \href{https://github.com/zhaijianyang/KP4SR}{\textcolor{blue}{https://github.com/zhaijianyang/KP4SR}.}

View on arXivView PDF

Code Implementations(1)

zhaijianyang/KP4SROfficial100%
133Python, ShellApr 26, 20233 years ago

Similar Papers

Cite this paper

@article{zhai2023knowledge,
  title  = {Knowledge Prompt-tuning for Sequential Recommendation},
  author = {Jianyang Zhai and Xiawu Zheng and Chang-Dong Wang and Hui Li and Yonghong Tian},
  year   = {2023},
  eprint = {2308.08459},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.08459v1}
}

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/2308.08459.svg)](https://codeofpaper.com/paper/2308.08459)

Discussion