Shopify built a shared generative model for search and recommendation. It uses semantic-ID tokens to represent products in a billion-item catalog. The model trains jointly on search and recommendation data. It improves recommendation metrics on the Shop home feed by up to 9.85%. Search quality gains 2.1 points in OneDCG@10 overall. Signed-in users see a 2.7-point gain in OneDCG@10. A quarter of queries show better top-10 relevance. The model uses RQ-KMeans to create three-token semantic IDs. It deploys Liquid AI’s LFM2-2.6B for low-latency serving. Constrained decoding ensures valid product codes. Reinforcement learning refines retrieval quality. Multi-teacher distillation combines specialized experts into one shared model. The system is live in production.
What changed
Separate models and rule-based systems handled search and recommendation independently.
What it unlocks
A single model generates product candidates for both search and recommendation with shared commerce knowledge.
- +7.95% orders on Shop home feed
- +8.60% converters on Shop home feed
- +9.85% conversion rate on Shop home feed
- +2.65pp Incremental Pool Recall
What you need to act on it
- Shopify’s product catalog and buyer interaction data
- Liquid AI’s LFM2-2.6B base model
- RIPL inference stack for serving
Sources