16

10:45 - 12:10

From static offline models to online drift correction

Watch from 10:45

An offline evaluation can tell us whether an agent works on a fixed dataset. It cannot guarantee that the same agent will keep working when real production data changes. Food images, merchant behavior, menus, devices, and markets evolve. The system therefore needs a second loop that repeatedly checks fresh production examples and uses the results to guide a safe update.

Source focus (10:45–12:10): The presenters describe a production-data loop: sample live data regularly, obtain human labels using the same guidelines as the offline evaluation, compare the labels with the agent's output, diagnose the mismatch, auto-tune the relevant configuration, benchmark against golden data, and ship only if guardrails pass. The source does not specify the sampling cadence, diagnosis taxonomy, tuning mechanism, or threshold values.

The problem with a model that never changes

The earlier offline loop aligned the router with a human-labeled golden dataset. That dataset is useful because it gives the team a stable reference. The team can tune an agent against it, check routing guardrails, and decide whether a version is ready to ship.

But a shipped agent runs against a moving target. The production stream may contain new dishes, new camera conditions, different image styles, or cases that were rare or absent in the original dataset. The relationship between the input and the desired decision can change as well. This changing data or behavior is called drift.

Drift does not necessarily mean that the model's code changed. A static model can become less suitable because the world around it changed. For example, a router that was tuned on one collection of food photos may encounter a new pattern of merchant-submitted images. Its old instructions and thresholds may then produce more mismatches than they did offline.

The important contrast is:

Offline evaluation Online drift correction
Uses a fixed, curated reference set Samples fresh cases from production
Gives a stable benchmark for comparison Reveals what is happening now
Supports a release decision before deployment Detects weaknesses after deployment
Is repeatable because the data is held constant Must account for changing real-world inputs

These are complementary roles. The online loop does not make the golden dataset unnecessary. The golden data remains a controlled benchmark for checking whether a proposed change is safe and whether it still meets the intended behavior.

The closed loop, step by step

The production correction process can be understood as a sequence of evidence and decisions:

sample fresh production data regularly
                    ↓
have people label the sampled cases
                    ↓
compare human labels with agent output
                    ↓
diagnose the mismatch
                    ↓
auto-tune the relevant agent or configuration
                    ↓
benchmark the updated version on golden data
                    ↓
       guardrails pass? ── yes ──> ship
              │
              no
              ↓
        tune and iterate

Each step answers a different question. Keeping the questions separate prevents the loop from becoming an unexplained command to “improve the model.”

1. Sample what the system is really seeing

The loop begins with data from live production traffic. The team samples this data on a recurring basis instead of examining only the original offline set. Regular sampling makes the loop a continuing check rather than a one-time audit.

The source does not state how often sampling happens or exactly how cases are selected. The safe conclusion is only that fresh production examples are collected regularly. The purpose is to expose the agent to the conditions it currently faces.

2. Reuse the human labeling guidelines

The sampled cases are sent to human labelers. They use the same guidelines used to create the offline human-aligned evaluation data. This matters because a comparison is meaningful only when the target behavior is defined consistently.

The labels are the reference for the sampled cases. They can indicate, for example, that the agent's routing decision did not match the intended decision under the evaluation rubric. The source does not claim that human labeling is perfect, nor does it provide a sample size or an agreement procedure.

This point also resolves a common misunderstanding about automation. The tuning loop can be automated, but that does not mean that humans disappear from the evaluation story. Humans still provide the labels that establish what the fresh cases should have received. Automation begins after this evidence is available: the system compares, diagnoses, and proposes or applies a configuration update.

3. Compare the agent with the fresh target

The system compares the agent's production output with the human-labeled result. A mismatch is evidence that the current behavior may not fit the current data.

The comparison should be read as a diagnosis trigger, not as an automatic explanation. A mismatch says that the observed output and intended output differ. It does not yet say whether the router, an editor, a QA check, or some configuration caused the problem. That localization is the next step.

4. Diagnose before tuning

The presenters describe an umbrella diagnosis stage. Its job is to examine the mismatch and identify where the problem belongs in the system. This separates two actions that are easy to confuse:

  • Diagnosis asks, “Which behavior or component is failing, and what pattern explains the failure?”
  • Tuning asks, “What change should be made to address that diagnosed problem?”

Suppose several fresh cases show that the router is approving images that should have been caught. The useful correction is different from the correction for an editor that changes source content, or for a QA gate that misses a policy issue. A system that skips diagnosis might retune every agent at once. That makes it harder to know what fixed the mismatch and easier to damage behavior that was already working.

The exact diagnosis categories are not given in the source. The durable idea is to localize the issue before selecting the update.

5. Auto-tune the relevant configuration

