Large Model Canary Release and Routing: Why the UI Shows One Version While the Backend Runs Another
This article explains why a chat or coding interface can still display an old model option while requests are actually served by a newer model, and shows that this is expected behavior of canary (gray) release rather than a display bug. It breaks model versioning into the interaction, routing, and inference layers, outlines why large model services rely on canary releases to hedge quality variance, cost and capacity, and compatibility risks, and walks through a sample weighted routing configuration covering logical-to-physical decoupling, session stickiness, tag-based targeting, and fallback. It also describes black-box capability probes for inferring the active version, an engineering checklist for the canary period, and common pitfalls to avoid.
1. The Symptom: The UI Shows the Old Version, but the New One Is Serving Requests
Some developers have noticed an unusual behavior in AI coding tools: the interface still shows the old model option, yet the style, level of detail, and response latency of the generated output all look like they come from the new version. This mismatch between the interface and the backend is not a defect. It is a typical outcome of canary release (also called gray release) in a model-serving environment.
To understand it, start by splitting the abstract idea of a “model version” into three layers:
- Interaction layer: the model options, plan names, and entry buttons that users see.
- Routing layer: the set of rules that maps a request to a specific backend instance.
- Inference layer: the model service that actually holds the weights and runs the forward pass.
The core idea of canary release is to keep the interaction layer unchanged and perform a controlled traffic shift only at the routing layer. So “I selected the old version but the new one ran” is expected behavior, not a rendering error.
2. Why Large Model Services Depend on Canary Release
Canary release for a traditional web service mainly validates code correctness. For a large model service, it also hedges three additional classes of risk:
- Quality variance. Model output is stochastic, and the same prompt can differ noticeably under different sampling parameters. Only sustained observation on a small traffic slice can separate a genuine capability gain from random fluctuation.
- Cost and capacity. A new model version usually has more parameters and a larger memory footprint, so a full cutover can exhaust the existing compute quota. Traffic has to be ramped up gradually by percentage.
- Compatibility. Prompts, structured output formats, and function-calling protocols may differ subtly between old and new versions, and the canary window is the most economical place to catch regressions.
3. Common Ways to Implement Canary Routing
The routing layer typically maintains a version mapping table whose keys are logical model identifiers and whose values are the actual backends:
model_routes:- logical_id: coding-assistant-large # logical name shown in the UIstrategy: weighted # weighted traffic splittargets:- backend: v5-5-extraweight: 80- backend: v5-6-canaryweight: 20sticky_keys: [tenant_id, session_id] # session stickinessfallback: v5-5-extra # fallback target
A few design points matter:
- Decouple the logical name from the physical version. The frontend only knows the logical identifier, so version switches are transparent to users. This is the root cause of “selected the old one, ran the new one.”
- Session stickiness. The same session should hit the same backend as much as possible, so the context style does not shift mid-conversation. A common approach is consistent hashing on the session identifier.
- Weighted and tag-based canary coexist. Weighting suits gradual percentage ramp-up; tag-based canary suits targeted validation, for example exposing the new version only to internal tenants or a specific channel.
- Fallback. When the new version times out or trips the circuit breaker, traffic automatically falls back to the stable version, keeping availability the priority.
4. How to Tell Which Version You Are Actually Hitting
Without relying on any search capability, you can use a black-box “capability probe” approach: infer backend behavior from a set of boundary cases.
- Stability probe: fix the prompt and sampling parameters, repeat several times, and measure the variance of the output distribution. The new version usually shows lower variance and steadier instruction following.
- Latency probe: record time to first token and overall throughput. Changes in architecture or parallelism strategy produce observable differences.
- Long-context probe: feed a document close to the context limit and check recall of information in the middle section.
- Structured output probe: require strict JSON output and measure the rate of missing fields and format errors.
Note that these probes only yield probabilistic judgments and cannot replace the version identifier returned by the server. In engineering practice, it is better to expose the routing result in the response metadata so issues are easier to diagnose.
5. Engineering Checklist for the Canary Period
- Build a model access layer. Business code should not call the inference endpoint directly; route everything through an adapter that centralizes version mapping, retries, timeouts, and telemetry.
- Run dual-track evaluation. Compare an offline evaluation set against real online traffic, with metrics covering at least correctness, format compliance rate, latency, and cost per call.
- Set the ramp-up cadence. A common progression is 1% → 5% → 20% → 50% → 100%, with a defined observation window and rollback threshold at each step.
- Ensure observability. Logs should record the logical name, the actual backend, elapsed time, and error codes; dashboards and alerts should be split by version so overall metrics do not hide a local regression.
- Control cost. Use a message queue for asynchronous peak shaving, archive evaluation samples in object storage, and run elastic inference replicas on a container platform.
6. Common Pitfalls
- Treating the version name in the UI as ground truth. The UI carries product semantics; routing is the runtime fact.
- Drawing conclusions from a single interaction. Model output is highly stochastic, so multiple samples are required.
- Overlooking prompt regressions. A new version may interpret instructions more “freely,” and older constraint phrasing can stop working, so prompt templates need to be updated alongside the model.
- Validating only the happy path. The rollback path must be drilled regularly, otherwise there is no fast way to limit the damage during an incident.
7. Conclusion
“Old version in the UI, new version on the backend” is simply the canary routing mechanism showing through. What developers really need is not to guess when a version reaches full rollout, but to build an access and evaluation layer that is decoupled from versions: traffic stays controllable, quality stays measurable, and failures stay revertible. With those three in place, the business side keeps producing stable output no matter how the backend shifts traffic.
