[Paper Review] RecRanker: Instruction Tuning Large Language Model as Ranker for Top-k Recommendation
RecRanker introduces an instruction-tuned large language model (LLM) framework for top-k recommendation, enhancing performance through adaptive user sampling, position-shifting prompt design, and integration of signals from conventional recommendation models. By combining pointwise, pairwise, and listwise ranking tasks in a hybrid ranking strategy, RecRanker outperforms both GPT-3.5-turbo and standard LLMs, demonstrating state-of-the-art results on real-world datasets with significant gains in hit and nDCG metrics.
Large Language Models (LLMs) have demonstrated remarkable capabilities and have been extensively deployed across various domains, including recommender systems. Prior research has employed specialized extit{prompts} to leverage the in-context learning capabilities of LLMs for recommendation purposes. More recent studies have utilized instruction tuning techniques to align LLMs with human preferences, promising more effective recommendations. However, existing methods suffer from several limitations. The full potential of LLMs is not fully elicited due to low-quality tuning data and the overlooked integration of conventional recommender signals. Furthermore, LLMs may generate inconsistent responses for different ranking tasks in the recommendation, potentially leading to unreliable results. In this paper, we introduce extbf{RecRanker}, tailored for instruction tuning LLMs to serve as the extbf{Ranker} for top- extit{k} extbf{Rec}ommendations. Specifically, we introduce an adaptive sampling module for sampling high-quality, representative, and diverse training data. To enhance the prompt, we introduce a position shifting strategy to mitigate position bias and augment the prompt with auxiliary information from conventional recommendation models, thereby enriching the contextual understanding of the LLM. Subsequently, we utilize the sampled data to assemble an instruction-tuning dataset with the augmented prompts comprising three distinct ranking tasks: pointwise, pairwise, and listwise rankings. We further propose a hybrid ranking method to enhance the model performance by ensembling these ranking tasks. Our empirical evaluations demonstrate the effectiveness of our proposed RecRanker in both direct and sequential recommendation scenarios.
Motivation & Objective
- To address the gap in existing LLM-based rankers that focus on a single ranking task and ignore signals from conventional recommendation models.
- To improve the quality and diversity of training data by introducing importance-aware and clustering-based user sampling strategies.
- To mitigate position bias in LLM prompts through a position-shifting strategy during instruction tuning.
- To enhance LLM reasoning by injecting auxiliary signals from collaborative filtering models into natural language prompts.
- To develop a hybrid ranking method that ensembles pointwise, pairwise, and listwise ranking heads for improved recommendation performance.
Proposed method
- Adaptive user sampling selects high-interaction and representative users to ensure data quality and diversity in the instruction-tuning dataset.
- A position-shifting strategy is applied to prompts to reduce position bias during inference, improving fairness in ranking outcomes.
- Auxiliary signals from conventional recommendation models (e.g., MF, LightGCN) are incorporated into prompts using natural language descriptions to enrich context.
- An instruction-tuning dataset is constructed with three distinct ranking tasks: pointwise, pairwise, and listwise, each with augmented prompts.
- A hybrid ranking method combines predictions from all three ranking heads via weighted ensembling to improve overall recommendation accuracy.
- The LLaMA-2 model is fine-tuned on the curated dataset using instruction tuning, with hyperparameters scaled proportionally to dataset size.
Experimental results
Research questions
- RQ1Can integrating multiple ranking tasks (pointwise, pairwise, listwise) into a single instruction-tuned LLM improve top-k recommendation performance?
- RQ2How does the inclusion of auxiliary signals from conventional recommendation models affect LLM-based ranking quality?
- RQ3To what extent does adaptive user sampling improve model generalization and performance on cold-start or low-interaction users?
- RQ4Does position-shifting in prompts effectively reduce position bias in LLM-generated rankings?
- RQ5How does the performance of an instruction-tuned LLM compare to a proprietary LLM like GPT-3.5-turbo in real-world recommendation benchmarks?
Key findings
- The LLaMA-2 (13B) model outperformed the 7B version across all metrics, demonstrating that larger model scale enhances reasoning and ranking performance.
- The hybrid ranking method achieved the highest performance across all evaluation metrics, with notable improvements in H@3 and N@3, confirming the benefit of multi-task learning.
- Increasing the number of training instructions from 5.6K to 56K led to consistent performance gains, showing that data scale significantly improves instruction-tuned LLMs.
- RecRanker outperformed GPT-3.5-turbo on the Bookcrossing dataset, validating the effectiveness of instruction tuning over zero-shot prompting in recommendation tasks.
- The model achieved a H@3 of 0.0533 and N@3 of 0.0368 on ML-100K with 56K instructions, showing strong performance on standard benchmark datasets.
- Inference time averaged 0.059 seconds per item on a single A800 GPU, though training on 16 A800s took ~4.6 hours, highlighting high computational costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.