Intelligent Delivery: Making Every Unit of Compute Serve Better Ads

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

Intelligent Delivery: Making Every Unit of Compute Serve Better Ads

By Zhaojun Zhang, Qinwei Zhu, Gang Li, Jianwei Xiao, Yanan Wang, Hongmei Li, Deepak Vijaywargi, Ke Pan, Li Yu Ads ranking models are growing toward LLM scale faster than the hardware to run them can keep up. An extra unit of compute has more impact on some ad requests, models, and chips than on others. The challenge is deciding where to allocate it to get the best outcome for the entire system.

广告排序模型向大语言模型(LLM)规模发展的速度,已经超过了运行它们的硬件升级速度。额外的计算资源对某些广告请求、模型和芯片的影响力远大于其他。挑战在于如何分配这些资源,以实现整个系统的最佳产出。

We built Intelligent Delivery, an ML-driven system that allocates resources across the serving stack toward the system-wide optimum. It has delivered ~10% incremental ranking performance on top of model and system advancements since 2017. We’re sharing a few of Intelligent Delivery’s capabilities: how we build ML models to predict the marginal utility of compute, multi-layered mechanisms to move resources across the system, and how we increasingly leverage agentic AI to continuously detect and respond to system shifts.

我们构建了“智能交付”(Intelligent Delivery),这是一个由机器学习驱动的系统,旨在跨服务堆栈分配资源,以实现系统全局最优。自2017年以来,在模型和系统进步的基础上,它额外提升了约10%的排序性能。我们在此分享“智能交付”的几项能力:我们如何构建机器学习模型来预测计算的边际效用,如何利用多层机制在系统间调度资源,以及我们如何越来越多地利用智能体AI来持续检测并响应系统变化。

As frontier ads ranking systems advance toward larger models, broader candidate sets, and richer delivery architectures, they also place greater demands on serving efficiency. Compute resources do not scale at the rate that models and system complexity do. The challenge is not just how to build more powerful models, but how to operate them efficiently across a heterogeneous system, with finite serving capacity, and under a tight latency budget.

随着前沿广告排序系统向更大的模型、更广泛的候选集和更丰富的交付架构演进,它们对服务效率提出了更高的要求。计算资源的扩展速度跟不上模型和系统复杂度的增长。挑战不仅在于如何构建更强大的模型,还在于如何在有限的服务容量和严格的延迟预算下,在异构系统中高效地运行它们。

We recently shared how we put idle inference capacity to work. This post covers how we decide where each unit of compute goes to achieve globally optimal system efficiency. Intelligent Delivery is our approach to the problem, and it has contributed an additional ~10% improvement in ads ranking performance on top of model and system advancements across major surfaces, from 2017 through the first half of 2026.

我们最近分享了如何利用闲置的推理容量。本文将介绍我们如何决定每一单位计算资源的去向,以实现全局最优的系统效率。“智能交付”是我们解决这一问题的方法,从2017年到2026年上半年,它在各大业务场景的模型和系统进步之上,额外贡献了约10%的广告排序性能提升。

It introduces an ML-driven, increasingly AI-operated adaptive optimization layer that continuously directs resources toward the requests, models, hardware fleets, and ranking stages with the highest marginal utility. This helps us run advanced ads ranking models efficiently in production, getting more out of every unit of compute to serve better ads for people who use our apps and services.

它引入了一个由机器学习驱动、且日益由AI自主运行的自适应优化层,能够持续将资源导向具有最高边际效用的请求、模型、硬件集群和排序阶段。这有助于我们在生产环境中高效运行先进的广告排序模型,从每一单位计算资源中榨取更多价值,从而为使用我们应用和服务的用户提供更好的广告。

The Goal and What Makes It Difficult One of our goals is to create a delivery system that continuously converges on its global optimum, regardless of how user behavior changes, models evolve, and the serving stack grows more complex. Three fundamental properties of ads delivery systems make this challenging:

目标与难点:我们的目标之一是创建一个能够持续趋向全局最优的交付系统,无论用户行为如何变化、模型如何演进、服务堆栈如何变得复杂。广告交付系统的三个基本属性使得这一目标极具挑战性:

The marginal impact of compute is highly heterogeneous and context-dependent: The same additional unit of compute can generate very different returns depending on the product surface, user intent, candidate quality, and system state. Request-aware signals alone are not sufficient; allocating well means estimating, for every request, the return on every available tunable system parameter, where each knob behaves differently at each stage of the funnel. We need to produce a per-request result calculation across a vast decision space within milliseconds.

