CrackML by @ml.with.umang
Interview questions / GenAI & LLM
GenAI & LLM interview question

Explain supervised fine-tuning for LLMs.

Explain supervised fine-tuning for LLMs. Structure your response as you would in a top-tier ML/AI engineering interview.

mediumconceptEvidence 66/1002 source reportsAmazonTikTok

The 60-second answer

Start with the behavior/data gap and compare prompting, RAG, SFT/PEFT, preference optimization, and full fine-tuning before choosing the most expensive option. For SFT/LoRA, define the trainable parameters, data format, objective, and what remains frozen; for preference methods, define chosen/rejected or reward signals.

Build the answer in this order

1
Define the mechanism

Start with the behavior/data gap and compare prompting, RAG, SFT/PEFT, preference optimization, and full fine-tuning before choosing the most expensive option.

2
Explain the architecture

For SFT/LoRA, define the trainable parameters, data format, objective, and what remains frozen; for preference methods, define chosen/rejected or reward signals.

3
Compare trade-offs

Evaluate capability, factuality, safety, regression slices, latency, and cost on held-out prompts rather than training loss alone.

4
Close with serving + evaluation

Version adapters/checkpoints and maintain a rollback path because alignment/fine-tuning can regress unrelated capabilities.

A useful interview mental model

This is the shape of a strong answer—not a script to memorize.

01Definition
02Mechanism
03Trade-offs
04Failure modes
05When to use

Senior-level signal

  • Discuss data contamination, preference bias/reward hacking, and catastrophic forgetting as separate risks.
  • Choose PEFT rank/target modules or preference constraints based on measured quality-vs-memory/throughput trade-offs.

What the interviewer is really testing

Understanding beyond prompting: architecture, retrieval, evaluation, inference, safety, latency, cost, and failure recovery.

Likely follow-up questions

What assumption makes this approach work?
When would you choose the strongest alternative instead?
What production or data failure mode changes your answer?

Common weak-answer patterns

  • Reciting a definition without mechanism or assumptions.
  • Claiming one technique is always better without a data regime.
  • Stopping before failure modes, validation, or deployment implications.