How Meta Uses AI Agents to Scale ML Innovations Across Ads Ranking Models

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

By Rahul Suresh, Aayush Aggarwal, Aayush Prakash, Peggy Yao, Shiblee Sadik, Djordje Gligorijevic, Akshay Pardeshi, Yao Xuan, Anirudh Agrawal, Matan Levi, JP Owed, Anuj Bindal Our previous post in this series introduced the Ranking Engineer Agent (REA), an autonomous system that generates hypotheses, designs experiments, and proves new machine learning (ML) techniques on ads ranking models.

Rahul Suresh、Aayush Aggarwal、Aayush Prakash、Peggy Yao、Shiblee Sadik、Djordje Gligorijevic、Akshay Pardeshi、Yao Xuan、Anirudh Agrawal、Matan Levi、JP Owed 和 Anuj Bindal 在本系列的前一篇文章中介绍了排名工程师代理(REA),这是一个能够生成假设、设计实验并验证广告排名模型中新机器学习(ML)技术的自主系统。

Now, we’re sharing how we propagate ranking model improvements like architectural advancements and training optimizations efficiently across a large and diverse fleet of ads ranking models. This post walks through this process that we call “technique propagation” and how we’re optimizing the process using AI agents.

现在,我们将分享如何在一个庞大且多样化的广告排名模型群中,高效地推广架构改进和训练优化等排名模型提升方案。本文将介绍我们称之为“技术传播”的过程,以及我们如何利用人工智能代理来优化这一流程。

Since agents began driving execution in March 2026, we estimate AI agents handle over 60% of all technique propagation. Measured against the same work before agents, early results show 3x greater engineering productivity, a median 4x reduction in training compute across select combinations, and an estimated $45M+ in compute savings by the end of the year.

自 2026 年 3 月代理开始驱动执行以来,我们估计人工智能代理处理了超过 60% 的技术传播工作。与引入代理之前的工作量相比,初步结果显示工程生产力提高了 3 倍,部分组合的训练计算量平均减少了 4 倍,预计到今年年底将节省超过 4500 万美元的计算成本。

Meta’s ads recommendation system is powered by a large number of distinct ads ranking models, each serving different product surfaces and advertiser objectives, and each with its own architecture, training data, and serving constraints. Across this portfolio, ML researchers and engineers are continuously advancing the state-of-the-art through innovations we call “techniques.”

Meta 的广告推荐系统由大量不同的广告排名模型驱动,每个模型服务于不同的产品界面和广告主目标,并拥有各自的架构、训练数据和服务限制。在整个产品组合中,机器学习研究人员和工程师通过我们称之为“技术”的创新,不断推动技术水平的发展。

A technique is anything that makes a ranking model better such as architectural advancements like Wukong factorization layers, Interformer interaction networks, richer data representations, training optimizations, or efficiency improvements in training and inference. However, because each model has its own architecture, data, and training and serving constraints, a technique proven on one model almost never copy-pastes onto the next.

“技术”是指任何能使排名模型变得更好的事物,例如 Wukong 分解层、Interformer 交互网络等架构改进、更丰富的数据表示、训练优化,或训练与推理效率的提升。然而,由于每个模型都有其独特的架构、数据以及训练和服务限制,在一个模型上验证过的技术几乎无法直接复制到另一个模型上。

At the same time, speed matters because ML techniques have a shelf life. An innovation that delivers gains today may be superseded within a couple of model development cycles. The faster proven techniques reach the full model fleet, the more value they deliver before the next generation of techniques arrive. So how do we propagate a technique to a diverse fleet of models as quickly as possible, while minimizing engineering bandwidth and compute?

与此同时,速度至关重要,因为机器学习技术具有保质期。今天能带来收益的创新,可能在几个模型开发周期内就会被取代。经过验证的技术越快覆盖到整个模型群,在下一代技术到来之前,它们所能创造的价值就越大。那么,我们如何在最大限度减少工程带宽和计算资源消耗的同时,尽可能快地将技术传播到多样化的模型群中呢?

Scaling Technique Propagation Propagating a growing inventory of proven techniques across a large fleet of diverse models creates a combinatorially expanding space of technique-model combinations to explore, where both engineering bandwidth and compute become significant constraints. The standard way to adapt a technique is to have engineers who are domain experts manually execute adaptation.

扩展技术传播:在庞大且多样化的模型群中传播日益增长的已验证技术清单,创造了一个组合式扩展的技术-模型探索空间,其中工程带宽和计算资源都成为了重要的制约因素。适配技术的标准方法是让领域专家工程师手动执行适配。

An engineer studies how a technique interacts with a specific model’s architecture, generalizes it, and tunes it to that model’s constraints. This produces the strongest results, and is still the process for our highest-revenue models, but it does not scale to all of the models in the space. Each adaptation is effort-intensive and demands deep familiarity with both the technique and the target model.

