INQUIRING LINE

Should an AI predicting whether you'll like a surprise recommendation see more of your rating history, or does that just feed it bad data?

How much rating history should prompts include for best serendipity detection?

This explores how much of a user's past movie or product ratings you should put into an LLM prompt when asking it to judge whether a recommendation would feel like a pleasant surprise, and whether more history actually helps.


This explores how much of a user's past rating history belongs in a prompt when you ask an LLM to judge whether a recommendation would feel serendipitous, meaning surprising and still welcome. The direct answer is that the collection has no study that varies history length and measures the result. What it does have suggests the question may be aimed at the wrong lever. The main serendipity study found that LLMs beat baseline methods at classifying serendipitous movie recommendations but agreed only weakly with human judgments Can language models reliably judge whether recommendations feel serendipitous?. The gap didn't come from too little context. It came from bias in the upstream recommender's ratings, which pushed the models to call too many things serendipitous. If the history you feed in is already skewed, adding more of it may only strengthen the skew.

The same line of work shows a second problem. The prompts with the best scores were the ones whose reasoning was hardest to explain Why do high-performing LLM serendipity classifiers resist interpretation?. The authors found a lean toward positive verdicts but couldn't trace why the top prompts worked. So even if a certain amount of history helps, you may not be able to tell whether it helps because the model is reading the user's tastes or because it is picking up a habit of saying yes. That matters when you're tuning prompts: a better score is not proof of better judgment.

Looking sideways, two other strands give practical hints. Research on prompt compression shows that not every part of a prompt is equally valuable Can prompts be compressed without losing model performance?. Instructions and the question itself should be kept close to full, while example-like material can be cut heavily with little loss of accuracy. A long rating history plays the role of example material, so a short, well-chosen slice may do as well as the full record. At the other extreme, work on explainable recommendations for users with few ratings found that bringing in related reviews from outside the user's own history filled the gap better than any trick inside the model Can retrieval enhancement fix explainable recommendations for sparse users?. This hints that for thin histories the fix is richer context, not just more rows of ratings.

The last caution is that the right amount of context probably depends on the model. A benchmark of 23 prompt styles across 12 LLMs found that techniques which help cheap models can hurt strong ones, and step-by-step reasoning actually lowered accuracy in top-tier models Do prompt techniques work the same across all LLM tiers?. A history length that suits a small model may just be noise for a large one, so it's worth testing per model rather than looking for one universal number.

The surprising takeaway: when an LLM judges serendipity, the quality and bias of the ratings it sees probably matter more than how many there are. A modest, debiased, carefully chosen history is a better bet than an exhaustive one.


Sources 5 notes

Can language models reliably judge whether recommendations feel serendipitous?

Three LLMs outperformed baseline methods on accuracy when classifying serendipitous movie recommendations, yet showed only weak agreement with human ground truth. The gap stems from LLMs over-predicting serendipity due to bias in upstream recommender ratings.

Why do high-performing LLM serendipity classifiers resist interpretation?

The paper shows that LLM prompts achieving the best F1 scores on serendipity classification are precisely those whose reasoning resists decomposition through the paper's standard interpretive framework. The authors identify a behavioral bias toward positive assessments but do not resolve the interpretability gap itself.

Can prompts be compressed without losing model performance?

LLMLingua achieves up to 20x prompt compression with only 1.5-point performance drops by allocating less compression to instructions and questions, more to demonstrations, then pruning tokens using a small model's perplexity scoring aligned to the target LLM.

Can retrieval enhancement fix explainable recommendations for sparse users?

ERRA combines model-agnostic review retrieval with personalized aspect selection to address data sparsity that embedded methods cannot solve. Retrieval augmentation provides richer signal when user history is sparse, while aspect personalization ensures explanations match user context rather than generic defaults.

Do prompt techniques work the same across all LLM tiers?

A 23-prompt benchmark across 12 LLMs shows rephrasing and background-knowledge prompts boost cheap models, while step-by-step reasoning reduces accuracy in high-performance models. Task structure, not generic best practices, determines which prompts help.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.