Gen AI • LLMs • Diffusion • Evaluation • 2026

Generative AI Interview Questions

✨ 19 questions 🧭 What each one tests, an answer frame, a spoken answer ⏱️ 22 min read

Gen AI interview questions sit between theory and practice: how models generate text and images, how they are trained and evaluated, and where they fail. This hub covers the questions that come up for generative AI roles at every level, with what each one is testing, an answer frame and a short spoken answer.

Easy Foundations Practice Question

1. What is generative AI, and how is it different from discriminative machine learning?

What the interviewer is really testing:
Precise vocabulary; the opening question in most gen AI rounds.
Answer frame:

Discriminative: learns a boundary or a mapping from input to label; answers 'which class' or 'what value'.

Generative: learns the distribution of the data itself and can sample new examples: text, images, audio, code.

Modern examples: large language models, diffusion image models, speech synthesis.

Sample spoken answer:

"A discriminative model learns to map an input to an output, like an email to spam or not spam. A generative model learns the distribution of the data well enough to produce new samples from it, such as a paragraph, an image or a voice. Language models and diffusion models are the two families most people mean by generative AI today."

Red flag to avoid:

Calling any neural network generative, or being unable to give a discriminative counter-example.

Easy Foundations Practice Question

2. How does a language model generate text?

What the interviewer is really testing:
Whether you know it is a next-token loop and what that implies.
Answer frame:

Autoregressive: predict a distribution over the next token given everything so far, sample one, append, repeat.

Implications: output is produced left to right, cost scales with length, and early mistakes propagate.

Stopping: a stop token or a length cap ends the loop.

Sample spoken answer:

"It predicts one token at a time. Given the prompt, the model outputs probabilities for the next token, one is picked according to the decoding settings, it is added to the sequence, and the process repeats until a stop token or a length limit. That is why generation is sequential, why long outputs cost more, and why an early wrong turn can steer the rest of the answer."

Red flag to avoid:

Describing it as retrieving stored sentences.

Medium Training Practice Question

3. What is the difference between pre-training, supervised fine-tuning and preference tuning like RLHF?

What the interviewer is really testing:
Whether you understand how a raw model becomes a helpful assistant.
Answer frame:

Pre-training: next-token prediction on a huge corpus; produces a base model with broad knowledge and no manners.

Supervised fine-tuning: train on curated instruction and response pairs so the model follows tasks.

Preference tuning: humans or a reward model rank outputs; the model is optimised toward preferred behaviour, via RLHF or direct preference methods.

Sample spoken answer:

"Pre-training is the expensive part: predict the next token across an enormous corpus, which gives the model language and knowledge but no sense of how to behave. Supervised fine-tuning shows it examples of good responses to instructions. Preference tuning then compares candidate answers, learns what people prefer, and pushes the model toward that, which is what makes it helpful and safer to use."

Red flag to avoid:

Skipping the preference stage, or claiming RLHF adds knowledge.

Medium Image Models Practice Question

4. How does a diffusion model generate an image?

What the interviewer is really testing:
Whether you can explain the forward and reverse process in plain words.
Answer frame:

Forward: training adds noise to real images step by step until they are pure noise.

Learn: the network learns to predict and remove the noise at each step, often in a compressed latent space.

Generate: start from random noise and denoise repeatedly, guided by a text embedding, to produce an image.

Sample spoken answer:

"During training the model sees images with increasing amounts of noise added and learns to predict that noise. To generate, it starts from pure noise and removes a little noise at a time over many steps, and a text encoder steers each step toward the prompt. Most practical systems do this in a compressed latent space rather than on raw pixels, which is what makes it fast enough to use."

Red flag to avoid:

Confusing diffusion with GANs, or having no idea what the text prompt is doing.

Hard Image Models Practice Question

5. Compare GANs, diffusion models and autoregressive models.

What the interviewer is really testing:
Depth beyond the current fashion.
Answer frame:

GANs: generator versus discriminator; fast sampling, sharp images, unstable training and mode collapse.

Diffusion: iterative denoising; stable training, high diversity and quality, slower sampling that newer samplers reduce.

Autoregressive: one token or patch at a time; dominant for text, also used for images and audio; sequential and easy to condition.

Sample spoken answer:

