Prompt-Based LLMs for Position Bias-Aware Reranking in Personalized Recommendations

Md Aminul Islam, Ahmed Sayeed Faruk
5/8/2025
cs.IRcs.CL

Official code: aminul7506/LLMForReRanking (3 stars, last commit 2025-04-22).

Abstract

Recommender systems are essential for delivering personalized content across digital platforms by modeling user preferences and behaviors. Recently, large language models (LLMs) have been adopted for prompt-based recommendation due to their ability to generate personalized outputs without task-specific training. However, LLM-based methods face limitations such as limited context window size, inefficient pointwise and pairwise prompting, and difficulty handling listwise ranking due to token constraints. LLMs can also be sensitive to position bias, as they may overemphasize earlier items in the prompt regardless of their true relevance. To address and investigate these issues, we propose a hybrid framework that combines a traditional recommendation model with an LLM for reranking top-k items using structured prompts. We evaluate the effects of user history reordering and instructional prompts for mitigating position bias. Experiments on MovieLens-100K show that randomizing user history improves ranking quality, but LLM-based reranking does not outperform the base model. Explicit instructions to reduce position bias are also ineffective. Our evaluations reveal limitations in LLMs' ability to model ranking context and mitigate bias. Our code is publicly available at https://github.com/aminul7506/LLMForReRanking.

View on arXivView PDF

Code Implementations(1)

30C++, ShellApr 12, 20251 years ago

Similar Papers

Cite this paper

@article{islam2025promptbased,
  title  = {Prompt-Based LLMs for Position Bias-Aware Reranking in Personalized Recommendations},
  author = {Md Aminul Islam and Ahmed Sayeed Faruk},
  year   = {2025},
  eprint = {2505.04948},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.04948v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.04948.svg)](https://codeofpaper.com/paper/2505.04948)

Discussion