NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RecPrompt: A Self-tuning Prompting Framework for News Recommendation Using Large Language Models

Dairui Liu, Boming Yang, Honghui Du, Derek Greene, Neil Hurley, Aonghus Lawlor, Ruihai Dong, Irene Li

TL;DR

This paper introduces RecPrompt, a novel framework that uses a self-tuning approach to improve news recommendations powered by Large Language Models (LLMs). By iteratively refining prompts based on performance feedback, RecPrompt significantly outperforms traditional and deep learning recommendation models, demonstrating the power of automated prompt engineering for LLM-based systems.

What Problem Does This Paper Address?

Personalized news recommendation systems aim to deliver relevant content to users by understanding their interests. While Large Language Models (LLMs) like GPT-4 show great promise in natural language understanding, their direct application to news recommendation is still being explored. Existing methods often struggle to fully leverage LLMs' capabilities, requiring extensive fine-tuning with hard-to-obtain data or relying on static prompting strategies that don't adapt to user preferences. Furthermore, evaluating the quality of explanations generated by LLMs for recommendations has been a challenge due to a lack of suitable metrics. This paper addresses these gaps by proposing a framework for self-tuning LLM prompts for news recommendation and introducing a new metric to evaluate the topical relevance of explanations.

Methods

RecPrompt is a self-tuning prompting framework that employs an iterative bootstrapping process involving two LLMs: a news recommender (LLMrec) and a prompt optimizer (LLMopt).

  • News Recommender (LLMrec): This LLM takes a recommendation prompt (Prec) as input, which includes a template instruction and placeholders for user history and candidate news. It generates a ranked list of recommended news articles and provides explanations summarizing the user's interest topics.
  • Prompt Optimizer (LLMopt): This LLM takes an optimization prompt, which includes the current recommendation prompt, the recommender's output (ranked list and explanations), ground truth data, and specific instructions. Its goal is to generate a refined template instruction that improves the recommendation prompt for future iterations.
  • Monitor: This component evaluates the recommender's performance using standard metrics (AUC, MRR, nDCG) and compares it against ground truth. It ensures that the prompt optimizer only updates the template if a performance improvement is observed.

The framework operates in a loop: LLMrec generates recommendations, LLMopt refines the prompt based on feedback, and the Monitor validates the improvement. This process continues until a set number of iterations, continuously enhancing the prompt's alignment with user interests.

The paper also introduces TopicScore, a novel metric designed to evaluate the quality of explanations. It measures two aspects:

  • Correctness: How accurately the generated topics reflect the content of the recommended news articles.
  • Completeness: How well the summarized topics cover the user's interests based on their historical reading. TopicScore is evaluated using both an LLM evaluator (LLMeval) and human annotations.

Datasets

The experiments were conducted on the MIcrosoft News Dataset (MIND) collection. For evaluation, 100 users were used for validation (optimizing RecPrompt) and 400 users for the test set. Each user interaction consisted of 10 candidate news articles, with only one being clicked.

Key Insights and Ideas

  • Automated Prompt Engineering is Crucial: The core idea is that prompts for LLMs in recommendation tasks are not static. RecPrompt demonstrates that an iterative, self-tuning approach to prompt engineering can significantly boost performance, surpassing static prompting strategies.
  • LLMs Can Be Both Recommenders and Optimizers: The framework cleverly uses LLMs for two distinct roles: generating recommendations and refining the prompts that guide the recommendation process. This creates a synergistic loop for continuous improvement.
  • Topical Relevance is Key for Explanations: The introduction of TopicScore highlights the importance of evaluating not just recommendation accuracy but also the quality and relevance of the explanations provided to users. This is crucial for building trust and understanding in recommendation systems.
  • LLM Capabilities Extend Beyond Simple Ranking: RecPrompt shows that LLMs can be guided to provide nuanced explanations by summarizing user interests and linking them to specific news articles, which is a significant step beyond traditional recommendation outputs.

Key Results

RecPrompt achieved significant improvements over traditional deep neural models:

  • AUC: +3.36%
  • MRR: +10.49%
  • nDCG@5: +9.64%
  • nDCG@10: +6.20%

Notably, RecPrompt, even with a GPT-3.5 model (CoT-LLMrec-3.5), outperformed several state-of-the-art deep neural models. When using GPT-4 (CoT-LLMrec-4), it achieved superior results without any specific training on news recommendation data, showcasing its zero-shot recommendation capabilities.

The TopicScore analysis indicated that LLMrec-4 generally provided more accurate and comprehensive topic summaries than LLMrec-3.5. While LLM evaluators assigned higher scores than human annotators, suggesting potential differences in evaluation criteria, RecPrompt consistently improved TopicScore compared to baseline CoT strategies.

Limitations and Future Work

  • LLM Evaluator vs. Human Annotator Discrepancy: The paper notes that LLM evaluators (LLMeval) assigned higher TopicScores than human annotators, suggesting a need for further investigation into the criteria used by machines versus humans for evaluating topic relevance.
  • Computational Cost: While not explicitly detailed as a limitation, the iterative nature of RecPrompt and the use of LLMs for both recommendation and optimization imply a higher computational cost compared to traditional methods.
  • Future Work: The authors suggest that future work could explore more sophisticated prompt optimization strategies, investigate the impact of different LLM architectures, and further refine the evaluation metrics for LLM-generated explanations. The potential for RecPrompt in other recommendation domains beyond news is also an avenue for exploration.

Summary updated

BibTeX
@inproceedings{liu2024recprompt,
  author = {Dairui Liu and Boming Yang and Honghui Du and Derek Greene and Neil Hurley and Aonghus Lawlor and Ruihai Dong and Irene Li},
  title = {{RecPrompt: A Self-tuning Prompting Framework for News Recommendation Using Large Language Models}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679987},
}
Figure