"GANs pit a generator against a discriminator; they sample in one pass and produce sharp results but are hard to train and can collapse onto a few modes. Diffusion models train stably by learning to denoise and give strong diversity and quality, at the cost of many sampling steps, which distillation and better samplers have cut down. Autoregressive models generate a token at a time and dominate text; they are easy to condition and to scale but sequential by nature."

Red flag to avoid:

Saying GANs are obsolete without knowing why diffusion replaced them, or not knowing what mode collapse is.

Medium Foundations Practice Question

6. What is a variational autoencoder and what is a latent space?

What the interviewer is really testing:
Whether you understand compression and the idea that generation can happen in a smaller space.
Answer frame:

Autoencoder: encoder compresses input to a small vector, decoder reconstructs it.

Variational: the encoder outputs a distribution, and a regulariser keeps the latent space smooth, so sampling from it yields sensible outputs.

Use today: the latent space is where latent diffusion models do their denoising.

Sample spoken answer:

"An autoencoder learns to squeeze an input into a small vector and rebuild it. A variational autoencoder makes that latent space well behaved by encoding to a distribution and regularising it toward a simple prior, so nearby points decode to similar, valid outputs and you can sample new ones. That property is why modern image models run diffusion inside a VAE's latent space instead of on pixels."

Red flag to avoid:

Not knowing why the latent space needs to be smooth for generation.

Medium Failure Modes Practice Question

7. What are the common failure modes of generative models?

What the interviewer is really testing:
Whether you have looked at outputs critically.
Answer frame:

Text: hallucination, sycophancy, prompt sensitivity, repetition, losing the middle of long context.

Images: hands and text rendering, prompt parts ignored, mode collapse in GANs.

Both: memorisation of training data, bias, and confident output with no uncertainty signal.

Sample spoken answer:

"Language models make things up fluently, agree too readily with the user, change answers with small prompt changes, and lose track of content in the middle of a long context. Image models still struggle with hands, readable text and prompts with several distinct parts. Across both, models can regurgitate training data, reproduce biases and give no signal about how sure they are, which is why evaluation and grounding matter."

Red flag to avoid:

Naming only hallucination.

Hard Evaluation Practice Question

8. How do you measure the quality of generated text and images?

What the interviewer is really testing:
Whether you know the classic metrics, their limits, and what people actually use.
Answer frame:

Text: perplexity for language modelling; overlap scores like BLEU and ROUGE only for tasks with references; model-as-judge with rubrics and human evaluation for open tasks.

Images: distribution distances such as FID for sets; prompt alignment scores; human preference for what ships.

Practice: task-specific evals on your own data beat any single benchmark number.

Sample spoken answer:

"For text, perplexity tells you about the model, not about task quality. Overlap metrics like BLEU and ROUGE only work when there is a reference answer, which most real tasks lack. So in practice I build a task-specific eval set, use a model as a judge with a written rubric, and calibrate it against human ratings. For images, FID compares distributions and alignment scores check the prompt was followed, but a human preference study is still what decides a release."

Red flag to avoid:

Quoting a benchmark score as proof the model fits your task.

Medium Foundations Practice Question

9. What is tokenization, and why does it matter in practice?

What the interviewer is really testing:
Whether you connect a low-level detail to cost, behaviour and multilingual quality.
Answer frame:

Mechanism: sub-word tokenization such as byte-pair encoding splits text into frequent pieces; a token is not a word.

Consequences: cost and context are counted in tokens; rare words and non-Latin scripts take more tokens; character-level tasks like counting letters are hard.

Practice: measure token counts for your real data, especially in other languages.

Sample spoken answer:

"Tokenization breaks text into sub-word pieces learned from frequency, so common words are one token and rare ones several. It matters because everything, cost, context and speed, is counted in tokens, and some languages and scripts use far more tokens for the same meaning. It also explains odd behaviour like trouble spelling or counting letters, because the model never sees characters directly."

Red flag to avoid:

Saying a token is a word.

Medium Foundations Practice Question

10. Why does a transformer need positional information, and how is it added?

What the interviewer is really testing:
Whether you understand that attention alone is order-blind.
Answer frame:

Problem: self-attention treats the input as a set; without position, 'dog bites man' equals 'man bites dog'.

Solutions: fixed sinusoidal or learned position embeddings added to tokens; rotary embeddings that encode relative position inside attention.

Why it matters: the choice affects how well the model handles sequences longer than it was trained on.

