Table of Contents
Fetching ...

AdaptRec: A Self-Adaptive Framework for Sequential Recommendations with Large Language Models

Tong Zhang

TL;DR

AdaptRec tackles the challenge of embedding collaborative signals into LLM-based sequential recommendations by introducing a self-adaptive prompting framework. It combines coarse user retrieval, active demonstration selection via LLM reasoning, and contextual prompts that translate similar users' histories into guidance for next-item prediction, while employing LoRA for efficient fine-tuning. Empirical results show substantial improvements in HR@1 and NDCG@k across MovieLens, LastFM, and GoodReads, with notable gains in few-shot scenarios and robust demonstration-driven learning. The approach demonstrates the practical viability of integrating dynamic, interpretable collaborative signals with LLMs, offering a new paradigm for adaptive, context-aware recommendations and opening avenues for multi-modal extensions and scalable deployments.

Abstract

The recent advancements in Large Language Models (LLMs) have generated considerable interest in their utilization for sequential recommendation tasks. While collaborative signals from similar users are central to recommendation modeling, effectively transforming these signals into a format that LLMs can understand and utilize remains challenging. The critical challenges include selecting relevant demonstrations from large-scale user interactions and ensuring their alignment with LLMs' reasoning process. To address these challenges, we introduce AdaptRec, a self-adaptive fram-ework that leverages LLMs for sequential recommendations by incorporating explicit collaborative signals. AdaptRec employs a two-phase user selection mechanism -- User Similarity Retrieval and Self-Adaptive User Selection -- to efficiently identify relevant user sequences in large-scale datasets from multi-metric evaluation. We also develop a User-Based Similarity Retrieval Prompt, enabling the model to actively select similar users and continuously refine its selection criteria during training. Using the collaborative signals from similar users, we construct a User-Contextualized Recommendation Prompt that translates their behavior sequences into natural language, explicitly integrating this information into the recommendation process. Experiments demonstrate AdaptRec's superior performance, with significant improvements in HitRatio@1 scores of 7.13\%, 18.16\%, and 10.41\% across real-world datasets with full fine-tuning, and even higher gains of 23.00\%, 15.97\%, and 17.98\% in few-shot scenarios.

AdaptRec: A Self-Adaptive Framework for Sequential Recommendations with Large Language Models

TL;DR

AdaptRec tackles the challenge of embedding collaborative signals into LLM-based sequential recommendations by introducing a self-adaptive prompting framework. It combines coarse user retrieval, active demonstration selection via LLM reasoning, and contextual prompts that translate similar users' histories into guidance for next-item prediction, while employing LoRA for efficient fine-tuning. Empirical results show substantial improvements in HR@1 and NDCG@k across MovieLens, LastFM, and GoodReads, with notable gains in few-shot scenarios and robust demonstration-driven learning. The approach demonstrates the practical viability of integrating dynamic, interpretable collaborative signals with LLMs, offering a new paradigm for adaptive, context-aware recommendations and opening avenues for multi-modal extensions and scalable deployments.

Abstract

The recent advancements in Large Language Models (LLMs) have generated considerable interest in their utilization for sequential recommendation tasks. While collaborative signals from similar users are central to recommendation modeling, effectively transforming these signals into a format that LLMs can understand and utilize remains challenging. The critical challenges include selecting relevant demonstrations from large-scale user interactions and ensuring their alignment with LLMs' reasoning process. To address these challenges, we introduce AdaptRec, a self-adaptive fram-ework that leverages LLMs for sequential recommendations by incorporating explicit collaborative signals. AdaptRec employs a two-phase user selection mechanism -- User Similarity Retrieval and Self-Adaptive User Selection -- to efficiently identify relevant user sequences in large-scale datasets from multi-metric evaluation. We also develop a User-Based Similarity Retrieval Prompt, enabling the model to actively select similar users and continuously refine its selection criteria during training. Using the collaborative signals from similar users, we construct a User-Contextualized Recommendation Prompt that translates their behavior sequences into natural language, explicitly integrating this information into the recommendation process. Experiments demonstrate AdaptRec's superior performance, with significant improvements in HitRatio@1 scores of 7.13\%, 18.16\%, and 10.41\% across real-world datasets with full fine-tuning, and even higher gains of 23.00\%, 15.97\%, and 17.98\% in few-shot scenarios.

Paper Structure

This paper contains 30 sections, 8 equations, 8 figures, 5 tables.

Figures (8)

  • Figure 1: Overview of Prompt Design Strategies for Sequential Recommendation Systems: User-Agnostic Prompt, Single User-Specific Prompt, and Multi-User Collaborative Prompt.
  • Figure 2: The Self-Adaptive User-Contextualized Sequential Recommendation Framework. (1) User Similarity Retrieval extracts relevant sequences. (2) Self-Adaptive User Selection refines similar user pool. (3) Contextual Prompt-based Recommendation generates personalized suggestions. An iterative feedback mechanism continuously improves user selection and recommendation accuracy.
  • Figure 3: User-Based Similarity Retrieval Prompt
  • Figure 4: Contextual Prompt-based Recommendation
  • Figure 5: Training Loss Trends Across Training Steps
  • ...and 3 more figures