Tokenizer3 XP · 1-day streak
Topics / Multimodal Models

Multimodal Models

Multimodal questions show up in two flavours: conceptual ("how does an image get into an LLM?", "explain diffusion") in screens and model-knowledge rounds, and applied ("design a document-extraction pipeline", "build a voice agent under a latency budget") in system-design rounds. Anyone interviewing for a GenAI product role gets the applied flavour - document AI, multimodal RAG, and voice agents are three of the most common real workloads in 2026 - and frontier-lab interviews add the architecture and generation depth.

0%mastery
0/67questions tried
0due today
0/14cards read

Card 1 of 14

The VLM pattern: vision encoder → projector → LLM

Almost every vision-language model you'll use (LLaVA-family, Qwen-VL, InternVL, and the closed frontier models to a first approximation) follows one pattern: a vision encoder turns the image into a sequence of embeddings, a small projector/adapter maps those into the LLM's embedding space, and the LLM consumes them as if they were token embeddings - attention doesn't care that some "tokens" came from pixels.

flowchart LR
    IMG["image"] --> P["split into patches<br/>(e.g. 14×14 or 16×16 px)"]
    P --> VE["ViT vision encoder<br/>(usually CLIP/SigLIP-pretrained)"]
    VE --> PROJ["projector<br/>(MLP, or resampler/Q-Former)"]
    PROJ --> LLM["LLM decoder"]
    TXT["text tokens"] --> LLM
    LLM --> OUT["text out"]
  • The vision encoder is a ViT (Vision Transformer): the image is chopped into fixed-size patches, each patch linearly embedded, and a standard transformer runs over the patch sequence. A 224×224 image with 16×16 patches → 196 patch tokens. The encoder is almost always pretrained with contrastive image-text learning (CLIP/SigLIP), which is what makes its features "language-aligned" and cheap to graft onto an LLM.
  • The projector design space: a plain MLP (LLaVA) keeps every patch token - simple, lossless, but eats context; a resampler / Q-Former (Flamingo's Perceiver Resampler, BLIP-2) cross-attends a fixed number of learned queries into the patch features - compresses 100s of patches to e.g. 64 tokens, at some information loss. The modern default is MLP + tiling + light token pooling.
  • Training recipe (LLaVA-style): stage 1 trains only the projector on image-caption pairs (both towers frozen) to align spaces; stage 2 unfreezes the LLM (sometimes the encoder too) for visual instruction tuning; later stages add high-resolution data and preference tuning.

The alternative is native / early-fusion multimodality: one transformer trained on interleaved modalities from scratch (Meta's Chameleon, which tokenizes images into discrete codes; Gemini and GPT-4o, which their makers describe as natively multimodal without publishing the architecture; Fuyu even drops the vision encoder and feeds linearly-projected patches straight into the decoder). Deeper integration and unified generation+understanding, at much higher training cost.

All 67 Multimodal Models questions

Basic

  1. Walk me through how a modern VLM gets an image into an LLM.
  2. What is CLIP, how is it trained, and why did it become the foundation for so much multimodal work?
  3. How do images become tokens, and why does image resolution drive inference cost?
  4. What do vision-language models reliably get wrong?
  5. Give me the intuition for how diffusion models generate images.
  6. How does Whisper work, and why is it so robust compared to earlier ASR systems?
  7. What does "grounding" mean for a VLM, and how does a model actually output a bounding box?
  8. What is the modality gap in CLIP-style embedding spaces, and when does it actually bite you?
  9. What is WER, and why is it a misleading metric for a voice product?
  10. Why did SigLIP's sigmoid loss displace CLIP's softmax contrastive loss as the default vision encoder pretraining?

Intermediate

  1. Design a document-extraction system. When do you use an OCR pipeline versus sending pages to a VLM?
  2. How would you reliably extract tables and charts from documents?
  3. Why do latent diffusion? Walk me through the components of a Stable-Diffusion-style system.
  4. Explain classifier-free guidance. What actually happens when you turn the scale up?
  5. Compare diffusion and autoregressive approaches to image generation. Why did AR come back?
  6. Design a production voice agent. Pipeline vs speech-to-speech, the latency budget, and interruption handling.
  7. How do models understand video, and what are the current limits?
  8. Build text-to-image search over 100M product images. Walk me through the design.
  9. Images are 2D and video is 3D, but an LLM's positional encoding is 1D. What breaks if you just flatten the patches, and how do modern VLMs handle it?
  10. When do you fine-tune a VLM instead of prompting it, and what exactly do you unfreeze?
  11. You are building a computer-use agent. Design the perception layer: screenshots, coordinates, accessibility tree.
  12. Design a pipeline that turns ~100k hours per month of call recordings into searchable, analysable data. What are the stages and where does it go wrong?
  13. Your agent reads screenshots and PDFs supplied by users. How do you defend against instructions hidden inside images?
  14. Your voice agent both cuts users off mid-sentence and leaves awkward dead air. Diagnose and fix.
  15. A marketplace wants AI-generated lifestyle photos of sellers' own products. How do you keep the product itself accurate: LoRA, IP-Adapter, ControlNet, or an editing model?
  16. When should a VLM hand off to a dedicated vision model, such as a detector, segmenter or tracker, instead of answering from pixels itself?

Advanced

  1. Design multimodal RAG over 50k PDFs full of tables, charts, and diagrams. Where does ColPali-style retrieval fit?
  2. How do you evaluate multimodal systems - understanding and generation?
  3. Compare projector/adapter designs - MLP vs resampler vs cross-attention. How does the choice interact with the training recipe?
  4. You need to process 10M document pages per month. VLM or traditional OCR? Do the math.
  5. How does modern TTS work, and what makes speech generation hard in a real-time product?
  6. Adapter-based VLMs vs natively multimodal (early-fusion) models - what's the real tradeoff?
  7. You're shipping an image-generation feature. Walk me through the safety design: NSFW filtering, deepfakes, and provenance.
  8. Your VLM extracts invoice fields at ~91% per-field accuracy. The customer needs 99% and you cannot fine-tune the model. What do you do?
  9. Does test-time compute help on visual tasks? Where does it help, where does it not, and how would you actually use it?
  10. You need one embedding space for your own domain: product photos, spec sheets as PDFs, and text queries. Off-the-shelf CLIP is not good enough. How do you build it?
  11. You are self-hosting a VLM for a document pipeline and throughput is a third of what you projected from the LLM's specs. Why, and what do you do?
  12. How do text-to-video models like Veo or Sora work, and why is video generation so much more expensive than image generation?
  13. What is a vision-language-action (VLA) model, and how do you turn a VLM into a robot policy that runs at control frequency?
  14. How does a full-duplex speech model listen and talk at the same time, and when would you choose one over a turn-based voice pipeline?
  15. One speech model has to produce five output conventions from the same audio: normalised native script, verbatim, code-mixed, transliterated, and translated to English. How would you train and evaluate it across 22 Indian languages?
  16. Design file upload for a chat assistant. A user drops a 500-page PDF, a 20-minute video and a spreadsheet into one conversation. How does each one get into the model's context, and what do you do when it does not fit?
  17. From 2 December 2026 the EU AI Act, as amended by the AI Omnibus, prohibits AI systems that generate non-consensual intimate deepfakes or CSAM. You run a general-purpose image and video generator. What would you need to show to be confident you are not a prohibited system?

Quick-fire

  1. What is the difference between generative and discriminative models?
  2. Describe the architecture of a Generative Adversarial Network and how the generator and discriminator interact during training.
  3. Explain the concept of a Variational Autoencoder (VAE) and how it incorporates latent variables into its architecture.
  4. How do conditional generative models differ from unconditional ones? Provide an example scenario where a conditional approach is beneficial.
  5. What is mode collapse in the context of GANs, and what strategies can be employed to address it during training?
  6. How does overfitting manifest in generative models, and what techniques can be used to prevent it during training?
  7. What is gradient clipping, and how does it help in stabilizing the training process of generative models?
  8. Discuss strategies for training generative models when the available dataset is limited.
  9. Explain how curriculum learning can be applied in the training of generative models. What advantages does it offer?
  10. Describe the concept of learning rate scheduling and its role in optimizing the training process of generative models over time.
  11. Compare and contrast the use of L1 and L2 loss functions in the context of generative models. When might one be preferred over the other?
  12. In the context of GANs, what is the purpose of gradient penalties in the loss function? How do they address training instability?
  13. In multimodal language models, how is information from visual and textual modalities effectively integrated to perform tasks such as image captioning or visual question answering?
  14. Explain the role of cross-modal attention mechanisms in models like VisualBERT or CLIP. How do these mechanisms enable the model to capture relationships between visual and textual elements?
  15. For tasks like image-text matching, how is the training data typically annotated to create aligned pairs of visual and textual information, and what considerations should be taken into account?
  16. When training a generative model for image synthesis, what are common loss functions used to evaluate the difference between generated and target images, and how do they contribute to the training process?
  17. What is perceptual loss, and how is it utilized in image generation tasks to measure the perceptual similarity between generated and target images? How does it differ from traditional pixel-wise loss functions?
  18. What is Masked language-image modeling?
  19. How do attention weights obtained from the cross-attention mechanism influence the generation process in multimodal models? What role do these weights play in determining the importance of different modalities?
  20. What are the unique challenges in training multimodal generative models compared to unimodal generative models?
  21. How do multimodal generative models address the issue of data sparsity in training?
  22. Explain the concept of Vision-Language Pre-training (VLP) and its significance in developing robust vision-language models.
  23. How do models like CLIP and DALL-E demonstrate the integration of vision and language modalities?
  24. How do attention mechanisms enhance the performance of vision-language models?
+3 XP · card read