Generative Search and Recommendation at Shopify was submitted to arXiv on 2026-11-05 by Juhana Kangaspunta, Khalil Hajji, Darshan Fofadiya, Kyumin Park, Michael Garner, Anthony Maltsev and others. Read it on arXiv or as a PDF.
Key findings
- In an online A/B test on Shopify’s Shop app home feed, adding SID-LLM with a joint-probability decoder increased attributed orders by 7.95%, converting users by 8.60%, and conversion rate by 9.85%.
- In offline recommendation evaluation across 70,747 users with held-out purchases, SID-LLM (LFM2-2.6B) achieved a Recall@50 of 24.61% and an incremental pool recall of 2.65 percentage points, which was 61% higher than recent engagement (1.64 percentage points).
- In offline search ablations using evaluation protocol E6, the full search stack with SID-LLM achieved a OneDCG@10 of 0.32690 on combined queries and 0.35718 on personalized search queries.
- Fitting residual k-means on the 25 million highest gross merchandise value products with an 8192-8192-8192 codebook reached a OneDCG@10 of 0.3945 under evaluation protocol E1.
- Pairing multi-token prediction with a 350-million-parameter ranker allowed the search pipeline to serve requests with lower latency across offered loads than autoregressive beam decoding while exceeding its retrieval quality.
The main takeaway. Representing catalog items as hierarchical semantic IDs enables a single generative language model architecture to retrieve products for both search and recommendation while meeting production latency constraints.
The abstract, as written
Search and recommendation at Shopify require retrieving relevant products from a changing catalog of billions of products under strict latency constraints. We present SID-LLM, which casts both tasks as generating semantic IDs: short sequences of content-derived tokens representing products. We jointly pre-train SID-LLM on catalog and behavioral data, giving search and recommendation a shared representation and training objective. We show that reinforcement learning further improves judged search relevance. Furthermore, distillation from task-specific experts improves recommendation quality over joint supervised fine-tuning without a statistically detected loss in search quality. Finally, for efficient serving, we pair multi-token prediction with a lightweight ranker, improving retrieval quality over our autoregressive baseline while reducing latency. We evaluate SID-LLM both as a standalone retriever and as a component of Shopify’s production search and recommendation systems. As a standalone search system, SID-LLM achieves quality comparable to Shopify’s existing multi-model search stack while meeting production latency requirements. Integrating SID-LLM into the search and recommendation stacks provides significant gains in both offline evaluations and online A/B tests. Together, these results demonstrate the practical value of semantic-ID generation as a unified approach to product discovery at scale.
Key terms
- Semantic ID (SID): A compact sequence of discrete tokens produced by quantizing product embeddings, allowing related items to share token prefixes.
- RQ-KMeans: Residual k-means clustering, an algorithm that quantizes vector embeddings iteratively across multiple stages to build discrete hierarchical codebooks.
- Multi-Token Prediction (MTP): A decoding technique where all levels of an identifier are predicted simultaneously in one forward pass rather than token by token.
- Incremental Pool Recall: The reduction in candidate pool recall that occurs when removing a specific candidate generator from the retrieval blend.
- OneDCG@10: A search ranking metric that normalizes the discounted cumulative gain of scored gains by a theoretical maximum gain score of 100.
From the paper
Online experiments confirmed significant business improvements on the Shop app home feed.
We ran an A/B test on our home feed using SID-LLM with the joint-probability decoder ( Sections 7.2 and 19 ). On the impacted surface, adding SID-LLM raised attributed orders by 7.95%, converting users by 8.60% and conversion rate by 9.85%. All three lifts are significant after Dunnett correction ( Dunnett, 1955 ) .
Offline candidate pool evaluations demonstrated that SID-LLM added unique relevant products beyond existing recommendation generators.
We evaluate on 70,747 users with a purchase in the held-out week. We compare it with recent engagement, which recommends products the buyer has recently interacted with, and HSTU ( Zhai et al., 2024 ) , a generative recommender over item IDs. SID-LLM adds more to the pool than any other generator. Its incremental pool recall is 2.65 points, 61% more than recent engagement, the second-best candidate generator by incremental pool recall (1.64 points).
The authors observed that SID-LLM achieved standalone performance comparable to an entire multi-model system.
As a standalone search system, SID-LLM achieves quality comparable to Shopify’s existing multi-model search stack while meeting production latency requirements. Integrating SID-LLM into the search and recommendation stacks provides significant gains in both offline evaluations and online A/B tests.
Figures from the paper
The trade-off curves demonstrate how different distillation and fine-tuning approaches balance search relevance against recommendation recall.
Figure from the paper, arXiv:2611.08804, by its authors. Caption as written: Figure 4 : Search against recommendation Pareto frontier, as change (%) from joint SFT at the origin, with 95% paired-bootstrap whiskers: (a) Recall@50 against OneDCG@10, (b) Recall@50 against purchase Recall@10, (c) discovery Recall@50 against OneDCG@10. Hollow markers: full fine-tuning. For a full sweep over model merges see Figure 9 .
What the authors say it means
- Generative retrieval using discrete semantic IDs provides a viable alternative to dual-tower vector indexing and atomic identifier sequence models.
- Unifying search and recommendation within a shared pre-trained backbone reduces operational fragmentation across multi-merchant discovery surfaces.
- Multi-token prediction combined with a specialized re-ranker resolves the latency bottlenecks typical of autoregressive generative search.
What to do with it
- Construct semantic ID codebooks using high gross merchandise value catalog subsets rather than uniform random sampling. Supported by: Residual k-means fitted on the top 25 million gross merchandise value products achieved higher downstream search relevance than random sampling in both tested codebook shapes.
- Deploy multi-token prediction alongside a lightweight re-ranker when serving generative search under strict latency limits. Supported by: Multi-token prediction with the 350-million-parameter ranker outperformed autoregressive decoding on both top-10 metrics while maintaining lower latency across all tested request rates.
- Evaluate candidate retrieval models using leave-one-out incremental pool recall on held-out conversion logs. Supported by: Incremental pool recall isolated SID-LLM’s distinct contribution of 2.65 percentage points on a test set of 70,747 purchasing users.
Caveat. Results are derived within Shopify’s proprietary commerce catalog, and absolute offline scores varied substantially across evaluation protocols, relevance judges, and inference versions.
In short
Shopify evaluated SID-LLM as a unified generative model for product search and recommendation. The model uses residual k-means semantic IDs to generate candidate products from text queries and user interaction sequences. Both offline benchmarks and production A/B tests showed measurable gains in search relevance, candidate recall, and purchase conversion.
Written from the paper's own text. Quoted passages are verbatim and the numbers are the authors' own. For the method and full results, read the paper.