The interview problem

Practice prompt

A content platform wants draft image descriptions for authors to review. Design caption generation that describes visible evidence and avoids inventing names, relationships or actions.

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 authors can edit drafts before publication. A useful description depends on page context; generic image recognition does not establish the image's purpose or a person's identity.

2. Worked approach

image + approved context
  → caption draft
  → factuality review
  → author edit
  → versioned publication

Encode the image and generate a concise candidate caption, optionally conditioned on approved surrounding context. Separate visible content from contextual facts and avoid inferring sensitive or unobservable attributes. Return an editable draft with a clear review state.

Build an evaluation set spanning ordinary objects, text-heavy images, diagrams and ambiguous scenes. Route unsupported categories to manual description instead of forcing one model to cover everything. Record corrections with image/context version and preserve the author's final text against background regeneration.

3. Calculate the example

In an invented review of 200 captions, 160 are accepted unchanged, 25 need minor edits, 10 need substantive factual correction and 5 are unusable. Unchanged acceptance is 80%; serious-error-or-unusable rate is 15/200=7.5%. Calling all 195 nonempty usable-or-editable outputs successful would hide those ten factual corrections. If each substantive correction takes three minutes, that category alone consumes 30 reviewer minutes.

4. Failure cases and trade-offs

A fluent caption can name an object that is absent. Surrounding text can override contradictory pixels. A description may be accurate yet omit the detail needed for the page's purpose. OCR errors in charts can turn uncertain numbers into false statements.

Short descriptions reduce opportunity for hallucination but may omit useful detail. A larger model can improve coverage while increasing cost and still requiring review. Automatic similarity to a reference caption is a diagnostic, not a complete usefulness or factuality measure.

5. Validate the result

Use human factuality and task-usefulness review, including counterexamples with changed objects or misleading context. Measure correction burden and missing-description coverage. Verify user edits survive image-processing retries and that unsupported scenes have a manual path.

6. Interview follow-ups and self-review

How does the description change when the same image appears in a different article? What about a purely decorative image?

Reward evidence boundaries, context sensitivity, realistic review metrics and preserved author control.

Sources and related practice

Technical reference: arxiv.org — BLIP vision-language generation reference; editorial workflow and counts are original.

Exact publication/update date not established in this review. 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 Verify generated answers against evidence; Route uncertain predictions to human experts.

Continue your preparation

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