Saved in:
Bibliographic Details
Main Authors: Wang, Lei, Lim, Ee-Peng
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2403.10135
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917614598488064
author Wang, Lei
Lim, Ee-Peng
author_facet Wang, Lei
Lim, Ee-Peng
contents Large language models (LLMs) have shown excellent performance on various NLP tasks. To use LLMs as strong sequential recommenders, we explore the in-context learning approach to sequential recommendation. We investigate the effects of instruction format, task consistency, demonstration selection, and number of demonstrations. As increasing the number of demonstrations in ICL does not improve accuracy despite using a long prompt, we propose a novel method called LLMSRec-Syn that incorporates multiple demonstration users into one aggregated demonstration. Our experiments on three recommendation datasets show that LLMSRec-Syn outperforms state-of-the-art LLM-based sequential recommendation methods. In some cases, LLMSRec-Syn can perform on par with or even better than supervised learning methods. Our code is publicly available at https://github.com/demoleiwang/LLMSRec_Syn.
format Preprint
id arxiv_https___arxiv_org_abs_2403_10135
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Whole is Better than the Sum: Using Aggregated Demonstrations in In-Context Learning for Sequential Recommendation
Wang, Lei
Lim, Ee-Peng
Information Retrieval
Artificial Intelligence
Computation and Language
Large language models (LLMs) have shown excellent performance on various NLP tasks. To use LLMs as strong sequential recommenders, we explore the in-context learning approach to sequential recommendation. We investigate the effects of instruction format, task consistency, demonstration selection, and number of demonstrations. As increasing the number of demonstrations in ICL does not improve accuracy despite using a long prompt, we propose a novel method called LLMSRec-Syn that incorporates multiple demonstration users into one aggregated demonstration. Our experiments on three recommendation datasets show that LLMSRec-Syn outperforms state-of-the-art LLM-based sequential recommendation methods. In some cases, LLMSRec-Syn can perform on par with or even better than supervised learning methods. Our code is publicly available at https://github.com/demoleiwang/LLMSRec_Syn.
title The Whole is Better than the Sum: Using Aggregated Demonstrations in In-Context Learning for Sequential Recommendation
topic Information Retrieval
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2403.10135