Skip to main content

Offline Evaluation Up but Online Flat: Suspect the Experiment First, the Pipeline Next, the Model Last

· 4 min read
Jack Ning
Maintainer of Bytedesk

Offline evaluation accuracy improved by 10 percentage points; after gray release, the online resolution rate did not budge—one of the most demoralizing moments for a customer service AI team. You invested compute, labeling, and engineering time, and the metrics vanished into a black hole. The most dangerous team response is "train another version," because the problem is likely not the model at all.

This is the fourteenth article in an experience-sharing series on "AI customer service product and engineering practice," drawn from hands-on practice as an AI Product Manager focused on IM intelligent customer service at a local-life services platform. In this post I want to share how to use traffic stratification, A/B testing, user-behavior funnels, and bad-case attribution to determine whether the problem lies in model capability, product interaction, business tools, or experiment design, when an Agent version gains 10 points of offline accuracy but shows no meaningful online resolution improvement after gray release.

The heart of it is systematic attribution—turning "it feels worse online" into locatable, assignable problems.

Illustration: Attributing the gap between offline gains and online reality

Three Key Points in Gap Attribution​

  1. Systematically attribute the online-offline gap, rather than blaming a single link.
  2. Master traffic stratification and A/B testing to rule out "false problems" first.
  3. Distinguish the four root causes (model, interaction, tools, experiment) and prescribe for each.

Overall Approach​

My attribution order: "suspect the experiment first, then the pipeline, and the model last."

Step 1: Check the Experiment First — Rule Out False Problems​

A sizable share of "online-offline inconsistency" is really a counting and stratification issue:

  • Is the gray traffic randomly stratified? Are new/returning users, peak/off-peak, and business lines balanced?
  • Is the sample size sufficient? Does the observation window cover resolution lag (e.g., did the refund actually settle)?
  • Are the evaluation metric and online metric the same thing? Offline "accuracy" and online "real resolution rate" are fundamentally different.

Metric mismatch is the most common false problem—offline measures "answered correctly," online measures "got it done," and an entire product pipeline separates the two.

Step 2: Localize with the User-Behavior Funnel​

Decompose the online resolution path into a funnel: message delivery → intent recognition → clarification → tool call → result reply → user acceptance.

Compare conversion rates per stage between old and new versions to find the broken link:

  • No difference at the intent stage but no overall gain → the knowledge the model improved may occupy a tiny share of real traffic (test-set bias);
  • Tool-call stage drops → business tooling issues (unstable APIs, rule blocks);
  • Users still transfer to human after the reply → interaction issues (replies too long, unclear buttons, no actionable options).

Step 3: Bad-Case Attribution​

Sample failed sessions from the gray cohort and tag four root causes:

  1. Model misunderstanding — model layer;
  2. Interaction design losing users — product layer;
  3. Tool-layer failures — engineering layer;
  4. "Model was right, but such questions are rare in real traffic" — gains diluted by distribution mismatch; an experiment problem.

Step 4: Conclusions and Iteration​

  • Model problem → targeted training data and eval sets;
  • Interaction problem → restructure replies and action entries;
  • Tool problem → push API stability work;
  • Experiment problem → fix stratification and metric definitions, then rerun.

The value of this method is assignability: four root causes map to four teams—algorithm, product, engineering, data—and attribution results become each team's action items directly.

Practice in Weiyu​

Weiyu, the open-source AI customer service system (GitHub, website), provides observable foundations for this attribution: sessions and messages are logged end-to-end, reconstructing the full "delivery → recognition → reply → transfer" funnel; session statistics support before/after comparisons over time windows; session QC ties into VOC negative ratings, giving bad-case sampling a clear entry point; and the AI module's multi-model configuration switching enables A/B experiments.

Takeaways​

  • Fixed attribution order: experiment design first, product pipeline next, model last.
  • Offline "accuracy" and online "real resolution" measure different things—confirm they are the same question first.
  • Compare stage conversions with the behavior funnel; the broken stage points straight at the root cause.
  • Four bad-case root causes (model/interaction/tools/distribution bias) map to four teams' action items.
  • "Model was right but such questions are rare" is diluted gain—an experiment problem, not a model problem.