Part 2: Generative bidders for ads at Grab
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.
Related posts
- Part 1: Simulation-first AI experimentation for ads at Grab
Grab Engineering mediumAdeptGrab 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. Shortlisted candidates that pass business and user guardrails across many traffic conditions then go to live A/B tests. Fidelity is checked continuously at the mechanism level (matching production logic) and the outcome level (comparing metric distributions against production). Two use cases illustrate the approach: narrowing the mix-ranking alpha parameter that blends ads with organic results, and comparing a Primal-Dual Adaptive Pacing controller against a harder-to-tune PID budget pacer. Lessons include treating the simulator as a product and recognizing that idealized spend-signal timing can hide live instability.
- How we built ChatGPT’s novel ad stack for user trust and relevance
OpenAI mediumAdept
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. The ads service runs alongside, and fully separate from, answer generation, with separate models and code, so it cannot influence or delay ChatGPT responses. Returning no ad, or timing out before the response is ready, counts as a normal outcome. A model-generated neutral preamble is kept separate from the advertiser creative, and the system reportedly reached a $1B annualized run rate within 200 days.
- From Scoring to Spelling: Rebuilding Ads Retrieval at Instacart
Instacart Tech hardMasterInstacart 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 goal was to fix vocabulary bottlenecks, cold-start bias toward popular items, and incoherent candidate sets. Prompts combine a retailer-type token, user history SIDs and cart SIDs. SIDs shrink embedding parameters 125x and give new products coverage from day one, while beam width and temperature act as dials between precision and diversity. Serving moved from Python on CPU to a Go service on TensorRT-LLM and Triton. Mean latency dropped 10–17% despite roughly twice the candidates, and A/B tests showed +5% CTR and +34% add-to-carts.
- The generative recommender behind Shopify's commerce engine
Shopify Engineering hardMasterShopify 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. The quality gains came from three ideas. Timestamps are encoded directly in attention through RoPE-style rotary encoding plus relative time bias, including the current session time. Negative sampling is scaled with shared and positive-aware hard negatives under sampled softmax. A boosting-inspired objective rewards recall that the rest of the retrieval ensemble misses. Optimized CUDA kernels gave up to 7.3x training speedup, and online A/B tests showed +0.94% Shop orders, +5% high-quality CTR and +0.71% conversion. Next steps explore semantic IDs to replace huge product-ID embedding tables.
- Meta’s Generative Ads Model (GEM): The Central Brain Accelerating Ads Recommendation AI Innovation
Meta Engineering hardMasterGEM 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. The architecture handles non-sequence features with an extended Wukong design (stackable factorization machines), long user-behavior sequences with a pyramid-parallel structure, and cross-feature learning with InterFormer, plus multi-domain learning across surfaces, for 4x the efficiency of earlier ranking models. Knowledge reaches downstream models through direct and hierarchical transfer that combines distillation with a Student Adapter for stale supervision, representation learning and parameter sharing, which Meta reports as 2x as effective as standard distillation. A rebuilt training stack (HSDP for dense layers, 2D sharding of embedding tables, jagged-sequence kernels, FP8 activations, SM-free NCCLX collectives, compile caching) delivered 23x effective FLOPs with 1.43x MFU on 16x more GPUs.