The interview problem

Practice prompt

Design a classifier update process that introduces new product categories while preserving old-category accuracy.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume an evolving taxonomy and permission to retain a bounded replay sample. Version label definitions, extend the output head and train with a stratified replay buffer plus new examples. Compare to full retraining where feasible. Evaluation includes old, new and redefined categories, with unknown labels kept separate. Publish model and taxonomy atomically so consumers interpret indices consistently.

2. Trace the design or derivation

Version taxonomy
  → sample replay
  → extend head
  → train
  → compare old and new slices

Retain a fixed old-class regression set that is not used for replay training. Evaluate both absolute accuracy and change from the previous release. If a category splits, define how old labels map into the new evaluation taxonomy; otherwise apparent forgetting can be a label-definition mismatch.

3. Calculate the example

A release scores 98% on 900 old examples and 60% on 100 new ones: aggregate accuracy is 94.2%. The aggregate hides poor new-class performance and says nothing about whether old accuracy fell from 99.5%.

4. Failure cases and trade-offs

Similar new labels can steal probability from old ones. A tiny replay buffer may omit rare modes; retaining all history costs storage and can preserve obsolete labels. Use explicit migration maps and compare per-class changes, not only overall accuracy. Retraining must respect data deletion requirements.

5. Validation, follow-ups and self-review

Test label-index mismatches, old rare classes and unknown items. Follow-up: what if old data cannot be retained? Self-review: distinguish class addition from taxonomy redefinition and quantify forgetting.

Sources and related practice

Technical reference: arxiv.org — Catastrophic forgetting background; replay and release policy here are original choices.

Source publication/update: Submitted December 2, 2016; revised January 25, 2017. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Classify products into an evolving taxonomy; Design training-data provenance and deletion.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.