Problem
Music, podcast and audiobook recommendations usually show only cover art and a title. Users judge new items by familiarity with the artist or genre, so unfamiliar and niche content gets few clicks. Spotify wanted a short, personal line next to each recommendation that explains why it might fit. An off-the-shelf LLM writing that text brings four problems: inconsistent style, unsafe output, hallucinated facts and weak personalization.
Example from the article: a new-release card for an artist the user follows carries a line such as "Dead Rabbitts' latest single is a metalcore adrenaline rush!".
Solution in brief
Spotify takes an open-source LLM (Llama) as a backbone and adapts it to its domain. Expert editors supply golden examples and ongoing feedback, which is combined with prompt engineering, instruction tuning and adversarial testing. Fine-tuned smaller Llama models also write commentary for the AI DJ feature. Online tests show higher clicks on items that carry explanations.
Questions this case answers
- How to attach generated, user-facing context to ranked items and keep its style, factual accuracy and safety under control
- How to adapt one open-weight language model to many in-house tasks while checking that general capability does not degrade
- How to add short LLM-written explanations to recommended items so users click more often?
- How to keep LLM-generated recommendation text accurate, on-brand and safe?
Tools and methods
- Llama (open-source LLM) — backbone model, fine-tuned for explanations and DJ commentary
- Human-in-the-loop editing — editors write golden examples and flag attribution, tone and factual errors
- Instruction tuning, RLHF, DPO — domain adaptation steps on curated data
- vLLM, Ray, MLflow — serving and training infrastructure
- MMLU — guardrail benchmark for general capability
Google or a one-time email code. No password.