The interview problem
Design a question-answering assistant that points to supporting image regions and abstains when visual evidence is insufficient.
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 bounded product-support imagery and no claim that a generated explanation proves correctness. Detect regions, encode the question and predict an answer with supporting region references. Train with answer and grounding annotations, including unanswerable examples. Split by scene and product family. Keep original image coordinates through preprocessing and display crops beside the answer. Evaluate answer correctness and evidence localization independently.
2. Trace the design or derivation
Encode question and image → propose regions → answer with references → refine crop or abstain
For questions requiring several regions, such as comparing two labels, allow multiple evidence references. A single box that contains the entire image is formally broad but weak evidence; evaluate localization specificity as well as coverage. Avoid crediting an answer whose cited crop does not contain the decisive information.
3. Calculate the example
If 80 of 100 answers are correct but only 60 of those have valid evidence boxes, joint success is 60%, not 80%. A correct answer guessed from dataset bias does not satisfy the grounding requirement.
4. Failure cases and trade-offs
A model can choose a plausible box after generating an unsupported answer. Small text and occlusion can defeat region features. Larger image resolution improves detail at compute cost; use targeted crop refinement with an explicit unknown result when evidence remains unreadable.
5. Validation, follow-ups and self-review
Test counterfactual images with the same question and changed evidence. Follow-up: how do you score multiple valid evidence regions? Self-review: require joint evaluation and preserve coordinate provenance.
Sources and related practice
Technical reference: arxiv.org — Region detection background; grounded answering workflow is original.
Source publication/update: Submitted May 26, 2020; revised May 28, 2020. 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 Generate image descriptions without inventing details; Verify generated answers against evidence.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.