TL;DR
This paper introduces AGP, a novel framework that automates the optimization of prompts used to generate user profiles for personalized recommendation reranking. By using position-aware feedback and batched training, AGP significantly improves recommendation quality without requiring manual prompt engineering, demonstrating strong performance gains on diverse datasets.
What Problem Does This Paper Address?
Recommender systems are crucial for navigating vast amounts of information, and personalization is key to their effectiveness. Recently, Large Language Models (LLMs) have shown great promise in improving recommendations through "reranking" – refining an initial list of suggestions to better match user preferences. However, current LLM-based reranking methods heavily rely on manually crafted "prompts" (instructions given to the LLM). This manual process is time-consuming, difficult to scale, and often struggles to capture the nuances of user preferences, especially when dealing with unstructured or noisy item metadata (like product descriptions or movie titles). The paper aims to bridge this gap by automating the prompt optimization process for a more effective and scalable personalization.
Methods
The core innovation of AGP (Auto-Guided Prompt Refinement) lies in its approach to prompt optimization. Instead of directly optimizing the reranking prompt, AGP focuses on optimizing the user profile generation prompt. This prompt is used by an LLM to synthesize a user's interaction history into a concise profile that captures their preferences.
AGP introduces two key techniques:
- Position-Based Feedback: Traditional methods often use aggregated metrics like NDCG (Normalized Discounted Cumulative Gain) to evaluate performance. AGP, however, uses a more granular "position-based feedback" mechanism. This feedback pinpoints exactly where an item was ranked incorrectly relative to its ideal position, providing explicit, actionable signals for prompt refinement. For example, if a highly relevant item was ranked 5th but should have been 1st, this specific misalignment is captured.
- Batched Training with Summarized Feedback: To prevent overfitting to individual users and enhance generalization, AGP employs batched training. It processes multiple users simultaneously and aggregates their position-based feedback into a summarized signal. This allows the prompt optimization to learn from broader trends across a user group, making the learned prompt more robust and applicable to new users. The prompt is iteratively updated using a gradient-like descent based on this aggregated feedback.
Datasets
The paper evaluates AGP on three publicly available datasets:
- Amazon Movies & TV (Movies): A dataset containing user interactions with movie items.
- Yelp: A dataset focused on businesses and user reviews.
- Goodreads: A dataset related to books and user ratings.
These datasets represent diverse domains with varying characteristics of item metadata and user interaction patterns. The authors use a standard leave-one-out (LOO) strategy for evaluation, where the last interaction is used for testing and the second-to-last for validation.
Key Insights and Ideas
- Focusing on User Profile Generation is Key: Optimizing the prompt that creates the user profile, rather than the prompt that reranks items, proves to be a more effective strategy for personalization. This allows the LLM to better understand and represent user preferences before the reranking step.
- Granular Feedback Beats Aggregated Metrics: Position-based feedback provides much more direct and interpretable guidance for prompt optimization than traditional, aggregated ranking metrics like NDCG. This fine-grained signal helps the LLM make more precise adjustments.
- Batching Prevents Overfitting: Aggregating feedback across multiple users during training is crucial for generalization. It ensures that the optimized prompt doesn't become too specialized to the quirks of a few individual users, making it more robust for a wider user base.
- LLMs Can Self-Optimize: The success of AGP demonstrates that LLMs can be effectively guided to optimize their own prompts for specific tasks like recommendation reranking, reducing the need for extensive manual tuning.
Key Results
AGP achieved significant improvements in recommendation quality across all three datasets.
- Strong NDCG@10 Gains: AGP demonstrated improvements ranging from 5.61% to 20.68% in NDCG@10 over baseline models, even with a small training set of just 100 users.
- Enhanced Graph-Based Recommenders: AGP showed particular strength in boosting the performance of graph-based models like LightGCN, achieving gains of 9.36% to 20.68%.
- Competitive with Sequential Models: It also maintained strong performance when applied to sequential models like SASRec.
- Efficiency: The framework proved efficient, maintaining competitive performance with significantly fewer training samples (e.g., 100 users vs. 700 users), reducing computational costs.
Limitations and Future Work
- Dataset Specificity: While AGP performed well across diverse datasets, the paper notes that the Yelp dataset presented challenges due to sparse and noisy item descriptions, leading to smaller improvements. This suggests that the quality and structure of item metadata can still impact performance.
- Future Directions: The authors suggest exploring reinforcement learning for further prompt optimization and investigating broader applications of AGP beyond recommendation systems. They also hint at future work involving reinforcement learning and exploring AGP's applicability to other domains.
Summary updated