The interview problem
A product categorizer uses an image and description, but many uploads contain only one. Design training and serving so missing images do not silently become fabricated evidence.
Original practice, not a reported company interview. All scenarios and worked numbers are illustrative. Interview date: not applicable. Sources retrieved September 30, 2026.
1. Scope and assumptions
Assume image-only, text-only and paired examples are legitimate input states. Missingness may depend on category or user behavior, so random masking alone need not represent production.
2. Worked approach
inputs + availability mask → supported encoder/fusion path → calibrated output or abstention
Establish unimodal baselines and a fused model that receives explicit availability masks. Train with observed missing patterns and controlled modality dropout, validating each pattern separately. Route requests to a compatible model or abstain when neither modality carries enough information.
Keep provenance for any imputed representation: it is a model guess, not an observed image. Calibrate confidence by availability pattern and monitor changes in that mix. Preserve the same preprocessing and masks between training and serving, and log failures without storing unnecessary raw content.
3. Calculate the example
Suppose paired cases are 60% of traffic at 95% accuracy, text-only cases 30% at 80%, and image-only cases 10% at 70%. Aggregate accuracy is 0.6×0.95+0.3×0.8+0.1×0.7=88%. If the mix changes to 20%,60%,20% with unchanged conditional performance, aggregate accuracy becomes 81%. The seven-point drop can arise from input availability rather than a model regression within a slice.
4. Failure cases and trade-offs
Zero-filled images can be confused with real dark images when no mask is supplied. Paired-only validation hides fallback failures. Missing images correlated with hard categories make randomly dropped training images optimistic. A fused model may ignore one modality entirely.
Separate unimodal models make fallback behavior clear but multiply deployment artifacts. One mask-aware model simplifies serving while requiring broader training coverage. Learned imputation may help prediction but must not be presented as recovered observation.
5. Validate the result
Evaluate every supported availability pattern, natural and simulated missingness, corrupt inputs and both-missing cases. Compare conditional accuracy, calibration and coverage. Swap or blank one modality to test whether the model relies on expected evidence.
6. Interview follow-ups and self-review
What if the text contradicts the image? How is an unsupported input pattern communicated?
Reward explicit masks, pattern-specific evaluation, mixture arithmetic and honest imputation semantics.
Sources and related practice
Technical reference: arxiv.org — Primary missing-modality learning research; serving policy and mixture example are original.
Submitted March 9, 2021. Retrieved September 30, 2026. This reference supports the named technical concept; the proposed workflow and examples are original, not a documented vendor implementation or interview report.
Continue with Distinguish missingness mechanisms and remedies; Model drift and production monitoring.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.