微調仍值得使用嗎?研究指出它不擅長補充新事實,但適合改善特定任務行為
Is fine-tuning an LLM still worth it, or has it been debunked?
研究未推翻微調:微調不擅長教模型新事實,但可改善格式、風格及狹窄任務上的表現。文章建議先分辨問題屬於知識缺口還是行為差異,先用提示詞和留出測試集評估,再決定是否微調。按文中簡化估算,8B 模型以 1,000 個例子進行 LoRA 的 H100 計算成本約為 $0.36;若每次重複帶入 500 個例子的提示詞,約 90 次請求後微調的 GPU 成本較低,但估算未計入評估及重跑等成本。
Fine-tuning has not been debunked: research shows it is a poor way to teach a model new facts and a good way to change how it behaves on a narrow task. Nodus runs fine-tuning as a priced, capped job, and a LoRA pass over 1,000 examples of an 8B model needs an estimated $0.36 of H100 time at our listed price. The GPU is rarely the reason to skip it; what decides is whether your gap is knowledge or behavior, and whether you can measure the result.
We build Nodus, so weigh that. The research claims below link to the papers, and the cost math shows every assumption.
Where does the idea that fine-tuning is dead come from?
It comes from three real findings that got compressed into a slogan. Retrieval beats fine-tuning for knowledge, long prompts with many examples now rival fine-tuning on some tasks, and fine-tuning can damage what a model already did well.
The knowledge result is the strongest. Ovadia et al. (2023) compared unsupervised fine-tuning with retrieval-augmented generation (RAG) and found RAG consistently ahead, for facts the model had seen and for new ones. Gekhman et al. (2024) went further. In their controlled closed-book QA setup, examples carrying new knowledge were learned significantly slower, and once learned they linearly increased the model's tendency to hallucinate.
The prompting result is newer. Google DeepMind's many-shot in-context learning paper reports that prompts with hundreds or thousands of examples perform comparably to fine-tuning, and that inference cost grows linearly with the number of examples. None of these papers says fine-tuning does not work. They say it is the wrong tool for one job and has a competitor for another.
What does the research say fine-tuning is good at?
Fine-tuning is good at behavior: format, style, judgment on a narrow task, and making a small model do one job well. The evidence for that is as solid as the evidence against using it for facts.
Meta's LIMA paper fine-tuned a 65B LLaMa on only 1,000 curated prompts and responses. In a human study, its answers were equivalent to or preferred over GPT-4's in 43% of cases, over Bard's in 58% and over DaVinci003's in 65%. The authors' conclusion cuts both ways: almost all knowledge comes from pretraining, and a small, careful dataset is enough to teach output quality.

A thousand well-chosen examples moved a base model close to the assistants of its day.
The LoRA Land report tested 310 fine-tuned models across 10 base models and 31 tasks. Its 4-bit LoRA fine-tunes beat their base models by 34 points and GPT-4 by 10 points on average. Those are narrow, task-specific benchmarks, which is exactly the point: a fine-tuned small model can win on its one job.
Two more results narrow the case against. Mosbach et al. (2023) controlled for model size and example count and found fine-tuned models can generalize out of domain as well as in-context learning. Bertsch et al. (2024) found fine-tuning needs more data than long-context prompting but can exceed it once it has that data.
What can fine-tuning not do well?
It cannot reliably add facts, and it can cost you skills you had. The first point is the Ovadia and Gekhman results above. If the answer must reflect last week's price list, retrieve it, which our RAG vs fine-tuning post covers in detail.
The second is forgetting. Biderman et al. (2024) found that full fine-tuning learns more on code and math than standard low-rank LoRA, while LoRA better preserves performance outside the target domain. That tradeoff is why method choice matters, and our LoRA vs full fine-tuning post works through the memory and cost side. Whichever you pick, test what the model used to do well, as our catastrophic forgetting post describes.
How do you decide whether to fine-tune?
Fine-tune when the gap is behavior, a good prompt cannot close it on held-out cases, and you can measure the change. This is our rule, built from the papers above; run the steps in order and stop at the first "no".
- Name the failure. If the model lacks a fact, use retrieval. If it knows the facts but answers in the wrong format, tone or judgment, keep going.
- Write the best prompt you can, with examples, and score it on held-out cases. If it passes, ship the prompt.
- Check that you have consistent, correct examples. LIMA used 1,000 carefully curated ones.
- Check volume. If the prompt carries many examples and runs on many requests, fine-tuning can pay for itself, as the math below shows.
- Decide the acceptance test before training: the target metric, the skills that must not regress, and a test set the model never trains on.
Step 5 is the one most teams skip, and it is where "fine-tuning didn't work" usually comes from. Without a held-out baseline you cannot tell a bad fine-tune from a bad evaluation.
How much GPU time does a fine-tuning experiment cost?
Less than most people expect: minutes to hours on one GPU for an 8B model. We estimate it the way our other cost posts do, at about 6 operations per parameter per training token, the training estimate from Kaplan et al. (2020), and 30% of the GPU's peak.
The model is Qwen3-8B, with 8.19 billion parameters per its Hugging Face model files. Each example is 1,000 tokens, trained for 3 epochs. The GPU is an NVIDIA H100 SXM at 989 TFLOPS, half the 1,979 TFLOPS BF16 figure NVIDIA lists with sparsity on its H100 page.
operations = 6 x 8.19e9 x tokens
GPU-hours = operations / (989e12 x 0.30 x 3,600)
1,000 examples = 3M tokens -> 0.138 h x $2.60 = $0.36
10,000 examples = 30M tokens -> 1.38 h x $2.60 = $3.59
100,000 examples = 300M tokens -> 13.8 h x $2.60 = $35.88
The H100 SXM is listed at $2.60/hr on the Nodus pricing page. Prices checked November 23, 2026. These are compute floors: they leave out startup, evaluation runs and the reruns any real experiment needs.

