← Questions

Debug a model whose accuracy drops after deployment

0
OpenAIAI/ML designLast asked Aug 2025

An AI/ML design interview question asked in OpenAI's technical screen (coding), last asked Aug 2025. It tests debugging, monitoring and data drift.

A model that scored well offline loses accuracy suddenly once it serves production traffic. Walk through how you would debug the whole pipeline: where you look first, how you tell a data problem from a code or serving problem, and how you prove the fix worked.

Requirements

  • Functional: a step-by-step plan from the first alert to a confirmed root cause and fix, with the tools and metrics used at each step.
  • Non-functional: users are affected now, so the plan should stop the damage quickly (rollback, fallback) before the deep investigation.

Clarifying questions

  • How do we know accuracy dropped: labels arriving later, a proxy metric, user complaints?
  • Was it sudden or gradual, and did anything ship around that time (model, features, upstream data, library versions)?
  • Does it affect all traffic or a slice (a region, a client version, a feature value)?
  • Can we replay production inputs through the offline pipeline?

What a strong answer covers

  • Triage first: confirm the metric itself is not broken, check what changed and when, roll back if a release lines up.
  • Training and serving skew: log the features the model saw in production, run them through offline code and compare; preprocessing, tokenization, units, defaults for missing values, feature freshness.
  • Data drift and concept drift: compare input distributions (PSI, KL, simple histograms) and label rates before and after, by slice.
  • Serving problems: wrong model version or weights loaded, different thresholds, numeric precision, timeouts that return defaults.
  • Confirming the fix: a reproduced failure, a test that guards it, a shadow or canary run, and monitoring that would catch it next time.

Follow-ups

  • Labels arrive only two weeks later. How do you detect the drop sooner?
  • Everything you compared looks identical, yet accuracy is still down. What next?
  • Which checks would you automate so this cannot happen silently again?

Where it's asked

  • OpenAI · Technical screen: coding · Last asked Aug 202560 min · One problem in three to five growing parts filling the hour, usually in CoderPad; ML roles get a Colab notebook with autocomplete off · No AI assistants or autocomplete; documentation is fine

What it tests

debugging · monitoring · data drift

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing