LIVE · BENGALURU EST. 2024
EXP #017 Ft Ft Q-05 · Fine-Tuning: Adapting Giants · step 1 ⚠ Learning

Fine-Tuning: When Not To, and How

The instinct is: to make an LLM do something new, retrain it. Almost always wrong. Fine-tuning teaches behaviour, not facts; the cheaper rungs (prompt, RAG) solve most problems; and when you do fine-tune, it is a low-rank LoRA adapter behind eval gates, not a full retrain. The LoRA math, the SFT→RLHF→DPO ladder, the production traps that sink naive fine-tunes, and a decision framework — with the interview scenarios where people get it wrong.

2026-07-15 15 MIN READ COMPLETE
01

HYPOTHESIS

H₀
H₀ To make an LLM do something new, you fine-tune it.
02

METHOD

New quest. We spent five experiments building a transformer; now the applied question: you have a frozen, general-purpose giant — how do you make it yours? The reflex answer, and our hypothesis to break:

“To make an LLM do something new, you fine-tune it.”

Mostly wrong — in two directions at once. When you should adapt weights, you touch a tiny fraction of them, not all. And most of the time you shouldn’t touch them at all: a better prompt or retrieval wins. This experiment covers the how (LoRA, the alignment ladder), the traps (forgetting, the real-time myth), the when (prompt vs RAG vs fine-tune), and the interview scenarios where the wrong instinct shows. Verdict on the reflex: FAR FROM IT.

03

LoRA — DON’T RETRAIN, ADAPT

interactive

Full fine-tuning updates every parameter of every weight matrix — for a big model, billions of them, plus optimiser state, which is why it needs a cluster. LoRA’s insight comes straight from last experiment: the update a task needs is low-rank. So freeze W and learn a low-rank correction beside it:

W=W+ΔW=W+BA,BRd×r, ARr×d, rdW' = W + \Delta W = W + BA, \qquad B \in \mathbb{R}^{d\times r},\ A \in \mathbb{R}^{r\times d},\ r \ll d

You train only B and A2·d·r parameters instead of . At d = 4096, r = 8 that’s 65K vs 16.8M: 0.4%. And it works — rank-8 adapters match full fine-tuning on most tasks.

one weight matrix · d = 4096 · W frozen, only B and A train
W ❄
d×d frozen
+
B · d×r
×
A · r×d
rank r = 8
FULL fine-tune
16.78M params
LoRA (rank 8)
65.5K params
0.39% of full
ΔW = B·A has rank ≤ 8, so you train 0.39% of one matrix and freeze the rest. Scaled to a 70B model, that's tens of millions of trainable params instead of 70 billion — the whole reason a giant can be adapted on a single GPU.

↑ Drag the rank. Even at r = 128 you’re training a sliver of one matrix. QLoRA pushes it further — 4-bit-quantise the frozen W, keep the adapters in higher precision — and a 65B model fine-tunes on a single 48GB GPU.

04

THE ALIGNMENT LADDER — SFT → RLHF → DPO

interactive

“Fine-tuning” is really several different jobs. A raw pretrained model only predicts the next token — ask it a question and it continues the text instead of answering. Two more stages turn it into an assistant.

prompt: "How do I reset my password?" · click a stage
objective
predict the next token over trillions of tokens of text
trained on
raw internet-scale text
model's reply
"How do I reset my password? How do I change my email? How do I delete my account? How do I…"
it continues the text instead of answering
SFT teaches the model to answer; RLHF/DPO teaches it which answer to prefer. Note what changes across the ladder: behaviour and tone, not facts. Alignment shapes how it responds — it isn't how you add new knowledge.

↑ Click through the rungs. SFT (supervised fine-tuning) teaches it to answer by imitating demonstrations. RLHF/DPO then teaches it which answer to prefer.

RLHF does that with a reward model and reinforcement learning; DPO (Direct Preference Optimisation) skips the reward model and optimises the preferences directly. Given a chosen answer y_w and a rejected one y_l, it simply raises the model’s relative log-probability of the winner over a frozen reference:

