---
title: "Let AI Entertain You: Increasing User Engagement with Generative AI and Rejection Sampling"
description: "Nextdoor improved notification email subject lines by having ChatGPT extract (not rewrite) the most interesting phrase from a post, then using a fine-tuned OpenAI ada reward model to accept the generated subject only when it predicts more clicks than the user-written one, a form of rejection sampling."
url: "https://swe.quest/articles/let-ai-entertain-you-increasing-user-engagement-with-generative-ai-and-6a4a5ebea825e273"
canonical: "https://engblog.nextdoor.com/let-ai-entertain-you-increasing-user-engagement-with-generative-ai-and-rejection-sampling-50a402264f56"
source: "Nextdoor Engineering"
published: "2023-10-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["llms","model-training","evals","communications","product-engineering"]
---

# Let AI Entertain You: Increasing User Engagement with Generative AI and Rejection Sampling

A post on [Nextdoor Engineering](https://swe.quest/sources/nextdoor.md), published 2023-10-16, 12 min read, Case study. Original: [https://engblog.nextdoor.com/let-ai-entertain-you-increasing-user-engagement-with-generative-ai-and-rejection-sampling-50a402264f56](https://engblog.nextdoor.com/let-ai-entertain-you-increasing-user-engagement-with-generative-ai-and-rejection-sampling-50a402264f56)

## Summary

Nextdoor improved notification email subject lines by having ChatGPT extract (not rewrite) the most interesting phrase from a post, then using a fine-tuned OpenAI ada reward model to accept the generated subject only when it predicts more clicks than the user-written one, a form of rejection sampling. The reward model was trained on ~50k A/B-labeled pairs collected by serving each variant to small random user buckets. It reaches about 65% accuracy, is monitored daily against control buckets, and is retrained when accuracy drops 10%+. Prompt engineering alone plateaued below control, while the full system lifted sessions 1%, WAU 0.4% and ads revenue 1%. Per-post caching cut cost 600x, and retries fall back to the user subject.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Communications](https://swe.quest/tags/communications.md) (Domains)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)

## Prerequisites

- A/B testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- prompt engineering

## Keywords

OpenAI API, ChatGPT, rejection sampling, reward model, ada, Tenacity

## Related posts

- [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.
- [Automated merchant review summary system with integrated feedback](https://swe.quest/articles/automated-merchant-review-summary-system-with-integrated-feedback-48cd43919529123c.md): Grab Engineering · 2026-09-25 · Easy · 4 min read · LLMs, System design, Evaluation
  Grab generates consumer-facing merchant review summaries with a pipeline that stratifies review samples by a sentiment-scored rating distribution, uses an LLM to produce overall and topic-based summaries (taste, packaging, portion size), and has a separate LLM check each claim against the sampled reviews before publication.
- [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.
- [GenRecs Tokenization: Transforming Ads Recommendation at Meta with Stable Model Vocabulary](https://swe.quest/articles/genrecs-tokenization-transforming-ads-recommendation-at-meta-with-stable-model-e3f3b6ea2626a2c2.md): Meta Engineering · 2026-10-19 · Hard · 6 min read · Recommendations & ranking, Ads, LLMs, Machine learning
  Meta's ads recommender replaces per-item IDs with GenRecs Tokenization, a stable semantic vocabulary.
- [Ranking Engineer Agent (REA): The Autonomous AI Agent Accelerating Meta’s Ads Ranking Innovation](https://swe.quest/articles/ranking-engineer-agent-rea-the-autonomous-ai-agent-accelerating-meta-s-ads-906821be3888f8ab.md): Meta Engineering · 2026-03-17 · Easy · 7 min read · AI agents, ML platforms, Recommendations & ranking, Ads
  Meta's Ranking Engineer Agent (REA) runs ads ranking ML experiments end to end with little human involvement.

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)
