Manuscript Offprint

arXiv:2611.08804

Generative Search and Recommendation at Shopify

Juhana Kangaspunta, Khalil Hajji, Darshan Fofadiya, Kyumin Park, Michael Garner, Anthony Maltsev, Ryan Synk, Jose Sepulveda, Joshua Crisologo, Shuying Sun, Akshay Soni

Abstract

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.

1 Introduction

Search and recommendation connect buyers with relevant products across Shopify’s large and diverse catalog across millions of merchants on their web storefront, Shopify-built Shop App, and Shopify’s Catalog API designed for conversational commerce and AI agents. Both require understanding products and their relevance to a particular buyer at the scale of billions of products with very low latency.

We present SID-LLM, a generative model for search and recommendation. It represents products as semantic IDs (SIDs), short sequences of content-derived tokens, and learns to generate relevant identifiers from the context available for each task. This gives search and recommendation a shared formulation and allows us to investigate unifying them within one model.

This report describes SID-LLM from semantic-ID tokenization and training through production integration. We study the choices that determine retrieval quality and serving cost, and explore distillation from task experts into a unified student. Adding SID-LLM provides significant gains in both online and offline evaluations of Shopify’s search and recommendation stacks while meeting strict latency requirements for online serving.

*Equal contribution. †Liquid AI. ‡Project supervision.

Figure

Figure 1. Overview of SID-LLM.

References (74)