---
title: "Meta Andromeda: Supercharging Advantage+ automation with the next-gen personalized ads retrieval engine"
description: "Andromeda is Meta's ML-based ads retrieval engine that narrows tens of millions of ad candidates to a few thousand per request."
url: "https://swe.quest/articles/meta-andromeda-supercharging-advantage-automation-with-the-next-gen-ea5fc57c7e788d2c"
canonical: "https://engineering.fb.com/2024/12/02/production-engineering/meta-andromeda-advantage-automation-next-gen-personalized-ads-retrieval-engine/"
source: "Meta Engineering"
published: "2024-12-02"
difficulty: "hard"
kind: "Case study"
reading_minutes: 7
tags: ["recommendation-systems","ads","inference","hardware","machine-learning"]
---

# Meta Andromeda: Supercharging Advantage+ automation with the next-gen personalized ads retrieval engine

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-12-02, 7 min read, Case study. Original: [https://engineering.fb.com/2024/12/02/production-engineering/meta-andromeda-advantage-automation-next-gen-personalized-ads-retrieval-engine/](https://engineering.fb.com/2024/12/02/production-engineering/meta-andromeda-advantage-automation-next-gen-personalized-ads-retrieval-engine/)

## Summary

Andromeda is Meta's ML-based ads retrieval engine that narrows tens of millions of ad candidates to a few thousand per request. It replaces rule-based, multi-stage retrieval with a deep neural network that is jointly trained with a hierarchical ad index, giving sublinear inference cost and outperforming two-tower or ANN approaches. Co-designed with NVIDIA Grace Hopper, it keeps precomputed ad embeddings in local memory, uses GPU feature extraction and fused kernels, and adjusts model complexity to available resources. Meta reports 10,000x more model capacity, +6% recall, +8% ads quality on selected segments, 100x faster feature extraction and over 3x inference QPS.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Ads](https://swe.quest/tags/ads.md) (Domains)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- recommendation system retrieval stages
- two-tower models and ANN search ([easy posts on Vector search](https://swe.quest/tags/vector-search.md?difficulty=easy))
- GPU memory hierarchy ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Meta Andromeda, Advantage+, NVIDIA Grace Hopper, MTIA, hierarchical indexing

## Related posts

- [Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design](https://swe.quest/articles/meta-andromeda-powering-the-next-generation-of-ads-retrieval-through-model-4334615c71f64c69.md): Meta Engineering · 2026-10-28 · Hard · 11 min read · Recommendations & ranking, Ads, Inference & serving, Hardware, Performance engineering
  Meta's next-generation Andromeda ads retrieval engine co-designs model, system and GPU hardware to score every eligible ad with near ranking-level quality at over one billion ads per second per GPU server, a 100x lift over the 2024 system.
- [Meta Adaptive Ranking Model: Bending the Inference Scaling Curve to Serve LLM-Scale Models for Ads](https://swe.quest/articles/meta-adaptive-ranking-model-bending-the-inference-scaling-curve-to-serve-llm-b02b370caa05f2c4.md): Meta Engineering · 2026-03-31 · Hard · 9 min read · Recommendations & ranking, Inference & serving, Ads, Performance engineering, Hardware
  Meta Adaptive Ranking Model serves LLM-scale ads ranking models (O(10 GFLOPs) per token, O(1T) parameters) at O(100 ms) latency by routing each request to an appropriately complex model and computing user signals once per request instead of once per ad candidate.
- [From User Sequences to Scaling Laws: A Multi-Stage Architecture for Meta’s Ads Ranking](https://swe.quest/articles/from-user-sequences-to-scaling-laws-a-multi-stage-architecture-for-meta-s-ads-3c689db90be36667.md): Meta Engineering · 2026-08-05 · Hard · 6 min read · Recommendations & ranking, Ads, Model training, Machine learning, Scaling
  Meta scales sequence learning for ads ranking by splitting it into two stages: an offline transformer user model processes thousands of user events asynchronously and caches user-level embeddings, and a lightweight online ranking model combines those embeddings with fresh signals and ad candidates under strict latency budgets.
- [Meta’s Generative Ads Model (GEM): The Central Brain Accelerating Ads Recommendation AI Innovation](https://swe.quest/articles/meta-s-generative-ads-model-gem-the-central-brain-accelerating-ads-5d5a24731a15c0eb.md): Meta Engineering · 2025-11-10 · Hard · 10 min read · Recommendations & ranking, Ads, Model training, ML platforms
  GEM is Meta's LLM-scale foundation model for ads recommendation, trained on thousands of GPUs and used as a teacher to improve hundreds of downstream vertical ranking models; it lifted ad conversions 5% on Instagram and 3% on Facebook Feed.
- [Meta’s Generative Ads Model (GEM): Scaling the Central Model and Compute Engine for Frontier Ads AI](https://swe.quest/articles/meta-s-generative-ads-model-gem-scaling-the-central-model-and-compute-engine-588a45420da8f0cd.md): Meta Engineering · 2026-10-13 · Hard · 14 min read · Recommendations & ranking, Ads, Model training, Inference & serving, Scaling
  Meta's 2026 GEM replaces per-surface ads ranking models with a single central recommendation foundation model trained across Facebook, Instagram, Reels and deep-funnel conversion objectives, reporting 18.9% conversion and 12% CTR gains.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
