Your Algorithm: Giving People More Ways to Personalize Facebook Recommendations
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
Your Algorithm: Giving People More Ways to Personalize Facebook Recommendations
By Jiarui Wang, Yuxin Cui, Bosen Ding, Zhaohui Guo, James Mason, Facundo Severi, Qingyuan Song, Ziyun Xu Your algorithm is a suite of AI-powered tools that makes Facebook recommendations more transparent and steerable, with a single editable view of the interests that shape Feed and Reels. We’re sharing how Your algorithm turns people’s natural language preferences into responsive recommendations, and how LLMs are tailored to specific tasks within the system.
“Your algorithm” 是一套由人工智能驱动的工具,旨在提高 Facebook 推荐内容的透明度和可控性,通过一个可编辑的统一视图来展示影响“动态”(Feed)和“短视频”(Reels)的兴趣点。我们在此分享 “Your algorithm” 如何将用户的自然语言偏好转化为响应式推荐,以及大语言模型(LLM)如何针对系统内的特定任务进行定制。
Traditionally, the recommendation systems behind what people see on Facebook have learned from implicit engagement signals. While this allows them to scale well, it also means they adapt slowly and capture little nuance. But what if people could interact directly with the algorithms that rank and recommend what they see to instantly make their recommendations more personal and customized?
传统上,Facebook 后台的推荐系统通过隐性互动信号进行学习。虽然这种方式具有良好的扩展性,但也意味着系统适应速度较慢,且难以捕捉细微差别。但如果用户能够直接与负责排序和推荐内容的算法进行交互,从而即时实现更个性化、更定制化的推荐,情况会怎样呢?
Your algorithm is an end-to-end system that addresses the limitations of adaptability and nuance in recommendations. This new suite of AI-powered tools lets people on Facebook state, in their own words, what they want to see in their Feed and Reels. By tasking a collection of large language models (LLMs) with understanding, storing, and tracking people’s stated preferences along with their user behavior, we’ve created a recommendation system that responds to people’s preferences and adjusts the content they see.
“Your algorithm” 是一个端到端的系统,旨在解决推荐系统中适应性和细微差别方面的局限性。这套全新的人工智能工具让 Facebook 用户能够用自己的语言表达他们希望在“动态”和“短视频”中看到的内容。通过利用一系列大语言模型(LLM)来理解、存储和追踪用户的明确偏好及其行为,我们创建了一个能够响应用户偏好并调整所展示内容的推荐系统。
An Overview of the Your Algorithm System Architecture The Your algorithm page has three parts (Figure 1): At the top, a one-sentence Lately Summary that describes recent viewing activity. Below it are two lists: “Interested In,” prefilled with interests inferred from past activity. “Not Interested In,” capturing topics the user has explicitly marked as not interested, or has X-ed out or hidden on Facebook. People can use the interface to add interests (using natural language), move them between lists, or remove them. Every change applies responsively to both Feed and Reels, and will further update as the person gives feedback on individual posts.
“Your algorithm” 系统架构概览。“Your algorithm” 页面包含三个部分(图 1):顶部是一句描述近期观看活动的“近期摘要”(Lately Summary)。下方是两个列表:“感兴趣”(Interested In),预填充了根据过去活动推断出的兴趣点;“不感兴趣”(Not Interested In),记录了用户明确标记为不感兴趣、或在 Facebook 上点击“X”移除或隐藏的主题。用户可以使用该界面添加兴趣点(使用自然语言)、在列表间移动兴趣点或将其删除。每一项更改都会实时应用于“动态”和“短视频”,并随着用户对单条帖子的反馈而进一步更新。
Figure 1: The Your algorithm page. Your algorithm system has several components that cover the full lifecycle of a preference, from inferring and validating it to applying it in ranking and delivery (Figure 2). Profile generation builds the initial interest profile. Preference management validates each change, enriches it with the signals ranking needs, and saves it to a single store that both Feed and Reels read, ensuring that the preferences shown on the page are the same ones used in ranking. Ranking applies the “Interested In” and “Not Interested In” lists throughout the funnel. Delivery optimization helps each change take effect more responsively.
图 1:“Your algorithm” 页面。“Your algorithm” 系统包含多个组件,涵盖了偏好设置的完整生命周期,从推断和验证偏好,到将其应用于排序和分发(图 2)。“个人资料生成”用于构建初始兴趣画像。“偏好管理”负责验证每一项更改,利用排序所需的信号对其进行丰富,并将其保存到一个供“动态”和“短视频”共同读取的统一存储库中,确保页面上显示的偏好与排序时使用的偏好完全一致。“排序”在整个漏斗流程中应用“感兴趣”和“不感兴趣”列表。“分发优化”则帮助每一项更改更迅速地生效。
Figure 2: An overview of the Your algorithm system. From Preferences Into Recommendations Turning a stated preference into recommendations poses three distinct problems. An interest added to Interested In needs to deliver relevant content quickly, without crowding out everything else. An interest added to Not Interested In needs to hold reliably, even though topics are fuzzy and any single filter misses some matches. And both need to take effect responsively, even when the next recommendations were cached before the change. Your algorithm addresses each problem with dedicated logic across the recommendation funnel, from retrieval through reranking to the device (Figure 3).
图 2:“Your algorithm” 系统概览。从偏好到推荐。将明确的偏好转化为推荐内容会带来三个独特的问题。添加到“感兴趣”列表的兴趣点需要快速提供相关内容,且不能挤占其他所有内容。添加到“不感兴趣”列表的兴趣点需要可靠地生效,尽管主题往往是模糊的,且任何单一过滤器都可能漏掉一些匹配项。此外,这两者都需要能够响应式地生效,即使在更改发生前下一批推荐内容已经缓存的情况下也是如此。针对这些问题,“Your algorithm” 在整个推荐漏斗中采用了专门的逻辑,从检索、重排序一直到设备端(图 3)。
Interested In: Surfacing New Interests Without Flooding Each interest in Interested In drives four dedicated retrieval sources. Two find matching content directly (through search and through clusters of closely related topics), and two extend reach through the content graph and item-to-item similarity. Retrieving explicitly for each interest ensures enough relevant candidates for downstream ranking. This is important because, without it, content about a brand-new interest might never enter the ranking pipeline at all.
“感兴趣”:在不造成信息过载的情况下呈现新兴趣点。“感兴趣”列表中的每个兴趣点都会驱动四个专门的检索源。其中两个直接查找匹配内容(通过搜索和紧密相关的主题聚类),另外两个通过内容图谱和项目间的相似性来扩展覆盖范围。为每个兴趣点进行显式检索,确保了下游排序有足够的候选内容。这一点至关重要,因为如果没有它,关于全新兴趣点的内容可能永远无法进入排序流程。
Candidates that pass a relevance check, which compares the meaning of the interest with each candidate, receive a promotion in late-stage ranking so they can compete alongside other content. A control layer in reranking then determines where they appear. Responsiveness alone is not the goal. Our approach emphasizes balance over volume: A new interest should show up, not take over. The control layer spaces out recommendations for the same interest and caps each interest’s daily contribution. Retrieval also fetches candidates for only one interest per request, so every interest gets a turn. New interests receive extra weight for a limited period. After that, the recommendation system learns from how people engage with that content.
通过相关性检查(比较兴趣点含义与候选内容)的候选内容,会在后期排序阶段获得提升,从而能够与其他内容竞争。重排序中的控制层随后决定它们出现的位置。响应速度本身并不是唯一目标。我们的方法强调平衡而非数量:新的兴趣点应该出现,但不能占据主导地位。控制层会分散同一兴趣点的推荐内容,并限制每个兴趣点的每日贡献量。检索过程每次请求也仅获取一个兴趣点的候选内容,以确保每个兴趣点都有机会展示。新兴趣点会在有限时间内获得额外权重。此后,推荐系统将根据用户与该内容的互动情况进行学习。
Not Interested In: Layered Filtering at Every Stage Interests in Not Interested In are enforced at several stages based on different signals to achieve high precision and recall. During ranking, the same embedding-based comparison used in the relevance check removes candidates too close to an interest in Not Interested In, and demotion rules push down near matches. After ranking, the LLM reranker reviews the final list. On the device, cache invalidation, described below, removes matching candidates that are already queued for display.
“不感兴趣”:各阶段的分层过滤。“不感兴趣”列表中的兴趣点会在多个阶段基于不同信号进行强制执行,以实现高精度和高召回率。在排序过程中,使用与相关性检查中相同的基于嵌入(embedding)的比较方法,移除与“不感兴趣”列表中的兴趣点过于接近的候选内容,并利用降权规则压低近似匹配项。排序后,LLM 重排序器会对最终列表进行审查。在设备端,下文所述的缓存失效机制会移除已排队等待显示的匹配候选内容。
Not every entry in Not Interested In is about a topic. Quality-related requests, such as reducing AI-generated or sexually suggestive content, map to dedicated demotion signals rather than topic matching. When a request names a creator, that creator’s content is filtered out directly.
“不感兴趣”列表中的条目并非全部关于主题。与质量相关的请求(例如减少人工智能生成的内容或性暗示内容)会映射到专门的降权信号,而非主题匹配。当请求指定了某个创作者时,该创作者的内容会被直接过滤掉。
Responsiveness Optimization Even with ranking tuned to respond to preferences, there is still room to improve how responsively a change reaches what people see. Content for a new preference is not picked up until the next fetch request, and content already cached on the device was ranked before the preference was set. We added two delivery mechanisms to close these gaps. When a new interest is added to Interested In, the system sends an extra fetch request outside the normal fetch cycle, called a supplementary tail load, to retriev
响应优化。即使排序系统已经过调整以响应偏好,在更改如何迅速反映到用户所见内容方面仍有改进空间。新偏好的内容直到下一次获取请求时才会被抓取,而设备上已缓存的内容是在偏好设置之前完成排序的。我们增加了两种分发机制来弥补这些差距。当新的兴趣点被添加到“感兴趣”列表时,系统会在正常获取周期之外发送一个额外的获取请求(称为“补充尾部加载”),以检索……