---
title: "Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design"
description: "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."
url: "https://swe.quest/articles/meta-andromeda-powering-the-next-generation-of-ads-retrieval-through-model-4334615c71f64c69"
canonical: "https://engineering.fb.com/2026/10/28/ml-applications/meta-andromeda-next-gen-ads-retrieval-gpu-co-design/"
source: "Meta Engineering"
published: "2026-10-28"
difficulty: "hard"
kind: "Case study"
reading_minutes: 11
tags: ["recommendation-systems","ads","inference","hardware","performance"]
---

# Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-10-28, 11 min read, Case study. Original: [https://engineering.fb.com/2026/10/28/ml-applications/meta-andromeda-next-gen-ads-retrieval-gpu-co-design/](https://engineering.fb.com/2026/10/28/ml-applications/meta-andromeda-next-gen-ads-retrieval-gpu-co-design/)

## Summary

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. A retrieval mixture-of-experts architecture (ensemble of user-tower experts plus an ad-aware attention gating router) cuts inference FLOPs ~300x. A single fused kernel keeps per user-ad intermediates in registers and shared memory to avoid HBM traffic, reaching over 10B ads/sec on one GH200. Co-locating index matching, scoring and top-K on the same GPU cuts network traffic ~100x. NVIDIA-optimized kernels hit ~85% of peak HBM bandwidth, and INT8 adds up to 2x throughput at FP16-equivalent accuracy.

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)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- two-stage retrieval and ranking ([easy posts on Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md?difficulty=easy))
- mixture-of-experts models
- GPU memory hierarchy and kernel fusion ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Meta Andromeda, NVIDIA GH200, Grace Hopper, Grace Blackwell, mixture-of-experts, INT8 quantization

## Related posts

- [Meta Andromeda: Supercharging Advantage+ automation with the next-gen personalized ads retrieval engine](https://swe.quest/articles/meta-andromeda-supercharging-advantage-automation-with-the-next-gen-ea5fc57c7e788d2c.md): Meta Engineering · 2024-12-02 · Hard · 7 min read · Recommendations & ranking, Ads, Inference & serving, Hardware, Machine learning
  Andromeda is Meta's ML-based ads retrieval engine that narrows tens of millions of ad candidates to a few thousand per request.
- [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.
- [How Meta animates AI-generated images at scale](https://swe.quest/articles/how-meta-animates-ai-generated-images-at-scale-99df36d0b665f101.md): Meta Engineering · 2024-08-14 · Hard · 8 min read · Inference & serving, Performance engineering, Load balancing, Resilience, Computer vision
  Meta made its Meta AI image-animation feature fast enough for billions of users by stacking model optimizations.
- [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.
- [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.

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)