After diagnosis, the loop automatically tunes the agent, prompt, or system configuration associated with the issue. In this chapter, configuration means the adjustable instructions or settings that control an agent's behavior. The source does not say that model weights are retrained here, and it does not disclose the configuration format or tuning algorithm.

Targeted tuning is important because a multimodal workflow contains several cooperating stages. If the evidence points to routing, tune the routing behavior rather than assuming the image editor is responsible. If the evidence points elsewhere, route the correction accordingly.

This is the practical meaning of a closed loop: production evidence does not stop at a dashboard. It is carried back to the part of the system that can change, and the resulting change is tested before it is allowed to return to production.

At about 11:37, the slide depicts production traffic entering routing, a human verification step using a golden procedure, mismatch-driven diagnosis and tuning, benchmarking, and shipping. A dashed path sends the process back to fresh production traffic. The slide does not visibly show the phrase “static offline model” or explicit labeler wording; those details come from the surrounding spoken explanation.

Benchmark the change against the stable reference

An update that helps recent production cases can still harm cases that previously worked. That is why the tuned agent is benchmarked against the golden data before shipping.

The golden benchmark acts as a regression check. It asks whether the new configuration still satisfies the established behavior and guardrails on the representative reference set. The production sample finds a current problem; the golden set checks that the proposed repair does not create a broader problem.

The release logic is therefore deliberately conservative:

  1. A fresh production mismatch motivates a targeted change.
  2. The changed agent is evaluated again.
  3. The result is compared with the golden benchmark and guardrails.
  4. If the checks pass, the new version can be shipped.
  5. If they fail, the system keeps iterating instead of releasing the unsafe update.

The source does not give the guardrail thresholds. It does make the ordering clear: tuning comes before benchmarking, and shipping comes only after the checks pass.

Why this is better than reacting to one failure

A single bad output is useful evidence, but it is not enough to establish drift. Production sampling creates a recurring view of behavior. Repeated comparisons can reveal that a mismatch is systematic rather than an isolated case.

The loop also preserves the distinction between coverage and quality. A system might avoid a difficult class of images by refusing to enhance it, but that does not necessarily solve the production need. Conversely, an aggressive update might enhance more images while damaging faithfulness or trust. Fresh labels and golden-data guardrails let the team evaluate the tradeoff instead of optimizing one visible number in isolation.

This is teaching context derived from the system design, not a numerical result reported by the presenters: a useful drift loop should look for repeated changes in behavior and should check both the newly observed cases and the established reference cases. The talk reports no specific uplift, cadence, or threshold.

Engineering consequences of keeping the loop alive

The loop has to run as a production capability, not as a manual investigation performed once. That creates several engineering requirements:

  • Configuration-driven changes: the parts that can be tuned need a controlled representation that the automation can update and evaluate.
  • Observability: the team needs evidence about what version ran, what cases were sampled, what mismatches were found, and what happened after a change.
  • Guardrails: automated tuning must be bounded by quality, safety, and other release checks.
  • Repeatability: the same evaluation procedure must be usable across successive samples and versions.
  • A live feedback path: after deployment, new production data must be able to re-enter the process.

These are consequences of the closed-loop design. The source does not provide a particular storage system, schema, optimizer implementation, or operations schedule. It presents the larger principle: automation can keep the system responsive to drift only when its inputs, decisions, and release checks remain visible and testable.

The mental model to keep

Do not think of offline evaluation as a certificate that lasts forever. Think of it as a stable measuring stick. Do not think of online tuning as unconstrained self-modification. Think of it as a recurring correction process bounded by human-defined targets and release guardrails.

golden data       = stable reference for regression and release safety
fresh production  = evidence about current conditions and drift
human labels      = target behavior for sampled cases
diagnosis         = localization of the mismatch
tuning            = targeted configuration change
guardrails        = permission to ship or a reason to iterate

Together, these pieces turn a static offline model into a maintained production system. The agent can respond to new failure patterns, but every proposed correction is still compared with a trusted reference before it is released. The next part of the lesson makes the tuning stage more concrete by describing prompt optimization, version registration, observability, and rollback.

Source visuals

A slide titled ‘Routing: Online Tuning Focused on Drift’ shows a closed loop from live production traffic through routing, verification, diagnosis and tuning, benchmarking, and shipping, with fresh production traffic re-entering the loop.

The visible diagram directly supports the transcript’s recurring evaluation flow: production traffic feeds routing, a human verification step uses a golden procedure, mismatches lead to diagnosis and tuning, benchmarking precedes shipping, and a dashed loop sends the process back through fresh production traffic. The image does not visibly show the transcript’s phrase ‘static offline model’ or explicit labeler wording.

Source at 11:37
100% Space + drag to pan | Ctrl/Cmd + wheel to zoom