Generative UI vs static A/B testing

Generative UI vs static A/B testing is a choice about who gets which page. A static A/B test splits traffic between a few fixed variants to find the one that works best on average, while generative UI assembles the page for each visit from what that visitor is doing. Generative UI does not replace the test, because you still need a control group to know whether the generated page beats the static one.

By Alex DeanUpdated

In generative UI vs static A/B testing, the test finds one page for everyone and generative UI builds a page per visit. They answer different questions, so most teams end up using both. If you run A/B tests today, this page covers where they stop working, the step most teams take in between, and how to measure a page that is different for every visitor. For the idea itself, start with what is generative UI.

What does a static A/B test assume?

A static A/B test builds two or more versions of a page, assigns each visitor to one at random, and keeps them there until the test ends. You then compare a metric, such as signups, across the groups. Random assignment is what makes the result trustworthy: the only systematic difference between the groups is the page.

The method also assumes there is a single best variant for everyone. When the test ends you ship the winner to all traffic, including the visitors for whom the losing variant would have worked better.

Where do A/B tests break down?

Three places, and they compound.

Segments. The winner on average can lose for a large group. Engineers may prefer the page that leads with code, while buyers prefer the one that leads with price. The aggregate result hides both, and shipping it serves one group the wrong page.

Sample size. The usual fix is to test per segment. Each segment then needs enough traffic of its own to reach a result. Split the traffic five ways and each segment collects data at a fifth of the rate, so a test that needed two weeks site-wide needs about ten, and small segments never finish.

Decay. A winner is a snapshot. The traffic mix shifts when a campaign starts, the product changes, and a variant’s early lift can fade once returning visitors stop noticing it. The test does not tell you when its answer stops being true, so teams rerun tests or live with a stale winner.

Contextual bandits: the step in between

A multi-armed bandit shifts traffic toward the variants that are converting, while the test is still running, instead of holding a fixed split. A contextual bandit goes one step further: it learns which variant works best for visitors with a given context, such as device or referrer, and picks per visitor. Statsig’s documentation puts the line simply: use a contextual bandit “to personalize the variant Statsig serves each user based on their context features,” and a plain bandit “to converge on one global winner for all users.”

The approach is well studied. The paper usually cited is Li, Chu, Langford and Schapire’s contextual-bandit approach to news recommendation at Yahoo, which picked articles per visitor from user and article context. Eppo describes its contextual bandits as suited to “lightweight and dynamic recommendation problems,” such as promotions and recommendations.

Bandits have limits worth knowing before you swap one in. Optimizely’s documentation says multi-armed bandit optimizations “do not generate statistical significance” and that “MAB is for optimization, not experimentation.” A bandit also still chooses from variants a team designed and built. It answers which of these pages, and leaves the number of pages where it was.

Where generative UI goes further

Generative UI changes the unit. There is no fixed set of pages to choose between. The app reads what is true about the visit, then a set of rules or a model picks components from your library, orders them and fills them, and the page is assembled on the request. Two visitors can get layouts nobody drew as a whole, built from parts somebody did. Generative UI vs server-driven UI covers how that composition is delivered.

The context also changes. A bandit usually reads context known at assignment: device, country, referrer, a stored segment. A generated page can read what the visitor has done in this visit, including what they did just before this request, and change on the next page view. That is what makes it an adaptive experience rather than a better-targeted variant.

How do the approaches compare?

Static A/B test Multivariate test Contextual bandit Generative UI
What it decides Which of a few pages wins on average Which combination of element versions wins on average Which pre-built variant to show this visitor What to assemble for this visit
Who sees what Each visitor gets one variant for the whole test Each visitor gets one combination Visitors with similar context get the same variant Each visit can get a different page
Context it reads None None Attributes known at assignment Attributes, including what happened earlier in the visit
Traffic it needs Moderate, split across a few arms High, split across every combination Less wasted on losers, but it needs time to learn Whatever the holdout comparison needs
What it tells you Which variant caused the lift Which elements matter, and how they interact Reward earned during the run, with no significance test in some tools Nothing by itself; you add a control
What you maintain A few full pages A grid of element versions A set of variants plus the model A component library, rules or a model, and the data

Example: one landing page under each approach

Take the landing page for a developer tool. Some visitors arrive from search reading the docs, others from an ad and head straight to pricing.

  • Static A/B test. Variant A leads with a code sample, variant B with pricing. B wins on average because ad traffic is larger this quarter. Every visitor, including the engineers, now gets B.
  • Multivariate test. Two headlines, two hero sections, two proof blocks make eight combinations. The test needs far more traffic than A/B to separate them, and still ships one combination to everyone.
  • Contextual bandit. The bandit learns that visitors referred from a docs site do better on A and visitors from paid search on B. It picks per visitor from the referrer, but it cannot react when a docs reader opens pricing twice in the same visit.
  • Generative UI. The page reads what this visit has done. A visitor who has opened pricing twice gets the pricing answer near the top. One who has read three docs pages gets the code sample and the install command. A first page view with no history gets your current default.

The generated page reads that history as attributes, values computed from events about one key, here the session:

from snowplow_signals import Attribute, Event, StreamAttributeGroup, domain_sessionid

pricing_view = Event(name="pricing_view", vendor="com.example", version="1-0-0")
docs_view = Event(name="docs_view", vendor="com.example", version="1-0-0")

pricing_views_session = Attribute(
    name="pricing_views_session",
    type="int32",
    events=[pricing_view],
    aggregation="counter",
    default_value=0,
)

docs_views_session = Attribute(
    name="docs_views_session",
    type="int32",
    events=[docs_view],
    aggregation="counter",
    default_value=0,
)

landing_intent = StreamAttributeGroup(
    name="landing_intent",
    version=1,
    attribute_key=domain_sessionid,
    owner="you@example.com",
    attributes=[pricing_views_session, docs_views_session],
)

Your rules or your model read those two values and decide what leads. The definition says nothing about what to render.

How do you measure generative UI?

The same way you measure anything that is meant to move a number: against a control. Every visitor seeing a different page does not remove the need for one, and it makes one more important, because there is no variant B to compare with.

  • Holdout. Randomly keep a share of traffic on the static page you would otherwise ship, and compare the generated page against it on the metric you care about. Statsig’s holdouts do this for a set of features over months; the same design works for one generated page.
  • Test the policy, not the page. You cannot A/B test a million layouts, but you can A/B test two ways of generating them: rules against a model, or composing from this visit against composing from a stored segment. The test measures the approach; generation produces each page.
  • Guardrail metrics. Pick the numbers that must not get worse while the main one moves: bounce rate, page load time, errors, refunds or unsubscribes. A generated page that lifts signups while slowing the page down has not won.
  • Log what was shown and why. Record the components picked and the values that drove the pick on every render. Without that record you can see that the holdout lost, but not which decision cost it.

Where Signals fits

A generated page needs data about the visitor that reflects what they did earlier in this visit. You can compute it yourself from an event stream, or use a service for it. Snowplow Signals is one option: it collects behavioral events, computes attributes like the two above, and serves them to your app on the request. The split, the decision and the readout stay in your own stack: your experimentation tool, your rules or your model. The rest of the generative UI topic covers the other parts, including why generative UI needs real-time state.

See it on your own traffic

Add the SDK, define one attribute, and see an attribute updating against your own traffic in the first session. The free tier runs on the real engine: no card, no sales call.