RecRanker: Instruction Tuning Large Language Model as Ranker for Top-k Recommendation
Sichun Luo, Bowei He, Haohan Zhao, Wei Shao, Yanlin Qi, Yinya Huang et al. · 2024 · 43 citationsRead the paper
Large language models (LLMs) have demonstrated remarkable capabilities and have been extensively deployed across various domains, including recommender systems. Prior research has employed specialized 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 article, we introduce Ranker for top- k Recommendations (RecRanker), tailored for instruction tuning LLMs to serve as the Ranker for top- k Recommendations. Specifically, we introduce importance-aware sampling, clustering-based sampling, and penalty for repetitive sampling 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. 1
What the full text shows
Shown in the lab- The RecRanker framework improves top-k recommendation performance by integrating instruction-tuned LLMs as rankers using a hybrid ranking method (ensembling pointwise, pairwise, and listwise tasks). (Evaluated on MovieLens-100K, MovieLens-1M, and BookCrossing datasets)
- Instruction-tuning dataset quality was improved by filtering out low-quality instructions (users with fewer than three interactions), resulting in a final set of high-quality instructions. — 56,000 high-quality instructions (Across ML-100K, ML-1M, and BookCrossing datasets)
- Setup
- Three real-world datasets: MovieLens-100K (100k ratings), MovieLens-1M (~1M ratings), and BookCrossing (10-core setting). Evaluation used Hit Ratio (HR) and NDCG for k=3 and k=5.
- How
- The authors developed a framework that uses adaptive user sampling (importance-aware, clustering-based, and repetition penalty) to create an instruction-tuning dataset. They augmented prompts with auxiliary signals from conventional recommendation models and a position-shifting strategy, then fine-tuned LLMs on pointwise, pairwise, and listwise ranking tasks.
- Limitations
- LLMs have constrained context size · High computational costs when processing large candidate pools
Summarized by Gemma 4 from the open-access full text · 5 Nov 2026. Read it