Pinterest 用 4B Qwen3 LLM 取代用户旅程聚类,报告称互动效果有所提升
原题Pinterest Replaces Journey Clustering with 4B Qwen3 LLM, Reports Improved Engagement
读前速览
Pinterest 用微调后的 4B Qwen3 LLM 取代了用于推断用户旅程的多阶段聚类流程,通过分析 360 天内最多 150 项用户操作来识别长期目标,使邮件点击率提高 1.1%,推送打开率提高 1.3%。
Pinterest 用微调后的 4B Qwen3 LLM 取代多阶段聚类流程来推断用户旅程。
新系统将旅程推断视为生成任务,模型读取 360 天内最多 150 项用户操作,并生成经过排序的旅程名称,取代了此前提取关键词、基于嵌入进行聚类并通过启发式方法排序的流程。
基于 LLM 的方法改善了互动指标,A/B 测试中邮件点击率提高 1.1%,推送打开率提高 1.3%。
团队通过并排对比和 LLM 评审来评估旅程质量;在美国和加拿大进行的线上实验也证实,互动率和留存率取得了具有统计显著性的提升,同时报告的指标也有所改善。
Pinterest 在 L40S GPU 上使用 NVIDIA Dynamo、vLLM、连续批处理和 PagedAttention 来优化推理吞吐量。
该架构在 vLLM 工作进程前部署 NVIDIA Dynamo,并利用连续批处理和感知前缀缓存的路由;同时跳过此前几天内已处理过的用户,避免不必要的推理。
训练数据由前沿模型合成生成,随后用于通过监督微调和 LoRA 微调较小的开源权重 Qwen3 模型。
Pinterest 测试了参数规模从 0.6B 到 8B 的模型,最终选择 4B 模型,以便在生产环境规模下平衡推理质量与服务吞吐量。
完整摘要
Pinterest 将用户旅程推断系统从多阶段聚类流程迁移到微调后的 4B 参数 Qwen3 语言模型。新方法将旅程推断视为生成任务:模型读取 360 天时间窗口内最多 150 项按时间顺序排列的用户操作,并生成经过排序的旅程名称。这取代了此前提取关键词、通过嵌入和层次聚类对其分组,再借助其他模型进行排序的方法。模型使用前沿模型生成的合成样例进行训练,并通过 LoRA 微调。在大规模部署中,Pinterest 在 L40S GPU 上的 vLLM 工作进程前部署 NVIDIA Dynamo,并使用连续批处理和 PagedAttention 提升效率。一项关键优化是跳过近期已处理过旅程的用户。在美国和加拿大进行的 A/B 测试显示,邮件点击率提高 1.1%,推送打开率提高 1.3%,互动率和留存率也取得了具有统计显著性的提升。这种方法与 Netflix 用于个性化推荐的基础模型工作类似,不过 Pinterest 生成的是明确的旅程描述,而非可复用的偏好表示。
Pinterest 已将其用户旅程推断系统从多阶段聚类流程迁移至经过微调的 40 亿参数语言模型,并报告称邮件点击率提升了 1.1%,推送消息打开量提高了 1.3%。Pinterest has moved its user-journey inference system from a multi-stage clustering pipeline to a fine-tuned 4-billion-parameter language model, reporting a 1.1% improvement in email click-through and 1.3% higher push opens.
该模型不会将关键词聚类为兴趣,而是分析用户的活动历史,识别其长期目标,并将这些历程纳入 Pinterest 现有的推荐基础设施。Rather than clustering keywords into interests, the model examines users' activity histories to identify longer-term goals and feeds those journeys into Pinterest's existing recommendation infrastructure.
Pinterest 将“旅程”定义为一个目标,它能在多个会话中串联起兴趣、意图和上下文。例如,正在翻新厨房的人可能会搜索橱柜设计、保存台面灵感,之后再浏览防溅板瓷砖或照明方案。这些互动共同表明用户正在进行一个连贯的项目,而非关注几个互不相关的兴趣。Pinterest defines a "journey" as a goal that connects interests, intent, and context across multiple sessions. Someone renovating a kitchen, for example, might search for cabinet designs, save countertop ideas, and later explore backsplash tiles or lighting. These interactions collectively suggest a coherent project rather than several unrelated interests.
/filters:no_upscale()/news/2026/11/pinterest-journey/en/resources/1Screenshot 2026-11-06 at 12.17.57 PM-1793998577935.png)
(“用户旅程”——来源:Pinterest)("User Journey" - Source: Pinterest)
该公司的旧系统从用户活动中提取关键词,使用嵌入向量和层次聚类对关键词进行分组,为生成的聚类命名,并通过额外的模型和多样性启发式方法对其进行排序。The company's previous system extracted keywords from user activity, grouped them using embeddings and hierarchical clustering, named the resulting clusters, and ranked them with additional models and diversity heuristics.
尽管与早期基于兴趣的通知相比,这种方法效果更好,但它可能会将相关活动拆分成彼此独立的流程,生成泛泛的标签,或将偶然的互动误判为持续的意图。Although effective compared with earlier interest-based notifications, the approach could fragment related activities into separate journeys, produce generic labels, or mistake incidental engagement for sustained intent.
新系统则将用户旅程推断视为一项生成任务。经过微调的 LLM 会读取用户在 360 天时间窗口内最多 150 条按时间顺序排列的操作记录,以及一份精简的用户档案,并生成一组按排名排序的旅程名称。搜索和收藏操作的权重高于偶然点击;提示词还会指示模型考虑互动的重复性、近期性和具体程度。The new system instead treats journey inference as a generation task. A fine-tuned LLM reads a chronological history of up to 150 user actions across a 360-day window, alongside a compact user profile, and generates a ranked set of journey names. Search and save actions carry more weight than incidental clicks, while the prompt instructs the model to consider repeated engagement, recency, and specificity.
/filters:no_upscale()/news/2026/11/pinterest-journey/en/resources/1Screenshot 2026-11-06 at 12.49.20 PM-1793998577935.png)
(“旅程推断”——来源:Pinterest)("Journey Inference" - Source: Pinterest)
此次整合将先前系统的大部分排序和筛选行为迁移到了提示词中。相关指令要求避免合并无关兴趣,过滤掉偶发活动和嘈杂的自动生成标签,并在缺乏足够证据表明存在有意义的探索路径时允许返回空结果。Pinterest 将这些指令的变更视为生产环境发布,而非简单的提示词修改。The consolidation moved much of the previous system's ranking and filtering behavior into the prompt. Instructions discourage unrelated interests from being merged, suppress one-off activity and noisy automatically generated tags, and allow an empty result where there is insufficient evidence of a meaningful journey. Pinterest treats changes to these instructions as production launches rather than simple prompt edits.
为了在没有大量人工标注数据集的情况下构建该系统,Pinterest 使用前沿模型,根据用户活动历史记录生成合成训练样例。随后,这些样例被用于通过监督微调和低秩适配(LoRA)对规模较小的开放权重 Qwen3 模型进行微调。To build the system without an extensive human-labelled dataset, Pinterest used frontier models to generate synthetic training examples from its user activity histories. These examples were used to fine-tune smaller open-weight Qwen3 models through supervised fine-tuning and low-rank adaptation (LoRA).
团队测试了参数量从 0.6B 到 8B 的模型,最终选择了 4B 模型,因为它在推理质量和服务吞吐量之间取得了平衡。The team tested models ranging from 0.6B to 8B parameters, selecting the 4B model for its balance of inference quality and serving throughput.
要在 Pinterest 的规模下运行最终模型,则面临另一项工程挑战。该公司在运行于 L40S GPU 上的 vLLM 工作节点前部署了 NVIDIA Dynamo,并采用连续批处理、PagedAttention 和前缀缓存感知路由来提升推理效率。Running the resulting model at Pinterest's scale presented a separate engineering challenge. The company deployed NVIDIA Dynamo in front of vLLM workers running on L40S GPUs, using continuous batching, PagedAttention, and prefix-cache-aware routing to improve inference efficiency.
(Journey Inference Architecture - Source: Pinterest)
然而,最大的吞吐量提升之一来自彻底避免不必要的推理。系统会跟踪每位用户上次生成旅程的时间,并跳过前几天内已处理过的用户。However, one of the largest throughput improvements came from avoiding unnecessary inference altogether. The system tracks when each user's journeys were last generated and skips users processed within the preceding couple of days.
Pinterest 通过并排比较、由独立的 LLM 评审员评估相关性及用户活动所提供的支持,以及在线实验来衡量用户旅程质量。在美国和加拿大开展的初期 A/B 测试显示,与基于聚类的系统相比,电子邮件点击率提高了 1.1%,推送通知打开率提高了 1.3%,同时互动和留存率也取得了具有统计显著性的提升。Pinterest evaluates journey quality through side-by-side comparisons, a separate LLM judge assessing relevance and support from user activity, and online experiments. Initial A/B testing in the US and Canada produced the reported 1.1% email click-through and 1.3% push-open improvements over the clustering-based system, alongside statistically significant engagement and retention gains.
这种方法与 Netflix 在个性化推荐基础模型方面的工作有相似之处。Netflix 曾介绍过,如何从会员的长序列交互中学习,构建可供下游推荐模型复用的表征。The approach has parallels with Netflix's work on foundation models for personalised recommendations. Netflix has described learning from long sequences of member interactions to create representations that can be reused by downstream recommendation models.
Netflix 专注于可复用的偏好表征,Pinterest 则生成明确的用户旅程描述;两种方法都利用长期行为历史来丰富现有的个性化基础设施,而非彻底取而代之。While Netflix focuses on reusable preference representations and Pinterest generates explicit journey descriptions, both approaches use longer-term behavioural histories to enrich existing personalisation infrastructure rather than replace it entirely.