A hundred times the data costs a hundred times the GPU time, and the largest run here still stays under $36.
So budget for five or ten runs, not one. The expensive parts are writing correct examples and building the test set. For a run-by-run comparison of setups, see the cheapest way to fine-tune Llama on an H100.
When does fine-tuning pay back against a long prompt?
When the prompt it replaces repeats often enough. Many-shot prompting works, but every request pays to process the examples again, so the costs cross.
Take a prompt that carries 500 examples of 200 tokens each, 100,000 tokens of examples on every call. A forward pass costs about 2 operations per parameter per token, per the same Kaplan paper. At the same 30% utilization on the same H100, the arithmetic is:
per request = 2 x 8.19e9 x 100,000 / (989e12 x 0.30) = 5.52 s -> $0.0040
break-even = $0.36 fine-tune / $0.0040 per request = 90 requests
| Requests | Many-shot prompt, cumulative | 1,000-example fine-tune |
|---|---|---|
| 0 | $0.00 | $0.36 |
| 50 | $0.20 | $0.36 |
| 100 | $0.40 | $0.36 |
| 150 | $0.60 | $0.36 |
| 200 | $0.80 | $0.36 |

Past about 90 requests, the repeated examples cost more GPU time than training them in once.
This comparison is deliberately simple. It ignores attention's extra cost at long context, which makes the prompt more expensive, and prompt caching, which can make the repeated part cheaper. A 10,000-example fine-tune at $3.59 breaks even at 900 requests by the same math. It also ignores serving, where a fine-tuned model on a dedicated GPU bills by the hour; our OpenAI fine-tuning vs open models post covers that break-even.
How do you check that a fine-tune worked on Nodus?
Compare the base model and the fine-tune on the same untouched test set, under the same prompt and settings. Validation loss going down is not that test.
On Nodus, a fine-tune is a TrainingJob on the nodus/sft runtime, full or LoRA/QLoRA, and the Training (Beta) guide describes the checks. A dry run prices the TrainingJob before anything starts, and maxCostUSD caps it. With parameters.validation set, the run evaluates the starting model once, exports the checkpoint with the lowest validation loss, and by default fails if that loss does not beat the starting loss. The guide is explicit that this guides checkpoint selection only, and that a separate untouched test set must establish task quality.
The validation split keeps repeated prompts together, which blocks exact prompt leakage but not near-duplicates. Our post on splitting fine-tuning data when prompts repeat explains why that matters for an honest score.
FAQ
Has fine-tuning been debunked?
No. Studies show it is weak at injecting new facts and can raise hallucination when it tries, while it reliably improves format, style and narrow-task performance. The slogan comes from applying it to the first job.
How many examples do you need to fine-tune an LLM?
There is no universal number. LIMA got strong results from 1,000 curated examples, while Bertsch et al. found fine-tuning needs more data than long-context prompting before it pulls ahead. Our default is a few hundred clean examples plus a held-out test, adding data while the test score keeps rising.
Is fine-tuning better than prompt engineering?
Only after prompt engineering has failed on a measured test. A prompt costs nothing to change, so it is the right first experiment; fine-tuning wins when the prompt cannot close the gap or when its examples repeat on enough requests.
Does fine-tuning make a model hallucinate more?
It can, when the training data teaches facts the model did not already know. Gekhman et al. found hallucination rose linearly as those examples were learned, so keep new facts in retrieval and train on behavior.
Can Nodus run the evaluation as well as the training?
Yes. Nodus has a nodus/evaluate runtime for evaluation-only runs, and environment-backed training jobs can score held-out tasks before and after training, as the Training (Beta) guide describes.
Originally published on the Nodus blog.
來源:DEV Community · dev.to