Prompt or Base Model? The Decision Path to Follow Before Fine-Tuning
When an LLM's output falls short of expectations, the first instinct is often to fine-tune. But this article lays out a structured path to follow before making that call. It explains how "poor results" can trace back to at least three distinct causes—a vague prompt, a knowledge gap beyond the base model's coverage, or a stable, high-frequency demand for specific formatting and behavior—and shows why only the last one genuinely points to fine-tuning. You'll learn the basic mechanism behind prompt-driven generation, how to structure prompts around Context, Task, and Format, how to systematically probe the prompt space and build a small evaluation set to quantify your pass rate, and how to read failure patterns to identify the real cause. The core takeaway: fine-tuning is the last step, not the first.
1. Breaking Down the Problem: Don’t Blame the Model First
In real projects, a familiar situation comes up: you write a prompt carefully, yet the model’s reply still misses the mark. The instinct is usually to conclude, “The model is too weak—time to fine-tune.” But that conclusion comes too early.
“Results aren’t good enough” is a vague symptom. Behind it lie at least three completely different causes:
- The prompt itself is ambiguous, so the model never receives the intended meaning accurately.
- The knowledge or capability the task requires falls outside the base model’s training coverage or reasoning limits.
- The task places a stable, high-frequency demand on format, style, or domain conventions that a single prompt can’t reproduce consistently.
These three situations call for entirely different fixes: the first is solved by revising the prompt, the second may call for external knowledge retrieval rather than fine-tuning, and only the third truly points to fine-tuning. If you dive into fine-tuning without distinguishing between them, you’ll at best waste data-labeling costs, and at worst burn large amounts of time and compute heading in the wrong direction.
So the first step in the decision is not “Can we fine-tune?” but “Which layer is the problem actually in?”
2. Understanding the Mechanism: Why Prompts Move the Output
To judge scientifically, you first need to understand how a large language model fundamentally works. After training, what the model does is essentially this: drawing on the statistical patterns in the massive volume of text it saw during training, it predicts “the most likely next segment of content” given the current input, then generates token by token.
This means your prompt is the entire basis on which the model makes its prediction. It sets the starting point and direction of the prediction path.
- The more precise, complete, and clearly structured your prompt is, the higher the probability the model takes a high-quality path.
- The vaguer your prompt, the more the model drifts toward the statistical “average,” producing a safe but worthless generic answer.
An important conclusion follows from this mechanism: many so-called “the model can’t do it” cases are really situations where the prompt has dropped the model into an open field with no signposts. So before attributing the problem to model capability, you must first confirm that the prompt has paved the path clearly.
3. The Skeleton of a Prompt: Context, Task, Format
Whether you’re writing an email, analyzing code, or designing an architecture, a high-quality prompt needs to make three things clear at once—this is the skeleton of a prompt:
- Context: Provide enough background to narrow the model’s guessing space. By default, the model knows nothing about you—who you are, what industry you’re in, who the audience is, and what you’re trying to achieve. Every missing piece of information is a place where the model is forced to guess, and the more it guesses, the less controllable the result.
- Task: State clearly what specifically needs to be done. The task description should have concrete actions, boundaries, and constraints—not a one-sentence summary.
- Format: Define the shape of the output. Do you want a list, a table, a JSON structure, or a specific word count and tone? The clearer the format, the easier it is to automate processing and validation downstream.
Here’s a template for easy reference:
[Context] I'm a backend engineer debugging performance issues in an e-commerce system. The audience is mid-level developers on my team.[Task] Analyze the potential performance bottlenecks in the code below and explain the causes, ranked by severity.[Format] Output as an ordered list. Each item should include: problem location, cause, and optimization suggestion. Keep the total within 300 words.[Input] <paste the code here>
Only if a prompt already spells out all four blocks clearly and the model still performs poorly should you start to suspect the model’s capability.
4. Step One: Systematically Probe the Prompt Space
Before blaming the model, do a systematic review of the prompt. Work through the following items in order:
- Is the context sufficient? Add implicit premises such as industry, audience, and purpose, and see whether the result improves.
- Is the task clear? Replace vague verbs with concrete actions and add constraints.
- Is the format well-defined? Give an explicit output-structure requirement.
- Are examples provided? Add one or two input-output examples (few-shot) to the prompt and see whether the model can “follow the pattern.”
- Should the task be split? Break a complex task into multiple steps and check whether each single step meets the bar.
Here’s a key criterion: if adding examples or supplying context clearly improves output quality, the problem can basically be located at the prompt level rather than in model capability. This is because it shows the model already has the underlying ability to complete the task and was simply missing guidance.
5. Step Two: Build an Evaluation Set So the Judgment Rests on Evidence
Off-the-cuff judgments aren’t reliable. To make a conclusion hold up, you need a small, stable evaluation set:
- Collect 30 to 100 representative real inputs.
- For each one, prepare a standard or scoring dimensions for an “acceptable output” (such as accuracy, completeness, and format compliance).
- After each round of prompt changes, run the same set of samples and record how the pass rate shifts.
With an evaluation set, you can answer two questions with data: has the pass rate clearly plateaued after a certain amount of prompt optimization? If repeated tuning keeps stalling at the same level, that suggests the bottleneck may no longer be the prompt, but the model itself or the task’s hard requirements on the model.
6. Failure-Mode Analysis: Different Symptoms Point to Different Causes
Lay out the failing samples from your evaluation set and analyze them—the failure patterns often expose the cause directly:
- Random, unstable: the same input yields very different results across runs → usually prompt ambiguity; optimize the prompt first.
- Format or structure non-compliance: the content is right but the shape is consistently wrong → strengthen the Format constraints first; only if the sample volume is large and the format requirement is strictly stable should you consider fine-tuning to lock in the behavior.
- Systematic knowledge gaps: answers consistently lack certain domain facts, terminology, or internal rules → fine-tuning isn’t the first choice here; prefer retrieval-augmented approaches that feed external knowledge to the model at inference time, because knowledge changes continuously and fine-tuning is hard to keep updated.
- A need for specific style or behavior patterns: many samples demand a consistent tone or a consistent decision logic that neither prompts nor examples can reproduce reliably → this is the typical scenario where fine-tuning applies.
7. When Fine-Tuning Is Really the Answer
Fine-tuning isn’t a cure-all. The problem it’s best suited to solve is this: a clearly defined behavior pattern that must be reproduced consistently, but is hard to reproduce reliably across many samples using prompts and examples alone. Concretely, fine-tuning is justified only when all of the following conditions are met at once:
- Prompts and few-shot examples are already tuned, yet results have hit a plateau.
- The task places stable, high-frequency demands on format, style, or domain behavior.
- You’ve accumulated a sufficient volume of reliably labeled data.
- The knowledge required is relatively stable, rather than frequently changing (frequently changing knowledge should be handed to retrieval augmentation).
Conversely, if the prompt is unclear or lacks necessary context, or if the task depends on continuously updated external information, then fine-tuning will only bring high costs with little payoff.
8. Decision Checklist and Conclusion
Here’s the whole method condensed into an executable checklist:
- First, write the prompt clearly and completely using the Context-Task-Format framework.
- Build an evaluation set and quantify the current pass rate.
- Add context, examples, and task-splitting, and observe whether results improve—if the improvement is clear, the problem is in the prompt.
- Once prompt tuning plateaus, analyze the patterns in the failing samples.
- For knowledge-gap problems, prefer retrieval augmentation first; evaluate fine-tuning only for stable-behavior problems.
- Before fine-tuning, confirm that the data volume and quality are sufficient and that the requirement is stable.
To sum it up in one sentence: fine-tuning is the “last step,” not the “first step.” Only when you’ve confirmed that the prompt has paved the path as well as it can, and that the evaluation set proves the model’s capability has reached its limits, is fine-tuning the answer that truly targets the problem. Walk through this decision path, and you’ll invest your limited budget where it matters most.
