TL;DR
This paper presents a massive benchmarking study evaluating 23 prompt engineering techniques across 12 Large Language Models (LLMs) and 8 datasets for personalized recommendation. The authors discover a striking divergence: while budget-friendly models benefit significantly from structured prompts like Rephrase or Step-Back, premium high-performance models achieve peak accuracy using a simple baseline prompt, making complex prompt engineering both redundant and costly for top-tier models.
What Problem Does This Paper Address?
LLMs are increasingly used as zero-shot recommenders because they excel at cold-start scenarios, cross-domain recommendations, and explaining user preferences. However, most prompt engineering strategies have been inherited directly from general Natural Language Processing (NLP) tasks like question-answering or summarization.
Recommendation tasks are fundamentally different; they require modeling the implicit relationships between a single user's history and a set of candidate items. Prior research into prompt design for recommendation has been fragmented, often testing only a handful of prompts on a single model or dataset. This paper fills that gap by providing a systematic, large-scale evaluation of how prompt design impacts both recommendation accuracy and inference cost in a privacy-preserving, single-user setting.
Methods
The authors standardized a benchmarking pipeline to evaluate 23 different prompt types. These included:
- Non-conversational prompts: Baseline, emotional appeals (Emotion), reading the prompt twice (Re-Reading), and role-playing (RolePlay-Expert).
- Conversational (multi-turn) prompts: Forcing the model to explain its choices (Explain), summarizing user history (Summarize-User), abstracting principles (Step-Back), and structured reasoning-action loops (ReAct).
- Meta-prompting: Techniques like Self-Refine and Self-Consistency.
They evaluated these prompts across 12 LLMs categorized by cost and architecture (low-cost, high-cost, and reasoning models) using a fixed ranking task: sorting 10 candidate items (1 positive, 9 negatives) based on a user's interaction history. To isolate the true impact of the prompts from dataset and model biases, they utilized rigorous statistical testing, including a one-sided Wilcoxon signed-rank test and a Linear Mixed-Effects Model (LMEM).
Datasets
The evaluation spanned 8 public datasets covering diverse recommendation domains:
- Yelp Dataset (business recommendations)
- MIND (Microsoft News Recommendation Dataset)
- The Food Dataset (recipe recommendations)
- Amazon Review Dataset (split into 5 distinct categories: Music, Movies, Groceries, Clothes, and Books)
For each dataset, the authors evaluated both "light" users (6–11 interactions) and "heavy" users (31+ interactions), totaling 1,600 unique user profiles.
Key Insights and Ideas
- The "Overthinking" Penalty: Classic NLP prompts like "Let's think step by step" or activating the native "thinking mode" in reasoning models (like Claude 3.7 Sonnet or OpenAI's o3-mini) often decreased recommendation accuracy. The authors attribute this to "overthinking," where complex reasoning chains cause the model to lose track of the user's core preferences or violate formatting constraints.
- Model-Dependent Prompt Value: There is no one-size-fits-all prompt. Low-cost models (e.g., GPT-4.1-mini, Llama 3.3 70B) are highly sensitive to prompt structuring. Conversely, high-performance models already possess internal capabilities that render complex prompting unnecessary.
- Format Compliance is Key: Prompts that degraded performance often did so because they caused the model to fail to output a complete 10-item ranked list, instead returning partial lists or conversational text that ignored constraints.
Key Results
- For High-Performance Models: The combination of Claude 3.7 Sonnet and the Step-Back prompt achieved the highest overall accuracy (nDCG@3 of 0.628). However, Claude 3.7 Sonnet using the Baseline prompt achieved a nearly identical score of 0.621 at more than double the speed and a fraction of the cost.
- For Cost-Efficiency: For budget-constrained applications, using GPT-4.1-mini or Llama 3.3 70B combined with the Rephrase, Step-Back, or ReAct prompts emerged as the optimal strategy. For instance, GPT-4.1-mini with Rephrase achieved ~90% of the accuracy of premium models while slashing inference costs by 80%.
The trade-offs between accuracy and cost across different budget models are visualized below:
The broader model-agnostic trends across all datasets, confirming the robust performance of ReAct, Rephrase, and Step-Back, were validated using the LMEM framework:
Limitations and Future Work
The study focuses strictly on a single-user setting, meaning it does not leverage collaborative filtering data from other users, which is a staple of traditional recommender systems. Additionally, the evaluation was bounded by a fixed candidate size of 10 items; real-world systems often require reranking hundreds of candidates.
Future work could explore how these prompt engineering insights scale to larger candidate pools and how they interact with fine-tuned or parameter-efficient adapted recommendation models.
Summary updated