Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

The Whole is Better than the Sum: Using Aggregated Demonstrations in In-Context Learning for Sequential Recommendation

About

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.

Lei Wang, Ee-Peng Lim• 2024

Related benchmarks

TaskDatasetResultRank
RecommendationAmazon Reviews Sports & Outdoors
H@146.4
14
RecommendationAmazon Reviews Beauty & Personal Care
H@137.7
14
RecommendationAmazon Reviews Toys & Games
H@141.3
14
RecommendationAmazon Reviews Arts, Crafts & Sewing
Hit Rate @ 146.3
14
life service recallBeijing (test)
Recall@108.044
12
life service recallShanghai (test)
Recall@100.0632
12
Item RecommendationAmazon Reviews Toys & Games (cold-start)
Hit Rate @ 140.5
6
Item RecommendationAmazon Reviews Sports & Outdoors (cold-start)
Hit Rate @ 145.6
6
Item RecommendationAmazon Reviews Beauty & Personal care (cold-start)
Hit Rate @ 137.1
6
Item RecommendationAmazon Reviews Arts, Crafts & Sewing (cold-start)
H@145
6
Showing 10 of 10 rows

Other info

Follow for update