Sample spoken answer:

"Attention computes weighted sums over all tokens, and a sum does not care about order, so the model has to be told where each token sits. Early transformers added a fixed or learned position vector to each token embedding. Most current models use rotary position embeddings, which encode relative distance inside the attention computation and extend more gracefully to longer contexts."

Red flag to avoid:

Not knowing that attention is permutation-invariant.

Hard Inference Practice Question

11. What is the KV cache, and why does it make generation faster?

What the interviewer is really testing:
Whether you understand inference cost, which is the practical side of gen AI engineering.
Answer frame:

Problem: each new token would otherwise recompute attention keys and values for every previous token.

Cache: store the keys and values per layer as they are computed; a new token only computes its own and attends to the cache.

Cost: memory grows with context length and batch size; it is the main limit on concurrent users and the reason prompt caching exists.

Sample spoken answer:

"When generating, each new token attends over all previous tokens, and their keys and values do not change, so recomputing them every step would be wasted work. The KV cache stores them per layer, so each step only computes the new token's keys and values. The price is memory, which grows with context length and the number of parallel requests, and that memory is what really limits throughput on a GPU."

Red flag to avoid:

Confusing the KV cache with caching whole responses.

Easy Applications Practice Question

12. What is retrieval-augmented generation, and why is it the default way to give a model private knowledge?

What the interviewer is really testing:
Whether you know the standard architecture and its reasons.
Answer frame:

Mechanism: retrieve relevant passages from your own data at query time and place them in the prompt; the model answers from them.

Why default: no training, updates instantly, supports citations and access control, cheaper than fine-tuning.

Limits: quality depends on retrieval; long or multi-hop questions need reranking and query rewriting.

Sample spoken answer:

"RAG means searching your own documents for the passages that match the question and putting them into the prompt, so the model answers from evidence instead of memory. It is the default because it needs no training, reflects new data immediately, lets you cite sources and enforce permissions, and it is much cheaper than fine-tuning. Its weakness is that the answer is only as good as the retrieval."

Red flag to avoid:

Presenting fine-tuning as the way to add private facts.

Medium Multimodal Practice Question

13. How does a multimodal model handle images and text together?

What the interviewer is really testing:
Whether you know the common architecture at a high level.
Answer frame:

Encoder: a vision encoder turns the image into a sequence of patch embeddings.

Projection: a small adapter maps those into the language model's token space, so the image becomes a set of 'visual tokens'.

Joint attention: the language model attends over image tokens and text tokens together; training aligns them with image-text pairs.

Sample spoken answer:

"A vision encoder splits the image into patches and produces an embedding for each. A projection layer maps those embeddings into the same space as text tokens, so from the language model's point of view the image is just a run of extra tokens. The model then attends across image and text jointly, and it learned that alignment from large sets of image and caption pairs."

Red flag to avoid:

Saying the model runs OCR and reads the text out.

Easy Prompting Practice Question

14. Explain zero-shot, few-shot and chain-of-thought prompting.

What the interviewer is really testing:
Basic prompting vocabulary and when each helps.
Answer frame:

Zero-shot: instruction only; works for common tasks.

Few-shot: include worked examples; best for format and edge cases.

Chain-of-thought: ask for reasoning before the answer; helps multi-step problems, costs tokens, and is built in to reasoning-tuned models.

Sample spoken answer:

"Zero-shot is just the instruction, few-shot adds a handful of examples so the model copies the pattern and format, and chain-of-thought asks it to work through the steps before answering, which helps on arithmetic and multi-step logic. Examples are the most reliable lever for format; reasoning is the lever for correctness on hard problems, and newer models do it natively."

Red flag to avoid:

Not knowing that examples shape format more than instructions do.

Medium Training Practice Question

15. How would you fine-tune a model with limited data?

What the interviewer is really testing:
Practical judgement about data, methods and validation.
Answer frame:

Data first: a few hundred to a few thousand clean, diverse examples beat a large noisy set; deduplicate and hold out a test split.

Method: parameter-efficient tuning such as LoRA on an instruction-tuned base; low learning rate, few epochs.

Augment carefully: synthetic examples generated and then reviewed; validate on real held-out data only.

Sample spoken answer:

