Alistair McCormick

Back to writing

Your AI content needs a control group

We test button colors more carefully than we test the AI that writes our product. That seemed backwards, so we fixed it. Here's how we did it at my company, and what our first experiment showed.

Reading the output isn't measuring it

Most teams judge AI content the same way. Someone reads a sample, it looks good, and it ships. Maybe there's a set of test cases. Maybe another model grades the output. All of that tells you whether the content is plausible. None of it tells you whether it changed anything for the people using your product.

At my company, AI touches a lot of what our users read: translations of our recipes into American English and French, "adapt this recipe" tips, and generated method steps. Until this year, all of it worked the same way. We published a recipe, generated the AI content, and every user got it. Nobody was left out, so we had nothing to compare against. If a prompt change made things worse, or if a whole feature made no difference, we had no way to know.

We would never launch a new onboarding screen to 100% of users without an experiment. Yet a model was rewriting thousands of recipes with no comparison group at all. So we built one in. (For the bigger system this sits inside, see Removing misinformation in AI content.)

How we made AI content testable

We wanted any type of AI-generated content to be easy to A/B test, not just the first one we tried. That ruled out a one-off hack. A few decisions shaped the design.

We assign people, not recipes. The cheap approach is to split the recipes: half get the new prompt and half get the old one. But then every result is muddied by which recipes landed where, and one very popular recipe can swing the whole outcome. So we generate every version for every recipe and decide, per user, which version they see. That doubles the generation cost for whatever we're testing. It's worth it for a clean answer.

One place defines what each version means. Our feature-flag tool decides which users see which version. A small registry in our content service decides what each version actually is: which prompt, which model, which settings. The names in the registry match the flag's names exactly, and that match is the only connection between the two systems.

Everything is tagged with its version. Every AI run, every piece of stored content, and every "this was shown to a user" event records which experiment and version it belongs to. With that one tag, we can compare versions four ways:

  • Quality, from the automated scoring we run when the content is generated
  • How often an editor had to fix it
  • What users did, from product analytics
  • What users said, from recipe comments

The first two don't need any users at all, and that turned out to be a handy early filter. A version that editors keep rewriting probably shouldn't be shown to users in the first place.

The server decides at the moment of serving. When the app asks for a recipe, our content service works out which version that user is in, returns the matching content, and logs that it was shown. If there's no version ready yet, if the flag service is down, or if the user isn't logged in, it falls back to the standard content. Cached content is stored separately for each version, so one group's test content can never leak to everyone else. We learned that last one in code review. An early version cached the fallback under the test version's name, which would have quietly shown stale content to the whole test group once the real content arrived.

Prompts are never edited in place. Changing a prompt means registering a new version and pointing the test at it. Every piece of content records which version produced it, so any result can be traced back to the exact prompt behind it.

Our first test: is translating British recipes worth it?

We planned to start with the adaptation tips, but we started with translation instead, because it was the bigger and more uncomfortable question. Our recipes are written in British English. For US users, a model rewrites each one in American English: "coriander" becomes "cilantro," "grill" becomes "broil," and a "knob of butter" becomes something an American would recognize. US copy editors had spent many rounds refining that prompt. Nobody had checked whether it mattered.

The setup. US users only. Most of them (80%) got the translated recipes, which was already the default. The other 20%, our comparison group, got the original British text. So the experiment didn't ask "Should we turn translation on?" It asked "Should we turn it off?" That matters, because when the test ends, switching it off just puts everyone back on the default. There's no new release and no cleanup. It ran for 19 days.

Getting ready turned up a bug. Before launch we audited the translation path from start to finish and found something worse than any test result. When the model reordered an ingredient list, quantities could end up next to the wrong ingredients, and our quality check didn't notice. We fixed it by matching on ingredient IDs instead of position in the list. The point here is that without the push to measure translation, that bug could have lived a lot longer.

What happened.

  • Cooking didn't change. The share of users who cooked a recipe was flat between the two groups. Translated or not, people cooked at the same rate.
  • Cancellations did change. Users on a free trial who saw translated recipes canceled noticeably less often than the comparison group. The test put the probability that translation really reduced cancellations well above 90%.
  • Everything else was flat. Trial conversion and other engagement numbers showed no difference we could detect.

Our read is that translation doesn't change whether people cook, but it changes whether the app feels like it was made for them. A US user running into "courgette" and "knob of butter" on day two of a trial is quietly being told the product isn't for them.

Reading the result honestly

It would be easy to write this up as "AI translation reduces churn" and stop there. The real result is more qualified, and the qualifications are the useful part.

Our main metric didn't move. We picked "cooked a recipe" as the main metric because it's the core of what we offer. It was flat. The win showed up in a secondary metric. That isn't wrong, but it's exactly when you should be most suspicious of yourself. Check enough secondary metrics and one will look good by chance. We gave this one weight because the effect was large, it was in a number we already cared about, and there was a believable reason behind it. It wasn't just the only green number on the page.

The comparison group was small. Twenty percent of US users over 19 days gave us a small group, well short of the sample size our testing tool recommended. So the flat results prove very little. "We didn't detect a difference" is not the same as "there's no difference." Keeping the group small was a deliberate trade-off, because we didn't want to withhold translation from many users for long. But it means we should say "we didn't see an effect," not "there isn't one."

The bar for keeping it was low, and that's fine. Translation was already the default, so the only question was whether it was worth keeping. A neutral result would have been enough, since it's cheap to run. A clearly negative one would have made us rethink it. If you can, write those outcomes down before the test starts. It makes it much harder to talk yourself into a result afterward.

Shipping the winner took no work. Because the test only withheld the default, ending it meant marking it finished in our registry and stopping the flag. Everyone went back to the translated content. Designing the test so that "off" equals "the winner" saved us from a risky launch at the end.

What's next, and what I'd tell other teams

The same setup is already running on our recipe adaptation tips. There, the interesting comparisons aren't "on vs. off." They're different prompts or different models. The question gets sharper: does a more expensive model write tips that users actually act on, or just tips that read better to us?

If you're shipping AI content, here's what I'd take from this:

  • Put a comparison group on your AI content. Even a small one. Reading the output tells you whether it's plausible. A control group tells you whether it matters.
  • Assign people, not content. Splitting the content is cheaper and gives you a muddier answer.
  • Tag everything with its version. Put it on every generation, every stored piece of content, and every "shown to a user" event, and you can line up quality scores, editor fixes, and user behavior for each version without custom analysis.
  • Use the early signals as a first filter. Automated quality scores and how often editors rewrite things are available before any user sees a version. Don't show users a version your own editors keep fixing.
  • Make "off" the safe state. Design the experiment so that ending it puts everyone back on a known-good default.
  • Expect the setup to find bugs. Wiring up a path from start to finish, thoroughly enough to trust an experiment on it, is one of the best audits you'll ever do.
  • Be honest about what you can detect. A small group can find a big effect. It can't prove there's no effect.

As an industry, we spend a lot of energy asking whether AI output is good. The more useful question is usually whether it's better than not having it, for real users, on the numbers you already care about. That question has a standard answer, and it's the boring one: run the experiment.