COMPUTER VISION · INTERVIEW QUESTION
Compare GANs, VAEs, and Diffusion Models for image generation.
🔴 advanced · Generative Models
Hint: Think about training stability, image quality, and mode coverage.
Answer
GANs: generator vs discriminator adversarial game.
Pro: sharp images, fast sampling.
Con: training instability (mode collapse, training oscillation), poor diversity.
Examples: StyleGAN, BigGAN. VAEs: encoder-decoder with latent space regularization (KL divergence).
Pro: stable training, smooth latent space, good for interpolation.
Con: blurry outputs (due to mean optimization).
Examples: VQ-VAE, DALL-E 1. Diffusion Models: gradually add noise then learn to denoise.
Pro: best image quality, stable training, good mode coverage, controllable.
Con: slow sampling (many denoising steps).
Examples: DALL-E 2/3, Stable Diffusion, Imagen. Current state: diffusion models dominate image generation. Consistency models and rectified flows improve sampling speed.
For video: diffusion-based (Sora, Runway). GANs still used for real-time applications due to fast single-pass generation.
Related questions
- Compare YOLO, SSD, and Faster R-CNN for object detection.
- Explain the concept of transfer learning in computer vision.
- In an object detector, validation mAP@0.50 improves while mAP@[0.50:0.95] drops after increasing input resolution. What is the most likely interpretation?
- A segmentation model has high pixel accuracy on a medical dataset but very low Dice for lesions. Which evaluation issue is most likely?
- For contrastive image-text pretraining, why is the temperature parameter important in the softmax objective?