Pinterest 已将其用户旅程推断系统从多阶段聚类流水线改为经过微调的 40 亿参数语言模型,并报告称电子邮件点击率提升了 1.1%,推送消息打开率提升了 1.3%。
该模型不再将关键词聚类为兴趣,而是分析用户的活动历史,识别长期目标,再将这些旅程送入 Pinterest 现有的推荐基础设施。
Pinterest 将“旅程”定义为跨越多个会话、连接兴趣、意图和情境的目标。例如,一个正在翻新厨房的人可能先搜索橱柜设计、保存台面创意,随后又查看防溅板瓷砖或照明方案。这些互动共同指向一个连贯的项目,而不是几项互不相关的兴趣。
该公司此前的系统会从用户活动中提取关键词,使用嵌入和层次聚类将其分组,为生成的聚类命名,再通过其他模型和多样性启发式规则对其排序。
尽管与更早基于兴趣的通知方式相比,这种方法是有效的,但它可能把相关活动拆分为不同旅程,生成笼统的标签,或将偶然的互动误判为持续的意图。
新系统则将旅程推断视为生成任务。经过微调的大语言模型会读取 360 天内最多 150 项用户行为的时间顺序记录,以及一份精简的用户画像,然后生成按优先级排序的旅程名称。搜索和保存行为的权重高于偶然点击;提示词则要求模型考虑重复互动、近期行为和具体程度。
此次整合将旧系统中大量排序和过滤行为移入提示词。指令要求模型避免合并无关兴趣,排除一次性行为和有噪声的自动生成标签,并在缺乏足够证据证明存在有意义的旅程时允许返回空结果。Pinterest 将这些指令的变更视为生产环境上线,而不是简单的提示词修改。
为了在没有大规模人工标注数据集的情况下构建系统,Pinterest 使用前沿模型,根据用户活动历史生成合成训练样本。这些样本随后用于通过监督微调和低秩适配(LoRA)微调参数量较小的开放权重 Qwen3 模型。
团队测试了参数量从 6 亿到 80 亿的模型,最终选择了 40 亿参数模型,以兼顾推断质量和服务吞吐量。
在 Pinterest 的规模下运行该模型又带来了另一项工程挑战。该公司在运行于 L40S GPU 上的 vLLM 工作节点前部署了 NVIDIA Dynamo,并使用连续批处理、PagedAttention 和前缀缓存感知路由来提高推理效率。
不过,吞吐量提升幅度最大的措施之一,是直接避免不必要的推理。系统会记录每位用户的旅程上次生成的时间,并跳过此前几天内已经处理过的用户。
Pinterest 通过并排比较、由另一个大语言模型担任评判者以评估旅程与用户活动的相关性及其依据,以及在线实验来评估旅程质量。美国和加拿大的初步 A/B 测试显示,与基于聚类的系统相比,电子邮件点击率和推送消息打开率分别提升了上述 1.1% 和 1.3%;互动和留存指标也取得了具有统计显著性的提升。
这种方法与 Netflix 在个性化推荐基础模型方面的工作有相似之处。Netflix 曾介绍如何从用户的长序列互动中学习,生成可供下游推荐模型复用的表示。
Netflix 侧重于可复用的偏好表示,Pinterest 则生成明确的旅程描述;但两者都利用更长期的行为历史来增强现有的个性化基础设施,而不是将其完全替换。
原文链接:
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
Pinterest has moved its user journey inference system from a multi-stage clustering pipeline to a fine-tuned 40 billion-parameter language model, reporting a 1.1% lift in email click-through rate and a 1.3% lift in push notification open rate.
Rather than clustering keywords into interests, the new model analyzes a user's activity history, identifies long-term goals, and feeds those journeys into Pinterest's existing recommendation infrastructure.
Pinterest defines a "journey" as a goal that spans multiple sessions, connecting interests, intent, and context. For example, someone renovating a kitchen might first search for cabinet designs, save countertop ideas, and later look at backsplash tiles or lighting options. These interactions collectively point to a coherent project rather than several unrelated interests.
The company's prior system extracted keywords from user activity, grouped them using embeddings and hierarchical clustering, named the resulting clusters, and then ranked them through additional models and diversity heuristics.
While effective compared to earlier interest-based notification approaches, this method could split related activities into different journeys, produce overly broad labels, or misjudge incidental interactions as sustained intent.
The new system frames journey inference as a generative task. A fine-tuned large language model reads an ordered sequence of up to 150 user behaviors over 360 days, along with a condensed user profile, and generates prioritized journey names. Searching and saving actions are weighted more heavily than casual clicks; the prompt instructs the model to consider repeated interactions, recent behavior, and specificity.
This integration moves much of the ranking and filtering logic from the old system into the prompt. Instructions direct the model to avoid merging unrelated interests, exclude one-off behaviors and noisy auto-generated labels, and allow empty results when there isn't sufficient evidence of a meaningful journey. Pinterest treats these instruction changes as production deployments, not mere prompt tweaks.
To build the system without a large manually annotated dataset, Pinterest used frontier models to generate synthetic training samples based on user activity history. These samples were then used to fine-tune a smaller open-weight Qwen3 model via supervised fine-tuning and low-rank adaptation (LoRA).
The team tested models ranging from 600 million to 8 billion parameters and ultimately selected the 4 billion-parameter model to balance inference quality with serving throughput.
Running the model at Pinterest's scale introduced another engineering challenge. The company deployed NVIDIA Dynamo in front of vLLM worker nodes running on L40S GPUs, employing continuous batching, PagedAttention, and prefix-cache-aware routing to improve inference efficiency.
One of the most impactful throughput gains came from simply avoiding unnecessary inference. The system records when each user's journey was last generated and skips users who have already been processed in preceding days.
Pinterest evaluated journey quality through side-by-side comparisons, LLM-as-a-judge assessments of journey-relevance and grounding against user activity, and online experiments. Initial A/B tests in the US and Canada showed a 1.1% increase in email click-through rate and a 1.3% increase in push open rate compared to the clustering-based system, with statistically significant improvements across engagement and retention metrics as well.
This approach bears similarity to Netflix's work on foundational personalization recommendation models. Netflix has described learning from users' long interaction sequences to generate representations reusable by downstream recommendation models.
Netflix focuses on reusable preference representations, while Pinterest generates explicit journey descriptions; both leverage longer behavioral histories to enhance existing personalization infrastructure rather than replace it entirely.
Original link:
Auto-fetched and translated by AI Atlas. All rights belong to the original author.