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.

MediumTechnical
93 practiced

You have 500k multilingual sentences and need to design a tokenizer and vocabulary for training a new LLM. What are the vocabulary-size trade-offs, and how would you handle rare scripts, code-mixing, and balancing token coverage across languages?

EasyTechnical
87 practiced

Define 'hallucination' in the context of large generative models. What concrete forms can it take, and why do these occur from a training and objective-function perspective? At a high level, what categories of mitigation exist?

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

Design a data-collection pipeline and rater interface for gathering pairwise human-preference judgments to train a reward model. Cover UI elements (randomized presentation order, clear instructions with examples, a tie option, progress indicators, and gold/calibration checks), sampling strategy for which outputs to compare and how many comparisons per prompt to target, quality-control measures and agreement thresholds, storage formats, and how UI choices themselves can introduce label bias.

EasyTechnical
100 practiced

Describe decoding strategies for LLM generation: greedy decoding, beam search, top-k sampling, top-p (nucleus) sampling, and temperature scaling. How does each affect diversity, determinism, and repetition, and what is a rule of thumb for choosing sampling versus beam search?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.