Generative Search and Recommendation at Shopify(Shopify 的生成式搜索与推荐系统)于 2026-11-05 提交到 arXiv,作者 Juhana Kangaspunta, Khalil Hajji, Darshan Fofadiya, Kyumin Park, Michael Garner, Anthony Maltsev 等。去 arXiv 读原文,或下载 PDF。
主要发现
- 在 Shop 应用程序首页信息流的线上 A/B 测试中,加入带有联合概率解码器的 SID-LLM 后,归因订单量增加了 7.95%,转化用户数增加了 8.60%,转化率提升了 9.85%(经 Dunnett 校正后均显著)。
- 在对 70,747 名在测试周产生购买的用户进行的线下推荐评测中,SID-LLM(LFM2-2.6B)的 Recall@50 达到 24.61%,增量候选池召回率为 2.65 个百分点,是表现第二的近期互动生成器(1.64 个百分点)的 1.61 倍(高出 61%)。
- 在评测协议 E6 的搜索消融实验中,包含 SID-LLM 的完整搜索系统在综合查询中的 OneDCG@10 达到 0.32690,在个性化搜索中达到 0.35718。
- 基于商品交易总额前 2500 万件商品训练的 8192-8192-8192 残差 K 均值分词器,在评测协议 E1 下取得了 0.3945 的 OneDCG@10。
- 将多标记预测与 3.5 亿参数的轻量重排器结合,在多种请求压力下比自回归束搜索降低了服务延迟,同时提高了检索指标。
最重要的一点。 将商品目录映射为分层语义 ID,使单一语言模型能够同时处理搜索与推荐检索,并在工业级延迟约束下提升转化表现。
摘要
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.
译文:Shopify 的搜索与推荐系统必须在严格的延迟限制下,从包含数十亿动态商品的目录中检索出相关商品。我们提出了 SID-LLM,将这两项任务建模为生成语义 ID(即代表商品的短序列内容衍生标记)。我们在商品目录和用户行为数据上联合预训练 SID-LLM,为搜索和推荐提供了统一的表征和训练目标。我们证明,强化学习进一步提高了评测的搜索相关性。此外,相比联合监督微调,从特定任务专家模型中蒸馏提升了推荐质量,且未在搜索质量上检测出统计学损失。最后,为了实现高效服务,我们将多标记预测与轻量级重排器相结合,在降低延迟的同时提高了检索质量,超越了自回归基线。我们在独立检索器以及 Shopify 线上搜索与推荐系统组件两个层面评估了 SID-LLM。作为一个独立的搜索系统,SID-LLM 在满足线上服务延迟要求的同时,取得了与 Shopify 现有复合模型搜索架构相当的质量。将 SID-LLM 集成到搜索和推荐架构中,在线下评测与线上 A/B 测试中均带来了显著收益。这些结果共同证明了语义 ID 生成作为规模化商品发现统一方法的实用价值。
关键术语
- 语义 ID (Semantic ID):通过量化商品向量得到的分层离散标记序列,相似商品会在序列前缀中共享相同的标记。
- 残差 K 均值 (RQ-KMeans):一种逐级量化向量残差的聚类方法,用来构建多层离散码本。
- 多标记预测 (Multi-Token Prediction):一次前向传播同时预测商品标识符的所有层级标记,避免逐标记逐步生成的延迟。
- 增量候选池召回率 (Incremental Pool Recall):从多路召回池中移除某个特定生成器后,总体候选池购买召回率下降的差值。
- OneDCG@10:以理论最大得分 100 归一化的折损累计增益指标,用于衡量前十项返回结果的绝对相关性。
论文原文
在线 A/B 测试表明,新模型为 Shop 首页信息流带来了显著的商业指标增长。
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 ) .
译文:我们在首页信息流上对采用联合概率解码器的 SID-LLM 进行了 A/B 测试。在受影响的页面上,加入 SID-LLM 使归因订单增加了 7.95%,转化用户增加了 8.60%,转化率提升了 9.85%。经过 Dunnett 校正后,这三项提升均达到显著水平。
线下推荐候选池测试显示,SID-LLM 找回了其他生成器未覆盖的购买商品。
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).
译文:我们在保留周内有购买记录的 70,747 名用户上进行了评估。我们将其与推荐买家近期互动商品的近期互动基线,以及基于物品 ID 的生成式推荐模型 HSTU 进行了对比。SID-LLM 为候选池带来的增量超过了任何其他生成器。其增量候选池召回率为 2.65 个百分点,是增量候选池召回率第二高的近期互动生成器(1.64 个百分点)的 1.61 倍(高出 61%)。
作者指出,SID-LLM 单独运行的表现可以匹敌传统的多模型搜索架构。
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.
译文:作为一个独立的搜索系统,SID-LLM 在满足生产延迟要求的同时,达到了与 Shopify 现有复合模型搜索架构相当的质量。将 SID-LLM 整合到搜索和推荐架构中,在线下评估和线上 A/B 测试中都带来了显著收益。
论文里的图
帕累托前沿曲线展示了不同蒸馏和微调方案在搜索相关性与推荐召回率之间的权衡关系。
图来自论文 arXiv:2611.08804,版权归作者。原图说明: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 .
作者自己说的含义
- 利用离散语义 ID 的生成式检索,能够有效替代传统的双塔向量索引和独立物品 ID 序列预测方法。
- 将搜索和推荐任务统一到同一个预训练骨干模型中,能够减少多商户发现平台在工程和系统层面的分散性。
- 多标记并行预测与轻量重排器配合,可以解决自回归生成在在线搜索时的推理延迟问题。
可以怎么做
- 在构建语义 ID 码本时优先采样高交易额商品,不要使用完全随机的商品采样。 依据:在两种测试码本结构下,基于交易额前 2500 万商品训练的残差 K 均值分词器均取得了高于随机采样的下游搜索相关性。
- 在有低延迟要求的生成式搜索场景中,使用多标记预测搭配轻量重排器代替自回归解码。 依据:多标记预测配合 3.5 亿参数重排器在两项前十检索指标上均超过自回归基准,并在测试请求负载下降低了端到端延迟。
- 在多路推荐系统中采用留一法增量候选池召回率来评估单个生成器的真实新增贡献。 依据:在 70,747 名真实购买用户的测试集中,留一法准确测出 SID-LLM 提供了 2.65 个百分点的独立召回贡献。
注意。 本研究的所有实验均在 Shopify 专有电商目录与特定流量分布下完成,且线下评测指标随评测协议版本和裁判模型的调整存在明显变动。
一句话
Shopify 提出了 SID-LLM 模型,将商品搜索和推荐统一为生成商品语义 ID 的任务。通过残差 K 均值离散化和多标记预测,该系统在保证极低线上延迟的同时实现了候选检索。线下指标和线上 A/B 测试均表明,该方法显著提升了搜索相关性和推荐订单转化率。
这篇解读根据论文原文写成。引用的段落是原话,数字都是作者自己报告的。方法和完整结果请读论文。