Introduction
Personalized news recommendation requires a delicate balance between semantic understanding and ranking precision. While traditional deep neural models like NRMS and NAML excel at pattern recognition in large datasets, they often function as "black boxes," providing little transparency regarding their recommendations. Conversely, Large Language Models (LLMs) such as GPT-4 offer sophisticated linguistic reasoning but frequently require extensive manual prompt engineering to match the performance of specialized models.
The RecPrompt framework addresses these challenges by automating prompt optimization through a self-tuning "recommender-optimizer" loop. This approach not only improves recommendation accuracy but also enhances explainability through high-quality, topic-based justifications.
The RecPrompt Framework
RecPrompt treats prompt engineering as an iterative optimization problem, utilizing three primary components to refine the recommendation process:
- The News Recommender ($LLM_{rec}$): Processes a prompt template, user history, and candidate articles to output ranked recommendations and topic-based explanations.
- The Monitor: Evaluates performance using standard metrics (e.g., MRR, nDCG) and determines whether a new prompt template should be adopted based on performance gains.
- The Prompt Optimizer ($LLM_{opt}$): Acts as the system's "brain," analyzing the current prompt, recommender errors, and ground truth data to iteratively rewrite templates for better alignment with user preferences.
Evaluation and Metrics
The framework was evaluated using the MIND (Microsoft News Dataset). Beyond standard ranking metrics, the authors introduced TopicScore to assess the quality of generated explanations. TopicScore measures Correctness (alignment between generated topics and article content) and Completeness (the extent to which topics cover the breadth of a user's historical interests).
Key Results
RecPrompt demonstrated significant performance improvements over both traditional deep learning baselines and standard LLM prompting strategies. Even in a zero-shot setting, the GPT-4 version of RecPrompt outperformed well-trained, specialized neural networks.
As shown in the experimental results, the GPT-4 based RecPrompt achieved a 3.36% improvement in AUC and a 10.49% boost in MRR compared to the strongest deep neural models. Furthermore, ranking quality saw marked improvements, with a 9.64% increase in nDCG@5 and a 6.20% increase in nDCG@10, indicating that the framework is highly effective at placing relevant news at the top of the user's feed.
Discussion and Insights
Several key findings emerged from the study:
- LLMs as Meta-Optimizers: LLMs are capable of diagnosing their own failures when provided with structured observation instructions, allowing for effective self-correction.
- Chain-of-Thought (CoT) Prompting: Asking the model to explain its reasoning before providing a final answer consistently outperformed simple input-output methods.
- Topical Relevance: Integrating explicit category and subcategory information into prompts significantly enhanced recommendation accuracy.
- The Human-AI Evaluation Gap: Testing TopicScore revealed that LLMs often rate their own topic summaries higher than human annotators do, suggesting a discrepancy in relevance definitions between machines and humans.
Limitations and Future Work
Despite its success, RecPrompt faces challenges regarding computational cost and latency due to the iterative nature of LLM API calls. This may limit real-time deployment in its current form. Future research will focus on exploring open-source LLM backends to reduce costs and refining the TopicScore metric to better align with human judgment across larger, more diverse datasets.
Summary updated