Describe the role of A/B testing in MLOps.
Instruction: Explain what A/B testing is, its importance in the context of MLOps, and how it can be effectively implemented for model evaluation in a production environment.
Updated
Example Answer
A/B testing is how you evaluate whether a new model actually improves production outcomes compared with the current model. A well-designed and correctly measured randomized experiment can support causal conclusions for its population and setting.
In MLOps, it matters because many models that look better offline do not produce better user or business outcomes once exposed to real traffic. Good A/B testing requires correct randomization, guardrail metrics, and monitoring for segment-level regressions, not just a single win rate.
Implementation detail
Choose a randomization unit that limits interference, keep assignment stable where repeated users require it, and define the primary outcome, guardrails, minimum useful effect and analysis/stopping rule before launch. Log assignment and actual exposure separately; check sample-ratio mismatch and missing outcomes before interpreting differences. Allow outcomes to mature, report uncertainty and investigate meaningful segment harms. A canary for operational health is not automatically a powered efficacy experiment.
Source: Microsoft Experimentation Platform: diagnosing sample-ratio mismatch.
Common Poor Answer
A weak answer says A/B testing compares two models, without explaining why live causal evaluation matters in MLOps or how it should be designed.