"I would spend most of the effort on the data: a smaller set of clean, varied examples with a real held-out test split. Then I would use a parameter-efficient method like LoRA on an already instruction-tuned model, with a low learning rate and few epochs to avoid overfitting. If I need more data I generate candidates with a strong model and have people review them, but I never let synthetic data into the test set."

Red flag to avoid:

Training on everything with no held-out set, or full fine-tuning on a few hundred examples.

Medium Training Practice Question

16. What are the risks of training models on model-generated data?

What the interviewer is really testing:
Awareness of feedback loops in the data ecosystem.
Answer frame:

Model collapse: successive generations lose the tails of the distribution and drift toward bland averages.

Error amplification: mistakes in the generated data become facts to the next model.

Mitigation: keep real data in the mix, filter and verify synthetic samples, and track provenance.

Sample spoken answer:

"If a model is trained mostly on outputs of earlier models, rare and unusual examples fade and the model converges toward the average, which people call model collapse. Any errors in the generated data get baked in as truth. Synthetic data is still useful, but it needs verification, a strong share of real data, and records of where each example came from."

Red flag to avoid:

Treating synthetic data as free unlimited training data.

Medium Responsible Use Practice Question

17. What do you do as an engineer about copyright, bias and safety in a generative product?

What the interviewer is really testing:
Whether you see these as engineering tasks with concrete controls.
Answer frame:

Copyright: know the model's licence and data terms, avoid reproducing long verbatim passages, keep provenance of your own training data.

Bias: test outputs across groups and scenarios with a bias eval set; fix with data, prompts and filters.

Safety: input and output classifiers, refusal behaviour, red-team tests and an incident path.

Sample spoken answer:

"Three concrete things. I check the licence and terms of any model and dataset, and I add checks against long verbatim reproduction. I keep a bias evaluation set that probes outputs across demographics and scenarios and I run it on every change. And I put safety classifiers on input and output, keep red-team prompts in the test suite, and have a process for handling incidents, because some will get through."

Red flag to avoid:

Saying it is the legal team's problem.

Medium Product Practice Question

18. How do you decide whether a use case is a good fit for generative AI at all?

What the interviewer is really testing:
Judgement; many gen AI projects fail because they should not have started.
Answer frame:

Good fit: output is language or media, some variation is acceptable, a human or a check reviews it, and errors are cheap to correct.

Poor fit: exact answers, hard guarantees, high error cost with no review, or a rules engine would do.

Test: can you define what a good output is well enough to evaluate it? If not, stop.

Sample spoken answer:

"I ask whether the output is naturally text or media, whether some variation is fine, and whether mistakes are cheap and reviewable. Drafting, summarising and classifying messy input are good fits. Computing a tax figure or making an irreversible decision alone is not. My practical test is whether I can write down what a good output looks like clearly enough to evaluate it; if I cannot, the project is not ready."

Red flag to avoid:

Saying everything benefits from an LLM.

Medium Inference Practice Question

19. Explain the decoding strategies: greedy, beam search and sampling.

What the interviewer is really testing:
Whether you can connect decoding to output quality and diversity.
Answer frame:

Greedy: always take the most likely token; fast, can be repetitive and short-sighted.

Beam search: keep several best partial sequences; good for translation, tends to produce bland text and is rarely used for chat.

Sampling: draw from the distribution, shaped by temperature and top-p; the usual choice for open-ended generation.

Sample spoken answer:

"Greedy decoding picks the single most probable token each step, which is fast but often repetitive. Beam search keeps a few candidate sequences and picks the best overall; it suits tasks with one right answer like translation, but for open conversation it produces dull text. Sampling draws tokens from the distribution with temperature and top-p controlling the spread, and that is what chat models use by default."

Red flag to avoid:

Recommending beam search for creative writing, or not knowing why greedy repeats.

Undetectable AI for live interviews

Crack your Generative AI interview, no matter how tough

Gen AI interviews swing from 'explain attention' to 'how would you measure this' to 'is this use case even a good idea'. The follow-ups are where people stumble, and the frame has to be there before the silence gets long.

ClapAssist is your silent co-pilot. Runs natively on macOS and Windows, listens to the interviewer's exact question, and surfaces concise talking points right next to your camera eye-line. Excluded at the OS level from Zoom, Google Meet, and Teams screen sharing.

Download ClapAssist with 10 Free Minutes →
Mac & Windows · Completely undetectable to interviewers · No credit card required