Progressive delivery swaps a model or prompt without exposing all users at once. Blue-green runs two full environments and flips all traffic. Canary sends a small share to the new version and ramps up. Shadow mirrors live traffic to the new version without serving its responses.
Three ways to expose a new model
Blue-green. One environment runs the current version and the other hosts the new one. When ready, you flip all traffic. The old version stays hot, so rollback is instant.
Canary. Route a small percentage, say 1%, to the new version and watch quality, error rate and cost. If those hold, ramp to 5%, 50% and then 100%. A drop triggers rollback, ideally automatically.
Shadow. Run the new version in parallel on mirrored traffic and log its outputs for offline comparison with production. Users never see them, so it is the safest way to validate a change against live inputs. You compare the new model with the old one on the same requests and confirm that quality improves before users see the new version.
Why LLM regressions need quality checks
Ordinary service rollouts watch latency and error rates. A language model can regress in answer quality while every request still succeeds, so a hard cutover that passes initial tests can hit 100% of users with a subtle decline. Users lose trust when answers quietly get worse. Limiting exposure keeps that blast radius small and lets you collect data on how the new model behaves on live traffic. Shadow mode goes further: you capture and analyze the new model's responses before anyone depends on them.
Choosing between the three
The table compares the patterns on capacity, speed of rollback and risk to users.
| Pattern | Pick it when | Cost |
|---|---|---|
| Shadow | You want to validate a candidate on production inputs with no user risk | Extra inference on mirrored traffic |
| Canary | You want a gradual rollout watching live quality and cost | Some users see a regression before rollback |
| Blue-green | You need an instant, clean rollback | Capacity for two full environments |
Example scenario: latency complaints after a flip
Suppose that after a blue-green switch, 30% of users report higher latency. The new model may be slower on some input types, or may fail and retry more often on certain edge cases, which adds delay.
- Read logs for error messages and stack traces from the new model.
- Compare input features of requests sent to both versions.
- Check that the new model's training data included representative samples.
Roll back to the previous model first, since the old environment is still hot. You lose the new improvements for a while. Watch error rates and user feedback before trying again.