Meta's Intelligent Delivery is an ML-driven system designed to optimize resource allocation across a complex ad serving stack. It addresses challenges like heterogeneous compute impact, local vs. global optimality, and continuously shifting optimization landscapes to efficiently serve ads. By leveraging advanced ML models and a hierarchy of decision engines, it directs compute resources to maximize ranking performance within latency budgets.
Read original on Meta EngineeringThe article from Meta Engineering describes Intelligent Delivery, an advanced machine learning system that optimizes compute resource allocation for ad ranking. The core challenge is efficiently running large-scale ad ranking models (approaching LLM scale) across a diverse, globally distributed hardware fleet, while adhering to strict latency budgets and achieving global system-wide optimality. This system is crucial because the marginal impact of compute is highly variable and the optimal allocation is a moving target due to continuous changes in models, hardware, and user behavior.
Intelligent Delivery employs a Resource Core Model, a deep learning model with billions of parameters, to predict the marginal utility of compute for each ad request. This model runs early in the request lifecycle and generates embeddings and signals that inform specialized models about outcome, compute consumption, and latency impact. This shared intelligence layer allows the system to understand which requests benefit most from additional compute, replacing rigid, unscalable rule-based policies.
To manage resource allocation across a globally distributed, heterogeneous fleet, Intelligent Delivery uses a hierarchical approach: a dedicated decision engine for each layer of the serving stack. This decomposes the complex problem into manageable steps, from high-level traffic routing to fine-grained host-level resource management. For example, it dynamically shifts traffic between regions to balance efficiency, assigns workloads to optimal hardware SKUs based on measured efficiency, and within a host, it uses a constrained optimization to maximize impact within latency budgets by trimming low-impact work first.
Hierarchical Resource Allocation
Designing a multi-layered allocation system like this is crucial for managing complexity in large-scale distributed environments. Each layer addresses a specific scope of the problem, allowing for more granular control while contributing to a global objective.
To address the continuously shifting optimization landscape and the impracticality of manual configuration across millions of dimensions, Intelligent Delivery incorporates agentic AI. These AI agents continuously monitor the system, propose configuration changes, design experiments, and converge on optimal adjustments. This significantly shortens the optimization loop from months to weeks, automating much of the engineering effort while keeping human oversight for final approvals. This demonstrates an advanced approach to autonomous system management in a production environment.