How do you decide when to stop prompt engineering and fine-tune instead?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Decision framework, in the order the checks should run:
First, verify you've actually exhausted the cheaper ladder. Prompt iteration against an eval set, few-shot (static and retrieved), decomposition, structured outputs, a stronger or reasoning model, and retrieval for knowledge gaps. Most teams that "need fine-tuning" have an under-engineered prompt or a missing eval; the honest signal is a plateau: many disciplined iterations with flat scores, and failure analysis showing the model understands the task but won't consistently comply.
Full worked answer with diagram
Decision framework, in the order the checks should run:
First, verify you've actually exhausted the cheaper ladder. Prompt iteration against an eval set, few-shot (static and retrieved), decomposition, structured outputs, a stronger or reasoning model, and retrieval for knowledge gaps. Most teams that "need fine-tuning" have an under-engineered prompt or a missing eval; the honest signal is a plateau: many disciplined iterations with flat scores, and failure analysis showing the model understands the task but won't consistently comply.
Then classify the failure, because fine-tuning only fixes some kinds:
- Form, style, consistency - house tone, a niche output format, terse-and-exact behaviour, domain-specific conventions applied uniformly at high volume: fine-tuning's sweet spot. It moves default behaviour into the weights.
- Missing knowledge - facts about your product or fresh data: fine-tuning is the wrong tool; it teaches behaviour, not reliable knowledge retention, and stale weights hallucinate confidently. Use RAG/tools.
- Missing capability - the model fundamentally can't do the reasoning even in the best few-shot setting: SFT on your few hundred examples won't create it; you need a stronger base model (or serious RL post-training, which is a different investment class).
- Cost/latency - a big model with a 3k-token prompt does the job, and you want a small model to match it: distillation via fine-tuning on the large model's outputs is one of the most common legitimate cases, often cutting serving cost by a large multiple at comparable task quality.
Then check prerequisites and price in the real costs. You need roughly 500-5,000+ quality examples (LoRA-style tuning makes compute cheap; data is the bottleneck), an eval you trust, and an MLOps commitment: you now own a model artifact - retraining when the base model deprecates, regression testing, versioned deployment, and drift monitoring. Fine-tuning can also narrow general capability and instruction-following outside the tuned distribution, and it resets every time you want the newest base model - whereas a prompt backed by a good eval set can be re-validated and re-tuned on a new model in days, not a retraining cycle.
Rule of thumb: prompt for capability and knowledge, fine-tune for consistency, format, style, and distillation economics - and only after the eval says prompting has plateaued.
Worth sketching. Classifying the failure before the prerequisites gate is the shape of the answer, and three of the four branches never reach fine-tuning.
flowchart TD
A["Eval has plateaued"] --> B{"What kind of failure?"}
B -->|"missing facts"| C["Retrieval or tools,<br/>weights forget and go stale"]
B -->|"capability absent"| D["Stronger base model"]
B -->|"style, format,<br/>consistency"| E["Fine-tuning: the sweet spot"]
B -->|"big model too slow<br/>or too costly"| F["Distil into a small model"]
E --> G{"500+ clean examples<br/>and an eval you trust?"}
F --> G
G -->|"no"| H["Keep prompting"]
G -->|"yes"| I["You now own<br/>a model artifact"]
What a good answer covers
- First, verify you've actually exhausted the cheaper ladder
- Prompt iteration against an eval set, few-shot (static and retrieved), decomposition, structured…
- Most teams that "need fine-tuning" have an under-engineered prompt or a missing eval; the honest signal…
- Form, style, consistency - house tone, a niche output format, terse-and-exact behaviour, domain-specific…
- Missing knowledge - facts about your product or fresh data
Key terms: Form, style, consistency · Missing knowledge · Missing capability · Cost/latency
In the glossary: Eval set · Few-shot · Structured output · Reasoning model · SFT · Distillation
Interviewer follow-ups to expect
Why is fine-tuning unreliable for knowledge injection, mechanistically?
How would you build the fine-tuning dataset from production traffic without licensing or privacy problems?
What would make you undo a fine-tune and go back to prompting?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep