Personalization at Scale: A/B Testing and Artwork Selection

Why / The Problem

By this point in the guide, Track A (see the parts from Open Connect to Per-title encoding) has gotten the video's bytes to the member's screen, and Track B (see the parts from Strangler fig migration to EVCache) has made sure the request behind "what's on my homepage" comes back fast and without falling over. What's left is a question neither track answers: of everything Netflix could show this specific person, what should it actually show? Netflix answers that not with one big decision but by continuously experimenting — hundreds of small tests running on overlapping populations of members at the same time. Running that many tests simultaneously, without them corrupting each other's results, raises two hard problems:

Which version does each member see?A single member can be enrolled in dozens of unrelated tests at once — a new row layout, a different sign-up flow, a particular piece of artwork. Each of those assignments has to stay the same for that member every time they open the app, and none of them should be correlated with any other.
How do you know if it worked?The metric that actually matters — whether people who saw the change stayed subscribed longer — can take months to become visible. You can't wait months before deciding whether to keep, kill, or iterate on hundreds of tests, so you need something faster to steer by in the meantime.

How It Works

Picking a group: hash the member and the test together

The obvious way to assign test groups is a lookup table: one row per member per test, recording which group they landed in. That doesn't scale to hundreds of concurrent tests across hundreds of millions of members, and it turns every request into a service call with its own latency and its own way to fail. Netflix avoids the table by computing the answer instead of storing it. It feeds the member's ID and the test's ID together into a hash function — a piece of math that turns any input into a number that looks random but is completely deterministic, meaning the same input always produces the same output:

hash("member-42" + "artwork-test-7")    → group B
hash("member-42" + "signup-flow-test-3") → group A

The same member, member-42, lands in group B for one test and group A for a completely different one. Nothing connects those two outcomes, because the test's ID is part of the input — change the test and the hash changes, even though the member didn't. That one trick buys both properties a group-assignment scheme needs:

  • Stays put: Same member + same test always hashes to the same group, so the experience never flips between one session and the next — there's nothing to store, because the answer is reproducible on demand.
  • Stays separate: A member's group in one test tells you nothing about their group in any other test, because each test's ID changes what goes into the hash. Hundreds of tests can run on the same members at once without any of them skewing each other's results.

And because it's pure arithmetic — no database row to read, no service to call, no network hop — any server, in any region, computes the exact same answer for the exact same inputs, instantly. That's what makes it cheap enough to run on every single request, for every test a member happens to be enrolled in.

Measuring: the signal you actually want is the slowest one

The metric that would settle any test outright — did the members who saw version B stay subscribed longer than the ones who saw version A — is also the slowest one available. Retention differences take months to become statistically visible, because people don't renew or cancel on a daily rhythm. Waiting months is fine for a single experiment; it's unworkable when hundreds are running at once and a team needs to know this week whether to keep a change, kill it, or iterate on it. So teams steer day-to-day on faster proxy signals instead — things like whether someone pressed play, how long they watched, whether they came back the next day — that move quickly and tend to correlate with retention. The catch is that a fast proxy is still only a guess about the slow metric that actually matters, so Netflix also keeps a small, longer-running hold-out group — members who never see the change at all — to check, months later, whether the early fast signal actually predicted the real one.

SignalArrives inGood forCan't tell you
Platform health (SPS)SecondsGuardrails; aborting a chaos experiment (see Chaos engineering)Whether members liked it
Engagement proxiesDays–weeksSteering tests day to dayWhether it lasts or is novelty
Long-term retentionMonthsThe decision that mattersAnything fast enough to iterate on

Artwork: the case where there is no single winner

Everything so far in this part still assumes an ordinary A/B test: run version A against version B, wait for the data, declare a winner, ship it to everyone. Artwork selection is where that assumption breaks. Members watching the exact same show see different poster images for it — someone who watches a lot of one actor's work sees that actor featured; someone who mostly watches romance sees a romantic scene from the same title. There is no "best poster for this show" sitting out there waiting to be discovered by an experiment, because whether a poster works depends on who's looking at it, not on any property of the poster or the title.

There is no "best image for this title" to discover, because the best image is a fact about the viewer, not about the title.

The tool for this isn't an A/B test — it's what's called a contextual bandit. The name comes from a slot machine (a "one-armed bandit"): picture a row of slot machines with different, unknown payout rates, and your job is to make money by choosing which lever to pull, over and over. Pull whichever one has paid best so far and you earn steadily — but you might be missing a better machine you haven't tried enough to know about. Pull an unfamiliar one instead and you're giving up a sure thing for information. A contextual bandit makes that same trade-off continuously, except each "lever" is a candidate artwork image, and before pulling it also looks at context — who this particular viewer is — to decide which lever is worth pulling right now. The diagram below shows that decision loop running once, live, for every homepage load:

Artwork selection drawn as one closed feedback loop instead of an A/B test. Two inputs feed a policy: this member's context features, and this title's set of candidate artwork images. The policy, a contextual bandit, scores every candidate image for this member at request time. It leaves by two paths that merge into the one image actually shown on the row: exploit, most impressions, the highest predicted engagement; and explore, a deliberate slice, an image the model is unsure about. The impression is logged with its context, becomes observed engagement (did they stop on it, play it, finish it), and the reward signal becomes one labelled model update of this context, this image, this outcome, which is folded back into the policy by a periodic batch retrain: later impressions use the new model. The cycle closes; it never ends, and every impression re-decides. An inset compares traffic allocation round by round. An A/B test over three candidate images holds the same three equal shares every round, then ends and ships one winner to everyone. The bandit re-scores the shares from what was just observed, so allocation shifts toward what works, never ends, and always keeps a slice on the other images. A conventional A/B test assumes one variant is globally better, then finds it, ships it and stops; that is the assumption that fails here, because the best image is a fact about the viewer, not a property of the title.
Artwork selection is a bandit loop, not an A/B test. There is no globally best image to converge on, so the system never stops choosing — and it must keep exploring, or it locks in early winners and never learns what works for a group it barely sampled.

Two properties fall out of treating this as a bandit problem rather than an A/B test:

It never finishesThere's no winner to declare and no point where the test "ends" — every homepage load is its own fresh decision, re-made for whoever is looking at the screen right now.
It deliberately guesses sometimesMost of the time it shows the image its model currently believes will do best for this viewer (exploit). But a small, deliberate slice of the time it shows an image it's genuinely unsure about instead (explore), trading a little performance now for information later. Skip that step and the model locks onto whatever looked good early and never finds out it was wrong for a group it barely sampled.

What's precomputed and what runs live

The loop above can make it look as if a lot happens during every homepage load. It doesn't. The expensive work — making the images, labelling them, learning from past impressions, summarising your taste — all happens offline in batch. The request path does only one small job: pick one of about a dozen already-labelled images, using features that are already cached.

PieceWhen it happensWhat it costs
Candidate imagesOffline, once per title — made by artists and designersPeople, not machines — designers spend working hours making each image by hand; a handful to a dozen per title
Image tags (actor, tone, genre cues)Offline — human tagging plus computer visionBatch compute; fixed once the image exists
Your features ("watches romance", "follows this actor")Offline batch from viewing history, then cachedA cache read at request time
The model itselfRetrained on a schedule from logged impressions — not after every clickBatch training; hours to days behind the latest data
Scoring ~10 candidates for youLive, per tile on the page being builtA small model over cached inputs — microseconds per title
Explore coin-flip + loggingLive — the pick and its probability are loggedNegligible; the logged probability lets new policies be evaluated offline on old data (replay)

The live step is cheap because it's small: choose 1 of ~10 pre-labelled images using features already sitting in a cache. "Every impression re-decides" means every impression re-scores — not that the model learns on every impression.

The Invariants

  • Guarantees: A member's experience within one test is stable for its whole duration, and independent of their group in any other concurrent test.
  • Does not guarantee: That a fast proxy predicts retention. Proxies buy iteration speed; they don't replace eventually checking the number that matters.