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
96 practiced

Explain the differences between zero-shot, one-shot, few-shot, and in-context learning in LLMs. Describe scenarios where each is preferred, and when you would reach for fine-tuning instead of relying on in-context capabilities.

EasyTechnical
78 practiced

What are the practical limitations of few-shot in-context learning? For each limitation you identify, what would you do about it in production?

EasyTechnical
105 practiced

What is chain-of-thought (CoT) prompting? Give a short example that elicits step-by-step reasoning, and explain when CoT usually improves accuracy versus when it may degrade performance or increase latency/cost.

EasyTechnical
79 practiced

What is the difference between prompting an LLM and fine-tuning it to change its behavior? In what scenarios is prompting a sufficient first approach, and when does it become insufficient, requiring fine-tuning instead?

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.