---
title: "Part 2: Generative bidders for ads at Grab"
description: "Grab Ads replaces reactive PID budget pacing with a generative bidder that plans 30-minute sequences of per-minute pacing actions."
url: "https://swe.quest/articles/part-2-generative-bidders-for-ads-at-grab-c23bf975df8e9eb8"
canonical: "https://engineering.grab.com/part-2-ads-simulation-blogpost"
source: "Grab Engineering"
published: "2026-11-25"
difficulty: "hard"
kind: "Case study"
reading_minutes: 12
tags: ["ads","machine-learning","model-training","evals"]
---

# Part 2: Generative bidders for ads at Grab

A post on [Grab Engineering](https://swe.quest/sources/grab.md), published 2026-11-25, 12 min read, Case study. Original: [https://engineering.grab.com/part-2-ads-simulation-blogpost](https://engineering.grab.com/part-2-ads-simulation-blogpost)

## Summary

Grab Ads replaces reactive PID budget pacing with a generative bidder that plans 30-minute sequences of per-minute pacing actions. A diffusion Generator, conditioned on campaign context and steered by classifier-free guidance, proposes candidate plans. A differentiable Aligner predicts fulfillment progress and ROAS for each plan, and the planner refines the plans by gradient descent at inference time and picks the lowest-error one. Training starts with behavioral cloning on production logs, then moves to simulator-driven learning, with Ray fanning out simulator replays across dates, markets and policy variants. Before any scoped live experiment, candidates must pass three validation gates: model metrics such as Wasserstein distance and MAE, simulator comparison against the PID baseline, and stress tests. Live results are then fed back to calibrate the simulator.

Written by swe.quest, not by the author.

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

## Topics

- [Ads](https://swe.quest/tags/ads.md) (Domains)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

- diffusion models
- ad auctions and budget pacing
- PID controllers
- distributed computing basics ([easy posts on Distributed systems](https://swe.quest/tags/distributed-systems.md?difficulty=easy))

## Keywords

Grab, diffusion models, classifier-free guidance, Ray, PID controller, ROAS, behavioral cloning

## Related posts

- [Part 1: Simulation-first AI experimentation for ads at Grab](https://swe.quest/articles/part-1-simulation-first-ai-experimentation-for-ads-at-grab-b9e77470bd59260e.md): Grab Engineering · 2026-11-23 · Medium · 11 min read · Ads, Evaluation, Testing, System design
  Grab built an offline ads simulator that sequentially replays historical ad opportunities, applies candidate bidding, ranking and pacing logic, and probabilistically generates user responses from calibrated engagement models.
- [How we built ChatGPT’s novel ad stack for user trust and relevance](https://swe.quest/articles/how-we-built-chatgpt-s-novel-ad-stack-for-user-trust-and-relevance-d3146d4ee40db504.md): OpenAI · 2026-10-21 · Medium · 14 min read · Ads, AI agents, LLMs, System design, Vector search
  ChatGPT's ad stack replaces the event-driven request/response ads pipeline with stateful ads sessions that track evolving intent across turns and conversations, orchestrated by a post-trained LLM that calls tools for query rewriting, ANN retrieval over multiple embedding indices, eligibility filtering (budget, pacing, targeting, policy, dedup), relevance and engagement scoring, and a separate auction tool that handles pricing and final selection.
- [From Scoring to Spelling: Rebuilding Ads Retrieval at Instacart](https://swe.quest/articles/from-scoring-to-spelling-rebuilding-ads-retrieval-at-instacart-1eba18ee15c15a7e.md): Instacart Tech · 2026-06-02 · Hard · 13 min read · Recommendations & ranking, Ads, Inference & serving, ML platforms
  Instacart replaced its BERT-based ads retrieval model, which scored every atomic product ID in a fixed vocabulary, with a generative model that autoregressively decodes Semantic IDs (RQ-VAE codeword sequences) via beam search.
- [The generative recommender behind Shopify's commerce engine](https://swe.quest/articles/the-generative-recommender-behind-shopify-s-commerce-engine-f5ed1bac0cf956d4.md): Shopify Engineering · 2026-02-25 · Hard · 8 min read · Recommendations & ranking, Model training, Machine learning, E-commerce
  Shopify built a foundational generative recommender on HSTU that treats buyer journeys as raw event sequences and trains an autoregressive, causally masked model to predict the next product.
- [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.

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)
