TL;DR
Spotify researchers have introduced GLIDE, a production-scale generative recommender system designed to boost podcast discovery. By representing audio episodes as discrete "Semantic IDs" and injecting long-term user preferences via soft prompts, GLIDE turns recommendation into a controllable instruction-following task. In live A/B tests involving millions of users, it increased new-show discovery by up to 14.3% while comfortably meeting strict production latency constraints.
What Problem Does This Paper Address?
Podcast listening is notoriously habit-driven; users frequently return to the same shows week after week. While this creates strong user loyalty, it makes discovery—surfacing new, relevant shows that match a user's evolving interests—incredibly difficult for traditional recommender systems.
Standard sequential recommenders (like SASRec) rely on atomic item IDs, which struggle with sparse interaction data, long-tail content, and cold-start scenarios (newly published episodes). On the flip side, Large Language Models (LLMs) possess the semantic reasoning capabilities to understand complex user contexts and content themes, but deploying them in production introduces massive hurdles: catalog grounding (ensuring the LLM generates valid items), user personalization without inflating prompt lengths, and strict latency requirements for real-time serving.
Methods
GLIDE (Grounded LLM for Interest Discovery rEcommendations) addresses these challenges through a novel architecture that frames recommendation as an instruction-following task over a discretized catalog.
- Semantic IDs (SIDs): Instead of using raw text or arbitrary database IDs, GLIDE represents each podcast episode as a short sequence of discrete tokens (SIDs). Continuous content embeddings (generated from episode titles and descriptions) are quantized using Residual K-Means (R-KMeans) into a 4-token sequence, creating a hierarchical, coarse-to-fine semantic structure.
- Two-Stage Training:
- Semantic Grounding: The base LLM (a 1B-parameter Llama 3.2 variant) is trained on a bidirectional translation task—translating SIDs to text descriptors and vice versa using LoRA. This teaches the model to "speak" the catalog's language without destroying its pre-trained knowledge.
- Instruction Tuning: The model is fine-tuned to follow specific recommendation prompts. Crucially, it includes a control token (
familiarvs.unfamiliar) to explicitly steer the model toward either "pure discovery" or "familiar discovery." - Soft Prompt Personalization: To avoid clogging the text prompt with a user's entire listening history, GLIDE projects a dense collaborative-filtering user embedding into the LLM's hidden dimension using a 2-layer MLP. This single "soft prompt" token is prepended to the input sequence, providing deep personalization efficiently.
- Serving Optimization: At inference time, GLIDE uses Beam Search (30 beams) to generate candidate sequences, resolving any token collisions (multiple episodes mapping to the same SID) using a daily updated, popularity-based tie-breaker.
Datasets
The model was trained and evaluated using internal Spotify interaction logs:
- Offline Evaluation: Datasets were constructed from a 7-day sliding window of streaming logs, using a user-based split to evaluate non-habitual listening habits.
- Online A/B Testing: Conducted over 21 days in English-speaking markets, exposing the model to millions of active users and generating approximately 20 million impressions per experimental cell.
Key Insights and Ideas
- Simplicity Wins in Quantization: While deep neural quantizers like RQ-VAE or R-LFQ sound elegant in theory, the authors found that standard Residual K-Means (R-KMeans) performed significantly better (+9.52% HitRate@30 over RQ-VAE) and offered much higher semantic consistency within token buckets, all while avoiding training instabilities like codebook collapse.
- Controllable Discovery via Multi-Tasking: Training a single model with explicit control tokens prevents the system from collapsing toward the dominant, safer mode of recommending familiar items. Swapping the token at inference time successfully shifts the generation distribution on command.
- Beam Search is Non-Negotiable: Moving from beam search to greedy decoding caused a massive 27.07% drop in Recall@30. Analysis showed that while simpler sampling can find the right coarse semantic region (the first two tokens), beam search is required to navigate the fine-grained, exact identifiers at the end of the sequence.
Key Results
GLIDE demonstrated substantial improvements across both offline and online environments:
- Offline Performance: As shown in the evaluation metrics, GLIDE achieved a +29.9% improvement in Recall@30 and a +31.2% improvement in NDCG@30 overall compared to a baseline SID-only model. The gains were most pronounced in the difficult "Non-Habitual and Unfamiliar" discovery segment.
- Online A/B Test Impact: When deployed on the Spotify Home surface, GLIDE drove a 5.4% increase in non-habitual podcast streams and a 14.3% lift in new-show discovery, without regressing overall user engagement metrics.
- Alignment Over Time: The team utilized an automated LLM-judge to evaluate qualitative alignment, showing steady improvement throughout the development cycle.
Limitations and Future Work
While highly successful, the authors note a few areas for improvement:
- Collision Resolution: The current popularity-based tie-breaker for SID collisions is pragmatic but simple; future iterations could benefit from a more context-aware ranking step.
- Broader Control: The authors plan to extend language-conditioned control to handle other constraints beyond familiarity, such as episode length, format, or specific topical themes.
- World Knowledge: Further research is needed to understand exactly how the grounded LLM leverages its pre-trained world knowledge during the recommendation process.
Summary updated