When is fine-tuning an LLM the better choice than prompting alone?
- Exam domain
- Generative AI and large language models
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why A is the answer
When prompts cannot give the consistent style a task needs
Fine-tuning trains the model further on examples, which changes its behaviour: style, format or a specialised task. It is a poor fit for facts that change, because each change needs another training run.
Remember: Fine-tune for behaviour, not for facts.
In detail
- Fine-tune for behaviour and style.
- Retrieve facts that change.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. When prompts cannot give the consistent style a task needsRight
Fine-tune for behaviour, not for facts.
B. When you only need to change how long the answers areWrong
Answer length is a prompt or a setting, not a reason to train.
C. When you want the model to cite today's newsWrong
Today's news needs retrieval; training data is always older.
D. When the facts the model needs change every day or every hourWrong
Fast-changing facts belong in retrieval.
Use case
An illustrative scenario, not a real incident.
Illustrative: an insurer fine-tunes a model so that every claim summary uses its house format and wording.
See it in different ways
flowchart TD
Q{"What needs to change?"}
Q -->|"Instructions or format"| A0["Prompt engineering"]
Q -->|"Facts that change"| A1["Retrieval RAG"]
Q -->|"Consistent style or task behaviour"| A2["Fine-tuning"]How to read this chart
- At "What needs to change?": if "Instructions or format", go to "Prompt engineering"; if "Facts that change", go to "Retrieval RAG"; if "Consistent style or task behaviour", go to "Fine-tuning".
stateDiagram-v2 state "Base model" as s0 state "Tuned model" as s1 state "Deployed" as s2 [*] --> s0 s0 --> s1: train on examples s1 --> s2: host on an endpoint s2 --> [*]
How to read this chart
- It starts at "Base model".
- From "Base model", "train on examples" moves it to "Tuned model".
- From "Tuned model", "host on an endpoint" moves it to "Deployed".
- It ends at "Deployed".