Fine-Tuning interview question

Generative AIFine-TuningLLM Fundamentalsbasic

What does it mean to fine-tune a pretrained LLM?

  1. AAdding task instructions and worked examples to the prompt at inference time, which changes the output while the weights stay fixed.
  2. BRetrieving relevant documents at query time and inserting them into the prompt, so the model answers from that external source.
  3. CContinuing to train the pretrained model on a smaller task- or domain-specific dataset so the model adapts to that use.
  4. DTraining a new network from randomly initialised weights on the task data, so that no knowledge from pretraining is carried over.
Show the answer and explanation

Correct answer: C, Continuing to train the pretrained model on a smaller task- or domain-specific dataset so the model adapts to that use.

Explanation Fine-Tuning

Fine-tuning starts from the weights learned in pretraining and keeps training the model (all weights, or, with PEFT methods such as LoRA, only a small set of added parameters) on a much smaller dataset for a specific task, domain, style or output format. The general knowledge from pretraining is reused, and the model is adapted to the new task or domain.

Why the other descriptions are not fine-tuning:

  • Putting instructions and examples in the prompt is prompt engineering / few-shot prompting: nothing is trained and the weights do not change.
  • Inserting retrieved documents at query time is retrieval-augmented generation (RAG), again with frozen weights.
  • Starting from random weights is training from scratch; it throws away exactly what makes fine-tuning cheap and data-efficient.

Interview tip: define it as "continued training of a pretrained model on task-specific data", then mention the usual follow-up choice between full fine-tuning and parameter-efficient methods like LoRA.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Generative AI questions

  1. A chatbot's conversation history is growing longer than the model's context window. What is a common way to handle it?
  2. Asked for "revenue and number of orders that contain electronics, by customer segment", a text-to-SQL bot generated the query below. The Gold segment has…
  3. The table shows the next-token distribution at one decoding step for the context "The customer wants to ___". With top-p = 0.9 (nucleus sampling, no top-k),…
  4. A team reports that a new prompt raised RAGAS faithfulness on a 300-question set from 0.81 to 0.86: the old score is from last month, the new one was computed…
  5. A loan pre-screening step uses the schema below with constrained decoding, which emits properties in schema order. Reviewers find that reasoning usually…