When does LoRA fine-tuning beat a good prompt? I measured the crossover
“Should we fine-tune a small model or prompt a big one?” comes up on every team that builds with LLMs. The honest answer is “it depends on how much labeled data you have”, so I measured how much, on one concrete task.
Short answer: with 100 examples, prompt the big model; with 2,000, the fine-tuned small model comes close. Gemini 3.5 Flash-Lite with 10 retrieved examples got 55% of records exactly right at 100 labeled examples, against 32% for Qwen2.5-1.5B fine-tuned with LoRA on the same 100. At 2,000 examples it was 66% against 64%, a difference within noise (the interval still allows up to 7 points), with the fine-tuned model reading 29 times fewer input tokens. On individual slots the big model stayed 5 points ahead.
The setup
- Task: turn a request to a voice assistant into JSON with its intent and slots, using MASSIVE (60 intents, 55 slot types, human labels). “wake me up at five am this week” becomes alarm_set with time “five am” and date “this week”.
- Same data for every method: pools of 100, 500 and 2,000 labeled examples. LoRA trains on the pool; the prompts get the 10 pool examples most similar to each request, plus the full label lists.
- Models: Qwen2.5-1.5B-Instruct, prompted and fine-tuned with LoRA (rank 16, settings fixed before running) on a free Colab T4; Gemini 3.5 Flash-Lite through the API, prompted.
- Scoring: 300 test requests; exact record (intent and every slot right), slot F1, intent accuracy, valid JSON and schema compliance, with paired bootstrap intervals. Three hypotheses were written before the run.
The results
| Exact record | 100 examples | 500 | 2,000 |
|---|---|---|---|
| Gemini Flash-Lite, 10 retrieved examples | 55% | 64% | 66% |
| Qwen 1.5B + LoRA | 32% | 51% | 64% |
| Qwen 1.5B, 10 retrieved examples | 31% | 40% | 49% |
300 test requests. At 2,000 examples, LoRA vs Gemini: −2.3 points [−7.3, +2.7] on exact records, −0.3 on intent, −5.2 [−9.6, −0.8] on slot F1. LoRA at 100 is the mean of three seeds (33, 31, 32).
What the curve says
- At 100 examples the big model wins by more than 20 points (23 on the three-seed mean). It has seen far more language, and its prompt lists every label.
- On the same small model, fine-tuning beats prompting once there is data: a tie at 100, then +12 points at 500 and +15 at 2,000.
- The big model's curve flattens: 55%, 64%, 66%. More examples in the pool only change which 10 it sees. The fine-tuned model kept climbing.
Format was never the problem
I expected LoRA to fix formatting first and accuracy later. It didn't need to: every method produced valid JSON on 99.7 to 100% of requests. What failed at 100 examples was labels. The fine-tuned model never sees the label list, and 22 of the 60 intents weren't in its 100 examples, so it invented plausible ones: 58 replies used intents that don't exist, like “recipe” or “email_send”. At 2,000 examples, covering all 60, schema compliance reached 97%.
What it costs
- Input: 31 tokens per request for the fine-tuned model against about 900 for the prompts with examples.
- Compute: 190 GPU-seconds per 1,000 requests on a T4, against 355 for the same model prompted.
- Training: 40 seconds for 100 examples, 3 minutes for 2,000, on a free GPU. The adapter is 1.2% of the model's parameters.
How the hypotheses did
- With about 100 examples, the prompted big model wins: true, 55% vs 32%.
- With about 2,000, the fine-tuned model matches it: partly true; it fails on slot F1. No significant difference on exact records, intent or valid JSON, but 5 points behind on slot extraction, a significant gap.
- LoRA fixes format before accuracy: false. Format was fine from the start, and labels were the real problem.
Limits
One task with short, well-defined labels, which suits fine-tuning; open-ended extraction would favor the bigger model more. One seed at 500 and 2,000, LoRA settings not tuned, and the API model is Flash-Lite, not the largest available. Giving the fine-tuned model the label list, or constraining its output to the schema, would probably fix most of its early errors; that's the next experiment, not a result. Every prediction and the code are in lora-vs-prompting on GitHub; how LoRA itself works is in the explainer How fine-tuning with LoRA works.