计算的边际影响具有高度的异构性和上下文依赖性:同样的额外计算资源,根据产品界面、用户意图、候选质量和系统状态的不同,会产生截然不同的回报。仅靠请求感知信号是不够的;良好的分配意味着要为每一个请求估算每一个可调系统参数的回报,而每个参数在漏斗的每个阶段表现各异。我们需要在几毫秒内,在庞大的决策空间中完成针对每个请求的结果计算。

Local optimality does not translate to global optimality: Result estimation is just the start; the serving stack must also be dynamically controllable. Ads delivery spans multi-stage ranking, hundreds of models, generations of hardware, and many data centers. Resources cannot be shifted freely and reliably across these boundaries without adaptive controls that account for complex dependencies throughout the stack.

局部最优并不等同于全局最优:结果估算仅仅是个开始;服务堆栈还必须是动态可控的。广告交付跨越了多阶段排序、数百个模型、多代硬件和多个数据中心。如果没有能够考虑整个堆栈中复杂依赖关系的自适应控制,资源就无法在这些边界之间自由且可靠地调度。

The global optimum is a moving target: The optimization landscape is continuously shifting. Every new model, hardware generation, or new architecture changes the landscape and can invalidate previously optimal allocation decisions. The system needs to adapt quickly enough to retain its optimality. Intelligent Delivery includes three capabilities, each designed to address one of these fundamental system challenges.

全局最优是一个移动的目标:优化环境在不断变化。每一个新模型、新一代硬件或新架构都会改变环境,并可能使之前最优的分配决策失效。系统需要足够快地适应,以保持其最优性。“智能交付”包含三项能力,每一项都旨在解决这些基本系统挑战中的一个。

Capabilities of Intelligent Delivery 1. Request Understanding: A Shared ML Intelligence Layer for Compute Some ad requests benefit more from additional computation than others. Initially, we captured these differences through coarse segments: Requests were grouped by attributes such as surface, context, and ad creative representation, with engineers creating policies to allocate resources for each group. This approach delivered improvements but did not scale.

“智能交付”的能力:1. 请求理解:一个共享的计算机器学习智能层。有些广告请求比其他请求更能从额外的计算中获益。最初,我们通过粗略的分段来捕捉这些差异:请求按界面、上下文和广告创意表现等属性进行分组,工程师为每组制定资源分配策略。这种方法虽然带来了改进,但无法扩展。

Every new signal multiplied the rules, making the effort unsustainable, and independent segments could not capture the nonlinear interactions among thousands of signals, which limited accuracy. We achieved about a 20% improvement in identifying the highest-impact ad requests in offline benchmarks on major surfaces, relative to our previous production model, after reframing this into two ML problems: Which ad requests are most likely to benefit from additional compute? And how will different resource settings affect their outcomes and serving performance?

每一个新信号都会导致规则成倍增加,使得这种工作方式难以为继,且独立的细分段无法捕捉数千个信号之间的非线性交互,从而限制了准确性。我们将此问题重新定义为两个机器学习问题后,在各大业务场景的离线基准测试中,识别高影响力广告请求的能力比之前的生产模型提升了约20%:哪些广告请求最有可能从额外计算中获益?不同的资源设置将如何影响它们的产出和服务性能?

A side-by-side comparison of static rule-based segmentation, where every request in a bucket gets the same compute, and signal-driven decisions, where an ML-driven predictor sets compute for each request. To answer the first question, we built the Resource Core Model, deep learning models with 6B sparse parameters and 20M dense parameters that run once before candidate retrieval and are shared across the delivery funnel. Learned embeddings and deep feature interactions capture nuanced request patterns that manually defined segments cannot.

静态基于规则的分段(每个桶中的请求获得相同的计算资源)与信号驱动决策(由机器学习预测器为每个请求设置计算资源)的对比。为了回答第一个问题,我们构建了“资源核心模型”(Resource Core Model),这是一种深度学习模型,拥有60亿稀疏参数和2000万稠密参数,在候选检索前运行一次,并在整个交付漏斗中共享。学习到的嵌入和深度特征交互能够捕捉到手动定义的分段无法捕捉的细微请求模式。

We then fine-tune the Resource Core Model into a set of specialized models, each generating incremental signals about outcome, compute consumption, and latency impact. Together this forms a shared ML intelligence layer for resource allocation: The Resource Core Model understands each request and its serving behavior, while individual mechanisms determine how to translate those predictions into actions. An architecture diagram of the Resource Core Model, showing how dense and sparse request features pass through stacked interaction layers to

随后,我们将“资源核心模型”微调为一组专用模型,每个模型生成关于产出、计算消耗和延迟影响的增量信号。这共同构成了一个用于资源分配的共享机器学习智能层:“资源核心模型”理解每个请求及其服务行为,而各个机制则决定如何将这些预测转化为行动。“资源核心模型”的架构图,展示了稠密和稀疏请求特征如何通过堆叠的交互层传递至……