LDPO=logσ ⁣(βlogπθ(ywx)πref(ywx)βlogπθ(ylx)πref(ylx))\mathcal{L}_{\text{DPO}} = -\log \sigma\!\left(\beta \log \frac{\pi_\theta(y_w \mid x)}{\pi_{\text{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\text{ref}}(y_l \mid x)}\right)

Notice what every rung of this ladder changes: behaviour, calibration, tone. None of it is how you add new knowledge — which is the whole next point.

05

THE FACTS TRAP

Here’s the mistake that sinks most first fine-tuning projects: trying to teach the model facts. “Fine-tune it on our documentation so it knows our product.” It feels right and it fails, because weights are a terrible database — they can’t be updated when the docs change, they can’t cite a source, and cramming facts in by gradient descent produces confident hallucination and erodes what was already there.

SPECIMEN · skills live in weights, facts live in retrieval 100×

Think of the model as an employee. Fine-tuning is training — it changes their skills, judgement, and tone, and it sticks. RAG is handing them the right document at the moment they need it — it changes what they know right now, and updates the instant the document does. You’d never re-train an employee every time a price changes; you’d give them the current price list. New or changing knowledge → retrieval. New behaviour or format → fine-tune. Confusing the two is the classic error.

06

WHAT BITES IN PRODUCTION

Say you’ve correctly decided to fine-tune. Two things bite.

Catastrophic forgetting. Fine-tune hard on a narrow task and the model quietly gets worse at everything else — its general ability is overwritten. The tell is a great task metric and a sagging general benchmark. Mitigate by mixing general/replay data back in, using a low learning rate, preferring LoRA (it perturbs less), and — critically — gating on held-out general evals, not just your task score.

The “real-time learning” myth. Product asks for a model that “learns continuously from user chats in real time.” True live weight updates are rare and dangerous — instability, forgetting, and feedback loops where the model trains on its own mistakes. What real systems do looks nothing like live training.

When someone says the model should “learn in real time,” they almost always want fresh answers, not fresh weights. You deliver that by updating the retrieval store — new docs are searchable the instant you index them. Any actual weight change goes through a batch pipeline: log interactions, filter and curate, fine-tune on a schedule, gate on a frozen eval suite, then canary-roll it out. Real-time freshness is a retrieval problem; weight updates are a slow, gated, offline process.

'real-time' usually means retrieval, not weights
07

THE DECISION — PROMPT vs RAG vs FINE-TUNE

interactive

Everything above collapses into one framework. There’s a cost ladder — prompt < RAG < fine-tune — and you climb it only when the rung below genuinely fails. Toggle a real problem and see where it lands:

toggle what's true of your problem →
recommended approach
Prompt engineering
Low volume / prototype — start with the cheapest lever. No training, iterate in minutes; climb only if it fails.
cost ladder: prompt < RAG < fine-tune. The senior answer to "should we fine-tune?" is almost always "not yet — have we exhausted the rung below?"
DATA TABLE n=5
ApproachChangesCostBest forFails at
Prompt / few-shotnothing (inference)lowestquick nudges, prototypescomplex new skills
RAGthe context, not the modellow–medfresh / private / changing factsnew behaviour or tone
★ Fine-tune (LoRA)a low-rank slice of weightsmediumnew skill / format / tone + datateaching facts
Full fine-tuneall weightshighestdeep domain shift, big datacost, forgetting
RLHF / DPObehaviour preferenceshighalignment, safety, toneadding knowledge
08

THE INTERVIEW ROOM

The same three scenarios come up again and again, and the wrong instinct is always the fine-tune reflex. Interviewer’s-eye view — weak answer, then the answer that gets the offer.

Scenario 1 — “Support bot that must answer from our constantly-updated internal docs. Fine-tune it on the docs?”

  • Weak: “Yes — fine-tune on all the docs so it learns them.”
  • Strong: “No — that’s RAG. The docs change, so knowledge belongs in a retrieval index the bot cites, not in frozen weights that go stale. Fine-tune only if you also need a specific support tone or output format — and then a small LoRA, on top of RAG.”

Scenario 2 — “You fine-tuned on your domain and now it’s worse at basic reasoning. What happened?”

  • Weak: “It overfit — needs more epochs or more data.”
  • Strong:Catastrophic forgetting — the narrow fine-tune overwrote general ability. Fix: mix general/replay data back in, lower the learning rate, switch to LoRA to perturb less, and gate on a held-out general benchmark, not only the task metric.”

Scenario 3 — “The PM wants the model to learn continuously, in real time, from user chats. Design it.”

  • Weak: “Stream each chat into an online training loop and update the weights live.”
  • Strong: “Rarely live weights — that invites instability, forgetting, and feedback loops. ‘Real-time’ here means fresh answers: update the retrieval store for instant freshness. Any weight change is a batch pipeline — log, filter, curate, fine-tune on a schedule, eval-gate on a frozen suite, canary-roll out.”
09

CONCLUSION

⚠ FAR FROM IT
Most of the time, you shouldn’t fine-tune at all.

Fine-tuning changes how a model behaves, not what it knows. The cheaper rungs — a sharper prompt, then RAG — dispatch most real problems, and facts belong in retrieval where they can change and be cited. When you genuinely need new behaviour and have the data, the modern move is a low-rank LoRA adapter behind eval gates — not a full retrain that courts catastrophic forgetting.

The senior instinct isn’t “how do we fine-tune this?” It’s “have we earned the right to, by exhausting the rung below?” Knowing when not to fine-tune is the skill.

10

WHAT NEXT

Quest-05 continues from here: how you actually measure that a fine-tune is better and not merely different (eval design for open-ended generation is its own hard problem), the RLHF/DPO objective in full, and serving many LoRA adapters at once (multi-tenant fine-tuning). Same method as always — study it from the problem up, mock it hard, build it in public.

🃏THE JUDGMENT CALLverdict flip
the tempting answer
"To make an LLM do something new, you fine-tune it."
tap to flip → the real judgment
📌 verdict: Fine-tuning changes behaviour, not facts; climb prompt < RAG < fine-tune; when you must, LoRA behind eval gates.