← Questions

Design a video vision-language model end to end

0
MicrosoftAI/ML designLast asked Feb 2026

An AI/ML design interview question asked in Microsoft's system design round, last asked Feb 2026. It tests vision-language models, video and training.

Design a model that understands video and answers questions about it in natural language: describe what happens, find when something occurs, answer questions that need many frames. Cover the data, the architecture, training, evaluation and the cost of serving long videos.

Requirements

  • Functional: take a video (with optional audio and subtitles) plus a text question; answer in text, optionally with timestamps; handle clips from seconds to an hour.
  • Non-functional: answers grounded in what is visible; acceptable latency and cost for long videos; safe outputs.

Clarifying questions

  • Which tasks matter most: captioning, question answering, temporal grounding, summarization?
  • How long are the videos, and is audio available?
  • Do we start from a pretrained image-language model and language model?
  • What serving latency and cost per video are acceptable?
  • Which domains (user video, egocentric, surveillance, sports)?

What a strong answer covers

  • Data: video-text pairs at scale (captions, transcripts) for alignment, then curated instruction and QA data with timestamps; synthetic QA from dense captions; filtering for quality and deduplication; licensing.
  • Architecture: frame sampling (uniform versus content-aware), a vision encoder per frame or per clip, temporal modelling, and a connector that compresses visual tokens (pooling, a query transformer) before the language model.
  • The token budget problem: frames times tokens per frame blows up the context, so trade frame rate, resolution and compression against accuracy.
  • Training stages: align the connector with the encoders frozen, then pretrain on video-text, then instruction-tune, optionally with preference tuning; mixing image data to keep spatial skills.
  • Evaluation: video QA and temporal grounding benchmarks, long-video tasks, hallucination checks (asking about things not in the video), human evaluation.
  • Serving: caching visual features per video, streaming long videos in segments with a memory, and batching.

Follow-ups

  • The model answers questions about a one-hour video poorly. What do you change first?
  • How do you stop it from describing events that did not happen?
  • How would you add audio?
  • How do you cut serving cost by half with a small drop in quality?

Where it's asked

What it tests

vision-language models · video · training

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