ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendation

Jianghao Lin, Rong Shan, Chenxu Zhu, Kounianhua Du, Bo Chen +4 more
8/22/2023
200 citations
cs.IRcs.AI

Official code: LaVieEnRose365/ReLLa (58 stars, Jupyter Notebook, last commit 2024-03-08). 1 more implementation below.

Abstract

With large language models (LLMs) achieving remarkable breakthroughs in natural language processing (NLP) domains, LLM-enhanced recommender systems have received much attention and have been actively explored currently. In this paper, we focus on adapting and empowering a pure large language model for zero-shot and few-shot recommendation tasks.

Show full abstract

First and foremost, we identify and formulate the lifelong sequential behavior incomprehension problem for LLMs in recommendation domains, i.e., LLMs fail to extract useful information from a textual context of long user behavior sequence, even if the length of context is far from reaching the context limitation of LLMs. To address such an issue and improve the recommendation performance of LLMs, we propose a novel framework, namely Retrieval-enhanced Large Language models (ReLLa) for recommendation tasks in both zero-shot and few-shot settings. For zero-shot recommendation, we perform semantic user behavior retrieval (SUBR) to improve the data quality of testing samples, which greatly reduces the difficulty for LLMs to extract the essential knowledge from user behavior sequences. As for few-shot recommendation, we further design retrieval-enhanced instruction tuning (ReiT) by adopting SUBR as a data augmentation technique for training samples. Specifically, we develop a mixed training dataset consisting of both the original data samples and their retrieval-enhanced counterparts. We conduct extensive experiments on three real-world public datasets to demonstrate the superiority of ReLLa compared with existing baseline models, as well as its capability for lifelong sequential behavior comprehension. To be highlighted, with only less than 10% training samples, few-shot ReLLa can outperform traditional CTR models that are trained on the entire training set (e.g., DCNv2, DIN, SIM). The code is available \url{https://github.com/LaVieEnRose365/ReLLa}.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
LaVieEnRose365/ReLLaOfficial58Jupyter Notebook–2024-03-08
CHIANGEL/ReLLa-hf4.35.2Community10PythonMIT2023-12-22

Code of Paper "ReLLa: Retrieval-enhanced Large Language Models for Mitigating Long Context Problems in Recommendation".

585Jupyter Notebook, PythonAug 17, 20232 years ago
MIT

Implementation of the paper "ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendation"

100Python, Jupyter NotebookDec 11, 20232 years agoMIT

Similar Papers

Cite this paper

@article{lin2023rella,
  title  = {ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendation},
  author = {Jianghao Lin and Rong Shan and Chenxu Zhu and Kounianhua Du and Bo Chen and Shigang Quan and Ruiming Tang and Yong Yu and Weinan Zhang},
  year   = {2023},
  eprint = {2308.11131},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.11131v6}
}

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

Discussion