工程师研究某项技术如何与特定模型的架构交互,对其进行泛化,并根据该模型的限制进行调整。这种方法能产生最好的结果,并且仍然是我们最高收入模型所采用的流程,但它无法扩展到该领域内的所有模型。每一次适配都非常耗费精力,且需要对技术和目标模型都有深刻的了解。

So throughput is capped by engineering bandwidth while the opportunity for adaptation grows much faster. The second constraint on propagation is compute. Every adaptation attempt requires a training run, and with a finite compute budget the question is not only which techniques to try but how to navigate the combinatorial space of configurations without spending the budget on attempts (most of which will produce suboptimal gains).

因此,吞吐量受到工程带宽的限制,而适配的机会却在快速增长。传播的第二个制约因素是计算资源。每一次适配尝试都需要进行一次训练运行,在有限的计算预算下,问题不仅在于尝试哪些技术,还在于如何在不将预算浪费在(大多数只会产生次优收益的)尝试上的前提下,驾驭配置的组合空间。

Both constraints point to the same requirement: To propagate techniques to a large number of diverse models quickly, propagation has to become standardized, automated, and able to make judgment calls. We started by standardizing model design and automating propagation: a template-driven approach organizes models into a small set of reusable and composable building blocks, so a technique validated once at the template level propagates automatically to every model built from that template.

这两个制约因素指向了同一个需求:为了快速将技术传播到大量多样化的模型中,传播过程必须标准化、自动化,并具备做出判断的能力。我们首先从标准化模型设计和自动化传播入手:一种基于模板的方法将模型组织成一小套可重用和可组合的构建块,这样在模板级别验证过一次的技术,就能自动传播到由该模板构建的每一个模型中。

Over the last 2 years, through standardization and automation, we have shipped 5,000+ technique-model combinations across our large, diverse fleet of models while reducing per-model engineering time by 92%. You can read more about it in our post on Standard Model Templates (SMT).

在过去两年中,通过标准化和自动化,我们在庞大且多样化的模型群中部署了 5000 多种技术-模型组合,同时将每个模型的工程时间减少了 92%。您可以在我们关于标准模型模板(SMT)的文章中阅读更多相关信息。

Standardization and automation handle the deterministic steps, but successful and efficient propagation still requires making judgment calls, such as which technique is worth propagating to which model, how wide a hyperparameter search should be, why a model is not showing gains, or how to detect and resolve failures. Those decisions still required significant human bandwidth, which prevented us from scaling further and from reaching a state where all techniques reached all applicable models within a few weeks of being proven. That is where AI agents come in.

标准化和自动化处理了确定性的步骤,但成功且高效的传播仍然需要做出判断,例如哪项技术值得传播到哪个模型、超参数搜索的范围应该有多大、为什么模型没有显示出收益,或者如何检测和解决故障。这些决策仍然需要大量的人力,这阻碍了我们进一步扩展,也无法达到在技术验证后的几周内将其应用到所有适用模型的状态。这就是人工智能代理发挥作用的地方。

Scaling Technique Propagation With AI Agents Our technique propagation system is built around three capabilities: Discovery: Keep a live view of which techniques have been proven and estimate how well each might transfer to generate a prioritized set of technique-model candidates, ranked by expected impact.

利用人工智能代理扩展技术传播:我们的技术传播系统围绕三个能力构建:发现:实时查看哪些技术已被验证,并评估每项技术的迁移效果,从而生成按预期影响排序的优先技术-模型候选集。

Generalization: Generalize a proven technique so it works on models it was not originally designed for. For models built from shared templates, a technique is generalized once per template and reaches every model built from it. Beyond what templates cover, each model needs its own adaptation, which is where the deepest technical reasoning happens.

泛化:对已验证的技术进行泛化,使其能够应用于最初并非为其设计的模型。对于由共享模板构建的模型,每种技术只需针对每个模板泛化一次,即可覆盖由该模板构建的所有模型。在模板覆盖范围之外,每个模型都需要进行单独的适配,这也是最深层技术推理发生的地方。

Adoption: Turn validated adaptations into shipped models, many at a time: launching experiments, managing asynchronous multi-day training runs, monitoring convergence, diagnosing and recovering from failures, and assembling proposals that can land. Today, AI agents supercharge all the above capabilities by taking on the judgment-heavy, non-deterministic decision making and bringing deep intelligence to the system. They combine

采用:将验证过的适配方案转化为已部署的模型,并实现批量处理:启动实验、管理异步的多天训练运行、监控收敛情况、诊断并从故障中恢复,以及汇总可落地的方案。如今,人工智能代理通过承担需要大量判断的非确定性决策,并为系统带来深度智能,从而极大地增强了上述所有能力。它们结合了……