TL;DR
Researchers at Spotify have developed CtrlQGen, a controllable query generation framework designed to break the "popularity bias" cycle in search engines. By generating synthetic queries with specific intents (narrow vs. broad), they can train retrieval models that surface a much wider variety of content, making up to 12% more of the catalog discoverable without sacrificing search accuracy.
What Problem Does This Paper Address?
Most modern search engines are trained on user click logs. While this makes them great at finding exactly what you ask for (e.g., searching "Harry Potter" to find the book), it creates a massive retrievability bias. Because users mostly issue "narrow intent" queries for popular items, machine-learned models learn to surface those same few items over and over again.
This leaves a "long tail" of content—like niche podcasts or indie tracks—virtually invisible to the search engine. If there are no queries that lead to an entity being surfaced in the top results, that entity has zero retrievability. The authors argue that for a search engine to act as a discovery tool, it must be able to handle "broad intent" queries (e.g., "chill lyrical electronica with an atmospheric feeling") and ensure that a diverse range of the catalog is actually reachable.
Methods
The authors propose CtrlQGen, a pipeline that transforms structured entity metadata into synthetic search queries. The process involves three main steps:
- Serialization: Converting an entity's metadata (title, genre, description, etc.) into a single string that a language model can process.
- Weak Labeling: To avoid the need for expensive manual annotations, they use heuristics to generate query-intent pairs.
- Narrow queries are generated from fields like "Title" or "Artist."
- Broad queries are generated from "Genre," "Description," or "User Reviews," often using TF-IDF sampling or summarization to pick the most descriptive terms.
- Intent-aware Generation: They fine-tune a T5 (Text-to-Text Transfer Transformer) model to generate queries based on the serialized entity and a control code (e.g., "Generate a broad query from: [entity]").
The resulting synthetic queries are used in two ways:
- Training the Ranker: Fine-tuning a Bi-Encoder (dense retrieval model) on a balanced set of synthetic queries to ensure the model learns a more uniform distribution of the embedding space.
- Query Suggestion: Nudging users toward broader intents by suggesting synthetic broad queries during the search process.
Datasets
The study evaluates CtrlQGen across three distinct domains:
- Tracks: A large-scale internal Spotify dataset of music tracks.
- Podcasts: An internal Spotify dataset of podcast episodes and transcripts.
- Books: A subset of the public Goodreads dataset, including user reviews and descriptions.
For evaluation, they used standard click logs for narrow intent and created specialized "broad query" test sets (Tracksbroad and Podcastsbroad) consisting of exploratory queries that don't explicitly name the target entity.
Key Insights and Ideas
- Breaking the Feedback Loop: Click logs are inherently biased toward what the system already surfaces. Synthetic queries allow the model to "see" potential connections between broad concepts and niche content that users haven't yet discovered.
- Intent Control is Crucial: Simply generating more queries isn't enough. By explicitly controlling for "broad" intent, the authors force the model to learn semantic relationships rather than just keyword matching.
- Metadata as a Goldmine: The paper demonstrates that even simple serialization of existing metadata (like user reviews or podcast transcripts) provides enough signal for LLMs to generate highly effective synthetic training data.
Key Results
- Reduced Bias: Models trained with CtrlQGen queries showed a 10% average decrease in Gini coefficient (a measure of statistical dispersion), indicating a much fairer distribution of retrievability across the catalog.
- Increased Discovery: In the Tracks dataset, 9% of entities moved from "zero retrievability" to being retrievable.
- Better Broad Search: For exploratory queries, the CtrlQGen-trained models outperformed standard click-trained models by 111% in Recall@100 for the music domain.
- Query Suggestions Work: Simulating the acceptance of broad query suggestions showed that the system could make up to 12% more of the catalog retrievable in the best-case scenario.
Limitations and Future Work
While CtrlQGen significantly improves retrievability, the authors note several areas for further exploration:
- Recommendation Interplay: The study focuses on search, but in many platforms, search and recommendation systems interact. How retrievability in one affects the other remains an open question.
- Cold Start Entities: Generating high-quality queries for entities with very little metadata (e.g., a brand-new podcast with no description) is still a challenge.
- Re-ranking: The current work focuses on the first-stage retriever. Future work could investigate how these synthetic queries impact the final re-ranking stages of a search pipeline.
Summary updated