Generative AI and Large Language Models Questions

The capabilities and behavior of modern generative and large language models. Covers how LLMs are pretrained, in-context learning and few-shot prompting, generative model families (autoregressive, diffusion), context windows, and tokenization and sampling. Emphasizes understanding what generative models can and cannot do and how they differ from discriminative ML.

EasyTechnical
92 practiced

In RLHF, what is the purpose of applying a KL penalty relative to a reference policy? Explain how it guards against extreme policy shifts, preserves pre-trained behavior, and how you might tune the KL coefficient in practice.

MediumTechnical
73 practiced

At a high level, describe diffusion generative models: what are the forward (noising) and reverse (denoising) processes, how is the model trained, and how does sampling work at generation time? Give an example use case where diffusion is preferred over GANs.

MediumTechnical
126 practiced

Explain the difference between prompt engineering and prompt tuning (parameter-efficient weight updates). Provide a scenario where prompt tuning is preferable to prompt engineering, and outline how you would evaluate prompt-tuned adapters against hand-crafted prompts.

HardTechnical
94 practiced

You must decide between two third-party LLM options for a knowledge assistant: a faster, cheaper model with slightly lower factual accuracy, versus a slower, costlier model with better factuality. How would you evaluate and choose, and how might you combine both to meet product goals?

MediumTechnical
77 practiced

What does it mean for an LLM-based system to act as an agent that calls external tools (search, calculator, code execution)? At a conceptual level, what is the basic risk of giving a model tool access, and what is one simple mitigation (e.g., scoping what a tool call can do)?

Unlock Full Question Bank

Get access to all 37 Generative AI and Large Language Models interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.