Design Offensive Ad Content Detection
Detect policy-offensive text and image ads, withstand evasive creative changes, and keep review and delivery decisions safe.
Problem statement
For this exercise, assume an advertiser submits an immutable text-and-image ad version. The version cannot enter paid delivery until a current policy decision allows it. A policy owner supplies versioned categories of offensive content and thresholds; this exercise does not define the policy itself.
The detection system may allow, block, or route an uncertain version to authorized review. A reviewer can correct a decision without erasing its earlier evidence, and an edited creative starts a new decision lifecycle. Design the data, model, serving, human-review, evaluation, and release paths.
Address adversarial creative revisions such as altered spellings, text rendered inside images, and near duplicates as illustrative practice cases. Choose and justify a defense; no particular model or method is required. The ad workflow, categories, media scope, numbers, and review rules here are practice assumptions.
Pricing, auctions, private messages, and policy writing are outside scope.
What to build
- An advertiser submits an immutable creative version and can see pending, allowed, blocked, or review-pending; only its current allow permits paid delivery.
- The system evaluates text and image evidence against versioned offensive-content categories, keeps model and policy lineage, and identifies uncertain or evasive variants for bounded review.
- Authorized reviewers can adjudicate or correct a versioned decision; a later automated callback or creative edit cannot silently undo that authority.
- Operators obtain adjudicated labels across delivery outcomes, evaluate ordinary and evasive-creative slices, and safely canary or roll back model and policy releases.
At scalePractice assumption
- 500,000 ad versions arrive daily with bursts of 200 per second; each contains text and up to two images.
- At least 99 percent of normal-mix submissions receive a final automated allow or block within three seconds of submission. Pending and review-pending do not count as final automated outcomes.
- Authorized reviewers can adjudicate at most 8,000 cases daily, including audit sampling and uncertain creative variants.
- Missing required analysis or a stale decision never makes an ad eligible for paid delivery; current enforcement and correction history remain auditable.