Prompt-tuning vs LoRA: pick the architectural reason LoRA tends to win
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Prefix and prompt tuning only steer the model through input vectors; LoRA edits the weight matrices directly, so it adapts harder per parameter and merges to zero inference cost.
Imagine a huge orchestra playing a fixed score. Prompt tuning is like whispering instructions to the conductor before the piece starts. The musicians never change, you just nudge what they hear at the very beginning, and that nudge has to ripple all the way through. LoRA is like handing every section a small set of edits to their own sheet music. The cellos, the brass, the percussion each get tweaked directly, so the whole sound shifts with far less effort. Whispering to the conductor can only do so much. Editing the parts themselves gives you real control. And once LoRA's edits are pencilled into the score, the performance costs nothing extra to play.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: where each method injects parameters + the input-space bottleneck + LoRA's per-layer leverage + the merge to zero cost perk + when soft prompts still win + LoRA vs full fine-tuning.
| Concern | Prefix / prompt tuning | LoRA |
|---|---|---|
| Where it edits | Input or key-value vectors only | Attention and MLP weight matrices |
| Weights changed | None; base stays frozen | Low-rank delta on chosen matrices |
| Representational ceiling | Capped by input-space bottleneck | Much higher; per-layer leverage |
| Inference cost | Extra key-value tokens every request | Zero after merging into base |
| Typical use | Light task switching, many tiny adapters | Serious behavior and reasoning change |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking the latency answer. Merging to zero overhead is a real LoRA perk, but it is a side benefit. The quality gap comes from where each method gets to edit the network.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.