InterviewStack.io LogoInterviewStack.io

Generative Models and Architectures Questions

Covers the fundamentals of how generative models are constructed and trained, including types such as variational autoencoders, generative adversarial networks, diffusion models, and large language models. Includes core concepts like attention and the transformer architecture, self supervised training objectives such as next token prediction, tokenization, scaling laws, and differences between generative and discriminative approaches. Also addresses practical techniques for adapting and improving models including fine tuning, transfer learning, prompt engineering, few shot and zero shot learning, inference trade offs, model compression, and deployment considerations such as latency, memory, and cost. Evaluation topics include likelihood based metrics and practical applied evaluation methods for generation quality.

HardSystem Design
32 practiced
Design a globally-distributed, low-latency service for a multimodal generative assistant (text + image) supporting privacy constraints where some user data must remain in-region. Describe data locality, model placement (edge vs region), cross-region coordination for models and embeddings, and how you would handle model updates and rollback with minimal downtime.
MediumBehavioral
39 practiced
Behavioral: Describe a time when you had to persuade product and infra teams to change the model-serving approach (for example, moving from CPU-based microservices to GPU inference). Use the STAR format: situation, task, action, result. Focus on metrics you used to make the case and how you handled stakeholder objections.
EasyTechnical
36 practiced
Explain the difference between generative and discriminative models in the context of machine learning. Provide concrete examples of each (e.g., autoregressive language models, VAEs, GANs vs. logistic regression, classifiers), discuss what objectives they optimize, and describe three practical implications of choosing a generative vs discriminative approach for a production AI system.
MediumTechnical
31 practiced
List and explain quantitative and qualitative metrics for evaluating generative model outputs in text and images. For text include perplexity, BLEU/ROUGE, BERTScore, and human evaluation; for images include FID, IS, and human preference. For each metric, state what it measures, known limitations, and when it can be misleading in production evaluation.
HardTechnical
28 practiced
Describe practical model compression techniques to reduce a 100B-parameter model footprint for inference: post-training quantization (8-bit, 4-bit), pruning (structured/unstructured), knowledge distillation, and parameter-efficient fine-tuning (LoRA). For each, explain expected gains, risks to downstream performance, and rollout strategies in production.

Unlock Full Question Bank

Get access to hundreds of Generative Models and Architectures interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.